/* ==========================================================================
   Fetchroot landing page
   Type + spacing system mirrors wisprflow.ai's tokens (measured from their CSS):
   EB Garamond display / Figtree body, #FFFFEB paper, fixed rem scale with
   breakpoints at 991px and 767px. Accent is indigo instead of Wispr's green.
   ========================================================================== */

/* Fonts served from the site (SIL OFL 1.1, see assets/fonts/OFL.txt). Same families,
   weights and unicode ranges as the Google Fonts CSS they replace. */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/eb-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --paper: #ffffeb;
  --paper-2: #f6f6dc;
  --paper-line: #e4e4d0;
  --ink: #1a1a1a;
  --ink-70: rgba(26, 26, 26, 0.7);
  --ink-50: rgba(26, 26, 26, 0.5);
  --ink-15: rgba(26, 26, 26, 0.15);
  --ink-08: rgba(26, 26, 26, 0.08);
  --indigo: #1c2a5e;
  --indigo-deep: #121c42;
  --haze: #dde2ff;
  --amber: #ffb547;
  --paper-70: rgba(255, 255, 235, 0.7);

  /* Fonts */
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Display scale (serif) */
  --d-hero: 7.5rem;   /* 120 */
  --d-big: 6rem;      /* 96 */
  --d-h2: 4.6875rem;  /* 75 */
  --d-h3: 3rem;       /* 48 */
  --d-h4: 2rem;       /* 32 */
  --d-h5: 1.5rem;     /* 24 */

  /* Text scale (sans) */
  --t-lg: 1.375rem;   /* 22 */
  --t-md: 1.125rem;   /* 18 */
  --t-reg: 1rem;      /* 16 */
  --t-sm: 0.875rem;   /* 14 */
  --t-xs: 0.8125rem;  /* 13 */
  --t-2xs: 0.75rem;   /* 12 */
  --t-ui: 1rem;       /* text inside cards and tables */
  --t-ui-sm: 0.875rem;

  /* Space */
  --wrap: 77.5rem;    /* 1240 */
  --gutter: 2.5rem;
  --sec: 8rem;
  --sec-sm: 6rem;
  --head-gap: 4rem;   /* heading block -> content */

  /* Radius */
  --r-sec: 5rem;
  --r-media: 2rem;
  --r-card: 1rem;
  --r-btn: 0.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991px) {
  :root { --d-hero: 6rem; --d-big: 5rem; --d-h2: 4rem; --sec: 6rem; --sec-sm: 4rem; --r-sec: 3rem; --head-gap: 3rem; }
}
@media (max-width: 767px) {
  :root {
    --d-hero: 3.75rem; --d-big: 3rem; --d-h2: 2.5rem; --d-h3: 2rem; --d-h4: 1.5rem; --d-h5: 1.25rem;
    --t-lg: 1.125rem; --t-md: 1rem; --t-ui: 0.875rem; --t-ui-sm: 0.8125rem;
    --gutter: 1.25rem; --sec: 4rem; --sec-sm: 3rem; --head-gap: 2.5rem;
    --r-sec: 2.5rem; --r-media: 1.5rem;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-reg);
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
.wordmark, .zero-num, .zero-lede, .kill-list li, .footer-top p, .step-n { font-weight: 400; }
::selection { background: var(--indigo); color: var(--paper); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--r-btn); }
.skip:focus { top: 1rem; }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 1.5rem;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--d-h2); line-height: 0.95; letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2-big { font-size: var(--d-big); }
.sec-head { text-align: center; max-width: 52rem; margin: 0 auto var(--head-gap); }
.sec-sub { font-size: var(--t-lg); color: var(--ink-70); max-width: 38rem; margin: 1.5rem auto 0; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.5rem; border-radius: var(--r-btn); border: 2px solid var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: var(--t-reg); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--haze); color: var(--ink); }
.btn-primary:hover { background: #cdd4ff; }
.btn-ghost { background: transparent; border-color: var(--paper-line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--haze); border-color: var(--haze); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 235, 0.35); }
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-sm { padding: 0.875rem 1.25rem; }

