/* ==========================================================================
   Checkgrow — concept rebuild (unofficial prototype)
   Layer 1: primitives · Layer 2: semantic · Layer 3: components · Layer 4: sections
   ========================================================================== */

/* ---------- 1. Primitives (sampled from checkgrow.com) ---------- */
:root {
  /* brand ramp — checkgrow --color-brand family */
  --indigo-50: #f1f2ff;
  --indigo-100: #e3e6ff;
  --indigo-200: #c9cfff;
  --indigo-300: #9ba6ff;   /* --color-accent */
  --indigo-500: #6373ff;   /* --color-brand */
  --indigo-600: #5262e8;   /* --color-brand-strong */
  --indigo-700: #4959d8;   /* --color-brand-hover */
  --lavender-300: #cfc3d9; /* --color-lavender */

  /* neutrals — cream (#FEF9F2 logo fill) to ink (#2A2722 logo fill) */
  --cream-50: #fefcf9;
  --cream-100: #fef9f2;
  --cream-200: #f6f1e8;
  --stone-200: #ebe7df;
  --stone-300: #dcd7ce;
  --stone-400: #b7b5bb;    /* --color-muted */
  --stone-500: #8a857c;
  --stone-600: #6b665e;
  --ink-800: #363536;      /* --color-line */
  --ink-850: #262526;      /* --color-raised */
  --ink-900: #2a2722;
  --ink-950: #181818;      /* --color-surface */
  --white: #ffffff;

  --green-500: #75d9a5;    /* --color-success */
  --green-700: #1c8a57;
  --coral-500: #ff8a7a;
  --amber-500: #f5b544;

  /* type */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.6rem, 3.2vw, 2.25rem);
  --text-3xl: clamp(2rem, 5vw, 3.25rem);
  --text-4xl: clamp(2.3rem, 7.4vw, 4.75rem);

  /* spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 10vw, 8rem);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(42, 39, 34, .06);
  --shadow-sm: 0 1px 2px rgba(42, 39, 34, .05), 0 2px 8px rgba(42, 39, 34, .05);
  --shadow-md: 0 1px 2px rgba(42, 39, 34, .04), 0 8px 24px -6px rgba(42, 39, 34, .12);
  --shadow-lg: 0 2px 4px rgba(42, 39, 34, .04), 0 30px 60px -20px rgba(42, 39, 34, .22);
  --shadow-brand: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -6px rgba(99, 115, 255, .6);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
}

/* ---------- 2. Semantic ---------- */
:root {
  --color-bg: var(--cream-50);
  --color-bg-alt: var(--cream-100);
  --color-surface: var(--white);
  --color-surface-sunk: var(--cream-200);
  --color-line: var(--stone-200);
  --color-line-strong: var(--stone-300);
  --color-text: var(--ink-900);
  --color-text-muted: var(--stone-600);
  --color-text-faint: var(--stone-500);
  --color-brand: var(--indigo-500);
  --color-brand-strong: var(--indigo-600);
  --color-brand-hover: var(--indigo-700);
  --color-brand-soft: var(--indigo-50);
  --color-brand-tint: var(--indigo-100);
  --color-dark: var(--ink-950);
  --color-dark-raised: var(--ink-850);
  --color-dark-line: var(--ink-800);
  --color-on-dark: var(--cream-100);
  --color-on-dark-muted: var(--stone-400);
  --color-positive: var(--green-700);
  --color-negative: #c9453a;

  --radius-button: var(--radius-sm);
  --radius-card: var(--radius-lg);
  --radius-window: var(--radius-md);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: break-word; }
p { margin: 0; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--color-brand-tint); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--color-text-muted); }

/* ---------- 4. Components ---------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: 0 1rem;
  border: 1px solid transparent; border-radius: var(--radius-button);
  font-size: var(--text-sm); font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--color-brand); color: var(--white); box-shadow: var(--shadow-brand); }
.btn-solid:hover { background: var(--color-brand-hover); }
.btn-dark { background: var(--color-text); color: var(--color-bg); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--color-surface); border-color: var(--color-line-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--stone-400); }
.btn-light { background: var(--color-on-dark); color: var(--color-dark); }
.btn-light:hover { background: var(--white); }
.btn-lg { min-height: 48px; padding: 0 1.35rem; font-size: var(--text-base); border-radius: 10px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Badges / chips / eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-text-muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--color-brand); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line); background: var(--color-surface);
  font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap;
}
.chip-brand { background: var(--color-brand-soft); border-color: var(--color-brand-tint); color: var(--color-brand-strong); }
.chip-pos { background: #eaf8f0; border-color: #cdeedb; color: var(--color-positive); }
.chip-neg { background: #fdeeec; border-color: #f8d6d1; color: var(--color-negative); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Section head */
.section { position: relative; }
.section > .container { padding-block: var(--space-9); }
.section-head { max-width: 720px; display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: var(--text-3xl); }
.section-head p { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 600px; }

/* Card */
.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-xs);
}

/* App window (product UI frame) */
.window {
  background: var(--color-surface); border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-window); box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem;
  border-bottom: 1px solid var(--color-line); background: var(--color-bg);
  font-size: var(--text-xs); color: var(--color-text-faint);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--stone-300); }
.window-url { flex: 1; min-width: 0; text-align: center; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatar */
.avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--white);
  background: var(--color-brand);
}
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--color-surface); margin-left: -6px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* Check list */
.checklist { display: grid; gap: .6rem; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .6rem; font-size: var(--text-sm); }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px;
  background: var(--color-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235262e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--color-brand-tint);
}

