/* ===========================================================
   ClearShelf — marketing site design system
   White background. Big, confident type. Built to look like a
   natural extension of the product dashboard itself.
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Color */
  --bg:            #ffffff;
  --bg-soft:       #fafaf9;
  --ink:           #111417;
  --ink-soft:      #4b5158;
  --ink-faint:     #80868d;
  --line:          #e7e8ea;
  --line-strong:   #d7d9dc;

  --brand:         #16241c;        /* near-black shelf-green, used like "ink" for CTAs */
  --green:         #1c8a4b;
  --green-bg:      #e3f6ea;
  --green-line:    #b9e6c8;
  --amber:         #b76a00;
  --amber-bg:      #fef0d8;
  --amber-line:    #f3d49a;
  --red:           #c23b2c;
  --red-bg:        #fde7e3;
  --red-line:      #f3c1b6;
  --blue:          #2454d6;
  --blue-bg:       #e8eefd;

  --shadow-card: 0 1px 2px rgba(17,20,23,.04), 0 8px 24px -16px rgba(17,20,23,.12);
  --shadow-pop:  0 12px 32px -12px rgba(17,20,23,.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

/* ---------- layout helpers ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}
section{ position:relative; }
.section-pad{ padding:108px 0; }
@media (max-width:780px){
  .section-pad{ padding:68px 0; }
  .wrap{ padding:0 20px; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
  background:var(--green-bg);
  border:1px solid var(--green-line);
  padding:6px 14px 6px 12px;
  border-radius:999px;
  margin-bottom:22px;
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 3px var(--green-line);
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.06;
  margin:0;
  color:var(--ink);
}
h1{ font-size:clamp(40px,5.6vw,74px); }
h2{ font-size:clamp(32px,4vw,48px); }
h3{ font-size:24px; letter-spacing:-0.01em; }
h4{ font-size:18px; letter-spacing:-0.005em; }

p{ margin:0; }
.lead{
  font-size:clamp(19px,2vw,23px);
  line-height:1.55;
  color:var(--ink-soft);
  max-width:640px;
}
.kicker{
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:600;
  color:var(--ink-faint);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:17px;
  padding:16px 28px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--brand);
  color:#fff;
  box-shadow:var(--shadow-pop);
}
.btn-primary:hover{ background:#000; }
.btn-secondary{
  background:#fff;
  color:var(--ink);
  border-color:var(--line-strong);
}
.btn-secondary:hover{ border-color:var(--ink); }
.btn-ghost{
  background:transparent;
  color:var(--ink);
  padding:14px 6px;
}
.btn-ghost:hover{ color:var(--green); }
.btn-lg{ padding:19px 34px; font-size:18px; }
.btn-block{ width:100%; }

/* ---------- nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:21px;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.brand .mark{
  width:30px; height:30px; border-radius:8px;
  background:var(--brand);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand .mark svg{ width:16px; height:16px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a{
  font-size:15.5px;
  font-weight:600;
  color:var(--ink-soft);
  transition:color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-cta .btn{ padding:12px 22px; font-size:15.5px; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:10px;
  border:1px solid var(--line-strong);
  background:#fff;
  align-items:center; justify-content:center;
  cursor:pointer;
}
.mobile-panel{
  display:none;
  flex-direction:column;
  gap:4px;
  border-top:1px solid var(--line);
  padding:14px 0 22px;
}
.mobile-panel a{
  padding:13px 4px;
  font-weight:600;
  font-size:17px;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.mobile-panel .btn{ margin-top:14px; }

@media (max-width:920px){
  .nav-links{ display:none; }
  .nav-cta .btn-secondary{ display:none; }
  .nav-toggle{ display:flex; }
  body.menu-open .mobile-panel{ display:flex; }
}

/* ---------- footer ---------- */
.site-footer{
  background:var(--bg-soft);
  border-top:1px solid var(--line);
  padding:72px 0 36px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line);
}
.footer-grid h4{ font-size:14px; margin-bottom:18px; color:var(--ink-faint); letter-spacing:.04em; text-transform:uppercase; font-weight:700; }
.footer-grid li{ margin-bottom:12px; }
.footer-grid a{ color:var(--ink-soft); font-size:15.5px; font-weight:500; }
.footer-grid a:hover{ color:var(--ink); }
.footer-about p{ color:var(--ink-soft); font-size:15.5px; max-width:320px; margin-top:14px; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:28px; flex-wrap:wrap; gap:14px;
}
.footer-bottom p{ color:var(--ink-faint); font-size:14px; }
.footer-bottom .legal-links{ display:flex; gap:22px; }
.footer-bottom .legal-links a{ color:var(--ink-faint); font-size:14px; font-weight:600; }
.footer-bottom .legal-links a:hover{ color:var(--ink); }
@media (max-width:780px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ---------- cards ---------- */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
}

