/* ============================================================
   Continuity — "Studio" design system
   Warm botanical: cream canvas, forest/sage green, amber bloom.
   Fraunces (display) · Hanken Grotesk (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  --canvas: #fbf4de;
  --ink: #29331f;
  --body: #5c6650;
  --muted: #8a9176;
  --life: #2fa873;
  --life-deep: #1c7a52;
  --bloom: #e0a95b;
  --dusk: #12160e;
  --dusk-ink: #eeead4;
  --dusk-body: #aeb199;
  --surface: rgba(255, 255, 255, 0.55);
  --line: rgba(41, 51, 31, 0.13);
  --line-2: rgba(41, 51, 31, 0.07);
  --soft: 0 1px 2px rgba(54, 64, 42, 0.04), 0 3px 7px rgba(54, 64, 42, 0.05), 0 9px 20px -6px rgba(54, 64, 42, 0.08), 0 24px 48px -16px rgba(54, 64, 42, 0.16);
  --lift: 0 2px 4px rgba(54, 64, 42, 0.05), 0 8px 16px rgba(54, 64, 42, 0.06), 0 20px 40px -12px rgba(54, 64, 42, 0.12), 0 44px 84px -32px rgba(54, 64, 42, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --disp: "Fraunces", Georgia, serif;
  --petal: 42% 58% 56% 44% / 48% 44% 56% 52%;
  --z-base: 1;
  --z-nav: 40;
  --z-sticky: 45;
  --z-dialog: 60;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  /* Render at 110% so 100% browser zoom reads like 110%. */
  zoom: 1.1;
  margin: 0;
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
  overflow-x: hidden;
  max-width: 100%;
}

/* warm vignette — anchors the cream canvas, adds depth without a border */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(132% 108% at 50% -12%, transparent 60%, rgba(40, 33, 14, 0.06) 100%);
}

::selection { background: rgba(47, 168, 115, 0.22); color: var(--ink); }

html { scrollbar-color: rgba(54, 64, 42, 0.32) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: rgba(54, 64, 42, 0.22); border-radius: 999px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: rgba(54, 64, 42, 0.36); }

