/* =============================================================================
   ZOVOX — Design System
   Built on the authoritative ZOVOX brand system (pocket-cfo-frontend/colors.dart):
     dark-mode-first · #141414 smoke bg · #1D9E75 teal is the ONLY accent
     NO GRADIENTS · Montserrat · tabular figures for money · 8px grid
   Depth comes from layered solid surfaces + hairline borders + soft shadows,
   never from gradient orbs, particles, or multi-colour glows.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — dark (default). Exact values from the app palette. */
  --bg:            #141414; /* dark smoke — never pure black */
  --bg-deep:       #101010; /* recessed wells / footer */
  --surface:       #1E1E1E; /* elevated cards */
  --surface-2:     #262626; /* nested / pressed / hover */
  --border:        #2E2E2E; /* hairlines & dividers */
  --border-soft:   rgba(255,255,255,0.06);
  --hairline-top:  rgba(255,255,255,0.05); /* top-lit edge for elevation */

  --accent:        #1D9E75; /* teal — the ONLY accent */
  --accent-strong: #23B384; /* hover / active teal */
  --accent-ink:    #06130E; /* text on a teal fill */
  --accent-soft:   rgba(29,158,117,0.12);
  --accent-line:   rgba(29,158,117,0.30);

  --text:          #FFFFFF;
  --text-2:        #C7C7C7; /* body copy — softer than pure white */
  --muted:         #A8A8A8; /* captions / secondary */
  --dim:           #6E6E6E; /* fine print / disabled */

  /* Semantic (financial data + status only — never brand accents) */
  --urgent:        #E76F51;
  --good:          #2ED47A;
  --caution:       #F5A524;
  --bad:           #E5614A;
  --good-soft:     rgba(46,212,122,0.12);

  --nav-bg:        rgba(20,20,20,0.72);
  --nav-border:    rgba(255,255,255,0.07);

  /* Type */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tnum: "tnum" 1, "lnum" 1; /* tabular figures for money */

  /* Spacing — 8px grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px; --s32: 128px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;

  /* Elevation (soft, low — reads as depth without heavy shadows on dark) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 40px 80px -24px rgba(0,0,0,0.7);
  --shadow-teal: 0 24px 60px -20px rgba(29,158,117,0.35);

  --maxw: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Light theme (secondary — dark is brand-first) ---------- */
[data-theme="light"] {
  --bg:            #FBFBF9;
  --bg-deep:       #F2F2EE;
  --surface:       #FFFFFF;
  --surface-2:     #F4F4F1;
  --border:        #E6E6E1;
  --border-soft:   rgba(20,20,20,0.08);
  --hairline-top:  rgba(255,255,255,0.9);
  --accent:        #178A66;
  --accent-strong: #1D9E75;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(23,138,102,0.10);
  --accent-line:   rgba(23,138,102,0.28);
  --text:          #141414;
  --text-2:        #333333;
  --muted:         #5C5C5C;
  --dim:           #8A8A8A;
  --nav-bg:        rgba(251,251,249,0.78);
  --nav-border:    rgba(20,20,20,0.08);
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.06);
  --shadow-md: 0 16px 40px -16px rgba(20,20,20,0.16);
  --shadow-lg: 0 40px 80px -24px rgba(20,20,20,0.18);
  --shadow-teal: 0 24px 60px -20px rgba(23,138,102,0.20);
}

/* System default resolves via OS preference */
[data-theme="system"] { color-scheme: light dark; }
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg:#FBFBF9; --bg-deep:#F2F2EE; --surface:#FFFFFF; --surface-2:#F4F4F1;
    --border:#E6E6E1; --border-soft:rgba(20,20,20,0.08); --hairline-top:rgba(255,255,255,0.9);
    --accent:#178A66; --accent-strong:#1D9E75; --accent-ink:#FFFFFF;
    --accent-soft:rgba(23,138,102,0.10); --accent-line:rgba(23,138,102,0.28);
    --text:#141414; --text-2:#333333; --muted:#5C5C5C; --dim:#8A8A8A;
    --nav-bg:rgba(251,251,249,0.78); --nav-border:rgba(20,20,20,0.08);
    --shadow-md:0 16px 40px -16px rgba(20,20,20,0.16); --shadow-lg:0 40px 80px -24px rgba(20,20,20,0.18);
    --shadow-teal:0 24px 60px -20px rgba(23,138,102,0.20);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: hidden; }