/* ---------- Nav (inset bar, Wispr-style) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 1rem var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  max-width: 57rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--paper);
  border: 2px solid var(--paper-line); border-radius: 0.625rem;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.nav.is-scrolled .nav-bar {
  background: rgba(255, 255, 235, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(26, 26, 26, 0.35);
}
.wordmark {
  font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: flex-start; gap: 0.2rem;
}
.live-dot {
  width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: var(--amber); margin-top: 0.2rem;
  animation: pulse 2.2s ease-out infinite;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; font-size: var(--t-reg); font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink-70); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 3rem var(--gutter) 0;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--d-hero); line-height: 0.95; letter-spacing: -0.03em;
}
.hl { display: block; overflow: hidden; padding: 0 0.05em 0.22em; margin-bottom: -0.22em; }
.hl-in {
  display: inline-block;
  transform: translateY(105%); filter: blur(12px); opacity: 0;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity 1s var(--ease);
}
.hl:nth-child(2) .hl-in { transition-delay: 0.12s; }
.is-loaded .hl-in { transform: none; filter: blur(0); opacity: 1; }


.hero-sub { max-width: 34rem; margin: 2.5rem auto 0; font-size: var(--t-lg); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.hero-note { margin-top: 1rem; font-size: var(--t-sm); color: var(--ink-70); }

.hero .hero-eyebrow, .hero .hero-sub, .hero .hero-ctas, .hero .hero-note, .hero .hero-media {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.is-loaded .hero .hero-eyebrow { opacity: 1; transform: none; }
.is-loaded .hero .hero-sub { opacity: 1; transform: none; transition-delay: 0.45s; }
.is-loaded .hero .hero-ctas { opacity: 1; transform: none; transition-delay: 0.6s; }
.is-loaded .hero .hero-note { opacity: 1; transform: none; transition-delay: 0.7s; }
.is-loaded .hero .hero-media { opacity: 1; transform: none; transition-delay: 0.85s; }

/* ---------- Photo cards ---------- */
.photo {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 22% 78%, rgba(255, 170, 80, 0.95), transparent 60%),
    radial-gradient(40% 50% at 30% 40%, rgba(255, 210, 140, 0.55), transparent 65%),
    radial-gradient(55% 60% at 82% 25%, rgba(70, 110, 220, 0.85), transparent 62%),
    radial-gradient(70% 80% at 70% 90%, rgba(150, 60, 30, 0.8), transparent 60%),
    linear-gradient(160deg, #1d2550 0%, #2b2140 45%, #6b3a22 100%);
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.photo.no-img > img { display: none; }
.photo.no-img::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: inherit; filter: blur(30px); animation: drift 18s ease-in-out infinite alternate; }
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.glass {
  position: relative; z-index: 1;
  background: rgba(255, 255, 235, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-card);
  box-shadow: 0 30px 80px -20px rgba(10, 12, 40, 0.45), 0 2px 6px rgba(10, 12, 40, 0.12);
}

/* ---------- Hero demo ---------- */
.hero-media {
  margin-top: 4rem;
  border-radius: var(--r-media);
  min-height: 42rem;
  display: grid; place-items: center; align-content: center; gap: 1.5rem;
  padding: 4rem;
  text-align: left;
}
.hero-media > img { object-position: 30% 50%; }
.demo { width: min(100%, 50rem); padding: 1.5rem; }
.demo-switch { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.demo-switch button {
  padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 235, 0.35); background: rgba(18, 28, 66, 0.35); color: var(--paper);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--t-ui-sm); font-weight: 600; line-height: 1;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.demo-switch button:hover { border-color: var(--paper); }
.demo-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.demo-switch button:focus-visible { outline-color: var(--paper); }
.demo-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--ink-15);
  font-size: var(--t-ui);
}
.demo-file { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-status {
  display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: var(--ink-08); color: var(--ink-70); font-size: var(--t-ui-sm); font-weight: 600;
  transition: background-color 0.4s, color 0.4s;
}
.status-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ink-50); }
.demo-status.is-cleaning { background: var(--haze); color: var(--indigo); }
.demo-status.is-cleaning .status-dot { background: var(--indigo); animation: blink 0.8s steps(2) infinite; }
.demo-status.is-live { background: var(--indigo); color: var(--paper); }
.demo-status.is-live .status-dot { background: var(--amber); animation: pulse 2s ease-out infinite; }

