/* =============================================================================
   greatroom — landing v2 · "Warm Editorial"
   Typography: enso comp — one grotesque family (Hanken Grotesk), regular-weight
   display, labeled meta columns, giant lowercase wordmark.
   Structure: ElevenLabs — hairline-ruled bands, eyebrow + split headline/para,
   soft card grids, a big product window, grainy gradient panels.
   Energy: Perplexity — slow aurora gradients under film grain.
   Colors/spacing are the locked greatroom tokens (tokens.css v0.2, pine accent).
============================================================================= */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/HankenGrotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* — locked greatroom tokens — */
  --backdrop: #f5f3f1;
  --panel:    #fdfcfc;
  --card:     #fffefd;
  --ink:      #1b1917;
  --mid:      #44403b;
  --muted:    #777169;
  --faint:    #a59f97;
  --hairline: #ebe8e4;
  --pine:     #2a8369;
  --pine-hover: #237059;

  /* — v2 surface + aurora palette — */
  --card-gray: #f0eeeb;          /* EL-style soft card on cream            */
  --line-soft: #dcd7d0;
  --amber:     #dfae7a;
  --sky:       #a9bccb;
  --deep:      #22423a;          /* dark pine field for the agents panel   */

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;

  --grain-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--backdrop);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  overflow-x: hidden;
}

::selection { background: rgba(42, 131, 105, 0.22); }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1320px; }

/* ── film grain (whole page, very quiet) ─────────────────────────────────── */
.grain {
  position: fixed; inset: -40px;
  background: var(--grain-img);
  background-size: 300px 300px;
  opacity: 0.30;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 80;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 550; letter-spacing: 0.002em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(.22,.61,.21,1),
              background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, opacity 0.2s ease;
}
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn-solid { background: var(--ink); color: var(--backdrop); }
.btn-solid:hover { background: #000; transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line-soft); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost { color: var(--mid); padding: 0 14px; }
.btn-ghost:hover { color: var(--ink); }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(245, 243, 241, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-stuck { border-bottom-color: var(--hairline); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-word {
  font-size: 19px; font-weight: 600; letter-spacing: -0.028em;
  transform: translateY(-1px);
}
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--mid);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: 168px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.hero-h {
  font-size: clamp(52px, 6.2vw, 96px);
  font-weight: 430;
  letter-spacing: -0.032em;
  line-height: 1.0;
  text-wrap: balance;
}
.hero-side { padding-bottom: 6px; max-width: 470px; justify-self: end; }
.hero-p {
  font-size: 16.5px; line-height: 1.6; color: var(--mid);
  margin-bottom: 26px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* enso meta columns */
.meta {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.meta-cell { padding-right: 28px; }
.meta-cell + .meta-cell { border-left: 1px solid var(--line-soft); padding-left: 28px; }
.meta dt {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 7px;
}
.meta dd { font-size: 15px; font-weight: 500; color: var(--mid); }

.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pine); margin-right: 8px;
  transform: translateY(-1px);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(42, 131, 105, 0.35); }
  70%  { box-shadow: 0 0 0 9px rgba(42, 131, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 131, 105, 0); }
}

/* ── the living stage (hero + cta gradient fields) ───────────────────────── */
.stage {
  position: relative;
  margin-top: 72px;
  border-radius: 28px;
  overflow: hidden;
  background: #ece8e2;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 64px);
  isolation: isolate;
}
.aurora { position: absolute; inset: -12%; z-index: 0; filter: blur(64px); }
.blob { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.b1 { width: 58%; height: 72%; left: -8%; top: -14%;
      background: radial-gradient(closest-side, rgba(42,131,105,0.52), rgba(42,131,105,0) 72%);
      animation: drift1 27s ease-in-out infinite alternate; }
.b2 { width: 62%; height: 80%; right: -12%; top: 4%;
      background: radial-gradient(closest-side, rgba(223,174,122,0.62), rgba(223,174,122,0) 72%);
      animation: drift2 21s ease-in-out infinite alternate; }
.b3 { width: 48%; height: 62%; left: 26%; bottom: -22%;
      background: radial-gradient(closest-side, rgba(169,188,203,0.55), rgba(169,188,203,0) 72%);
      animation: drift3 33s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); }
                    to   { transform: translate(16%, 12%) scale(1.18); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.1); }
                    to   { transform: translate(-14%, 16%) scale(0.94); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); }
                    to   { transform: translate(12%, -16%) scale(1.22); } }
/* offscreen: JS parks the field */
.is-off .blob { animation-play-state: paused; }

