/* ============================================================================
   Recommend Me AI — design system  (Premium light · Harvey/Legora direction)
   Ivory + warm ink, near-monochrome with restrained bronze. Fraunces + Hanken.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* color — warm, light, restrained */
  --paper: #F5F2EC;       /* ivory page */
  --paper-2: #EFEBE2;     /* slightly deeper band */
  --card: #FBFAF7;        /* lifted surface */
  --ink: #17150F;         /* warm near-black (dark sections + text) */
  --ink-2: #2A2720;
  --text: #1C1A14;
  --text-soft: #6A655B;   /* muted warm gray */
  --text-faint: #908A7E;
  --line: #E2DDD2;        /* hairline on light */
  --line-dark: rgba(255,255,255,0.12);
  --accent: #9A6A3C;      /* restrained bronze — used sparingly */
  --accent-soft: #B98A57;
  --on-ink: #F3F0E9;
  --on-ink-soft: #A8A296;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 104px; --s8: 144px;
  --maxw: 1200px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- type ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.06; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }
p { max-width: 60ch; }

.eyebrow {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
}
.serif-em { font-style: italic; }
a { color: inherit; text-decoration: none; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
section { padding: var(--s8) 0; }
/* tighten transitions where two big-padded sections stack */
#pricing { padding-bottom: var(--s6); }          /* pricing flows into its proof */
#pricing + section { padding-top: var(--s6); }   /* Results sits closer to pricing */
.cta-band { padding-bottom: var(--s6); }          /* trim dark void above the footer */
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head .eyebrow { display: block; margin-bottom: var(--s3); }
.section-head p { color: var(--text-soft); margin-top: var(--s3); font-size: 1.2rem; }

.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: #fff; }
.on-ink p { color: var(--on-ink-soft); }
.on-ink .eyebrow { color: var(--accent-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s, color .25s, box-shadow .25s;
  min-height: 50px;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23,21,15,0.22); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-ink .btn-primary { background: var(--paper); color: var(--ink); }
.on-ink .btn-outline { color: var(--on-ink); border-color: var(--line-dark); }
.on-ink .btn-outline:hover { border-color: var(--paper); color:#fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* liquid glass — frosted translucent pill, for use over the hero film */
.btn-glass {
  position: relative; isolation: isolate; color: var(--ink);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(23,21,15,0.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow:
    0 6px 22px rgba(23,21,15,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -2px 4px rgba(23,21,15,0.06);
  overflow: hidden;
}
/* specular sheen across the top half */
.btn-glass::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 42%, rgba(255,255,255,0) 60%);
}
.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.32);
  border-color: rgba(23,21,15,0.24);
  box-shadow:
    0 12px 30px rgba(23,21,15,0.18),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -2px 4px rgba(23,21,15,0.06);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .btn-glass { background: rgba(251,250,247,0.82); }
}

/* ---- header (translucent, overlays the hero film, always visible) ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(245,242,236,0.82); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.nav-cta { padding: 11px 22px; min-height: 0; }
/* the nav link color rule was bleeding into the CTA button; keep its text crisp */
.nav a.nav-cta { color: #fff; }
.nav a.nav-cta:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---- hero (cinematic video background) ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 84vh, 840px);
  display: flex; align-items: flex-end;
  padding: var(--s8) 0 var(--s7);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
/* warm ivory veil — strongest on the left so the headline stays crisp,
   thinning to the right where the film breathes; soft fade into the page below */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(245,242,236,0) 18%),
    linear-gradient(180deg, transparent 66%, var(--paper) 100%),
    linear-gradient(100deg,
      rgba(245,242,236,0.95) 0%,
      rgba(245,242,236,0.86) 36%,
      rgba(245,242,236,0.52) 66%,
      rgba(245,242,236,0.30) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 38rem; margin-left: clamp(0px, 5vw, 92px); }
.hero h1 { max-width: 15ch; margin-bottom: var(--s4); }
.hero .amber-word { color: var(--accent); font-style: italic; }
.hero .lead { font-size: 1.18rem; color: var(--text-soft); max-width: 40ch; margin-bottom: var(--s5); line-height: 1.55; }
.hero .cta-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero-tag { display:inline-block; margin-bottom: var(--s4); }