.demo-body { position: relative; margin-top: 0.5rem; min-height: 19rem; }
.tbl { font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.tbl .tr {
  position: relative;
  display: grid; grid-template-columns: 1.7fr 1fr 0.9fr 1fr; gap: 0.75rem;
  padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--ink-08);
}
.tbl .th { color: var(--ink-50); font-size: var(--t-ui-sm); font-weight: 600; }
.tbl .tr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { display: inline-block; width: 1.15em; height: 1.15em; border-radius: 0.3em; vertical-align: -0.2em; margin-right: 0.4em; box-shadow: 0 0 0 1px var(--ink-08); }

/* Messy sheet: flag the exact bad cell, then strike only that cell */
.messy .tr > span { justify-self: start; max-width: 100%; }
.messy .tr > span.bad { padding: 0.1rem 0.4rem; margin: -0.1rem 0 -0.1rem -0.4rem; border-radius: 0.3rem; }
.messy .tr.is-flagged > span.bad { background: var(--indigo); color: var(--paper); animation: flagPop 0.35s var(--ease); }
.messy .tr.is-killed > span.bad { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--paper); color: rgba(255, 255, 235, 0.75); }
.messy .tr.dup.is-flagged > span { color: var(--indigo); }
.messy .tr.dup.is-killed > span { color: var(--ink-50); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--indigo); }
.messy .tag { display: none; }

@media (min-width: 1200px) {
  .messy .tag {
    display: block;
    position: absolute; left: calc(100% + 2.75rem); top: 50%; z-index: 2;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    background: var(--paper); color: var(--indigo);
    font-style: normal; font-size: var(--t-ui-sm); font-weight: 600; white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(10, 12, 40, 0.5);
    opacity: 0; transform: translate(-10px, -50%);
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  }
  .messy .tag::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1rem; height: 1px; background: rgba(255, 255, 235, 0.7); }
  .messy .tr.is-flagged .tag { opacity: 1; transform: translate(0, -50%); }
}

.messy, .clean { transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease); }
.clean { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.demo.is-clean .messy { opacity: 0; filter: blur(8px); transform: scale(0.98); }
.demo.is-clean .clean { opacity: 1; pointer-events: auto; }
.clean .tr { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.demo.is-clean .clean .tr { opacity: 1; transform: none; }
.demo.is-clean .clean .tr:nth-child(2) { transition-delay: 0.1s; }
.demo.is-clean .clean .tr:nth-child(3) { transition-delay: 0.2s; }
.demo.is-clean .clean .tr:nth-child(4) { transition-delay: 0.3s; }
.demo.is-clean .clean .tr:nth-child(5) { transition-delay: 0.4s; }
.demo.is-clean .clean .tr:nth-child(6) { transition-delay: 0.5s; }
.clean .best { color: var(--indigo); font-weight: 700; }
.clean .best::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--indigo); margin-right: 0.4rem; vertical-align: middle; }
.clean .foot { color: var(--ink-50); font-size: var(--t-ui-sm); border-bottom: 0; }
.clean .foot > span:first-child { grid-column: 1 / 4; white-space: nowrap; }
.clean .foot > span:last-child { text-align: right; }

/* ---------- Sources band (Wispr-style logo strip) ---------- */
.sources {
  margin: var(--sec-sm) 1rem 0;
  padding: 3.5rem 0 4rem;
  border-radius: var(--r-sec);
  background: var(--indigo-deep);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}