.stage-grain {
  position: absolute; inset: 0; z-index: 1;
  background: var(--grain-img); background-size: 260px 260px;
  opacity: 0.5; mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── the product window ──────────────────────────────────────────────────── */
.app {
  position: relative; z-index: 2;
  max-width: 1060px; margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 24px 48px -12px rgba(27, 25, 23, 0.22),
              0 64px 120px -32px rgba(27, 25, 23, 0.25);
  overflow: hidden;
  font-size: 14px;
}
.app-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}
.app-co { display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); }
.app-co svg { width: 18px; height: 18px; color: var(--pine); }
.app-people { display: inline-flex; }
.app-people .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }

/* avatars */
.av {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 11.5px; font-weight: 650; font-style: normal;
  flex: none;
}
.av-m { background: #d9e6df; color: #23604d; }
.av-d { background: #ecdfcd; color: #7d5a33; }
.av-c { background: #dfe4e9; color: #4d6072; }
.av-agent { background: var(--card); color: var(--pine);
  border: 1.4px solid var(--pine); font-weight: 700; }
.av-agent u {
  position: absolute; right: -1.5px; bottom: -1.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pine); border: 1.6px solid var(--card);
  text-decoration: none;
}
.av-big { width: 44px; height: 44px; font-size: 19px; }
.av-big u { width: 10px; height: 10px; right: 0; bottom: 0; }

.app-body { display: grid; grid-template-columns: 176px 1fr 224px; min-height: 428px; }

.app-rail { border-right: 1px solid var(--hairline); background: var(--panel); padding: 16px 10px; }
.rail-h {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); margin: 10px 8px 6px;
}
.rail-h:first-child { margin-top: 0; }
.rail-r {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--mid);
  padding: 5.5px 8px; border-radius: 7px;
}
.rail-r span { color: var(--faint); font-weight: 400; }
.rail-r.is-on { background: #efece8; color: var(--ink); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-soft); flex: none; }
.dot-live { background: var(--pine); }

.app-chat { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 11px; align-items: flex-start; }
.msg-n { font-size: 13px; font-weight: 650; margin-bottom: 3px; }
.msg-n span { font-weight: 450; font-size: 11.5px; color: var(--faint); margin-left: 6px; }
.msg-n em {
  font-style: normal; font-size: 10px; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pine); background: rgba(42, 131, 105, 0.1);
  padding: 2px 6px; border-radius: 999px; margin-left: 4px;
  transform: translateY(-1px); display: inline-block;
}
.msg-t { font-size: 13.5px; line-height: 1.5; color: var(--mid); max-width: 430px; }
.msg-t b { font-weight: 650; color: var(--pine); }
.msg-card {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 12px;
  border: 1px solid var(--hairline); border-radius: 9px;
  background: var(--panel);
  font-size: 12.5px; font-weight: 550; color: var(--mid);
}
.msg-card svg { width: 13px; height: 13px; color: var(--pine); }
.app-compose {
  margin-top: auto; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 13px; color: var(--faint);
}

.app-board { border-left: 1px solid var(--hairline); background: var(--panel); padding: 16px 12px; }
.col-h {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin: 12px 4px 6px;
}
.tcard {
  background: var(--card);
  border: 1px solid var(--hairline); border-radius: 9px;
  padding: 8px 10px; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 550; color: var(--ink); line-height: 1.35;
}
.tcard span { display: block; margin-top: 3px; font-size: 11px; font-weight: 450; color: var(--faint); }
.tcard.is-live { border-left: 2.5px solid var(--pine); }
.tcard.is-done { opacity: 0.55; }

/* ── section bands (ElevenLabs rhythm) ───────────────────────────────────── */
.band { padding: 128px 0 0; }
.band .wrap > *:last-child { padding-bottom: 128px; }
.band-head { border-top: 1px solid var(--line-soft); padding-top: 26px; margin-bottom: 56px; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 40px;
}
.band-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: end;
}
.h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 430; letter-spacing: -0.028em; line-height: 1.04;
}
.band-p {
  font-size: 16px; line-height: 1.6; color: var(--muted);
  max-width: 440px; justify-self: end; padding-bottom: 4px;
}