/* small screens: copy stacks, so veil more evenly for legibility */
@media (max-width: 880px) {
  .hero { min-height: clamp(480px, 70vh, 640px); }
  .hero-copy { margin-left: 0; }
  .hero__scrim {
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(245,242,236,0) 16%),
      linear-gradient(180deg, transparent 74%, var(--paper) 100%),
      linear-gradient(175deg, rgba(245,242,236,0.90) 0%, rgba(245,242,236,0.72) 100%);
  }
}

/* respect reduced-motion: no autoplay, hold the poster still */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero { background: #EFEBE2 url('../img/hero-poster.jpg') center/cover no-repeat; }
}

/* ---- "watch AI decide" card (light, refined) ---- */
.ai-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: var(--s5);
  box-shadow: 0 30px 70px rgba(23,21,15,0.10); font-family: var(--font-sans); font-size: 0.95rem;
}
.ai-card .prompt { display:flex; gap:10px; color: var(--ink); margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); font-weight: 500; }
.ai-card .prompt .q { color: var(--accent); }
.ai-card .prompt .cat { color: var(--accent); font-style: italic; }
.ai-card .thinking { color: var(--text-faint); font-size: 0.82rem; margin-bottom: var(--s3); letter-spacing: 0.02em; }
.ai-card .ans { color: var(--text); padding: 9px 0; display:flex; gap:12px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); animation: ansIn .5s ease forwards; }
.ai-card .ans .rank { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ai-card .ans:nth-of-type(2) { animation-delay: .5s; }
.ai-card .ans:nth-of-type(3) { animation-delay: 1s; }
.ai-card .ans:nth-of-type(4) { animation-delay: 1.5s; }
.ai-card .ans-you {
  margin-top: var(--s3); padding: 14px 16px; border-radius: 11px; background: rgba(154,106,60,0.08);
  border: 1px solid rgba(154,106,60,0.30); color: var(--ink); font-weight: 500;
  opacity: 0; animation: ansIn .6s ease forwards 2.2s;
}
.ai-card .ans-you b { color: var(--accent); }
.ai-card .caption { margin-top: var(--s3); font-size: 0.82rem; color: var(--text-faint); font-style: italic; font-family: var(--font-display); }
@keyframes ansIn { to { opacity: 1; transform: none; } }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.stat .num { font-family: var(--font-display); font-weight: 400; font-size: 3.4rem; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat .lbl { font-size: 0.9rem; color: var(--text-soft); margin-top: var(--s2); }
.on-ink .stat .num { color: #fff; } .on-ink .stat .lbl { color: var(--on-ink-soft); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.step { padding: var(--s5) var(--s4); border-top: 2px solid var(--ink); background: transparent; }
.step .n { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.step h3 { margin: var(--s3) 0 var(--s2); }
.step p { color: var(--text-soft); font-size: 1.02rem; }

/* ---- pillars (dark moment) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.pillar { padding: var(--s5) var(--s4); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.pillar h3 { color: #fff; margin-bottom: var(--s2); }
.pillar p { color: var(--on-ink-soft); font-size: 1.01rem; }
.pillar .tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-soft); font-weight: 600; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: var(--s5) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.price-card.featured { border-color: var(--ink); box-shadow: 0 20px 50px rgba(23,21,15,0.10); position: relative; }
.price-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -10px; left: var(--s4); background: var(--ink); color: var(--paper); font-size: 0.62rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.12em; }
.price-card .tier { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-soft); font-weight: 600; }
.price-card .amt { font-family: var(--font-display); font-weight: 400; font-size: 2.9rem; color: var(--ink); margin: var(--s2) 0; letter-spacing: -0.02em; }
.price-card .amt small { font-size: 1rem; color: var(--text-soft); font-family: var(--font-sans); }
.price-card ul { list-style: none; margin: var(--s3) 0; flex: 1; }
.price-card li { font-size: 0.98rem; color: var(--text-soft); padding: 8px 0 8px 24px; position: relative; }
.price-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.price-audit { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: var(--s5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.price-audit .tier { color: var(--accent-soft); }
.price-audit .amt { font-family: var(--font-display); font-size: 2.3rem; color: #fff; }
.price-audit p { color: var(--on-ink-soft); }

/* ---- showcase ---- */
.showcase { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: var(--s7); align-items: center; }
.mockup { border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px rgba(23,21,15,0.16); border: 1px solid var(--line); background: #fff; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mockup:hover { transform: translateY(-6px); }
.mockup .bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--ink); }
.mockup .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.22); display: block; }
.mockup img { display: block; width: 100%; height: auto; }
.showcase-stack { position: relative; }
.showcase-stack .mockup:nth-child(2) { position: absolute; width: 56%; right: -4%; bottom: -12%; z-index: 3; }

/* ---- final CTA ---- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto var(--s4); }
.cta-band p { margin: 0 auto var(--s5); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: var(--s7) 0 var(--s4); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s6); }
.footer-grid .brand { display: block; margin-bottom: var(--s2); color: #fff; }
.footer-grid h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-soft); margin-bottom: var(--s3); font-weight: 600; }
.footer-grid a { display: block; color: var(--on-ink-soft); font-size: 0.95rem; padding: 6px 0; }
.footer-grid a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: var(--on-ink-soft); }

/* ---- forms ---- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: var(--s6); max-width: 560px; box-shadow: 0 20px 50px rgba(23,21,15,0.06); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

/* ---- reveal motion ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } .ai-card .ans, .ai-card .ans-you { opacity:1; transform:none; animation:none; } }

/* ---- utility ---- */
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); }
.band { background: var(--paper-2); }