.frow > *, .found > * { min-width: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.display {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); font-weight: 400; line-height: 1.6; }
.tnum { font-feature-settings: var(--tnum); font-variant-numeric: tabular-nums lining-nums; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { max-width: 680px; margin-bottom: var(--s12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s4); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-top: var(--s4); }
.hairline { height: 1px; background: var(--border); border: 0; }

/* Faint dot grid — the ONLY background texture (no orbs/particles) */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--border);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.grid-bg > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-teal); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.btn--lg { padding: 18px 30px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 600; transition: gap .2s var(--ease), color .2s var(--ease); }
.link-arrow:hover { color: var(--accent); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
}
.pill--accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pulse-dot { position: relative; }
.pulse-dot::after {
  content:""; position:absolute; inset:0; border-radius:50%; background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 var(--accent-soft);} 70%{box-shadow:0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s8); position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.card::before { /* top-lit hairline for elevation on dark */
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; pointer-events:none;
  background: linear-gradient(180deg, var(--hairline-top), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--accent-line); }

/* Icon tile — custom line icons, teal (replaces emoji) */
.icon-tile {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  flex: none;
}
.icon-tile svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-teal); }

/* ---------- Stat tiles ---------- */
.stat { }
.stat__value { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; font-feature-settings: var(--tnum); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.value-good { color: var(--good); } .value-bad { color: var(--bad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--nav-border); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 var(--s6); display: flex; align-items: center; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: var(--s6); margin-left: auto; list-style: none; }
.nav__links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: var(--s4); }
.nav__cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; }

/* Theme toggle */
.theme-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); }
.theme-toggle button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.theme-toggle button svg { width: 15px; height: 15px; }
.theme-toggle button.is-active { background: var(--accent-soft); color: var(--accent); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s6); display: none; z-index: 99; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--text); font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { width: 100%; margin-top: var(--s4); }

/* ---------- Device / phone mockup ---------- */
.device {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 620;
  border-radius: 42px; padding: 10px;
  background: #0A0A0A; border: 1px solid #333;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1c1c1c;
}
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Drawn status bar covers the app's debug ribbon / real clock so shots read as clean product */
.device__statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 3;
  background: var(--bg); display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; color: #fff; font-size: 12px; font-weight: 600;
}
.device__statusbar .sb-icons { display: flex; align-items: center; gap: 5px; }
.device__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #000; border-radius: 12px; z-index: 4; }
.device__glow { position: absolute; inset: -1px; border-radius: 42px; pointer-events: none; box-shadow: inset 0 1px 1px rgba(255,255,255,0.12); }

/* ---------- Marquee (screenshot rail) ---------- */
.rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rail__track { display: flex; gap: var(--s6); width: max-content; animation: rail 46s linear infinite; }
.rail:hover .rail__track { animation-play-state: paused; }
.rail__track .device { max-width: 250px; }
@keyframes rail { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Bento / feature grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.bento .card { padding: var(--s6); }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }
.feature-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: var(--s4) 0 var(--s2); letter-spacing: -0.01em; }
.feature-desc { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* Alternating feature rows */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px,6vw,72px) 0; border-top: 1px solid var(--border); }
.frow--first { border-top: 0; }
.frow__media { position: relative; }
.frow h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.025em; margin: var(--s4) 0 var(--s3); }
.frow p { color: var(--muted); font-size: 1.05rem; }
.frow__list { list-style: none; margin-top: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.frow__list li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--text-2); font-size: 0.98rem; }
.frow__list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }

/* ---------- AI chat mock ---------- */
.chat { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.94rem; line-height: 1.45; }
.bubble--me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.bubble--ai { align-self: flex-start; background: var(--surface-2); color: var(--text-2); border-bottom-left-radius: 5px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .4; animation: typing 1.4s var(--ease) infinite; }
.typing span:nth-child(2){animation-delay:.18s;} .typing span:nth-child(3){animation-delay:.36s;}
@keyframes typing { 0%,60%,100%{opacity:.35; transform:translateY(0);} 30%{opacity:1; transform:translateY(-3px);} }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chips li { font-size: 0.85rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 7px 13px; border-radius: var(--r-pill); transition: all .2s var(--ease); }
.chips li:hover { border-color: var(--accent-line); color: var(--text); }