/* ---------- pill / badge / tag (signature motif, taken from the product UI) ---------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line-strong);
}
.pill-green{ background:var(--green-bg); color:var(--green); border-color:var(--green-line); }
.pill-amber{ background:var(--amber-bg); color:var(--amber); border-color:var(--amber-line); }
.pill-red{ background:var(--red-bg); color:var(--red); border-color:var(--red-line); }
.pill-blue{ background:var(--blue-bg); color:var(--blue); border-color:#c6d6f9; }

/* freshness strip — recurring signature element representing days-since-sale aging */
.freshness-strip{
  display:flex; height:8px; border-radius:999px; overflow:hidden;
  border:1px solid var(--line);
}
.freshness-strip span{ flex:1; }
.freshness-strip .f1{ background:#bfe9cf; }
.freshness-strip .f2{ background:#9fd9b8; }
.freshness-strip .f3{ background:var(--amber-line); }
.freshness-strip .f4{ background:#f3a98e; }
.freshness-strip .f5{ background:var(--red); }

/* ---------- hero split layout (text + image side by side) ---------- */
.hero-flex{
  display:flex;
  align-items:center;
  gap:48px;
}
.hero-text{
  flex:0 0 42%;
  max-width:42%;
}
.hero-visual{
  flex:0 0 56%;
  max-width:56%;
}
.hero-visual .card{
  padding:14px;
  border-radius:26px;
  background:linear-gradient(180deg,#fbfbfa,#ffffff);
}
.hero-visual img{
  width:100%;
  height:auto;       /* preserves the image's natural ratio — never stretched or cropped */
  display:block;
  border-radius:16px;
}
@media (max-width:980px){
  .hero-flex{ flex-direction:column; gap:36px; }
  .hero-text,.hero-visual{ flex:1 1 auto; max-width:100%; }
}
.page-hero{
  padding:80px 0 56px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(700px 280px at 85% -10%, var(--green-bg), transparent 70%);
}
.page-hero h1{ max-width:780px; }
.page-hero .lead{ margin-top:20px; }

/* ---------- generic grid utilities ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:900px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
}

/* ---------- sidebar layouts (legal pages, contact) ----------
   Dedicated responsive classes instead of inline grid-template-columns,
   so the sidebar properly collapses on tablet/mobile widths. */
.legal-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:56px;
  align-items:flex-start;
}
@media (max-width:880px){
  .legal-layout{ grid-template-columns:1fr; gap:32px; }
  .legal-layout .toc{ position:static !important; }
}

.contact-layout{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:56px;
  align-items:flex-start;
}
@media (max-width:880px){
  .contact-layout{ grid-template-columns:1fr; gap:32px; }
}

/* ---------- icon tile ---------- */
.icon-tile{
  width:52px; height:52px;
  border-radius:14px;
  background:var(--bg-soft);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.icon-tile svg{ width:24px; height:24px; }

/* ---------- divider rule with ticks (signature) ---------- */
.tick-rule{
  display:flex; align-items:center; gap:0;
  margin:0 auto;
}
.tick-rule .line{ flex:1; height:1px; background:var(--line-strong); }
.tick-rule .ticks{ display:flex; gap:5px; padding:0 14px; }
.tick-rule .ticks i{ width:4px; height:4px; border-radius:50%; background:var(--line-strong); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--brand);
  border-radius:28px;
  padding:72px 56px;
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner h2{ color:#fff; }
.cta-banner .lead{ color:#cfd8d1; margin:18px auto 34px; }
.cta-banner::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(420px 220px at 12% 0%, rgba(28,138,75,.35), transparent 60%),
             radial-gradient(420px 220px at 88% 100%, rgba(28,138,75,.25), transparent 60%);
  pointer-events:none;
}
.cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; position:relative; }
.cta-banner .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,.3); }
.cta-banner .btn-secondary:hover{ border-color:#fff; }
.cta-banner .btn-primary{ background:#fff; color:var(--brand); }
.cta-banner .btn-primary:hover{ background:#eef3ef; }

/* ---------- table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-md); }
table.cs-table{ width:100%; border-collapse:collapse; min-width:560px; }
.cs-table th{
  text-align:left; font-family:var(--font-mono); font-size:13px; text-transform:uppercase;
  letter-spacing:.04em; color:var(--ink-faint); font-weight:600;
  padding:14px 18px; background:var(--bg-soft); border-bottom:1px solid var(--line);
}
.cs-table td{ padding:16px 18px; border-bottom:1px solid var(--line); font-size:16px; }
.cs-table tr:last-child td{ border-bottom:none; }

/* ---------- prose (legal pages) ---------- */
.prose{ max-width:780px; }
.prose h2{ font-size:28px; margin-top:52px; margin-bottom:16px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size:20px; margin-top:32px; margin-bottom:12px; }
.prose p{ color:var(--ink-soft); font-size:17px; margin-bottom:16px; }
.prose ul{ margin-bottom:18px; }
.prose li{ color:var(--ink-soft); font-size:17px; padding-left:26px; position:relative; margin-bottom:10px; }
.prose li::before{
  content:""; position:absolute; left:4px; top:11px;
  width:6px; height:6px; border-radius:50%; background:var(--green);
}
.prose a{ color:var(--green); font-weight:600; text-decoration:underline; text-decoration-color:var(--green-line); }
.prose strong{ color:var(--ink); }
.toc{
  background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:26px 28px; margin-bottom:8px;
}
.toc h4{ margin-bottom:14px; }
.toc li{ margin-bottom:9px; }
.toc a{ color:var(--ink-soft); font-weight:600; font-size:15.5px; }
.toc a:hover{ color:var(--green); }

/* ---------- forms ---------- */
.field{ margin-bottom:22px; }
.field label{
  display:block; font-weight:700; font-size:15px; margin-bottom:8px; color:var(--ink);
}
.field .hint{ font-size:13.5px; color:var(--ink-faint); margin-top:6px; }
.field input,
.field select,
.field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:16.5px;
  padding:14px 16px;
  border-radius:10px;
  border:1.5px solid var(--line-strong);
  background:#fff;
  color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field textarea{ min-height:150px; resize:vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 4px var(--green-bg);
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:620px){ .field-row{ grid-template-columns:1fr; } }

.form-note{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--bg-soft); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:16px 18px; margin-top:8px;
  font-size:14.5px; color:var(--ink-soft);
}
#form-status{ margin-top:18px; font-weight:600; font-size:15.5px; display:none; }
#form-status.show{ display:block; }
#form-status.ok{ color:var(--green); }
#form-status.err{ color:var(--red); }

/* ---------- misc page bits ---------- */
.tag-strike{
  font-family:var(--font-mono); font-size:14px; color:var(--ink-faint);
}
.muted{ color:var(--ink-soft); }
.mt-8{ margin-top:8px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;} .mt-40{ margin-top:40px;}
.mb-0{ margin-bottom:0 !important; }

.skiplink{
  position:absolute; left:-999px; top:0; background:#000; color:#fff; padding:10px 16px; z-index:200;
}
.skiplink:focus{ left:12px; top:12px; }

:focus-visible{ outline:3px solid var(--green); outline-offset:2px; }