@media (max-width: 900px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; width: 100%; }
  .menu-toggle { display: block; }
  .hero-grid, .showcase, .stats, .steps, .pillars, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid, .showcase { gap: var(--s5); }
  .showcase-stack .mockup:nth-child(2) { position: relative; width: 80%; right: 0; bottom: 0; margin: -8% auto 0; }
  section { padding: var(--s7) 0; }
}

/* ---- founder / humanity ---- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #ECE7DC, #E0D9CB); border: 1px solid var(--line); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--text-faint); font-size: 0.8rem; text-align: center; padding: var(--s3); }
.founder blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; margin-bottom: var(--s4); }
.founder .sig { display: flex; align-items: center; gap: 14px; }
.founder .sig .who { font-weight: 600; color: var(--ink); }
.founder .sig .role { color: var(--text-soft); font-size: 0.95rem; }

/* ---- testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.quote { padding: var(--s5) var(--s4); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote p { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; color: var(--ink); flex: 1; }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: var(--s4); }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(160deg,#ECE7DC,#DDD4C4); flex-shrink: 0; overflow: hidden; }
.quote .av img { width:100%; height:100%; object-fit:cover; }
.quote .nm { font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.quote .rl { font-family: var(--font-sans); font-size: 0.82rem; color: var(--text-soft); }
.placeholder-note { font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-top: var(--s2); }

@media (max-width: 900px) {
  .founder, .quotes { grid-template-columns: 1fr; }
  .founder { gap: var(--s5); }
}

/* ============================================================================
   SCROLL NARRATIVE — pinnable scenes, realistic AI chat card, real doc frames
   ========================================================================== */
html, body { overflow-x: clip; }

.scene { position: relative; padding: 11vh 0; }
.scene .wrap { display: grid; grid-template-columns: 1fr 1.02fr; gap: var(--s6); align-items: center; max-width: 1180px; position: relative; z-index: 1; }
.scene.flip .scene__visual { order: -1; }
.scene__num { position: absolute; top: 6%; right: 3%; font-family: var(--font-display); font-weight: 400;
  font-size: 18vw; line-height: .8; color: rgba(23,21,15,.035); z-index: 0; pointer-events: none; user-select: none; }
.scene.flip .scene__num { right: auto; left: 3%; }
.scene__copy .eyebrow { display: block; margin-bottom: var(--s2); }
.scene__copy h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.04; }
.scene__copy p { margin-top: var(--s3); color: var(--text-soft); font-size: 1.12rem; line-height: 1.55; max-width: 44ch; }
.scene__copy .em { color: var(--accent); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--s4); }
.chips span { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; color: var(--text-soft);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.chips span b { color: var(--accent); }

.scene__visual { position: relative; }
.scene__visual::before { content: ''; position: absolute; left: 50%; top: 50%; width: 78%; height: 78%;
  transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(154,106,60,.16), transparent 72%);
  filter: blur(36px); z-index: 0; }
.scene__visual > * { position: relative; z-index: 1; }