/* ── feature cards ───────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--card-gray);
  border-radius: 20px;
  padding: 26px 24px 28px;
  min-height: 244px;
  display: flex; flex-direction: column;
  transition: transform 0.5s cubic-bezier(.22,.61,.21,1);
}
.card:hover { transform: translateY(-4px); }
.card-ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 42px;
}
.card-ic svg { width: 20px; height: 20px; color: var(--ink); }
.card-k { font-size: 15px; font-weight: 620; margin-bottom: 8px; letter-spacing: -0.008em; }
.card-t { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── agents duo ──────────────────────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.panel { position: relative; border-radius: 24px; overflow: hidden; min-height: 480px; isolation: isolate; }

.panel-grad { background: var(--deep); }
.aurora-deep { filter: blur(56px); opacity: 0.9; }
.aurora-deep .b1 { background: radial-gradient(closest-side, rgba(88, 172, 138, 0.75), rgba(88, 172, 138, 0) 72%); }
.aurora-deep .b2 { background: radial-gradient(closest-side, rgba(224, 160, 106, 0.7), rgba(224, 160, 106, 0) 72%); }
.aurora-deep .b3 { background: radial-gradient(closest-side, rgba(108, 136, 160, 0.6), rgba(108, 136, 160, 0) 72%); }

.float-chat {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px; padding: 44px clamp(24px, 5vw, 56px) 84px;
}
.fpill {
  font-size: 14px; line-height: 1.45; font-weight: 500;
  padding: 11px 18px; border-radius: 20px;
  width: fit-content; max-width: 400px;
}
.fpill-user {
  color: #f7f3ec; border: 1px solid rgba(247, 243, 236, 0.5);
  border-radius: 999px; align-self: flex-end;
  background: rgba(34, 66, 58, 0.25);
}
.fpill-agent { background: var(--card); color: var(--mid);
  box-shadow: 0 12px 32px rgba(15, 34, 28, 0.35); }
.fpill-done {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 254, 253, 0.92); color: var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 600;
}
.fpill-done svg { width: 13px; height: 13px; color: var(--pine); }

.panel-cap {
  position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2;
  font-size: 13.5px; font-weight: 500;
}
.panel-grad .panel-cap { color: rgba(247, 243, 236, 0.75); }
.panel-card .panel-cap { color: var(--muted); }

.panel-card {
  background: var(--card-gray);
  display: flex; align-items: center; justify-content: center;
  padding: 44px 28px 64px;
}
.agent-file {
  width: min(320px, 100%);
  background: var(--card);
  border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: 0 18px 44px -12px rgba(27, 25, 23, 0.16);
  padding: 22px;
}
.af-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.af-n { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.af-r { font-size: 12.5px; color: var(--muted); }
.af-rows { border-top: 1px solid var(--hairline); }
.af-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10.5px 0; border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.af-row:last-child { border-bottom: 0; padding-bottom: 0; }
.af-row span { color: var(--faint); font-weight: 500; flex: none; }
.af-row b { font-weight: 600; color: var(--mid); text-align: right; }
.af-hold { color: #8a6120 !important; }

/* ── trust ledger ────────────────────────────────────────────────────────── */
.ledger { border-top: 1px solid var(--line-soft); }
.lrow {
  display: grid; grid-template-columns: 220px 1fr 300px;
  align-items: center; gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.l-who { display: inline-flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 620; }
.l-what { font-size: 15px; color: var(--muted); }
.l-what b { font-weight: 600; color: var(--mid); }
.l-res {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.l-res i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.l-res.ok   { background: #e2efe9; color: #1f6a52; }
.l-res.hold { background: #f2e8d8; color: #8a6120; }
.l-res.no   { background: #f2e3e0; color: #99493c; }

.trust-foot {
  margin-top: 28px;
  font-size: 15px; color: var(--muted); max-width: 560px; line-height: 1.6;
}
.trust-foot b { color: var(--mid); font-weight: 600; }

/* ── steps ───────────────────────────────────────────────────────────────── */
.steps { list-style: none; border-top: 1px solid var(--line-soft); }
.step {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 24px; padding: 30px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.step-n { font-size: 13px; font-weight: 600; color: var(--faint); padding-top: 4px; }
.step-k { font-size: 19px; font-weight: 620; letter-spacing: -0.012em; margin-bottom: 7px; }
.step-t { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 600px; }

/* ── cta ─────────────────────────────────────────────────────────────────── */
.cta { padding: 128px 0 40px; }
.cta-panel {
  position: relative; border-radius: 30px; overflow: hidden;
  background: #ece8e2; isolation: isolate;
  padding: clamp(80px, 10vw, 130px) 32px;
  text-align: center;
}
.cta-in { position: relative; z-index: 2; }
.cta-h {
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 430; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 18px;
}
.cta-p { font-size: 16.5px; color: var(--mid); margin-bottom: 30px; }
.cta .cta-row { justify-content: center; }
.cta-foot { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding-top: 72px; overflow: hidden; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 90px;
}
.foot-brand .brand-mark { width: 32px; height: 32px; margin-bottom: 18px; }
.foot-brand p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.foot-h {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 16px;
}
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14.5px; font-weight: 500; color: var(--mid); width: fit-content; }
.foot-col a:hover { color: var(--ink); }

/* the enso move: the wordmark as landscape */
.foot-word {
  font-size: clamp(96px, 15.8vw, 236px);
  font-weight: 550; letter-spacing: -0.045em; line-height: 0.76;
  text-align: center;
  color: var(--ink);
  margin: 0 -8px;
  user-select: none;
}
.foot-legal {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 30px;
  margin-top: 22px; /* clear the wordmark's g-descenders */
  font-size: 13px; color: var(--faint);
}
.foot-legal a:hover { color: var(--mid); }

/* ── reveal choreography (JS adds html.js; anime drives the rest) ───────── */
html.js [data-rv],
html.js [data-rv-group] > * { opacity: 0; }
html.js .is-in[data-rv],
html.js .is-in[data-rv-group] > * { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-rv], html.js [data-rv-group] > * { opacity: 1 !important; transform: none !important; }
  .blob, .pulse-dot { animation: none !important; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 208px; }
  .card-ic { margin-bottom: 30px; }
  .duo { grid-template-columns: 1fr; }
  .panel { min-height: 440px; }
  .app-body { grid-template-columns: 168px 1fr; }
  .app-board { display: none; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { justify-self: start; padding-bottom: 0; }
  .meta { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .meta-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .band-grid { grid-template-columns: 1fr; gap: 18px; }
  .band-p { justify-self: start; }
  .band, .cta { padding-top: 96px; }
  .band .wrap > *:last-child { padding-bottom: 96px; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-rail { display: none; }
  .lrow { grid-template-columns: 1fr; gap: 10px; padding: 20px 2px; }
  .l-res { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap, .nav-in { padding-left: 20px; padding-right: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta-cell { padding-right: 12px; }
  .meta-cell + .meta-cell { padding-left: 16px; }
  .meta-cell:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .stage { padding: 18px 10px; border-radius: 20px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 24px 2px; }
  .float-chat { padding: 28px 18px 72px; }
  .fpill { max-width: 100%; }
  .foot-legal { flex-direction: column; gap: 8px; }
}

/* =============================================================================
   subpages — shared page shell + per-page components
============================================================================= */

/* ── page hero (subpage opener) ──────────────────────────────────────────── */
.page-hero { padding-top: 168px; }
.page-hero .band-head { margin-bottom: 0; }
.ph-h {
  font-size: clamp(44px, 5.2vw, 78px);
  font-weight: 430; letter-spacing: -0.03em; line-height: 1.02;
  text-wrap: balance;
}
.ph-p {
  font-size: 16.5px; line-height: 1.6; color: var(--muted);
  max-width: 460px; justify-self: end; padding-bottom: 4px;
}
.page-band { padding-top: 96px; }
.page-band .wrap > *:last-child { padding-bottom: 0; }
.page-end { padding-bottom: 128px; }

/* compact CTA row used at the bottom of subpages */
.cta-mini {
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
  padding-top: 40px; padding-bottom: 128px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-mini-h { font-size: clamp(26px, 3vw, 40px); font-weight: 430; letter-spacing: -0.025em; }
.cta-mini .cta-row { flex: none; }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.price-hero {
  position: relative; border-radius: 28px; overflow: hidden;
  background: #ece8e2; isolation: isolate;
  padding: clamp(48px, 7vw, 88px) 40px;
  text-align: center; margin-top: 64px;
}
.price-in { position: relative; z-index: 2; }
.price-k {
  font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 18px;
}
.price-n {
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 430; letter-spacing: -0.04em; line-height: 0.9;
  margin-bottom: 14px;
}
.price-sub { font-size: 16px; color: var(--mid); margin-bottom: 30px; }
.price-feats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 34px; padding: 0; list-style: none;
}
.price-feats li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--mid);
}
.price-feats svg { width: 13px; height: 13px; color: var(--pine); flex: none; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.tier {
  background: var(--card-gray); border-radius: 20px; padding: 28px 26px 30px;
  position: relative;
}
.tier-k { font-size: 16px; font-weight: 620; margin-bottom: 4px; }
.tier-n { font-size: 34px; font-weight: 430; letter-spacing: -0.03em; margin: 14px 0 2px; }
.tier-n small { font-size: 14px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.tier-t { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.tier-list { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tier-list li { font-size: 13.5px; color: var(--mid); padding: 4.5px 0; }
.tier-chip {
  position: absolute; top: 24px; right: 22px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line-soft);
  padding: 4px 10px; border-radius: 999px;
}
.tier.is-live .tier-chip { color: #1f6a52; border-color: rgba(42, 131, 105, 0.35); background: rgba(42, 131, 105, 0.07); }

/* FAQ rows (steps skeleton, q/a content) */
.faq { border-top: 1px solid var(--line-soft); margin-top: 56px; }
.faq-row {
  display: grid; grid-template-columns: minmax(220px, 1.05fr) 1.6fr;
  gap: 24px; padding: 28px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.faq-q { font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.faq-a b { color: var(--mid); font-weight: 600; }

/* ── security ────────────────────────────────────────────────────────────── */
.gate {
  display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: stretch; gap: 0;
  margin-top: 56px;
}
.gate-node {
  background: var(--card-gray); border-radius: 18px; padding: 22px 22px 24px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.gate-node.is-gate {
  background: var(--deep); color: #f2efe9;
  position: relative; overflow: hidden; isolation: isolate;
}
.gate-node.is-gate .gate-t { color: rgba(242, 239, 233, 0.75); }
.gate-k { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.gate-k svg { width: 15px; height: 15px; flex: none; }
.gate-t { font-size: 13px; line-height: 1.55; color: var(--muted); }
.gate-arrow {
  align-self: center; padding: 0 10px;
  color: var(--faint); font-size: 18px; font-weight: 500;
}
.gate-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ── forms (request access) ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-copy .ph-h { margin-bottom: 22px; }
.split-copy p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.next-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--line-soft); }
.next-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; line-height: 1.55; color: var(--mid);
}
.next-list li span { font-size: 13px; font-weight: 600; color: var(--faint); padding-top: 1px; }

.form-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 22px;
  box-shadow: 0 24px 56px -18px rgba(27, 25, 23, 0.14);
  padding: clamp(26px, 3.4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11.5px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(42, 131, 105, 0.14);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' fill='none' stroke='%23777169' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; }
.form-err  { margin-top: 14px; font-size: 13.5px; color: #a8503a; text-align: center; }
.form-done { text-align: center; padding: 48px 8px; }
.form-done svg { width: 40px; height: 40px; color: var(--pine); margin-bottom: 18px; }
.form-done-h { font-size: 24px; font-weight: 550; letter-spacing: -0.015em; margin-bottom: 10px; }
.form-done p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── docs grid ───────────────────────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.doc-card {
  background: var(--card-gray); border-radius: 18px; padding: 24px 24px 26px;
  display: block; transition: transform 0.45s cubic-bezier(.22,.61,.21,1), background-color 0.3s ease;
}
.doc-card:hover { transform: translateY(-3px); background: #ece9e5; }
.doc-k {
  font-size: 15px; font-weight: 620; letter-spacing: -0.008em;
  margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.doc-k svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.doc-t { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── changelog ───────────────────────────────────────────────────────────── */
.log { border-top: 1px solid var(--line-soft); margin-top: 56px; }
.log-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 24px; padding: 30px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.log-date { font-size: 13px; font-weight: 600; color: var(--faint); padding-top: 4px; }
.log-k { font-size: 18px; font-weight: 620; letter-spacing: -0.012em; margin-bottom: 7px; }
.log-t { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.log-tag {
  display: inline-block; font-size: 10.5px; font-weight: 650;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3.5px 9px; border-radius: 999px; margin-left: 10px;
  transform: translateY(-2px);
}
.log-tag.new { background: rgba(42, 131, 105, 0.1); color: #1f6a52; }
.log-tag.imp { background: #ece9e5; color: var(--muted); }

/* ── legal prose ─────────────────────────────────────────────────────────── */
.prose { max-width: 700px; margin-top: 56px; }
.prose h2 {
  font-size: 20px; font-weight: 620; letter-spacing: -0.012em;
  margin: 36px 0 12px;
}
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: var(--mid); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-size: 13px; color: var(--faint); margin-bottom: 8px; }

/* ── responsive (subpages) ───────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .page-hero { padding-top: 132px; }
  .split { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; gap: 8px; }
  .gate-arrow { transform: rotate(90deg); justify-self: center; padding: 2px 0; }
  .faq-row { grid-template-columns: 1fr; gap: 8px; }
  .log-row { grid-template-columns: 1fr; gap: 6px; }
  .cta-mini { padding-bottom: 96px; }
  .page-end { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr; }
  .price-feats { flex-direction: column; align-items: center; gap: 8px; }
}