.sources .eyebrow { color: var(--paper-70); margin-bottom: 2.5rem; padding: 0 var(--gutter); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-row {
  display: inline-flex; align-items: center; width: max-content;
  font-family: var(--sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  animation: slide 70s linear infinite;
}
.marquee:hover .marquee-row { animation-play-state: paused; }
.lg { display: inline-flex; align-items: center; gap: 0.6rem; height: 3rem; padding-right: 3.5rem; white-space: nowrap; }
.lg img { display: block; width: auto; }
.lg-g { height: 1.875rem; }
.lg-w { height: 1.875rem; }
.lg-w.w-zomato { height: 1.5rem; }
.lg-w.w-instamart { height: 2.625rem; }
.lg-w.w-x { height: 1.75rem; }

section[id] { scroll-margin-top: 6.5rem; }

/* ---------- Zero statement ---------- */
.zero {
  max-width: var(--wrap); margin: 0 auto; padding: var(--sec-sm) var(--gutter) 0;
  display: grid; justify-items: center; gap: 1.5rem; text-align: center;
}
.zero-num {
  font-family: var(--serif); font-size: calc(var(--d-hero) * 1.75); line-height: 0.85; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--indigo); white-space: nowrap;
}
.zero-copy { max-width: 42rem; }
.zero-lede { font-family: var(--serif); font-size: var(--d-h3); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.zero-copy p:not(.zero-lede) { font-size: var(--t-lg); color: var(--ink-70); }

/* ---------- Section rhythm ---------- */
.usecases, .embarrass, .how, .work, .faq {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--sec) var(--gutter);
}

.reveal { opacity: 0; filter: blur(10px); transform: translateY(24px); transition: opacity 1s var(--ease), filter 1.1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }

/* ---------- Coverage ---------- */
.coverage { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
.cov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cov-tile {
  display: flex; flex-direction: column;
  padding: 1.75rem; border-radius: var(--r-card);
  background: var(--paper-2); border: 2px solid var(--paper-line);
}
.cov-tile h3 { font-family: var(--serif); font-weight: 400; font-size: var(--d-h4); line-height: 1; letter-spacing: -0.03em; }
.cov-tile p { margin-top: 0.6rem; font-size: var(--t-md); color: var(--ink-70); text-wrap: pretty; }
.cov-tile .cov-src { margin-top: auto; padding-top: 1.25rem; font-size: var(--t-sm); color: var(--ink-50); }
.cov-yours { background: var(--indigo-deep); border-color: var(--indigo-deep); color: var(--paper); }
.cov-yours p { color: var(--paper-70); }
.cov-yours .btn { margin-top: auto; align-self: flex-start; }
.cov-yours p + .btn { margin-top: 1.25rem; }

/* ---------- Pricing ---------- */
.pricing { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--sec); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price-card { padding: 2rem; border-radius: var(--r-card); background: var(--paper-2); border: 2px solid var(--paper-line); }
.price-card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--d-h4); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.price-card p { margin-top: 0.75rem; font-size: var(--t-md); color: var(--ink-70); text-wrap: pretty; }
.price-key { background: var(--haze); border-color: var(--ink); }
.price-key p { color: var(--ink); }
.price-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------- Use cases ---------- */
.uc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 auto 2.5rem; }
.uc-pill {
  position: relative; overflow: hidden; flex: none;
  padding: 0.7rem 1rem; border-radius: var(--r-btn); border: 2px solid var(--paper-line); background: transparent;
  font-size: var(--t-reg); font-weight: 600; line-height: 1; color: var(--ink-70); cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.uc-pill:hover { border-color: var(--ink); color: var(--ink); }
.uc-pill.is-active { background: var(--haze); border-color: var(--ink); color: var(--ink); }
.uc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.uc-progress span { display: block; height: 100%; background: var(--indigo); transform: scaleX(0); transform-origin: left; }
.uc-pill.is-active .uc-progress span { animation: progress var(--uc-dur, 7s) linear forwards; }
.uc-pills.is-paused .uc-progress { display: none; }

.uc-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 4rem; }
.uc-stage { grid-area: 1 / 2; border-radius: var(--r-media); min-height: 38rem; }
.uc-stage > img { object-position: 0% 50%; }
.uc-panel { grid-area: 1 / 1 / 2 / 3; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 4rem; align-items: center; }
.uc-panel[hidden] { display: none; }
.uc-panel.is-active .uc-copy { animation: faqFade 0.5s var(--ease) both; }
.uc-panel.is-active .card { animation: cardIn 0.8s var(--ease) both; }
.uc-title { font-family: var(--serif); font-weight: 400; font-size: var(--d-h3); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.uc-desc { margin-top: 1rem; font-size: var(--t-md); color: var(--ink-70); text-wrap: pretty; }
.uc-get { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.uc-get li { position: relative; padding-left: 1.25rem; }
.uc-get li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--indigo); }
.uc-src { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--paper-line); font-size: var(--t-sm); color: var(--ink-70); }
.uc-src b { display: block; margin-bottom: 0.25rem; font-weight: 600; color: var(--ink); }
.uc-slot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; min-width: 0; padding: 2.5rem; }