/* Email capture */
.capture {
  display: flex; gap: .4rem; padding: .35rem; width: 100%; max-width: 460px;
  background: var(--color-surface); border: 1px solid var(--color-line-strong);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.capture input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 .7rem;
  font: inherit; font-size: var(--text-sm); color: var(--color-text); outline: none;
}
.capture input::placeholder { color: var(--color-text-faint); }
.capture:focus-within { border-color: var(--color-brand); box-shadow: 0 0 0 4px var(--color-brand-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 5. Header ---------- */
.announce {
  display: flex; justify-content: center; padding: .55rem var(--space-5);
  background: var(--color-dark); color: var(--color-on-dark); font-size: var(--text-xs);
}
.announce a { display: inline-flex; align-items: center; gap: .5rem; text-align: center; }
.announce b { font-weight: 500; color: var(--indigo-300); }
.announce .arrow { opacity: .6; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header { border-bottom-color: var(--color-line); }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(42,39,34,.18); }
.nav { display: flex; align-items: center; gap: var(--space-6); height: 64px; }
.nav-logo img { height: 24px; width: auto; }
.nav > nav { margin-right: auto; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  padding: .45rem .7rem; border-radius: var(--radius-xs);
  font-size: var(--text-sm); color: var(--color-text-muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface-sunk); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-signin { font-size: var(--text-sm); padding: .45rem .7rem; color: var(--color-text-muted); }
.nav-signin:hover { color: var(--color-text); }
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
  border: 0; background: transparent; place-items: center;
}
.burger span { position: relative; display: block; width: 20px; height: 1.5px; background: var(--color-text); transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--color-text);
  transition: transform .3s var(--ease-out);
}
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: rotate(45deg); }
.menu-open .burger span::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-bottom, 64px) 0 0; z-index: 49; display: flex; flex-direction: column;
  padding: var(--space-5); background: var(--color-bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul a {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
  border-bottom: 1px solid var(--color-line); font-size: 1.35rem; letter-spacing: -.02em;
}
.mobile-nav .mobile-cta { margin-top: auto; display: grid; gap: .6rem; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .container { padding-top: clamp(3.5rem, 8vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99, 115, 255, .14), transparent 70%),
    linear-gradient(var(--color-line) 1px, transparent 1px) 50% 0 / 64px 64px,
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px) 50% 0 / 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 80%);
  opacity: .9;
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: var(--space-5); }
.hero-pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .8rem .3rem .35rem;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill);
  background: var(--color-surface); font-size: var(--text-sm); box-shadow: var(--shadow-xs);
}
.hero-pill .chip { padding: .1rem .5rem; }
.hero h1 { font-size: var(--text-4xl); max-width: 14ch; letter-spacing: -.045em; }
.hero h1 .rotator {
  display: inline-grid; vertical-align: bottom; color: var(--color-brand);
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
}
.rotator span { grid-area: 1 / 1; transition: opacity .5s, transform .6s var(--ease-out), filter .5s; }
.rotator span:not(.on) { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
.hero-sub { max-width: 600px; font-size: var(--text-lg); color: var(--color-text-muted); }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 16px; height: 16px; background: #00b67a; display: grid; place-items: center; }
.stars i::after { content: "★"; font-style: normal; color: #fff; font-size: 11px; line-height: 1; }
.stars i.half { background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%); }
.hero-proof .sep { width: 1px; height: 14px; background: var(--color-line-strong); }

/* Hero product */
.hero-product { position: relative; margin-top: var(--space-8); }
.hero-product .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero-product::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}
.app { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; min-height: 520px; font-size: 13px; }
.app-side { border-right: 1px solid var(--color-line); padding: .9rem .6rem; background: var(--color-bg); display: grid; align-content: start; gap: .9rem; }
.app-ws { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; font-weight: 500; }
.app-ws img { width: 20px; height: 20px; border-radius: 5px; background: var(--color-dark); padding: 3px; }
.app-group h6 { margin: 0 0 .25rem; padding: 0 .45rem; font-size: 11px; font-weight: 500; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .06em; }
.app-group a { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 6px; color: var(--color-text-muted); }
.app-group a.on { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-xs); border: 1px solid var(--color-line); }
.app-group a i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .55; flex: none; }
.app-main { padding: 1.1rem 1.25rem; display: grid; align-content: start; gap: 1rem; min-width: 0; }
.app-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.app-title h3 { font-size: 1.05rem; letter-spacing: -.02em; }
.app-crumb { font-size: 12px; color: var(--color-text-faint); margin-bottom: .15rem; }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.funnel-col { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 10px; padding: .6rem; display: grid; gap: .5rem; align-content: start; }
.funnel-col header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--color-text-faint); font-family: var(--font-mono); text-transform: uppercase; }
.funnel-col header b { color: var(--color-text); font-weight: 500; }
.task { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 8px; padding: .55rem .6rem; display: grid; gap: .4rem; box-shadow: var(--shadow-xs); }
.task p { font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.task footer { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.task .chip { font-size: 10.5px; padding: .1rem .4rem; }
.budget { display: grid; gap: .5rem; }
.budget-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; font-size: 12px; color: var(--color-text-muted); }
.budget-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.budget-bar span { display: block; height: 100%; }
.budget-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: 11.5px; color: var(--color-text-muted); }
.budget-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.budget-legend i { width: 8px; height: 8px; border-radius: 2px; }