/* reveal variants (work alongside .reveal) */
.rv { opacity: 0; transform: translateY(48px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s } .rv.d2 { transition-delay: .16s } .rv.d3 { transition-delay: .24s }
.from-r { transform: translateY(40px) translateX(60px); } .from-r.in { transform: none; }
.from-l { transform: translateY(40px) translateX(-60px); } .from-l.in { transform: none; }
.par { will-change: transform; }

/* realistic AI chat card */
.chat { background: #FCFAF6; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 40px 90px rgba(23,21,15,.14); overflow: hidden; font-family: var(--font-sans); }
.chat__bar { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,rgba(255,255,255,0)); }
.ai-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  font-size: 15px; background: radial-gradient(120% 120% at 30% 25%, #C68A4E, #8a5a2e 80%); box-shadow: 0 4px 12px rgba(154,106,60,.4); }
.ai-av.sm { width: 26px; height: 26px; font-size: 13px; }
.ai-name { font-weight: 600; color: var(--ink); font-size: .92rem; }
.chat__models { margin-left: auto; display: flex; gap: 6px; }
.chat__models i { font-style: normal; font-size: .66rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--paper-2); color: var(--text-faint); }
.chat__models i.on { background: var(--ink); color: var(--paper); }
.chat__body { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--ink); color: var(--paper); border-radius: 15px 15px 5px 15px; padding: 11px 16px; max-width: 82%; font-size: .97rem; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--line); border-radius: 5px 15px 15px 15px; padding: 14px 16px; flex: 1; }
.ai-pre { color: var(--text-soft); margin-bottom: 10px; font-size: .95rem; }
.ans { display: flex; gap: 13px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--text); }
.ans:last-of-type { border-bottom: 0; }
.ans .rank { color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 16px; }
.ans.win { border: 1px solid rgba(154,106,60,.5); border-radius: 11px; background: rgba(154,106,60,.08); color: var(--ink);
  font-weight: 600; padding: 13px; margin: 2px 0; box-shadow: 0 10px 26px rgba(154,106,60,.16); }
.ans.win .rank { color: var(--accent); font-weight: 700; }
.absent { margin-top: 12px; border: 1px dashed rgba(154,106,60,.45); border-radius: 11px; background: rgba(154,106,60,.05);
  padding: 12px 14px; color: var(--ink); font-weight: 500; }
