/* =========================================================================
   plapz — landing page
   Built on the plapz Design System: "paper, ink, and one living color."
   Warm off-white paper · warm near-black ink · ink-blue #2A4FCC as the only
   brand color · the three offer stages as the functional color system
   (Etapa 1 green / Etapa 2 amber / Etapa 3 coral). DM Sans throughout.
   v2 — type-forward hero, GSAP choreography, Three.js constellation backdrop,
   stronger per-section hierarchy. Calm brand, elevated.
   ========================================================================= */

/* ---- Tokens (mirrored from the Design System) -------------------------- */
:root {
  /* Surfaces (paper) */
  --page:    #FAFAF7;
  --card:    #FFFFFF;
  --surface: #F5F4F0;

  /* Brand ink-blue scale — the only brand color */
  --blue-50:  #ECF0FC;
  --blue-100: #CBD8F7;
  --blue-200: #93AEF0;
  --blue-300: #4F73E0;
  --blue-400: #2A4FCC;  /* primary action */
  --blue-500: #1E3AA0;  /* hover / pressed */
  --blue-600: #16266B;  /* dark sections */

  /* Ink scale (warm gray) */
  --ink-100: #E8E6DD;
  --ink-200: #D3D1C7;
  --ink-300: #B4B2A9;
  --ink-400: #9C9A92;
  --ink-500: #73726C;
  --ink-700: #3D3D3A;
  --ink-800: #2C2C2A;
  --ink-900: #1A1A18;

  /* Functional: the three offer stages (text + tint pairs) */
  --stage-1-text: #0E7A54;  --stage-1-bg: #E2F3EC;
  --stage-2-text: #9A6510;  --stage-2-bg: #FAEFDA;
  --stage-3-text: #B14A1F;  --stage-3-bg: #FAEAE2;

  --error:    #C4362F;  --error-bg: #FBE9E8;
  --on-dark:  #F0F0F0;

  /* Type */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --w-regular: 400;
  --w-medium:  500;
  --w-bold:    700;

  --h3-size: 18px;
  --body-size: 16px;
  --small-size: 14px;
  --caption-size: 12px;
  --caption-track: 0.6px;

  /* Layout & shape */
  --container: 1152px;
  --container-narrow: 760px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  --shadow-soft: 0 1px 2px rgba(40,38,32,.04), 0 10px 30px -12px rgba(40,38,32,.16);
  --shadow-lift: 0 2px 4px rgba(40,38,32,.05), 0 18px 40px -16px rgba(40,38,32,.22);

  --motion-base: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---- Dark mode --------------------------------------------------------- *
   Same "paper, ink, one living color" system, flipped: deep "space" navy
   paper, cool light ink, the ink-blue brightened so it reads on dark. The
   three always-dark-blue bands (data strip, final CTA, footer) stay on
   blue-600 — they now layer as slightly-brighter blue panels over the navy.
   ----------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces (deep "space" navy) */
  --page:    #0A0E20;
  --card:    #141B33;
  --surface: #0F1528;

  /* Brand ink-blue — lifted so actions/accents/links read on dark.
     blue-100/200 (light text on the dark bands) and blue-600 (the bands
     themselves) stay as-is on purpose. */
  --blue-50:  #1C2440;   /* was a pale wash → now a dark blue tint */
  --blue-400: #5E80F0;   /* primary action + accent text */
  --blue-500: #7E9CF6;   /* hover / pressed (brighter on dark) */

  /* Ink scale, inverted — cool, blue-tinted to match the space navy */
  --ink-100: #1E2740;
  --ink-200: #2B3656;
  --ink-300: #4E587A;
  --ink-400: #7A82A4;
  --ink-500: #98A0C0;
  --ink-700: #C7CCDE;
  --ink-800: #E0E4F0;
  --ink-900: #F1F3FA;

  /* Functional stages — brighter text, dark tints */
  --stage-1-text: #46C68A;  --stage-1-bg: #14271D;
  --stage-2-text: #E0A23C;  --stage-2-bg: #2A2210;
  --stage-3-text: #E5764B;  --stage-3-bg: #2C1A12;

  --error: #F0928C;  --error-bg: #2C1513;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.30), 0 10px 30px -12px rgba(0,0,0,.55);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px -16px rgba(0,0,0,.62);
}