.app-assist { border-left: 1px solid var(--color-line); display: flex; flex-direction: column; background: var(--color-surface); min-width: 0; }
.assist-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--color-line); font-weight: 500; }
.assist-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.msg { max-width: 92%; padding: .6rem .75rem; border-radius: 12px; line-height: 1.45; font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); }
.msg.show { opacity: 1; transform: none; }
.msg-user { align-self: flex-end; background: var(--color-text); color: var(--color-bg); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--color-bg); border: 1px solid var(--color-line); border-bottom-left-radius: 4px; display: grid; gap: .5rem; }
.msg-ai .ctx { display: flex; flex-wrap: wrap; gap: .3rem; }
.msg-ai .chip { font-size: 10.5px; padding: .08rem .45rem; }
.msg-ai ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.typing { display: inline-flex; gap: 3px; padding: .2rem 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--stone-400); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.assist-input { margin: 0 .8rem .8rem; padding: .55rem .7rem; border: 1px solid var(--color-line-strong); border-radius: 10px; color: var(--color-text-faint); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.assist-input kbd { font-family: var(--font-mono); font-size: 11px; padding: .05rem .35rem; border: 1px solid var(--color-line); border-radius: 4px; }

/* ---------- 7. Logos ---------- */
.logos > .container { padding-block: var(--space-7); }
.logos p { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 4.5rem); width: max-content; animation: scroll 40s linear infinite; }
.marquee-track img { height: 30px; width: 120px; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity .3s; }
.marquee-track img:hover { opacity: .9; }
@keyframes scroll { to { transform: translateX(-50%); } }
.models { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.25rem; margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.models span { display: inline-flex; align-items: center; gap: .4rem; color: var(--color-text); }
.models img { width: 16px; height: 16px; }

/* ---------- 8. Problem ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); align-items: center; }
.problem-copy { display: grid; gap: var(--space-5); }
.problem-copy h2 { font-size: var(--text-3xl); }
.problem-copy p { font-size: var(--text-lg); color: var(--color-text-muted); }

/* ---------- 9. Platform bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: var(--space-4); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); overflow: hidden; }
.tile h3 { font-size: var(--text-xl); letter-spacing: -.025em; }
.tile p { color: var(--color-text-muted); font-size: var(--text-sm); }
.tile .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.tile-core { grid-row: span 2; background: var(--color-dark); color: var(--color-on-dark); border-color: var(--color-dark); }
.tile-core p { color: var(--color-on-dark-muted); }
.tile-core .eyebrow { color: var(--indigo-300); }
.tile-core .eyebrow::before { background: var(--indigo-300); }
.tile-core .chip { background: var(--color-dark-raised); border-color: var(--color-dark-line); color: var(--color-on-dark); }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 360px; margin: var(--space-4) auto; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit-core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(99,115,255,.35), rgba(99,115,255,0) 70%); }
.orbit-core img { width: 62%; }
.orbit-label { position: absolute; transform: translate(-50%, -50%); padding: .25rem .55rem; border-radius: 99px; font-size: 11px; background: var(--color-dark-raised); border: 1px solid var(--color-dark-line); white-space: nowrap; }
.spin { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile-mini { margin-top: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-bg); padding: .75rem; display: grid; gap: .5rem; font-size: 12.5px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.mini-row span { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.mini-bar { height: 6px; border-radius: 9px; background: var(--color-line); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--color-brand); border-radius: inherit; }
.tile-wide { grid-column: span 2; }

/* ---------- 10. Outcomes ---------- */
.outcomes { background: var(--color-dark); color: var(--color-on-dark); }
.outcomes .section-head p { color: var(--color-on-dark-muted); }
.outcomes .eyebrow { color: var(--indigo-300); }
.outcomes .eyebrow::before { background: var(--indigo-300); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-dark-line); border-bottom: 1px solid var(--color-dark-line); }
.stat { padding: var(--space-6) var(--space-5); display: grid; gap: .5rem; align-content: start; }
.stat + .stat { border-left: 1px solid var(--color-dark-line); }
.stat .num { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.stat .num em { color: var(--indigo-300); }
.stat h3 { font-size: var(--text-base); letter-spacing: -.01em; margin-top: .5rem; }
.stat p { font-size: var(--text-sm); color: var(--color-on-dark-muted); }
.footnote { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--stone-500); max-width: 640px; }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: var(--space-7); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-on-dark-muted); }
.loop b { font-weight: 400; color: var(--color-on-dark); padding: .35rem .75rem; border: 1px solid var(--color-dark-line); border-radius: 99px; background: var(--color-dark-raised); }
.loop b.core { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

/* ---------- 11. Workflow tabs ---------- */
.flow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-7); align-items: start; }
.flow-tabs { display: grid; gap: .25rem; }
.flow-tab {
  position: relative; text-align: left; width: 100%; padding: 1rem 1.1rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius-md);
  background: transparent; display: grid; gap: .3rem; transition: background .25s;
}
.flow-tab:hover { background: var(--color-bg-alt); }
.flow-tab .kicker { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .06em; }
.flow-tab h3 { font-size: var(--text-lg); letter-spacing: -.02em; color: var(--color-text-muted); transition: color .25s; }
.flow-tab p { display: none; font-size: var(--text-sm); color: var(--color-text-muted); }
.flow-tab::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -.125rem; height: 1px; background: var(--color-line); }
.flow-tab:last-child::after, .flow-tab.on::after, .flow-tab:has(+ .flow-tab.on)::after { display: none; }
.flow-tab .progress { display: none; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; height: 2px; background: var(--color-line); border-radius: 2px; overflow: hidden; }
.flow-tab .progress i { display: block; height: 100%; width: 0; background: var(--color-brand); border-radius: inherit; }
.flow-tab.on { padding-bottom: 1.9rem; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); }
.flow-tab.on h3 { color: var(--color-text); }
.flow-tab.on p { display: block; }
.flow-tab.on .progress { display: block; }
.flow-tab.on .progress i { animation: fill var(--dur, 7s) linear forwards; }
.flow.paused .flow-tab.on .progress i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.flow-stage { position: sticky; top: 96px; }
.flow-panel { display: none; }
.flow-panel.on { display: block; animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.panel-body { padding: 1.1rem; display: grid; gap: .9rem; font-size: 13px; background: var(--color-bg); min-height: 380px; }
.panel-points { margin-top: var(--space-5); }

.kc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.kc-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 10px; padding: .75rem; display: grid; gap: .35rem; }
.kc-card h5 { margin: 0; font-size: 11px; font-weight: 500; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-mono); }
.kc-card p { font-size: 12.5px; line-height: 1.45; }
.suggest { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 10px; background: var(--color-brand-soft); border: 1px solid var(--color-brand-tint); font-size: 12.5px; }
.suggest .btn { min-height: 30px; padding: 0 .7rem; font-size: 12px; }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.kpi { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 10px; padding: .7rem .8rem; display: grid; gap: .2rem; }
.kpi small { font-size: 11px; color: var(--color-text-faint); }
.kpi b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.chart { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 10px; padding: .8rem; }
.chart svg { width: 100%; height: 150px; }