.absent b { color: var(--accent); }
.chat__input { margin: 8px 16px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 12px 11px 18px; color: var(--text-faint); background: #fff; font-size: .92rem; }
.chat__input .send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; background: radial-gradient(120% 120% at 30% 25%, #C68A4E, #8a5a2e 80%); }

/* optimize "system" card variant */
.sys .chat__body { gap: 0; padding: 6px 18px 10px; }
.sig { display: flex; align-items: center; gap: 13px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--text); }
.sig:last-child { border-bottom: 0; }
.sig .ck { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 25%, #C68A4E, #8a5a2e 80%);
  color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.sys-cap { padding: 10px 18px 16px; font-size: .84rem; color: var(--text-faint); font-style: italic; font-family: var(--font-display); }

/* real document frame */
.docstack { position: relative; }
.docpage { position: relative; z-index: 2; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 110px rgba(23,21,15,.20);
  border: 1px solid var(--line); background: #fff; display: block; }
.docpage img { display: block; width: 100%; height: auto; }
.docstack .back { position: absolute; inset: 0; z-index: 1; transform: translate(30px, 30px) rotate(2.4deg); opacity: .55; filter: saturate(.92); }
/* when a second page juts out below, reserve room so the caption clears it */
.docstack:has(.back) { padding-bottom: 42px; }
.doccap { text-align: center; margin-top: var(--s3); font-family: var(--font-sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

/* big stat band */
.statband { text-align: center; padding: 17vh 0; }
.statband h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.0; max-width: 18ch; margin: 0 auto; }
.statband .big { color: var(--accent); }
.statband p { margin: var(--s4) auto 0; color: #cdc7ba; max-width: 46ch; }

@media (max-width: 880px) {
  .scene .wrap { grid-template-columns: 1fr; gap: var(--s4); }
  .scene.flip .scene__visual { order: 0; }
  .from-r, .from-l { transform: translateY(40px); }
  .scene__num { font-size: 30vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .from-r, .from-l { opacity: 1; transform: none; transition: none; }
  .par { transform: none !important; }
}

/* ============ SUBPAGES (services / about / insights / contact) ============ */

/* page intro — sits clear of the fixed header */
.page-intro { padding: calc(76px + var(--s7)) 0 var(--s6); }
.page-intro .eyebrow { display: block; margin-bottom: var(--s3); }
.page-intro h1 { max-width: 16ch; margin-bottom: var(--s4); }
.page-intro .lead { font-size: 1.2rem; color: var(--text-soft); max-width: 52ch; line-height: 1.55; }
.page-intro.center { text-align: center; }
.page-intro.center .eyebrow, .page-intro.center h1, .page-intro.center .lead { margin-left: auto; margin-right: auto; }

/* generic prose + simple feature lists */
.prose { max-width: 60ch; }
.prose p { color: var(--text-soft); margin-bottom: var(--s3); line-height: 1.7; }
.prose p strong { color: var(--ink); font-weight: 600; }

.feature-list { list-style: none; display: grid; gap: var(--s2); margin-top: var(--s3); }
.feature-list li { position: relative; padding-left: 28px; color: var(--text-soft); line-height: 1.5; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 2px; background: var(--accent); }

/* two-up explainer cards (e.g. "what we automate / what we don't") */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.split .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.split .card h3 { font-size: 1.22rem; margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.split .card p, .split .card li { color: var(--text-soft); line-height: 1.55; }
.split .feature-list { gap: var(--s3); margin-top: 0; }
.split .feature-list li { padding-left: 26px; }
.split .feature-list li::before { top: 11px; }

/* dark-band variant: cohesive panels instead of bright white boxes on ink */
.on-ink .split .card { background: var(--ink-2); border-color: var(--line-dark); }
.on-ink .split .card h3 { color: #fff; border-bottom-color: var(--line-dark); }
.on-ink .split .card li { color: var(--on-ink-soft); }
.on-ink .split .feature-list li::before { background: var(--accent-soft); }

/* honest callout — the "we can't promise the answer" line */
.honest { border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s4) var(--s5); margin-top: var(--s5); max-width: 60ch; }
.honest p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }

/* ---- contact: stacked options so the free call and the paid audit never read as a
       side-by-side comparison (no "does the call cost me too?" confusion) ---- */
.contact-stack { max-width: 720px; margin-inline: auto; display: grid; gap: var(--s6); }
.contact-option h2 { font-size: 1.7rem; margin-bottom: var(--s2); }
.contact-option .sub { margin-bottom: var(--s4); }
.opt-badge { display: inline-flex; align-items: center; font-family: var(--font-sans); font-size: .72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em; padding: 6px 13px; border-radius: 999px;
  margin-bottom: var(--s3); }
.opt-badge--free { color: #3F7A55; background: #F1F7F1; border: 1px solid #cfe6d3; }
.opt-badge--paid { color: var(--accent); background: var(--paper-2); border: 1px solid var(--line); }
.contact-or { display: flex; align-items: center; gap: var(--s3); color: var(--text-faint);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- audit purchase card (contact) ---- */
.audit-buy__gets { list-style: none; display: grid; gap: 9px;
  padding-bottom: var(--s4); margin-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.audit-buy__gets li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--text-soft); line-height: 1.45; }
.audit-buy__gets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 2px; background: var(--accent); }
.audit-buy .btn { width: 100%; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); align-items: start; }
.contact-grid h2 { font-size: 1.6rem; margin-bottom: var(--s2); }
.contact-grid .sub { color: var(--text-soft); margin-bottom: var(--s4); max-width: 42ch; line-height: 1.55; }
.calendly-inline-widget { min-width: 320px; height: 700px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }

/* ---- forms ---- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.field { display: grid; gap: 7px; margin-bottom: var(--s3); }
.field label { font-family: var(--font-sans); font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: .98rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,106,60,0.12); }
.form-card .btn { width: 100%; margin-top: var(--s2); }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: var(--s3); line-height: 1.5; }
.form-status { display: none; margin-top: var(--s3); padding: 12px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.5; }
.form-status.ok { display: block; background: #F1F7F1; color: #3F7A55; border: 1px solid #cfe6d3; }
.form-status.err { display: block; background: #F8EFE6; color: #B0481F; border: 1px solid #ecd8c6; }

/* ---- insights coming soon ---- */
.coming-soon { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(76px + var(--s7)) 0 var(--s8); }
.coming-soon .inner { max-width: 44ch; }
.coming-soon h1 { margin: var(--s3) 0 var(--s4); }
.coming-soon p { color: var(--text-soft); line-height: 1.6; }

@media (max-width: 880px) {
  .contact-grid, .split { grid-template-columns: 1fr; }
  .page-intro { padding-top: calc(64px + var(--s6)); }
}

/* ============ SERVICES / SUBPAGE LAYOUT v2 (fill the right side, kill dead space) ============ */

/* editorial two-column intro: heading left, lead + CTA right, bottom-aligned */
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s6); align-items: start; }
.intro-grid .intro-head .eyebrow { display: block; margin-bottom: var(--s3); }
.intro-grid .intro-head h1 { margin: 0; max-width: 14ch; }
/* nudge the right column's first line onto the headline's optical baseline-top */
.intro-grid .intro-lead { padding-top: 6px; }
.intro-grid .intro-lead .lead { font-size: 1.22rem; color: var(--text-soft); line-height: 1.55; max-width: 44ch; }
.intro-grid .intro-lead .cta-row { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 880px) { .intro-grid { grid-template-columns: 1fr; gap: var(--s4); align-items: start; } }

/* how-it-works: Diagnose -> Direct -> Produce -> Amplify */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s5); }
.how-step .step-k { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.how-step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.how-step p { color: var(--text-soft); font-size: .95rem; line-height: 1.5; }
.how-step .price-hint { display: block; margin-top: 10px; font-size: .8rem; color: var(--text-faint); font-weight: 600; }
.on-ink .how-step .step-k { color: var(--accent-soft); }
.on-ink .how-step p { color: var(--on-ink-soft); }
.on-ink .how-step .price-hint { color: var(--on-ink-soft); }
@media (max-width: 880px) { .how-steps { grid-template-columns: 1fr 1fr; gap: var(--s4); } }

/* "you do" line inside a price card */
.price-card .who { margin-top: var(--s3); margin-bottom: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--text-faint); font-style: italic; }
.price-card.featured .who { color: var(--accent); }

/* honest section: lead the reframed promise, then the split — no lonely rectangle */
.work-promise { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.32;
  max-width: 30ch; color: #fff; margin-bottom: var(--s5); }
.work-promise .accent { color: var(--accent-soft); font-style: italic; }

/* full-width signature statement band (About) — same banded family as the services callout */
.promise-band { margin-top: var(--s5); padding: var(--s4) var(--s5);
  border-left: 3px solid var(--accent-soft); background: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0; }
.promise-band p { max-width: none; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.12rem, 1.6vw, 1.4rem); line-height: 1.45; color: #fff; }
.promise-band .accent { color: var(--accent-soft); font-style: italic; }

/* About hero — title rail (eyebrow + headline + italic standfirst) beside the article body */
.about-hero__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: var(--s7); align-items: start; }
.about-hero__title .eyebrow { display: block; margin-bottom: var(--s3); }
.about-hero__title h1 { margin: 0 0 var(--s4); max-width: 13ch; }
.about-hero__dek { font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.42; color: var(--text-soft); max-width: 30ch; }
.about-hero__body p { color: var(--text-soft); line-height: 1.8; margin-bottom: var(--s3); max-width: 58ch; }
.about-hero__body p:last-of-type { margin-bottom: 0; }
.about-hero__body p strong { color: var(--ink); font-weight: 600; }
.about-hero__body .cta-row { margin-top: var(--s4); display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 880px) {
  .about-hero__grid { grid-template-columns: 1fr; gap: var(--s4); }
}

/* full-width disclaimer strip under the audit card */
.audit-section { padding-bottom: var(--s4); }
.audit-section .price-audit { margin-bottom: var(--s2); }
.plans-section { padding-top: var(--s4); }
.disclaimer-bar {
  max-width: none; margin-top: 0; padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: .88rem; line-height: 1.5; color: var(--text-soft); letter-spacing: .005em;
}

/* keep the dark honest section from leaving a cavern before the final CTA */
.work-honest { padding-bottom: var(--s6); }
.work-honest + .cta-band { padding-top: var(--s6); }

/* honest "before you buy" callout — deliberate aside, full-width band */
.honest-note {
  max-width: none; margin-top: var(--s5);
  padding: var(--s4) var(--s5); border-left: 3px solid var(--accent-soft);
  background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--on-ink-soft); font-size: 1rem; line-height: 1.6;
}
.honest-note__k {
  display: block; margin-bottom: 8px; font-family: var(--font-sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-soft);
}