/* Component fixes where a hard-coded light value would break on dark. */
[data-theme="dark"] .btn--on-dark        { background: #FAFAF7; color: var(--blue-600); }
[data-theme="dark"] .btn--on-dark:hover  { background: #fff; }
[data-theme="dark"] .input:focus,
[data-theme="dark"] .select:focus,
[data-theme="dark"] .textarea:focus      { background: var(--card); box-shadow: 0 0 0 3px rgba(94,128,240,.28); }
[data-theme="dark"] .form-status.err     { border-color: #5A2420; }
/* Light illustration on dark page: ease the cream panel's glare, keep it legible. */
[data-theme="dark"] .split-media img     { filter: brightness(0.9) contrast(1.03); }

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--ink-800);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--blue-50); color: var(--ink-900); }
:focus-visible { outline: 2.5px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
/* Readable text column — LEFT-aligned to the container edge (not centered),
   so every section shares one consistent left margin. */
.narrow { max-width: var(--container-narrow); }

.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }
.section--surface { background: var(--surface); }   /* warm-gray band */
.section--tint { background: var(--blue-50); }       /* soft-blue band */
.section-head { margin-bottom: 48px; }

.eyebrow {
  font-size: var(--caption-size);
  font-weight: var(--w-bold);
  letter-spacing: var(--caption-track);
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor;
  margin-right: 11px; opacity: 0.85; border-radius: 2px;
}