.audit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ring { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 10px; padding: .7rem .4rem; display: grid; justify-items: center; gap: .35rem; font-size: 11.5px; color: var(--color-text-muted); text-align: center; }
.ring svg { width: 52px; height: 52px; }
.findings { display: grid; gap: .45rem; }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 10px; padding: .6rem .75rem; font-size: 12.5px; }
.prio { font-family: var(--font-mono); font-size: 10.5px; padding: .1rem .4rem; border-radius: 4px; }
.prio.p1 { background: #fdeeec; color: var(--color-negative); }
.prio.p2 { background: #fdf4e3; color: #9a6610; }

/* ---------- 12. Integrations ---------- */
.integrations { background: var(--color-bg-alt); }
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; }
.int { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .85rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--color-surface); transition: background .25s; }
.int:hover { background: var(--cream-50); }
.int .logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--color-line); display: grid; place-items: center; background: var(--color-surface); }
.int .logo img { width: 20px; height: 20px; }
.int b { display: block; font-weight: 500; font-size: var(--text-sm); }
.int small { color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.4; display: block; }
.int-note { margin-top: var(--space-5); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- 13. Testimonials ---------- */
.quote-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-4); }
.quote { padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: var(--space-6); }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.2; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-serif); font-size: 4rem; line-height: .6; color: var(--color-brand); margin-bottom: .6rem; }
.person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font-weight: 500; }
.person small { color: var(--color-text-muted); }
.quote-photo { position: relative; overflow: hidden; border-radius: var(--radius-card); min-height: 320px; }
.quote-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-photo figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .8rem 1rem; border-radius: var(--radius-md); background: rgba(24, 24, 24, .72); backdrop-filter: blur(10px); color: var(--color-on-dark); font-size: var(--text-sm); }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.voice { padding: var(--space-5); display: flex; align-items: center; gap: .8rem; }
.voice img, .voice .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; font-size: 14px; }
.voice b { display: block; font-weight: 500; font-size: var(--text-sm); }
.voice small { color: var(--color-text-muted); font-size: var(--text-xs); }

/* ---------- 14. Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.aud .card { padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.aud .who { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-faint); }
.aud h3 { font-size: var(--text-xl); letter-spacing: -.025em; }
.aud p { color: var(--color-text-muted); font-size: var(--text-sm); }
.aud .result { display: flex; align-items: center; gap: .5rem; padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-size: var(--text-sm); font-weight: 500; color: var(--color-brand-strong); }

/* ---------- 15. Pricing ---------- */
.pricing { background: var(--color-bg-alt); }
.toggle { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-xs); }
.toggle button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 7px; font-size: var(--text-sm); color: var(--color-text-muted); display: inline-flex; gap: .4rem; align-items: center; min-height: 36px; }
.toggle button.on { background: var(--color-text); color: var(--color-bg); }
.toggle .save { font-size: 11px; color: var(--color-positive); }
.toggle button.on .save { color: var(--green-500); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); position: relative; }
.plan-top { display: grid; gap: .4rem; }
.plan-top small { font-size: var(--text-xs); color: var(--color-text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.plan-top h3 { font-size: var(--text-xl); letter-spacing: -.02em; }
.plan-top p { font-size: var(--text-sm); color: var(--color-text-muted); }
.price { display: flex; align-items: baseline; gap: .25rem; }
.price b { font-size: 3rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.price span { color: var(--color-text-muted); font-size: var(--text-sm); }
.plan-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: -.75rem; }
.plan .checklist { padding-top: var(--space-5); border-top: 1px solid var(--color-line); }
.plan-pop { background: linear-gradient(180deg, var(--color-brand-soft), var(--color-surface) 45%); box-shadow: inset 0 2px 0 var(--color-brand); }
.plan-pop .flag { position: absolute; top: var(--space-6); right: var(--space-6); }
.plan-pop .flag .chip { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.included { margin-top: var(--space-5); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-5); align-items: center; }
.included h4 { font-size: var(--text-base); letter-spacing: -.01em; }
.included p { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: .3rem; }
.included ul { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- 16. Enterprise band ---------- */
.ent { margin-top: var(--space-5); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-xl); background: var(--color-dark); color: var(--color-on-dark); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--space-6); align-items: center; position: relative; overflow: hidden; }
.ent::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(99,115,255,.35), transparent 65%); pointer-events: none; }
.ent h3 { font-size: var(--text-2xl); }
.ent p { color: var(--color-on-dark-muted); margin-top: .75rem; max-width: 560px; }
.ent .eyebrow { color: var(--indigo-300); margin-bottom: .75rem; }
.ent .eyebrow::before { background: var(--indigo-300); }
.ent .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .6rem; }
.ent .btn-ghost { background: transparent; border-color: var(--color-dark-line); color: var(--color-on-dark); box-shadow: none; }