/* ---------- Logos / trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s6) var(--s10); }
.trust__item { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.trust__item svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-teal); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill); white-space: nowrap; }
.plan__name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.plan__price { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-top: var(--s2); font-feature-settings: var(--tnum); }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__note { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.plan__sub { color: var(--muted); font-size: 0.94rem; margin: var(--s4) 0; }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: var(--s3); flex-grow: 1; margin-bottom: var(--s6); }
.plan__list li { display: flex; gap: var(--s3); color: var(--text-2); font-size: 0.95rem; }
.plan__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- App store buttons ---------- */
.stores { display: flex; gap: var(--s3); flex-wrap: wrap; }
.stores.center { justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.store-btn:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn__t { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn__t .s { font-size: 0.64rem; color: var(--muted); font-weight: 500; }
.store-btn__t .l { font-size: 0.98rem; font-weight: 700; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.quote p { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.quote__mark { color: var(--accent); font-size: 2.4rem; font-weight: 800; line-height: 1; height: 24px; }
.quote__who { color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-top: var(--s4); }

/* ---------- FAQ (native accordion, no JS) ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq .faq__a { padding: 0 0 var(--s5); color: var(--muted); max-width: 68ch; }
.faq .faq__a a { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: var(--s16) 0 var(--s8); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s8); }
.footer__brand p { color: var(--muted); font-size: 0.96rem; max-width: 320px; margin-top: var(--s4); }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; margin-bottom: var(--s4); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.footer ul a { color: var(--muted); font-size: 0.94rem; transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--accent); }
.footer__bar { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); color: var(--dim); font-size: 0.85rem; }
.footer__social { display: flex; gap: var(--s4); }
.footer__social a { color: var(--muted); } .footer__social a:hover { color: var(--accent); }
.footer__social svg { width: 20px; height: 20px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 200; transition: width .1s linear; }

/* ---------- Reveal animation (progressive enhancement: hidden only when JS is on) ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* =============================================================================
   Blog / article prose
   ========================================================================== */
.post-hero { padding: calc(var(--nav-h) + 48px) 0 0; }
.post-meta { display: flex; align-items: center; gap: var(--s3); color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.post-meta .tag { color: var(--accent); font-weight: 600; }
.post-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--border); margin-top: var(--s8); }

.prose { max-width: 720px; margin: 0 auto; color: var(--text-2); font-size: 1.09rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s5); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); margin-top: var(--s12); font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.3rem; color: var(--text); margin-top: var(--s8); font-weight: 700; }
.prose p { color: var(--text-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--s2); }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: var(--s2) 0 var(--s2) var(--s5); color: var(--text); font-size: 1.15rem; font-style: italic; }
.prose figure img { border-radius: var(--r-lg); border: 1px solid var(--border); }
.prose figcaption { color: var(--dim); font-size: 0.85rem; text-align: center; margin-top: var(--s2); }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface); color: var(--text); font-weight: 700; }
.prose .callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: var(--s5) var(--s6); color: var(--text-2); }
.prose .callout strong { color: var(--accent); }
.key-takeaways { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); }
.key-takeaways h2 { margin-top: 0 !important; font-size: 1.05rem !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent) !important; }
.key-takeaways ul { margin-top: var(--s3); }

/* Blog index cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.post-card__body { padding: var(--s5) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s2); flex-grow: 1; }
.post-card__tag { color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.post-card__meta { color: var(--dim); font-size: 0.82rem; margin-top: var(--s2); }
.post-card--feature { grid-column: span 3; flex-direction: row; }
.post-card--feature .post-card__img { aspect-ratio: auto; width: 52%; border-bottom: 0; border-right: 1px solid var(--border); }
.post-card--feature .post-card__body { justify-content: center; padding: var(--s10); }
.post-card--feature h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; }

.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: var(--s3); }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: var(--s2); border-left: 1px solid var(--border); }
.toc a { color: var(--muted); font-size: 0.9rem; padding: 3px 0 3px var(--s4); margin-left: -1px; border-left: 2px solid transparent; display: block; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--accent); border-left-color: var(--accent); }

.article-layout { display: grid; grid-template-columns: 1fr; gap: var(--s10); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: 220px 1fr; } .article-layout .prose { margin: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-6,.col-4,.col-3,.col-2 { grid-column: span 1; }
  .col-6 { grid-column: span 2; }
  .quotes { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card--feature { grid-column: span 2; flex-direction: column; }
  .post-card--feature .post-card__img { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); aspect-ratio: 16/9; }
  .post-card--feature .post-card__body { padding: var(--s6); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .frow { grid-template-columns: 1fr; }
  .frow__media { order: -1; }
  .quotes, .footer__grid, .post-grid, .bento { grid-template-columns: 1fr; }
  .col-6 { grid-column: span 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .display { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .trust { gap: var(--s4) var(--s6); }
  .trust__item { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .rail__track { animation: none; }
}