.section-title { font-size: clamp(27px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; max-width: 24ch; }
.section-lead  { font-size: var(--h3-size); line-height: 1.55; color: var(--ink-500); max-width: 58ch; }

/* ---- Stage badges (functional color = the three stages) ---------------- */
.stage-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--caption-size); font-weight: var(--w-medium);
  letter-spacing: 0.3px; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-full);
  white-space: nowrap;
}
.stage-badge .n { font-weight: var(--w-bold); }
.stage-1 { background: var(--stage-1-bg); color: var(--stage-1-text); }
.stage-2 { background: var(--stage-2-bg); color: var(--stage-2-text); }
.stage-3 { background: var(--stage-3-bg); color: var(--stage-3-text); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--w-medium);
  font-size: var(--body-size); line-height: 1;
  padding: 14px 24px; border-radius: var(--radius-lg);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--motion-base) var(--ease-out),
              color var(--motion-base) var(--ease-out),
              border-color var(--motion-base) var(--ease-out),
              transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary { background: var(--blue-400); color: #fff; box-shadow: 0 8px 20px -10px rgba(42,79,204,.7); }
.btn--primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(42,79,204,.75); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn--ghost:hover { background: var(--surface); color: var(--ink-900); border-color: var(--ink-300); }
.btn--on-dark { background: var(--page); color: var(--blue-600); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.btn--on-dark:hover { background: #fff; color: var(--blue-600); transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: var(--h3-size); }
.btn--block { width: 100%; }

.link-arrow { font-weight: var(--w-medium); display: inline-flex; align-items: center; gap: 6px; color: var(--ink-900); }
.link-arrow:hover { color: var(--blue-500); }
.link-arrow .ar { transition: transform var(--motion-base) var(--ease-out); }
.link-arrow:hover .ar { transform: translateX(4px); }
.link-arrow--down:hover .ar { transform: translateY(3px); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-100); box-shadow: 0 6px 22px -16px rgba(40,38,32,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.brand { font-family: var(--font-sans); font-weight: var(--w-bold); font-size: 22px; letter-spacing: -0.02em; color: var(--ink-900); display: inline-flex; align-items: baseline; }
.brand:hover { color: var(--ink-900); }
.brand .dot { color: var(--blue-400); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: var(--small-size); font-weight: var(--w-medium); color: var(--ink-700); }
.nav-links a:hover { color: var(--ink-900); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink-200); border-radius: var(--radius-md); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink-900); }

/* ---- Theme toggle (sun/moon switch, left of the nav CTA) --------------- */
.theme-toggle { background: none; border: 0; padding: 5px; margin: 0; cursor: pointer; display: inline-flex; border-radius: var(--radius-full); -webkit-tap-highlight-color: transparent; }
.theme-toggle:focus-visible { outline: 2.5px solid var(--blue-300); outline-offset: 2px; }
.tt-track {
  position: relative; width: 52px; height: 28px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--ink-200);
  transition: background-color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}
.tt-knob {
  position: absolute; top: 50%; left: 3px; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(40,38,32,.35);
  display: grid; place-items: center;
  transition: transform var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}
.theme-toggle[aria-checked="true"] .tt-knob { transform: translate(22px, -50%); }
/* Faint "the other mode" icon, parked at the far end of the track */
.tt-end { position: absolute; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; color: var(--ink-400); }
.tt-end-sun  { left: 7px; }
.tt-end-moon { right: 7px; }
/* Bright current-mode icon, carried by the sliding knob */
.tt-kn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 13px; height: 13px; transition: opacity .18s var(--ease-out); }
.tt-kn-sun  { color: #E0A23C; }
.tt-kn-moon { color: #15265F; }
.theme-toggle[aria-checked="false"] .tt-kn-moon { opacity: 0; }
.theme-toggle[aria-checked="true"]  .tt-kn-sun  { opacity: 0; }

[data-theme="dark"] .tt-track { background: #222A47; border-color: #36426E; }
[data-theme="dark"] .tt-knob  { background: #E7E5DD; box-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding-block: 80px 72px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg.is-ready { opacity: 1; }
.hero::after { /* subtle paper scrim so type stays crisp over the constellation */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(100% 78% at 50% 44%, var(--page) 34%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero-kicker { font-size: var(--caption-size); font-weight: var(--w-bold); letter-spacing: var(--caption-track); text-transform: uppercase; color: var(--blue-400); margin-bottom: 24px; }

/* Two-tier centered title: smaller one-line lead + larger emphasis line */
.hero-title { font-weight: var(--w-bold); color: var(--ink-900); letter-spacing: -0.03em; margin-bottom: 34px; }
.hero-title .ln { display: block; }
.hero-title .ln + .ln { margin-top: 6px; }
.hero-title .ln-i { display: block; }
.hero-title .ht-lead { font-size: clamp(22px, 3.8vw, 41px); line-height: 1.1; letter-spacing: -0.02em; }
.hero-title .ht-main { font-size: clamp(35px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-title .accent { color: var(--blue-400); font-style: normal; }
/* Blue highlight for a phrase inside a title (theme-aware) */
.hl { color: var(--blue-400); }

.hero-steps {
  list-style: none; margin: 0 auto 36px; padding: 28px 0 0;
  border-top: 1px solid var(--ink-100);
  max-width: 880px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.hero-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; font-size: var(--body-size); line-height: 1.5; color: var(--ink-500); }
.hero-steps .hs-num {
  flex: none; width: 30px; height: 30px; border-radius: var(--radius-full);
  display: grid; place-items: center; font-size: var(--small-size); font-weight: var(--w-bold);
}
.hero-steps li:nth-child(1) .hs-num { background: var(--stage-1-bg); color: var(--stage-1-text); }
.hero-steps li:nth-child(2) .hs-num { background: var(--stage-2-bg); color: var(--stage-2-text); }
.hero-steps li:nth-child(3) .hs-num { background: var(--stage-3-bg); color: var(--stage-3-text); }
.hero-steps .hs-txt strong { color: var(--ink-900); font-weight: var(--w-bold); }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-micro { margin-top: 20px; font-size: var(--small-size); color: var(--ink-400); display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero-micro .ic { color: var(--blue-400); flex: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; display: grid; place-items: start center; }
.scroll-cue-line { width: 2px; height: 26px; border-radius: 2px; background: var(--ink-300); transform-origin: top; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0) translateY(26px); opacity: 0; } }

/* ---- Video explainer --------------------------------------------------- */
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-title { margin-inline: auto; max-width: 22ch; }
.video-frame {
  position: relative; max-width: none; margin: 40px 0 0;
  aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--ink-200); background: #0c0c12; box-shadow: var(--shadow-lift);
}
.video-el { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--blue-400); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 40px -8px rgba(42,79,204,.7);
  transition: transform var(--motion-base) var(--ease-out), background var(--motion-base) var(--ease-out);
}
.video-play:hover { transform: scale(1.07); background: var(--blue-500); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-play.is-hidden { display: none; }

/* ---- Data strip (dark blue band with charts) --------------------------- */
.datastrip { background: var(--blue-600); padding-block: 84px; color: var(--on-dark); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.stat p { margin-top: 24px; font-size: var(--body-size); line-height: 1.6; color: var(--blue-100); max-width: 38ch; }
.stat p strong { color: #fff; font-weight: var(--w-bold); }
.stat .src { display: block; margin-top: 14px; font-size: var(--caption-size); text-transform: uppercase; letter-spacing: var(--caption-track); color: var(--blue-200); }

.stat-viz { height: 128px; display: flex; align-items: flex-end; }

/* 1 of 4 — pictograph */
.pictograph { display: flex; align-items: flex-end; gap: 12px; }
.pictograph .person { width: 40px; height: auto; color: rgba(255,255,255,0.20); }
.pictograph .person.on { color: #fff; }

/* 83% — donut */
.donut { width: 128px; height: 128px; }
.donut-track { stroke: rgba(255,255,255,0.15); }
.donut-arc { stroke: var(--blue-200); }
.donut-label { fill: #fff; font-family: var(--font-sans); font-weight: var(--w-bold); font-size: 30px; letter-spacing: -0.03em; }

/* #1 — bar chart */
.barchart { display: flex; align-items: flex-end; gap: 13px; height: 128px; }
.barchart .bar { position: relative; width: 28px; background: rgba(255,255,255,0.18); border-radius: 6px 6px 0 0; }
.barchart .bar.on { background: var(--blue-200); }
.bar-tag { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: var(--caption-size); font-weight: var(--w-bold); color: #fff; background: var(--blue-400); padding: 2px 9px; border-radius: var(--radius-full); }

/* ---- Prose / statement ------------------------------------------------- */
.prose-block p { font-size: var(--h3-size); line-height: 1.65; color: var(--ink-700); max-width: 64ch; }
.prose-block p + p { margin-top: 18px; }
.prose-block .closer { font-size: 22px; font-weight: var(--w-bold); color: var(--ink-900); margin-top: 22px; letter-spacing: -0.01em; }

.shift { background: var(--page); }
.statement .lead-stat { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: var(--w-bold); color: var(--ink-900); max-width: 20ch; margin-bottom: 30px; }
.statement .lead-stat strong { color: var(--blue-400); font-weight: var(--w-bold); }
.statement p { font-size: 20px; line-height: 1.6; color: var(--ink-700); max-width: 56ch; }
.statement .punch { margin-top: 22px; font-size: clamp(21px, 2.6vw, 26px); font-weight: var(--w-bold); color: var(--ink-900); line-height: 1.25; letter-spacing: -0.02em; }

/* Growth viz (26% -> 76%) */
.growth-viz { margin: 34px 0 38px; max-width: 540px; display: grid; gap: 16px; }
.growth-row { display: grid; grid-template-columns: 52px 1fr 50px; align-items: center; gap: 16px; }
.growth-cap { font-size: var(--caption-size); font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: var(--caption-track); color: var(--ink-400); }
.growth-track { height: 16px; background: var(--ink-100); border-radius: var(--radius-full); overflow: hidden; }
.growth-fill { height: 100%; border-radius: var(--radius-full); }
.growth-fill.is-base { background: var(--ink-300); }
.growth-fill.is-now { background: var(--blue-400); width: 0; }
.growth-val { font-size: var(--small-size); font-weight: var(--w-bold); color: var(--ink-500); text-align: right; }
.growth-val--now { color: var(--blue-400); }

/* ---- Split (text + image) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-text { min-width: 0; }
.split-media { margin: 0; min-width: 0; }
.split-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-soft);
  transition: filter var(--motion-base) var(--ease-out);
}
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-media { max-width: 560px; }
}

/* ---- Why-us blocks ----------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card { background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl); padding: 28px; transition: transform var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.why-card:hover { transform: translateY(-4px); border-color: var(--ink-200); box-shadow: var(--shadow-lift); }
.why-card .ic-wrap { width: 46px; height: 46px; border-radius: var(--radius-lg); background: var(--blue-50); color: var(--blue-400); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-card h3 { font-size: var(--h3-size); font-weight: var(--w-bold); margin-bottom: 9px; }
.why-card p { font-size: var(--body-size); line-height: 1.6; color: var(--ink-500); }

/* ---- Three-stage model ------------------------------------------------- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.model-rail, .model-node { display: none; } /* connector handled by arrows + watermark numbers */
.model-card { position: relative; background: var(--card); border: 1px solid var(--ink-100); border-top-width: 3px; border-radius: var(--radius-xl); padding: 26px; display: flex; flex-direction: column; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.model-card[data-stage="1"] { border-top-color: var(--stage-1-text); }
.model-card[data-stage="2"] { border-top-color: var(--stage-2-text); }
.model-card[data-stage="3"] { border-top-color: var(--stage-3-text); }
.model-step { position: absolute; bottom: 14px; right: 20px; font-size: 60px; font-weight: var(--w-bold); line-height: 1; letter-spacing: -0.04em; color: var(--ink-100); z-index: 0; }
.model-card .stage-badge, .model-card h3, .model-card .qa { position: relative; z-index: 1; }
.model-card h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: var(--w-bold); margin: 16px 0 18px; }
.model-card .qa { margin-top: auto; }
.model-card .qa dt { font-size: var(--caption-size); text-transform: uppercase; letter-spacing: var(--caption-track); color: var(--ink-400); margin-bottom: 5px; }
.model-card .qa dd { font-size: var(--small-size); color: var(--ink-500); line-height: 1.5; margin: 0; }
.model-card:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 46px; color: var(--ink-300); font-size: 20px; z-index: 3; }

/* ---- Stage deep dives -------------------------------------------------- */
.deepdive { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding-block: 48px; border-top: 1px solid var(--ink-100); }
.deepdive:first-of-type { border-top: 0; padding-top: 8px; }
.dd-num { display: block; font-size: clamp(46px, 7vw, 88px); font-weight: var(--w-bold); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 18px; }
.deepdive[data-stage="1"] .dd-num { color: var(--stage-1-text); }
.deepdive[data-stage="2"] .dd-num { color: var(--stage-2-text); }
.deepdive[data-stage="3"] .dd-num { color: var(--stage-3-text); }
.deepdive .dd-head .stage-badge { margin-bottom: 12px; }
.deepdive .dd-q { font-size: var(--h3-size); font-weight: var(--w-medium); color: var(--blue-400); margin-bottom: 6px; letter-spacing: -0.01em; }
.deepdive .dd-head h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.18; }
.dd-body dl { display: grid; gap: 18px; margin: 0; }
.dd-body dt { font-size: var(--caption-size); font-weight: var(--w-bold); letter-spacing: var(--caption-track); text-transform: uppercase; color: var(--ink-400); margin-bottom: 6px; }
.dd-body dd { margin: 0; font-size: var(--body-size); line-height: 1.6; color: var(--ink-500); }
.dd-body .keep { color: var(--ink-800); font-weight: var(--w-medium); }

/* ---- How to engage ----------------------------------------------------- */
.engage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.engage-card { background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl); padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.engage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.engage-card .combo { font-weight: var(--w-bold); color: var(--blue-400); font-size: var(--small-size); white-space: nowrap; background: var(--blue-50); padding: 7px 13px; border-radius: var(--radius-full); flex: none; }
.engage-card .txt strong { display: block; color: var(--ink-900); font-weight: var(--w-bold); margin-bottom: 4px; font-size: var(--h3-size); }
.engage-card .txt span { font-size: var(--small-size); color: var(--ink-500); }
.engage-note { margin-top: 28px; font-size: var(--h3-size); color: var(--ink-700); }

/* ---- Outcomes ---------------------------------------------------------- */
.outcomes { background: var(--blue-50); }
.caveat { display: inline-flex; gap: 9px; align-items: flex-start; background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 12px 16px; font-size: var(--small-size); color: var(--ink-500); margin-top: 4px; max-width: 60ch; }
.caveat .ic { color: var(--blue-400); flex: none; margin-top: 1px; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.outcome-card { background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl); padding: 30px; }
.outcome-card h3 { font-size: var(--h3-size); font-weight: var(--w-bold); margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.outcome-card h3 .tag { font-size: var(--caption-size); font-weight: var(--w-bold); letter-spacing: var(--caption-track); text-transform: uppercase; color: var(--blue-400); background: var(--blue-50); padding: 5px 11px; border-radius: var(--radius-full); }
.outcome-card ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.outcome-card li { display: flex; gap: 11px; font-size: var(--body-size); line-height: 1.5; color: var(--ink-700); }
.outcome-card li .ck { color: var(--blue-400); flex: none; margin-top: 3px; }

/* ---- Pricing ----------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: var(--card); border: 1px solid var(--ink-100); border-top-width: 3px; border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.price-card[data-stage="1"] { border-top-color: var(--stage-1-text); }
.price-card[data-stage="2"] { border-top-color: var(--stage-2-text); }
.price-card[data-stage="3"] { border-top-color: var(--stage-3-text); }
.price-card .stage-badge { align-self: flex-start; }
.price-card h3 { font-size: var(--h3-size); font-weight: var(--w-bold); margin: 16px 0 16px; }
.price-card .from { font-size: var(--caption-size); text-transform: uppercase; letter-spacing: var(--caption-track); color: var(--ink-400); margin-bottom: 4px; }
.price-card .amount { font-size: clamp(24px, 3vw, 32px); font-weight: var(--w-bold); color: var(--ink-900); letter-spacing: -0.03em; margin-bottom: 16px; }
.price-card .amount.tbd { color: var(--ink-300); font-weight: var(--w-medium); font-size: var(--h3-size); }
.price-card p { font-size: var(--small-size); line-height: 1.5; color: var(--ink-500); }
.price-note { margin-top: 28px; font-size: var(--small-size); color: var(--ink-400); }

/* ---- FAQ --------------------------------------------------------------- */
.faq-list { margin-top: 36px; border-top: 1px solid var(--ink-100); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--ink-100); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: clamp(18px, 2.2vw, 21px); font-weight: var(--w-bold); color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color var(--motion-base) var(--ease-out); }
.faq-item summary:hover { color: var(--blue-500); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { flex: none; color: var(--blue-400); font-weight: var(--w-regular); transition: transform var(--motion-base) var(--ease-out); }
.faq-item[open] summary .pm { transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 24px; font-size: var(--body-size); line-height: 1.65; color: var(--ink-500); max-width: 70ch; }

/* ---- Final CTA (dark = blue-600) --------------------------------------- */
.finalcta { position: relative; overflow: hidden; background: var(--blue-600); color: var(--on-dark); text-align: center; padding-block: 110px; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.cta-bg.is-ready { opacity: 1; }
.finalcta-inner { position: relative; z-index: 1; }
.finalcta .eyebrow { color: var(--blue-200); justify-content: center; }
.finalcta .section-title { color: var(--on-dark); font-size: clamp(30px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-inline: auto; margin-bottom: 20px; max-width: 18ch; }
.finalcta p { color: var(--blue-100); font-size: var(--h3-size); max-width: 54ch; margin-inline: auto; margin-bottom: 32px; }
.finalcta .micro { color: var(--blue-200); font-size: var(--small-size); margin-top: 18px; }

/* ---- Contact form ------------------------------------------------------ */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.03em; margin-bottom: 16px; }
.contact-intro p { font-size: var(--h3-size); line-height: 1.55; color: var(--ink-500); margin-bottom: 26px; }
.contact-perks { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-perks li { display: flex; gap: 11px; font-size: var(--body-size); color: var(--ink-700); }
.contact-perks .ck { color: var(--blue-400); flex: none; margin-top: 3px; }

.form-card { background: var(--card); border: 1px solid var(--ink-200); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.lab { display: block; font-size: var(--small-size); font-weight: var(--w-medium); color: var(--ink-900); margin-bottom: 7px; }
label.lab .req { color: var(--blue-400); }
label.lab .opt { color: var(--ink-300); font-weight: var(--w-regular); }

.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--body-size); color: var(--ink-900);
  background: var(--page); border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 11px 13px;
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-50); background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2373726C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius-full); padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { font-size: var(--small-size); font-weight: var(--w-medium); color: var(--ink-700); padding: 8px 22px; border-radius: var(--radius-full); cursor: pointer; transition: background-color var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out); }
.segmented input:checked + label { background: var(--blue-400); color: #fff; }
.segmented input:focus-visible + label { outline: 2.5px solid var(--blue-300); outline-offset: 2px; }

.field-help { font-size: 13px; color: var(--ink-400); margin-top: 6px; }
.form-disclaimer { font-size: 13px; color: var(--ink-400); margin-top: 8px; line-height: 1.5; }
.form-submit { margin-top: 22px; }

.form-status { display: none; border-radius: var(--radius-md); padding: 13px 16px; font-size: var(--small-size); margin-bottom: 18px; }
.form-status.is-visible { display: block; }
.form-status.err { background: var(--error-bg); color: var(--error); border: 1px solid #F3D6D1; }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.is-visible { display: block; }
.form-success .ck-big { width: 56px; height: 56px; border-radius: 50%; background: var(--stage-1-bg); color: var(--stage-1-text); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h3 { font-size: 22px; font-weight: var(--w-bold); margin-bottom: 10px; }
.form-success p { color: var(--ink-500); font-size: var(--body-size); max-width: 38ch; margin-inline: auto; line-height: 1.5; }

.is-hidden { display: none !important; }

/* ---- Footer (dark = blue-600) ------------------------------------------ */
.site-footer { background: var(--blue-600); color: var(--blue-100); padding-block: 44px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand .dot { color: var(--blue-200); }
.footer-tag { font-size: var(--small-size); color: var(--blue-100); max-width: 40ch; margin-top: 12px; line-height: 1.55; }
.footer-contact a { color: var(--on-dark); font-weight: var(--w-medium); }
.footer-contact a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--blue-100); font-size: var(--small-size); }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--blue-200); }

/* ---- Animation gates --------------------------------------------------- */
/* Scroll reveal: hidden only when JS is on; GSAP or fallback reveals them. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
/* Hero pre-hide (only when motion allowed); cleared by JS if GSAP missing. */
.anim .hero-kicker, .anim .hero-steps, .anim .hero-actions, .anim .hero-micro, .anim .scroll-cue { opacity: 0; }
.anim .hero-title .ln-i { opacity: 0; transform: translateY(26px); }

/* Smooth color cross-fade when switching theme (added by JS for ~360ms). */
@media (prefers-reduced-motion: no-preference) {
  .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color .32s var(--ease-out), border-color .32s var(--ease-out),
                color .32s var(--ease-out), fill .32s var(--ease-out),
                stroke .32s var(--ease-out), box-shadow .32s var(--ease-out) !important;
  }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 940px) {
  .why-grid, .model-grid, .price-grid, .stat-grid, .engage-grid, .outcome-grid, .hero-steps { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .deepdive { grid-template-columns: 1fr; gap: 16px; padding-block: 36px; }
  .stat-grid { gap: 30px; }
  .hero-steps { gap: 16px; max-width: 560px; }
  .model-card:not(:last-child)::after { content: none; }
  .model-step { font-size: 48px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 66px; left: 0; right: 0; background: var(--page); border-bottom: 1px solid var(--ink-100); padding: 8px 24px 16px; }
  .nav-links.is-open a { padding: 13px 4px; border-bottom: 1px solid var(--ink-100); }
  .nav-toggle { display: flex; }
  .nav-cta .btn:not(.nav-cta-main) { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta-main { padding: 11px 16px; }
  .section { padding-block: 64px; }
  .section--tight { padding-block: 52px; }
  .hero { min-height: auto; padding-block: 56px 64px; }
  .hero-title { margin-bottom: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .scroll-cue { display: none; }
  .growth-row { grid-template-columns: 44px 1fr 46px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .anim .hero-kicker, .anim .hero-steps, .anim .hero-actions, .anim .hero-micro, .anim .scroll-cue { opacity: 1; }
  .anim .hero-title .ln-i { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .scroll-cue-line { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