/* ---------- 17. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-7); }
.faq-grid .section-head { align-content: start; }
.faq-list { border-top: 1px solid var(--color-line); }
.faq-list details { border-bottom: 1px solid var(--color-line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-text-faint); transition: transform .3s var(--ease-out); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; color: var(--color-text-muted); max-width: 60ch; }

/* ---------- 18. Final CTA ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final > .container { padding-block: var(--space-9); }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(99,115,255,.16), transparent 70%); }
.cta-final .inner { display: grid; justify-items: center; gap: var(--space-5); }
.cta-final h2 { font-size: var(--text-4xl); max-width: 14ch; }
.cta-final p { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 520px; }
.cta-final .fine { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); font-size: var(--text-sm); }
.site-footer > .container { padding-block: var(--space-8) var(--space-6); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--color-dark-line); }
.foot-brand img { height: 24px; width: auto; margin-bottom: var(--space-4); }
.foot-brand p { max-width: 300px; }
.foot-col h4 { font-size: var(--text-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--stone-500); font-weight: 400; margin-bottom: var(--space-4); }
.foot-col ul { display: grid; gap: .6rem; }
.foot-col a:hover { color: var(--color-on-dark); }
.backers { display: flex; align-items: center; gap: 1rem; margin-top: var(--space-5); }
.backers img { height: 26px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .7; }
.foot-legal { padding-top: var(--space-5); display: grid; gap: var(--space-4); font-size: var(--text-xs); color: var(--stone-500); }
.foot-legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.foot-legal .row div { display: flex; gap: 1rem; flex-wrap: wrap; }
.disclaimer { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border: 1px dashed var(--color-dark-line); border-radius: 8px; color: var(--stone-400); }


/* ---------- 19b. Frame system (Attio-style blueprint lines) ---------- */
main, .site-footer, .site-header { overflow-x: clip; }
:root { --rail: var(--color-line); --mark: var(--stone-400); }
.outcomes, .site-footer { --rail: var(--color-dark-line); --mark: var(--stone-600); }

/* full-width dividers + vertical rails on every band */
main > section, main > .band { border-top: 1px solid var(--rail); }
main > section > .container, main > .band > .container,
.site-header > .container, .site-footer > .container { position: relative; border-inline: 1px solid var(--rail); }
.site-footer { border-top: 1px solid var(--rail); }

/* "+" crosshair where divider meets rail */
main > section > .container::before, main > section > .container::after,
main > .band > .container::before, main > .band > .container::after,
.site-footer > .container::before, .site-footer > .container::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) center / 1px 100% no-repeat,
    linear-gradient(var(--mark), var(--mark)) center / 100% 1px no-repeat;
}
main > section > .container::before, main > .band > .container::before, .site-footer > .container::before { left: -6px; }
main > section > .container::after, main > .band > .container::after, .site-footer > .container::after { right: -6px; }

/* hatched band between sections */
.band > .container { height: 44px; padding: 0; }
.hatch {
  background-image: repeating-linear-gradient(-45deg, var(--rail) 0 1px, transparent 1px 9px);
}

/* full-bleed rule inside a framed container (touches both rails) */
.bleed { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.marquee.bleed { border-block: 1px solid var(--rail); padding-block: var(--space-5); }

/* numbered section labels */
main { counter-reset: sec; }
.section-head .eyebrow, .problem-copy .eyebrow { counter-increment: sec; gap: .6rem; justify-self: start; }
.section-head .eyebrow::before, .problem-copy .eyebrow::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none;
  color: var(--color-brand); padding-right: .6rem; border-right: 1px solid var(--color-line-strong);
}
.outcomes .section-head .eyebrow::before { background: none; color: var(--indigo-300); border-color: var(--color-dark-line); }

/* section heads get a ruled top like a spec sheet */
.section-head .eyebrow, .problem-copy .eyebrow { padding: .35rem .6rem; border: 1px solid var(--rail); border-radius: 6px; background: var(--color-surface); }
.outcomes .section-head .eyebrow { background: var(--color-dark-raised); }
.section-head.center .eyebrow { justify-self: center; }

/* shared-border cell grids */
.cells { gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; }
.cells > .card { border: 0; border-radius: 0; box-shadow: none; }
.cells > .tile-core { border-radius: 0; }

/* column dividers */
.flow { column-gap: 0; }
.flow-tabs { padding-right: var(--space-7); border-right: 1px solid var(--rail); }
.flow-stage { padding-left: var(--space-7); }
.faq-grid { column-gap: 0; }
.faq-grid > .section-head { padding-right: var(--space-7); }
.faq-list { border-left: 1px solid var(--rail); border-top: 0; }
.faq-list details { padding-left: var(--space-7); }
.faq-list details:first-child { border-top: 1px solid var(--rail); }
.problem-grid { column-gap: 0; }
.problem-copy { padding-right: var(--space-8); }