/* Lenis smooth scroll (premium momentum) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- breathing mesh + grain (ambient background) ---- */
.mesh { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: saturate(1.05); }
.mesh span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.7; will-change: transform; }
.m1 { width: 60vw; height: 60vw; left: -10vw; top: -8vw; background: radial-gradient(circle, #b7cb99, transparent 65%); animation: drift1 34s var(--ease) infinite; }
.m2 { width: 55vw; height: 55vw; right: -12vw; top: 6vw; background: radial-gradient(circle, #ebc987, transparent 62%); animation: drift2 41s var(--ease) infinite; opacity: 0.6; }
.m3 { width: 64vw; height: 64vw; left: 10vw; bottom: -22vw; background: radial-gradient(circle, #dce6c2, transparent 60%); animation: drift3 47s var(--ease) infinite; }
.m4 { width: 38vw; height: 38vw; right: 8vw; bottom: -6vw; background: radial-gradient(circle, #9fbf8a, transparent 60%); animation: drift1 38s var(--ease) infinite reverse; opacity: 0.5; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5vw, 4vw) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, 5vw) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, -5vw) scale(1.15); } }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ---- base elements ---- */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; margin: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "dlig" 1;
}
h1 { max-width: 16ch; font-size: clamp(44px, 6vw, 72px); }
h2 { max-width: 20ch; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.12; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--life-deep); }

p, li { line-height: 1.62; letter-spacing: 0.004em; text-wrap: pretty; overflow-wrap: break-word; }
section { scroll-margin-top: 110px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; padding: 0;
}
.tabular { font-variant-numeric: tabular-nums; }

input, select, textarea {
  min-height: 54px; border: 1px solid var(--line); border-radius: 16px;
  padding: 0 18px; color: var(--ink); background: rgba(255, 255, 255, 0.6); outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input::placeholder, textarea::placeholder { color: #9aa086; font-style: italic; }
select { appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--life); box-shadow: 0 0 0 4px rgba(47, 168, 115, 0.13); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(47, 168, 115, 0.5); outline-offset: 3px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%);
  border-radius: 12px; padding: 12px 16px; color: #fff; background: var(--life); font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

.noscript-fallback {
  min-height: 100dvh; display: grid; place-items: center; gap: 18px; padding: 32px; text-align: center; position: relative; z-index: 1;
}

.site-shell { min-height: 100dvh; max-width: 100%; overflow-x: hidden; position: relative; z-index: 1; }
.container { width: min(1240px, calc(100% - 48px)); max-width: calc(100vw - 48px); margin-inline: auto; }

/* ---- seed + bloom (living marks) ---- */
.seed {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 34%, #fff8, transparent 45%), radial-gradient(circle, var(--life), var(--life-deep));
  box-shadow: 0 0 0 5px rgba(47, 168, 115, 0.14), 0 0 18px -2px rgba(47, 168, 115, 0.7);
  animation: breathe 4.5s var(--ease) infinite;
}
.bloom {
  position: relative; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  font-family: var(--disp); font-weight: 400;
  background: radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.85), transparent 42%), radial-gradient(circle at 50% 54%, var(--bloom) 0%, var(--life) 42%, var(--life-deep) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 0 8px rgba(47, 168, 115, 0.1), 0 18px 40px -14px rgba(47, 168, 115, 0.55);
  animation: breathe 4.6s var(--ease) infinite;
}
.bloom::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(47, 168, 115, 0.22); animation: halo 6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.045); filter: brightness(1.06); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.14); opacity: 0; } }

/* ---- nav ---- */
.site-nav {
  position: fixed; top: 16px; left: 50%; z-index: var(--z-nav);
  width: min(1240px, calc(100% - 32px)); transform: translateX(-50%);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  min-height: 64px; border: 1px solid transparent; border-radius: 999px; padding: 8px 8px 8px 18px;
  background: linear-gradient(rgba(251, 244, 222, 0.85), rgba(251, 244, 222, 0.3)); backdrop-filter: blur(8px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), top 0.2s var(--ease);
}
.site-nav.is-scrolled, .site-nav.is-open { top: 10px; border-color: var(--line); background: rgba(251, 244, 222, 0.92); box-shadow: var(--soft); }

.wordmark { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 4px; }
.wordmark-mark { height: 20px; width: auto; flex: none; color: var(--ink); }
.wordmark-text { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }

.menu-toggle {
  display: none; justify-self: end; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, 0.5);
}
.menu-toggle span { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.18s var(--ease); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.site-nav.is-open .menu-toggle span { background: transparent; }
.site-nav.is-open .menu-toggle span::before { transform: rotate(45deg); }
.site-nav.is-open .menu-toggle span::after { transform: rotate(-45deg); }

.nav-links { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-link, .coach-menu summary {
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 0 14px;
  color: var(--body); font-size: 14.5px; font-weight: 500;
}
.nav-link:hover, .coach-menu summary:hover, .nav-link.is-active, .coach-menu summary.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.nav-link-mobile-cta { display: none; }
.coach-menu { position: relative; }
.coach-menu summary { list-style: none; cursor: pointer; }
.coach-menu summary::-webkit-details-marker { display: none; }
.coach-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.coach-menu[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.coach-menu-panel {
  position: absolute; top: calc(100% + 12px); left: 0; width: 300px; border: 1px solid var(--line); border-radius: 22px; padding: 8px;
  background: rgba(251, 244, 222, 0.97); backdrop-filter: blur(10px); box-shadow: var(--soft);
}
.coach-menu-panel a { display: block; border-radius: 14px; padding: 12px 14px; color: var(--body); font-weight: 500; }
.coach-menu-panel a:hover, .coach-menu-panel a:focus-visible { color: var(--ink); background: rgba(47, 168, 115, 0.08); }
.nav-cta { min-height: 44px; white-space: nowrap; }

/* ---- buttons (pills) ---- */
.button {
  font-family: var(--sans); font-weight: 600; font-size: 15px; min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; padding: 0 26px; letter-spacing: -0.01em; line-height: 1; text-align: center; white-space: normal;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.button svg { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--life); box-shadow: 0 10px 26px -12px rgba(47, 168, 115, 0.7); }
.button-primary:hover { transform: translateY(-2px); background: var(--life-deep); box-shadow: 0 18px 38px -14px rgba(47, 168, 115, 0.8); }
.button-ghost { background: rgba(255, 255, 255, 0.4); color: var(--body); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.button-ghost:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.button:active { transform: translateY(0) scale(0.985); }

/* ---- sections ---- */
.section { position: relative; z-index: 1; padding: 116px 0; }
.section-paper, .section-dark { background: transparent; color: var(--ink); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr); gap: 48px; align-items: end; margin-bottom: 52px;
}
.section-head p { color: var(--body); font-size: 18px; }

.eyebrow, .section-kicker {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--life-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 22px; height: 1.5px; background: linear-gradient(90deg, var(--life), transparent); }

/* ---- hero ---- */
.hero { position: relative; z-index: 1; min-height: 100dvh; display: grid; align-items: center; padding: 132px 0 76px; }
.ambient-motif { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr); gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy > .eyebrow { margin-bottom: -4px; }
.hero-copy p { max-width: 40ch; color: var(--body); font-size: 18.5px; line-height: 1.62; }
.trust-line { color: var(--muted); font-size: 13.5px; font-family: var(--mono); letter-spacing: 0.04em; }

.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 600px; margin-top: 6px; }
.proof-pill { border: 1px solid var(--line); border-radius: 20px 20px 22px 18px; padding: 16px; background: var(--surface); backdrop-filter: blur(8px); }
.proof-pill strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--disp); font-weight: 500; font-size: 22px; }
.proof-pill span { color: var(--muted); font-size: 12.5px; }

/* ---- hero "agent preview" — a real product phone over a bloom glow ---- */
.demo-video { position: relative; display: grid; place-items: center; padding: 16px 0; min-width: 0; }
.demo-video::before {
  content: ""; position: absolute; z-index: 0; width: 80%; height: 66%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 168, 115, 0.3), transparent 65%); filter: blur(46px);
}
.demo-shot {
  position: relative; z-index: 1; width: auto; max-width: 100%;
  height: clamp(440px, 58vh, 600px); border-radius: 44px; box-shadow: var(--lift);
}
.demo-badge {
  position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--life-deep);
  background: rgba(251, 244, 222, 0.92); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; box-shadow: var(--soft); backdrop-filter: blur(6px);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--life); box-shadow: 0 0 8px var(--life); animation: breathe 2.6s infinite; }