.card { width: min(100%, 33rem); padding: 1.5rem; font-size: var(--t-ui); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.card-head strong { font-weight: 600; }
.chip { font-size: var(--t-ui-sm); font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--haze); color: var(--indigo); }
.chip.ok { background: var(--indigo); color: var(--paper); }
.card-foot { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--ink-15); color: var(--ink-50); font-size: var(--t-ui-sm); }

.leads li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ink-08); }
.leads li:last-child { border-bottom: 0; }
.leads b { display: block; font-weight: 600; }
.leads small { display: block; color: var(--ink-50); font-size: var(--t-ui-sm); }
.avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--haze); color: var(--indigo); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.02em; }
.signal { text-align: right; white-space: nowrap; }
.signal b { display: block; font-size: var(--t-ui-sm); font-weight: 600; color: var(--indigo); }
.signal small { display: block; font-size: var(--t-xs); color: var(--ink-50); margin-top: 0.15rem; }

.facts { margin: 0; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ink-08); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-50); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.price-rows { display: grid; gap: 0.85rem; }
.pr { display: grid; grid-template-columns: 7rem 1fr 5rem; align-items: center; gap: 0.75rem; font-variant-numeric: tabular-nums; }
.pr > span:last-child { text-align: right; font-weight: 600; }
.bar { height: 0.6rem; border-radius: 99px; background: var(--ink-15); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--ink-50); border-radius: inherit; transform-origin: left; }
.uc-panel.is-active .bar i { animation: grow 1s var(--ease) both 0.3s; }
.pr.best .bar i { background: var(--indigo); }
.pr.best > span { color: var(--indigo); font-weight: 700; }

.report small { color: var(--ink-50); font-size: var(--t-ui-sm); }
.report h3 { font-family: var(--serif); font-weight: 400; font-size: var(--d-h4); line-height: 0.95; letter-spacing: -0.03em; margin: 0.5rem 0; }
.report p { color: var(--ink-70); }
.mini-chart { display: flex; align-items: flex-end; gap: 0.6rem; height: 10rem; margin-top: 1.25rem; }
.mini-chart span { flex: 1; height: var(--h); background: var(--ink-15); border-radius: 0.4rem 0.4rem 0.15rem 0.15rem; transform-origin: bottom; }
.mini-chart span:first-child { background: var(--indigo); }
.uc-panel.is-active .mini-chart span { animation: rise 0.9s var(--ease) both; }
.uc-panel.is-active .mini-chart span:nth-child(2) { animation-delay: 0.06s; }
.uc-panel.is-active .mini-chart span:nth-child(3) { animation-delay: 0.12s; }
.uc-panel.is-active .mini-chart span:nth-child(4) { animation-delay: 0.18s; }
.uc-panel.is-active .mini-chart span:nth-child(5) { animation-delay: 0.24s; }
.uc-panel.is-active .mini-chart span:nth-child(6) { animation-delay: 0.3s; }