/* corner ticks around product windows */
.ticked { position: relative; }
.ticked > .tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--color-brand); pointer-events: none; z-index: 3; }
.ticked > .tick:nth-of-type(1) { top: -8px; left: -8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ticked > .tick:nth-of-type(2) { top: -8px; right: -8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.ticked > .tick:nth-of-type(3) { bottom: -8px; left: -8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ticked > .tick:nth-of-type(4) { bottom: -8px; right: -8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* hero: measurement guide above product */
.guide { display: flex; align-items: center; gap: .75rem; margin-top: var(--space-8); margin-bottom: var(--space-5); font-family: var(--font-mono); font-size: 11px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .08em; }
.guide::before, .guide::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--color-line-strong) 0 4px, transparent 4px 8px); }
.hero-product { margin-top: 0; }

@media (max-width: 860px) {
  .flow-tabs, .faq-grid > .section-head, .problem-copy { padding-right: 0; border-right: 0; }
  .flow-stage, .hub { padding-left: 0; border-left: 0; }
  .flow { row-gap: var(--space-6); }
  .faq-grid { row-gap: var(--space-6); }
  .problem-grid { row-gap: var(--space-7); }
  .faq-list { border-left: 0; }
  .faq-list details { padding-left: 0; }
}
@media (max-width: 640px) {
  main > section > .container, main > .band > .container,
  .site-header > .container, .site-footer > .container { border-inline: 0; }
  main > section > .container::before, main > section > .container::after,
  main > .band > .container::before, main > .band > .container::after,
  .site-footer > .container::before, .site-footer > .container::after { display: none; }
  .band > .container { height: 28px; }
  .ticked > .tick { display: none; }
}


/* ---------- 19c. Scroll motion (driven by --p, 0→1, set in main.js) ---------- */
[data-scroll] { --p: 0; }
img.avatar { object-fit: cover; padding: 0; background: var(--color-surface-sunk); }

/* hero: product window tilts flat as you scroll */
.hero { perspective: 1600px; }
.hero-product .window {
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.9 + var(--p) * .1)) translateY(calc((1 - var(--p)) * 30px));
  will-change: transform;
}

/* pinned sections: tall track, sticky stage */
.pin > .container { padding-block: 0; height: 100%; }
.pin-sticky { position: sticky; top: 64px; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); padding-block: var(--space-7); display: grid; align-content: center; }
#problem.pin { height: 220vh; }
.problem-grid.pin-sticky { align-items: center; }


/* outcomes: dark panel expands to full bleed */
.outcomes {
  clip-path: inset(0 calc((1 - var(--p)) * 3.5vw) round calc((1 - var(--p)) * 36px));
  will-change: clip-path;
}
.lit { font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.18; max-width: 22ch; margin-bottom: var(--space-8); font-weight: 500; }
.lit .w { color: var(--ink-800); transition: color .35s; }
.lit .w.on { color: var(--color-on-dark); }
.lit .w.on.hl { color: var(--indigo-300); }

/* workflows: scroll-through steps with a sticky stage (desktop) */
.flow.scrolly .flow-tabs { gap: 0; padding-left: var(--space-6); position: relative; }
.flow.scrolly .flow-tabs::before, .flow.scrolly .flow-tabs::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; }
.flow.scrolly .flow-tabs::before { bottom: 0; background: var(--rail); }
.flow.scrolly .flow-tabs::after { height: calc(var(--p) * 100%); background: var(--color-brand); width: 2px; left: -.5px; }
.flow.scrolly .flow-tab {
  min-height: 56vh; align-content: center; padding: 1rem 0; background: none; border-color: transparent; box-shadow: none;
  opacity: .28; transition: opacity .5s;
}
.flow.scrolly .flow-tab.on { opacity: 1; padding-bottom: 1rem; }
.flow.scrolly .flow-tab h3 { font-size: var(--text-2xl); }
.flow.scrolly .flow-tab p { display: block; font-size: var(--text-base); max-width: 40ch; margin-top: .4rem; }
.flow.scrolly .flow-tab::after, .flow.scrolly .flow-tab .progress { display: none; }
.flow.scrolly .flow-tab::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-6) - 4px); top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-bg); border: 1.5px solid var(--color-line-strong); transition: background .3s, border-color .3s, transform .3s;
}
.flow.scrolly .flow-tab.on::before { background: var(--color-brand); border-color: var(--color-brand); transform: scale(1.3); box-shadow: 0 0 0 5px var(--color-brand-soft); }
.flow.scrolly .flow-stage { top: max(96px, calc(50vh - 290px)); }

/* platform tiles: real animated product mockups */
.tile-media { margin: auto calc(-1 * var(--space-6)) calc(-1 * var(--space-6)); height: 270px; overflow: hidden; border-top: 1px solid var(--color-line); background: var(--color-bg); position: relative; }
.tile-media > img { position: absolute; left: 50%; top: 50%; width: 104%; max-width: none; transform: translate(-50%, -48%); }
.tile:hover .tile-media > img { transform: translate(-50%, -48%) scale(1.05); transition: transform .8s var(--ease-out); }
.tile-media > img { transition: transform .8s var(--ease-out); }

/* gallery: vertical scroll → horizontal travel */
.gallery { background: var(--color-bg-alt); }
.gallery-sticky { gap: var(--space-6); align-content: center; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); }
.gallery-count { font-size: var(--text-sm); color: var(--color-text-faint); }
.gallery-count b { color: var(--color-text); font-weight: 500; }
.gallery-viewport { overflow: hidden; border-block: 1px solid var(--rail); padding-block: var(--space-6) calc(var(--space-6) + 28px); }
.gallery-track { display: flex; gap: var(--space-4); width: max-content; transform: translateX(calc(var(--shift, 0) * -1px)); will-change: transform; }
.g-card { position: relative; margin: 0; width: clamp(220px, 22vw, 290px); aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-sunk); flex: none; }
.g-card:nth-child(even) { transform: translateY(28px); }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .6s; filter: saturate(.9); }
.g-card:hover img { transform: scale(1.05); filter: none; }
.g-card figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(24,24,24,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--color-on-dark); font-size: var(--text-xs); display: grid; }
.g-card figcaption b { font-size: var(--text-sm); font-weight: 500; }
.g-card figcaption span { color: var(--stone-400); }
.gallery-bar { height: 2px; background: var(--rail); border-radius: 2px; overflow: hidden; }
.gallery-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--color-brand); }

/* audience illustrations */
.aud-ico { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--color-brand-soft); border: 1px solid var(--color-brand-tint); }