/* ---- waitlist form ---- */
.waitlist-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; max-width: 540px; }
.waitlist-form input { width: 100%; border-radius: 999px; }
.form-message { min-height: 22px; grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.form-message.is-error { color: #c0563f; }
.form-message.is-success { color: var(--life-deep); }

/* ---- infographic frames ---- */
.timeline-wrap { display: grid; gap: 28px; }
.viz-frame { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--canvas); box-shadow: var(--soft); }
.viz-frame iframe { display: block; width: 100%; height: 700px; border: 0; background: var(--canvas); overflow: hidden; }
.viz-frame-timeline iframe { height: 692px; }
.viz-frame-conversation { max-width: 1060px; margin-inline: auto; }
.viz-frame-conversation iframe { height: 806px; }
.viz-frame-comparison iframe { height: 902px; }
.viz-frame-sovereignty iframe { height: 686px; }
.viz-frame-marketplace iframe { height: 606px; }

/* ---- vertical router cards ---- */
.router-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vertical-card {
  display: grid; gap: 16px; min-height: 320px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 26px; padding: 18px;
  background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.vertical-card:hover { transform: translateY(-4px); border-color: rgba(47, 168, 115, 0.4); box-shadow: var(--lift); }
.vertical-art { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: rgba(41, 51, 31, 0.04); }
.vertical-card h3 { color: var(--ink); }
.vertical-card p { color: var(--body); font-size: 14px; }
.card-link { align-self: end; color: var(--life-deep); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.vertical-card:hover .card-link::after { transform: translateX(4px); }

/* ---- proof cards ---- */
/* floating devices on bloom auras — no card chrome */
.device-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.5vw, 56px); align-items: start; margin-top: 52px; }
.device { position: relative; display: grid; justify-items: center; text-align: center; transition-delay: calc(var(--i, 0) * 0.12s); }
.device:nth-child(2) { margin-top: -12px; }
.device-stage { position: relative; display: grid; place-items: center; margin-bottom: 28px; perspective: 1200px; animation: floaty 9s var(--ease) infinite; }
.device:nth-child(2) .device-stage { animation-delay: -3s; }
.device:nth-child(3) .device-stage { animation-delay: -6s; }
.device-aura { position: absolute; inset: 4% 6%; border-radius: 50%; z-index: 0; opacity: 0.85; filter: blur(46px); transition: opacity 0.4s var(--ease);
  background: radial-gradient(circle, rgba(47, 168, 115, 0.42), transparent 64%); }
.device-tilt { position: relative; z-index: 1; transform-style: preserve-3d; transition: transform 0.45s var(--ease); }
.device-shot { display: block; width: auto; height: clamp(400px, 42vw, 540px); border-radius: 42px;
  box-shadow: 0 46px 92px -34px rgba(20, 24, 14, 0.62), 0 12px 30px -14px rgba(20, 24, 14, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.device:nth-child(1) .device-shot { transform: rotate(-1.5deg); }
.device:nth-child(3) .device-shot { transform: rotate(1.5deg); }
.device:hover .device-shot { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 64px 120px -34px rgba(20, 24, 14, 0.7), 0 18px 44px -16px rgba(28, 122, 82, 0.4); }
.device:hover .device-aura { opacity: 1; }
.device-quote { color: var(--ink); font-family: var(--disp); font-size: clamp(19px, 1.5vw, 23px); font-weight: 400; line-height: 1.24; max-width: 18ch; margin: 0 auto; }
.device .proof-stat { margin-top: 12px; }
.proof-stat { color: var(--life-deep); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---- final CTA (a warm forest-green "bloom" moment) ---- */
.final-cta { text-align: center; }
.final-cta .container {
  position: relative; max-width: 880px; border-radius: 40px; padding: 64px 48px; overflow: hidden;
  color: #fff; background: radial-gradient(120% 95% at 82% -12%, rgba(224, 169, 91, 0.32), transparent 55%), linear-gradient(160deg, var(--life-deep), #14543a); box-shadow: var(--lift);
}
.final-cta h2 { color: #fff; margin-inline: auto; }
.final-cta h2 em { color: var(--bloom); font-style: italic; }
.final-cta .trust-line { color: rgba(255, 255, 255, 0.72); }
.final-cta .waitlist-form { margin: 28px auto 0; }
.final-cta .waitlist-form input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--dusk-ink); }
.final-cta .waitlist-form input::placeholder { color: var(--dusk-body); }
.timer-resolve {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 8px 16px;
  color: var(--dusk-body); background: rgba(255, 255, 255, 0.05); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
}
.timer-resolve strong { color: var(--bloom); }

/* ---- vertical "problem" ---- */
.vertical-pain { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr); gap: 52px; align-items: start; }
.pain-list { display: grid; gap: 14px; }
.pain-list li { border-left: 3px solid var(--life); padding: 14px 0 14px 18px; color: var(--body); font-size: 18px; line-height: 1.5; }
.trust-panel { border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 26px; padding: 26px; background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--soft); }
.trust-panel strong { display: block; margin-bottom: 14px; color: var(--ink); font-family: var(--disp); font-size: 22px; font-weight: 400; }

/* ---- builder cards ---- */
.builder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.builder-card { border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; padding: 22px; background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--soft); }
.builder-card strong { display: block; margin-bottom: 8px; font-family: var(--disp); font-size: 20px; font-weight: 500; color: var(--ink); }
.builder-card p { color: var(--body); font-size: 14px; }
.cap-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono, "JetBrains Mono", monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--life-deep, #1C7A52); background: rgba(52, 211, 158, 0.14); border: 1px solid rgba(52, 211, 158, 0.4); }
.cap-tag-soft { color: var(--body); background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.12); }