.code { background: rgba(18, 28, 66, 0.9); color: #e9ecff; border-color: rgba(255, 255, 255, 0.12); }
.code .card-head strong { font-size: var(--t-ui-sm); word-break: break-all; }
.code pre { margin: 0; font-size: var(--t-ui-sm); line-height: 1.6; overflow-x: auto; color: #c9d1ff; }
.code code { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; }

/* ---------- Dark bands (online + final) ---------- */
.online, .final {
  margin: 0 1rem;
  border-radius: var(--r-sec);
  padding: var(--sec) var(--gutter);
  text-align: center;
  color: var(--paper);
}
.online .eyebrow, .final .eyebrow { color: var(--paper-70); }
.online {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(80, 110, 230, 0.35), transparent 60%),
    radial-gradient(50% 70% at 10% 110%, rgba(255, 170, 80, 0.22), transparent 60%),
    var(--indigo-deep);
  overflow: hidden;
}
.online-inner { max-width: 52rem; margin: 0 auto; }
.online-sub { font-size: var(--t-lg); color: var(--paper-70); margin: 2rem auto 0; max-width: 38rem; }

.ask {
  position: relative; margin: 3rem auto 0; max-width: 48rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 235, 0.08);
  border: 2px solid rgba(255, 255, 235, 0.2);
  border-radius: 0.75rem; padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.ask:focus-within { border-color: rgba(255, 255, 235, 0.6); background: rgba(255, 255, 235, 0.12); }
.ask-input { flex: 1; min-width: 0; height: 3rem; background: none; border: 0; outline: none; color: var(--paper); font: inherit; font-size: var(--t-md); }
.ask-ghost {
  position: absolute; left: 1.25rem; right: 10.5rem; top: 50%; transform: translateY(-50%);
  text-align: left; color: rgba(255, 255, 235, 0.55); font-size: var(--t-md);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.ask-ghost::after { content: ""; display: inline-block; width: 1.5px; height: 1.15em; background: var(--amber); margin-left: 2px; vertical-align: -0.2em; animation: blink 1s steps(2) infinite; }
.ask.has-value .ask-ghost { display: none; }

.ask-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.ask-examples button {
  background: none; border: 1px solid rgba(255, 255, 235, 0.2); color: var(--paper-70);
  border-radius: 999px; padding: 0.5rem 0.9rem; font-size: var(--t-ui); font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.ask-examples button:hover { border-color: var(--paper); color: var(--paper); background: rgba(255, 255, 235, 0.06); }

/* ---------- Won't embarrass you ---------- */
.kill-list { display: grid; gap: 0.75rem; text-align: center; }
.kill-list li {
  font-family: var(--serif); font-size: var(--d-h3); line-height: 1.05; letter-spacing: -0.03em;
  transition: color 0.6s var(--ease);
}
.kill-list .k { background-image: linear-gradient(var(--indigo), var(--indigo)); background-repeat: no-repeat; background-position: 0 55%; background-size: 0% 0.06em; transition: background-size 0.9s var(--ease); }
.kill-list li.in { color: var(--ink-50); }
.kill-list li.in .k { background-size: 100% 0.06em; }

/* ---------- How it works ---------- */
.how { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.steps > li { display: flex; flex-direction: column; padding: 2rem; border-radius: var(--r-card); background: var(--paper-2); border: 2px solid var(--paper-line); }
.step-n { display: block; font-family: var(--serif); font-size: var(--d-h3); line-height: 0.85; color: var(--indigo); margin-bottom: 3rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: var(--d-h4); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.steps p { color: var(--ink-70); font-size: var(--t-md); }
.step-formats { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1.25rem; }
.step-formats li { padding: 0.3rem 0.6rem; border-radius: 0.375rem; background: var(--haze); color: var(--indigo); font-size: var(--t-ui-sm); font-weight: 600; }

/* ---------- Work ---------- */
.work { padding-top: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.work-media { aspect-ratio: 4 / 5; border-radius: var(--r-card); margin-bottom: 1.5rem; display: flex; align-items: flex-end; padding: 1rem; transition: transform 0.8s var(--ease); }
.work-card:hover .work-media { transform: scale(0.985); }
.work-card:nth-child(2) .work-media { background: radial-gradient(55% 50% at 70% 30%, rgba(255, 190, 110, 0.95), transparent 62%), radial-gradient(60% 60% at 20% 70%, rgba(60, 90, 200, 0.8), transparent 60%), linear-gradient(200deg, #3a2a3a 0%, #1d2550 60%, #2a1c30 100%); }
.work-card:nth-child(3) .work-media { background: radial-gradient(45% 40% at 35% 25%, rgba(120, 150, 255, 0.85), transparent 62%), radial-gradient(55% 55% at 75% 65%, rgba(255, 160, 70, 0.85), transparent 60%), linear-gradient(180deg, #121c42 0%, #2c2246 55%, #5b3020 100%); }
.file { width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; display: grid; gap: 0.2rem; font-size: var(--t-ui-sm); }
.file b { font-weight: 600; font-size: var(--t-ui); }
.file span { color: var(--ink-50); }
.work-card { display: flex; flex-direction: column; }
.work-kind { font-size: var(--t-sm); color: var(--ink-50); }
.work-card h3 { font-family: var(--serif); font-weight: 400; font-size: var(--d-h4); line-height: 1; letter-spacing: -0.03em; margin: 0.5rem 0 0.625rem; text-wrap: balance; }
.work-card > p:not(.work-kind) { color: var(--ink-70); font-size: var(--t-md); max-width: 24rem; text-wrap: pretty; }
.work-card .link { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }
.link { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-15); text-underline-offset: 0.3em; transition: text-decoration-color 0.2s; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- FAQ (Wispr-style questions / answer chat) ---------- */
.faq { padding-top: 0; }
.faq-box {
  max-width: 60rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 1rem; border-radius: var(--r-media);
  background: var(--paper-line);
}
.faq-label { font-family: var(--serif); font-weight: 400; font-size: var(--d-h5); line-height: 0.95; letter-spacing: -0.01em; }
.faq-qpanel {
  background: var(--indigo-deep); color: var(--paper);
  border-radius: var(--r-card); padding: 1.75rem 0.75rem 0.75rem;
}
.faq-qpanel .faq-label { padding: 0 1rem; margin-bottom: 1.25rem; }
.faq-qlist { display: grid; gap: 0.25rem; }
.faq-q {
  text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 0.85rem 1rem; border-radius: 0.5rem;
  color: var(--paper-70); font-size: var(--t-ui); font-weight: 500; line-height: 1.3;
  transition: background-color 0.25s, color 0.25s;
}
.faq-q:hover { color: var(--paper); background: rgba(255, 255, 235, 0.05); }
.faq-q.is-active { color: var(--paper); background: rgba(255, 255, 235, 0.1); }
.faq-q:focus-visible { outline-color: var(--paper); }

.faq-apanel { padding: 1.75rem 1rem 1rem 0; display: flex; flex-direction: column; }
.faq-apanel .faq-label { margin-bottom: 1.25rem; }
.faq-echo { align-self: flex-end; max-width: 92%; text-align: right; font-size: var(--t-ui); color: var(--ink-70); margin-bottom: 0.75rem; }
.faq-bubble {
  position: relative; background: #f7f7ee; border-radius: var(--r-card);
  padding: 1rem; font-size: var(--t-ui); line-height: 1.4;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04);
}
.faq-bubble p { text-wrap: pretty; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.faq-typing { display: none; gap: 0.3rem; padding: 0.3rem 0; }
.faq-typing i { display: block; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--ink-50); animation: typing 1s ease-in-out infinite; }
.faq-typing i:nth-child(2) { animation-delay: 0.15s; }
.faq-typing i:nth-child(3) { animation-delay: 0.3s; }
.faq-bubble.is-typing { align-self: flex-start; padding: 0.85rem 1rem; }
.faq-bubble.is-typing .faq-typing { display: inline-flex; }
.faq-bubble.is-typing p { display: none; }
.faq-bubble.is-in p { animation: bubbleIn 0.45s var(--ease); }
.faq-avatar {
  margin-top: 0.75rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--indigo-deep); display: grid; place-items: center;
}
.faq-avatar .live-dot { margin: 0; width: 0.45rem; height: 0.45rem; }

/* ---------- Final CTA ---------- */
.final { min-height: 44rem; display: grid; place-items: center; }
.final::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(10, 12, 30, 0.45), rgba(10, 12, 30, 0.15)); pointer-events: none; }
.final-inner { position: relative; z-index: 1; }
.final-title { font-size: var(--d-hero); }
.final p { margin: 1.5rem auto 0; max-width: 34rem; color: rgba(255, 255, 235, 0.85); font-size: var(--t-lg); }
.final .hero-ctas { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--sec-sm) var(--gutter) 2.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--paper-line); }
.footer .wordmark { font-size: var(--d-big); }
.footer .live-dot { width: 0.8rem; height: 0.8rem; margin-top: 0.7rem; }
.footer-top p { font-family: var(--serif); font-style: italic; font-size: var(--d-h5); color: var(--ink-70); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: var(--t-sm); color: var(--ink-50); }
.footer-bottom > p:first-of-type { max-width: 28rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
/* legal links (Terms · Privacy · …), written by blog/build.py on every page */
.footer-bottom .legal-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; color: var(--ink-50); }

/* ---------- Keyframes ---------- */
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.65); } 100% { box-shadow: 0 0 0 0.6rem rgba(255, 181, 71, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flagPop { from { transform: scale(0.85); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes faqFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1.02); } to { transform: translate3d(2%, 1.5%, 0) scale(1.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .uc-pills { flex-wrap: nowrap; justify-content: flex-start; max-width: none; margin: 0 calc(var(--gutter) * -1) 2rem; padding: 0 var(--gutter) 0.25rem; overflow-x: auto; scrollbar-width: none; }
  .uc-pills::-webkit-scrollbar { display: none; }
  .uc-body, .uc-panel { grid-template-columns: minmax(0, 1fr); }
  .uc-stage { display: none; }
  .uc-panel { grid-area: auto; row-gap: 2rem; }
  .uc-slot { justify-items: center; padding: 3rem 1.5rem; border-radius: var(--r-media); background: var(--indigo-deep) url("assets/usecase.jpg") 0% 50% / cover no-repeat; }
  .steps, .work-grid, .price-grid { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-media { aspect-ratio: 16 / 10; }
  .hero-media { padding: 3rem 1.5rem; min-height: 0; }
}

@media (max-width: 767px) {
  .nav { padding: 0.75rem var(--gutter); }
  .nav-bar { padding: 0.375rem 0.375rem 0.375rem 1rem; }
  .wordmark { font-size: 1.5rem; }
  .btn-sm { padding: 0.7rem 1rem; font-size: var(--t-sm); }
  .hero { padding-top: 2.5rem; }
  .hero-sub { margin-top: 2rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-media { margin-top: 3rem; padding: 3rem 0.75rem; }
  .hero-media > img { object-position: 12% 50%; }
  .final > img { object-position: 22% 50%; }
  .online, .final { margin: 0 0.5rem; }
  .sources { margin: var(--sec-sm) 0.5rem 0; padding: 2.5rem 0 3rem; }
  .marquee-row { font-size: 1.125rem; }
  .lg { padding-right: 2.25rem; gap: 0.5rem; }
  .lg-g, .lg-w { height: 1.375rem; }
  .lg-w.w-zomato { height: 1.05rem; }
  .lg-w.w-instamart { height: 1.9rem; }
  .final { min-height: 0; }
  .final-title { font-size: 2.75rem; }
  .demo { padding: 0.875rem; }
  .demo-file { font-size: var(--t-2xs); }
  .demo-status { font-size: 0.6875rem; }
  .tbl { font-size: var(--t-2xs); }
  .tbl .th { font-size: 0.6875rem; }
  .tbl .tr { grid-template-columns: 1.15fr 0.85fr 0.9fr 1fr; gap: 0.4rem; padding: 0.6rem 0.1rem; }
  .clean .foot > span:last-child { display: none; }
  .clean .foot > span:first-child { grid-column: 1 / -1; }
  .demo-body { min-height: 14rem; }
  .uc-slot { padding: 1.5rem 0.75rem; }
  .ask { flex-direction: column; padding: 0.75rem; }
  .ask-input { flex: none; width: 100%; padding: 0 0.5rem; }
  .ask-ghost { left: 1.25rem; right: 1.25rem; top: 2.25rem; }
  .ask .btn { width: 100%; }
  .leads li { gap: 0.6rem; }
  .avatar { width: 2rem; height: 2rem; }
  .signal b { font-size: 0.6875rem; }
  .signal small { font-size: 0.6875rem; }
  .steps > li { padding: 1.5rem; }
  .cov-grid { grid-template-columns: 1fr; }
  .cov-tile, .price-card { padding: 1.5rem; }
  .step-n { margin-bottom: 2rem; }
  .faq-box { grid-template-columns: 1fr; gap: 0.5rem; padding: 0.5rem; }
  .faq-apanel { padding: 1.25rem 0.75rem 0.75rem; }
  .kill-list { gap: 1rem; }
  .kill-list li { font-size: var(--d-h4); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee-row { animation: none !important; }
  .marquee-row { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1rem; }
  .reveal { opacity: 1; filter: none; transform: none; }
}