/* CTA: floating mockups drift in */
.cta-final .inner { position: relative; }
.float { position: absolute; top: 50%; width: 270px; pointer-events: none; opacity: calc(.25 + var(--p) * .75); }
.float-l { left: 0; transform: translate(calc((1 - var(--p)) * -80px), -50%) rotate(calc(-8deg + var(--p) * 4deg)); }
.float-r { right: 0; transform: translate(calc((1 - var(--p)) * 80px), -50%) rotate(calc(8deg - var(--p) * 4deg)); }
.cta-final h2, .cta-final p, .cta-final .capture, .cta-final > .container > img:not(.float) { position: relative; z-index: 1; }

@media (max-width: 1260px) { .float { display: none; } }
@media (max-width: 860px) {
  #problem.pin { height: auto; }
  .pin-sticky { position: static; min-height: 0; padding-block: var(--space-9); }
  .gallery.pin { height: auto !important; }
  .gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-viewport::-webkit-scrollbar { display: none; }
  .gallery-track { transform: none; }
  .g-card { scroll-snap-align: start; width: 240px; }
  .g-card:nth-child(even) { transform: none; }
  .gallery-bar, .gallery-count { display: none; }
  .outcomes { clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product .window, .float { transform: none !important; }
  .outcomes { clip-path: none; }
}

/* ---------- 19d. Polish ---------- */
main > section:first-child { border-top: 0; }
.tile-core .orbit { margin-block: auto; }
.tile-core .tags { margin-top: 0; }
.tile-media-list { display: grid; align-content: center; padding: var(--space-5) var(--space-6); }
.tile-media-list .tile-mini { margin: 0; background: var(--color-surface); box-shadow: var(--shadow-sm); gap: .7rem; }
.tile-media-list .mini-row + .mini-row { padding-top: .7rem; border-top: 1px solid var(--color-line); }
.tile-media-list .ghost { opacity: .45; }
.flow.scrolly .flow-tab:first-child { align-content: start; min-height: 46vh; }
.flow.scrolly .flow-tab:last-child { align-content: end; min-height: 46vh; }
.flow.scrolly .flow-tab:last-child::before { top: auto; bottom: 30%; }
.flow.scrolly .flow-tab:first-child::before { top: 30%; }

/* ---------- 19e. Problem hub diagram ---------- */
.hub { margin: 0; padding-left: var(--space-8); border-left: 1px dashed var(--color-line-strong); display: grid; gap: var(--space-4); }
.hub-canvas {
  position: relative; aspect-ratio: 1 / .92; border: 1px solid var(--color-line); border-radius: var(--radius-card);
  background: radial-gradient(circle, var(--color-line-strong) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--color-surface);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.hub-canvas::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent 40%, var(--color-surface) 100%); pointer-events: none; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hub-lines line { stroke: var(--stone-300); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; transition: stroke .5s, opacity .5s; }
.hub-lines line.broken { stroke: #e8a39a; stroke-dasharray: 2 7; opacity: .8; }
#problem.solved .hub-lines line { stroke: var(--color-brand); stroke-dasharray: 3 9; stroke-width: 2; opacity: 1; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }

.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; }
.core-doc, .core-brain { grid-area: 1 / 1; display: grid; justify-items: center; gap: .2rem; text-align: center; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.core-doc { padding: .9rem 1.1rem; background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: 12px; box-shadow: var(--shadow-md); }
.doc-ico { display: grid; gap: 3px; width: 26px; padding: 6px 5px; margin-bottom: .3rem; border-radius: 5px; background: var(--color-bg); border: 1px solid var(--color-line); }
.doc-ico i { height: 2px; border-radius: 2px; background: var(--stone-400); }
.doc-ico i:last-child { width: 60%; }
.core-doc b, .core-brain b { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.core-doc small { font-family: var(--font-mono); font-size: 11px; color: var(--color-negative); }
.core-brain { opacity: 0; transform: scale(.7); }
.core-brain img { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--color-dark); box-shadow: 0 0 0 8px var(--color-brand-soft), 0 0 0 16px rgba(99,115,255,.06), 0 10px 30px -6px rgba(99,115,255,.6); margin-bottom: .5rem; }
.core-brain small { font-family: var(--font-mono); font-size: 11px; color: var(--color-positive); }
.core-brain b, .core-brain small { background: var(--color-surface); padding: 0 .4rem; border-radius: 4px; }
#problem.solved .core-doc { opacity: 0; transform: scale(.8); }
#problem.solved .core-brain { opacity: 1; transform: none; }

.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; width: max-content;
  display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem .5rem .5rem;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.node-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--color-bg); border: 1px solid var(--color-line); }