/* ---- footer ---- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 40px 0 52px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-grid p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--body); font-weight: 500; font-size: 14px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease); }
.footer-links a:hover { color: var(--ink); background-size: 100% 1px; }

/* ---- sticky CTA (mobile) ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  background: rgba(251, 244, 222, 0.94); backdrop-filter: blur(8px); transform: translateY(120%); transition: transform 0.2s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .button { width: 100%; }

/* ---- qualification dialog ---- */
.qualification-dialog {
  z-index: var(--z-dialog); width: min(560px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 28px; padding: 0;
  color: var(--ink); background: rgba(251, 244, 222, 0.98); backdrop-filter: blur(14px); box-shadow: var(--lift);
}
.qualification-dialog::backdrop { background: rgba(18, 22, 14, 0.55); backdrop-filter: blur(2px); }
.dialog-body { display: grid; gap: 18px; padding: 28px; }
.dialog-body h2 { font-size: 30px; }
[data-coach-fields], [data-builder-fields] { display: grid; gap: 16px; }
[hidden] { display: none !important; }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; background: rgba(255, 255, 255, 0.5); font-weight: 500; }
.radio-option:has(input:checked) { border-color: var(--life); background: rgba(47, 168, 115, 0.08); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.field-stack { display: grid; gap: 8px; }
.field-stack label { color: var(--body); font-weight: 600; font-size: 14px; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* staggered reveal within grids */
.router-grid > *:nth-child(2), .builder-list > *:nth-child(2) { transition-delay: 0.07s; }
.router-grid > *:nth-child(3), .builder-list > *:nth-child(3) { transition-delay: 0.14s; }
.router-grid > *:nth-child(4), .builder-list > *:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================ responsive */
@media (max-width: 1120px) {
  .hero-grid, .vertical-pain { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .router-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-row { gap: clamp(16px, 2.5vw, 32px); margin-top: 40px; }
  .device:nth-child(2) { margin-top: -8px; }
  .device-shot { height: clamp(340px, 38vw, 460px); }
}

@media (max-width: 860px) {
  .container { width: min(100% - 32px, 1240px); max-width: calc(100vw - 32px); }
  .site-nav { grid-template-columns: auto auto; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 78px; left: 16px; right: 16px; display: none; border: 1px solid var(--line); border-radius: 22px; padding: 10px;
    background: rgba(251, 244, 222, 0.98); backdrop-filter: blur(10px); box-shadow: var(--soft);
  }
  .site-nav.is-open .nav-links { display: grid; gap: 4px; }
  .nav-link, .coach-menu summary, .coach-menu-panel a { width: 100%; justify-content: flex-start; }
  .coach-menu-panel { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
  .nav-cta { display: none; }
  .nav-link-mobile-cta { display: inline-flex; color: #fff; background: var(--life); justify-content: center; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 116px 0 56px; }
  .hero-copy { gap: 18px; }
  .hero-copy p { font-size: 17px; }
  .hero-proof { grid-template-columns: 1fr; }
  .section-head, .builder-list { grid-template-columns: 1fr; gap: 24px; }
  .device-row { grid-template-columns: 1fr; gap: 52px; max-width: 400px; margin-inline: auto; }
  .device:nth-child(2) { margin-top: 0; }
  .device:nth-child(1) .device-shot, .device:nth-child(3) .device-shot { transform: none; }
  .device-shot { height: clamp(430px, 78vw, 520px); }
  .device-stage { animation: none; }
  .sticky-cta { display: block; }
  .final-cta .container { padding: 48px 24px; border-radius: 32px; }
  .viz-frame-conversation { max-width: none; }
  .viz-frame iframe { height: 1000px; }
  .viz-frame-timeline iframe { height: 1380px; }
  .viz-frame-conversation iframe { height: 1190px; }
  .viz-frame-comparison iframe { height: 1280px; }
  .viz-frame-sovereignty iframe { height: 1320px; }
  .viz-frame-marketplace iframe { height: 800px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  h2 { font-size: 34px; }
  h3 { font-size: 21px; }
  .site-nav { top: 8px; width: calc(100% - 16px); }
  .hero { padding-top: 96px; }
  h1 { max-width: 14ch; }
  .hero-copy p { max-width: 36ch; }
  .hero-proof { display: none; }
  .waitlist-form { grid-template-columns: 1fr; width: 100%; }
  .waitlist-form .button { width: 100%; }
  .router-grid { grid-template-columns: 1fr; }
  .viz-frame { border-radius: 22px; }
  .radio-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
  .mesh span, .seed, .wordmark-mark, .bloom, .bloom::after, .live-dot { animation: none !important; }
}