.node-ico img, .node-ico svg { width: 16px; height: 16px; }
.node-txt { display: grid; line-height: 1.25; }
.node-txt b { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.node-txt small { font-size: 11px; color: var(--color-text-faint); white-space: nowrap; transition: color .3s; }
.node.broken { border-color: #f3cfc9; box-shadow: 0 0 0 4px #fdf1ef; animation: shake .45s var(--ease-out); }
.node.broken small { color: var(--color-negative); }
.node.broken small::before { content: "✕ "; }
#problem.solved .node { border-color: var(--color-brand-tint); box-shadow: 0 0 0 4px var(--color-brand-soft); animation: none; }
#problem.solved .node small { color: var(--color-positive); }
#problem.solved .node small::before { content: "✓ "; }
@keyframes shake { 20% { transform: translate(-50%, -50%) translateX(-3px); } 50% { transform: translate(-50%, -50%) translateX(3px); } 80% { transform: translate(-50%, -50%) translateX(-1px); } }

.hub-foot { display: flex; align-items: center; gap: var(--space-4); padding: .85rem 1rem; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-sm); transition: background .5s, color .5s, border-color .5s; }
.hub-foot strong { font-weight: 500; white-space: nowrap; }
.hub-meter { flex: 1; height: 4px; border-radius: 4px; background: var(--color-line); overflow: hidden; }
.hub-meter i { display: block; height: 100%; width: calc(var(--lost, 0) * 20%); background: var(--color-negative); border-radius: inherit; transition: width .5s var(--ease-out), background .5s; }
.lost { white-space: nowrap; color: var(--color-text-muted); }
.lost b { color: var(--color-negative); font-weight: 500; }
#problem.solved .hub-foot { background: var(--color-dark); color: var(--color-on-dark); border-color: var(--color-dark); }
#problem.solved .hub-meter { background: var(--color-dark-line); }
#problem.solved .hub-meter i { width: 100%; background: var(--green-500); }
#problem.solved .lost, #problem.solved .lost b { color: var(--green-500); }

.phase { display: inline-flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--space-2); }
.phase span { font-family: var(--font-mono); font-size: 11.5px; padding: .35rem .65rem; border-radius: 99px; border: 1px solid var(--color-line); color: var(--color-text-faint); transition: all .4s; }
.phase span.on { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

@media (max-width: 860px) {
  .hub { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .hub-canvas { aspect-ratio: 1 / 1.05; }
  .node { padding: .35rem .5rem .35rem .35rem; gap: .4rem; }
  .node-ico { width: 24px; height: 24px; border-radius: 6px; }
  .node-ico img, .node-ico svg { width: 13px; height: 13px; }
  .node-txt b { font-size: 11px; }
  .node-txt small { font-size: 9.5px; }
  .node { max-width: 47%; }
  .node:nth-of-type(3), .node:nth-of-type(4) { left: auto; right: 2%; transform: translateY(-50%); }
  .node:nth-of-type(5), .node:nth-of-type(6) { left: 2%; transform: translateY(-50%); }
  .node.broken { animation: none; }
  .core-doc b, .core-brain b { font-size: 12px; }
  .core-doc { padding: .5rem .7rem; }
  .doc-ico { display: none; }
  .core-brain img { width: 52px; height: 52px; padding: 13px; margin-bottom: .3rem; }
  .hub-foot { flex-wrap: wrap; }
  .hub-meter { order: 3; flex-basis: 100%; }
}

/* ---------- 19f. Video ---------- */
.play-ico {
  position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-brand); color: #fff; box-shadow: var(--shadow-brand);
}
.play-ico svg { width: 16px; height: 16px; margin-left: 2px; }
.play-ico::before, .play-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--color-brand); animation: ripple 2.4s var(--ease-out) infinite; }
.play-ico::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.play-ico-lg { width: 68px; height: 68px; }
.play-ico-lg svg { width: 22px; height: 22px; }

.play-cta {
  position: absolute; left: 50%; top: 40%; z-index: 4; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .8rem; padding: .5rem 1.2rem .5rem .5rem;
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-pill);
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -12px rgba(42,39,34,.35);
  text-align: left; transition: transform .35s var(--ease-out), box-shadow .35s;
}
.play-cta:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 26px 60px -12px rgba(99,115,255,.45); }
.play-txt { display: grid; line-height: 1.3; }
.play-txt b { font-weight: 500; font-size: var(--text-sm); white-space: nowrap; }
.play-txt small { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); }

.video-hit { position: absolute; inset: 0; border: 0; background: rgba(24,24,24,.12); display: grid; place-items: center; transition: background .3s; }
.video-hit:hover { background: rgba(24,24,24,.28); }
.video-hit .play-ico { transition: transform .35s var(--ease-out); }
.video-hit:hover .play-ico { transform: scale(1.08); }
.quote-photo figcaption { pointer-events: none; z-index: 1; }

.vmodal { width: min(1120px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.vmodal::backdrop { background: rgba(24, 24, 24, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vmodal[open] { animation: vIn .45s var(--ease-out); }
@keyframes vIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.vmodal-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); }
.vmodal-frame video { width: 100%; height: 100%; display: block; }
.vmodal-close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 14px; }
.vmodal-close:hover { background: rgba(255,255,255,.2); }

@media (max-width: 640px) {
  .play-cta { top: 150px; padding: .4rem 1rem .4rem .4rem; }
  .play-ico { width: 38px; height: 38px; }
  .play-ico-lg { width: 58px; height: 58px; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 190px minmax(0, 1fr) 270px; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: grid; }
  .app { grid-template-columns: minmax(0, 1fr) 280px; }
  .app-side { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-core { grid-row: auto; grid-column: span 2; }
  .tile-wide { grid-column: span 2; }
  .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--color-dark-line); }
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .problem-grid, .flow, .faq-grid, .quote-wrap { grid-template-columns: minmax(0, 1fr); }
  .flow-stage { position: static; }
  .plans, .aud { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .voices { grid-template-columns: minmax(0, 1fr); }
  .included { grid-template-columns: minmax(0, 1fr); }
  .ent { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-assist { border-left: 0; border-top: 1px solid var(--color-line); }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-photo { min-height: 280px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-core, .tile-wide { grid-column: auto; }
  .funnel, .kanban { grid-template-columns: minmax(0, 1fr); }
  .funnel-col:nth-child(n+2) .task:nth-of-type(n+2) { display: none; }
  .audit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi:last-child { grid-column: span 2; }
  .kc-grid { grid-template-columns: minmax(0, 1fr); }
  .int-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--color-dark-line); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture { flex-direction: column; }
  .capture input { min-height: 44px; }
  .hero-proof .sep { display: none; }
  .window-bar > .window-dots:last-child { display: none; }
  .hero-product::after { height: 8%; }
  .suggest { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .btn { white-space: normal; text-align: center; }
  .price b { font-size: 2.5rem; }
}
