/* Landing kit: shared styles for every niche landing page.
   Brand values come from the page's :root (accent, display face). Everything else lives here.
   Rhythm: night hero and story, stone paper bands, one night band near the end, night footer. */

:root {
  --night: #0e0e0d;
  --night-2: #161614;
  --night-3: #1e1e1b;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-line-2: rgba(255, 255, 255, 0.16);
  --night-ink: #f3f1eb;
  --night-muted: #a5a299;
  --night-faint: #7c7a73;

  --paper: #f1efe9;
  --paper-2: #e8e5dd;
  --surface: #faf9f5;
  --ink: #121211;
  --ink-2: #33322e;
  --muted: #5f5d57;
  --line: #d9d5cb;
  --line-2: #c9c4b8;

  --accent: #d8c9a6;          /* overridden per brand */
  --accent-deep: #6b5a33;     /* accent used on paper, 4.5:1+ */
  --accent-ink: #121211;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(96px, 12vw, 168px);
  --r-card: 18px;
  --r-cap: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--night-ink);
  font: 400 16.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1, .h1 { font-size: clamp(46px, 6.2vw, 92px); line-height: 1.0; }
h2, .h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; }
h3, .h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.it { font-style: italic; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--night-muted); max-width: 46ch; margin: 0; }
.on-paper .lede, .band--paper .lede, .band--surface .lede { color: var(--muted); }
p { margin: 0; }
.label {
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--night-faint);
}
.band--paper .label, .band--surface .label { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 8px 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--body); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .chip {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background .35s var(--ease);
}
.btn .chip svg { width: 14px; height: 14px; }
.btn:hover .chip { transform: rotate(45deg); }
.btn--light { background: var(--night-ink); color: var(--ink); }
.btn--light .chip { background: var(--ink); color: var(--night-ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: var(--night-ink); }
.btn--dark .chip { background: var(--accent); color: var(--accent-ink); }
.btn--dark:hover { background: #000; }
.btn--ghost { padding: 0 20px; border-color: var(--night-line-2); color: var(--night-ink); }
.btn--ghost:hover { border-color: var(--night-ink); }
.band--paper .btn--ghost, .band--surface .btn--ghost { border-color: var(--line-2); color: var(--ink); }
.band--paper .btn--ghost:hover, .band--surface .btn--ghost:hover { border-color: var(--ink); }
.btn--sm { --h: 40px; font-size: 14px; padding-left: 16px; }
.btn--sm .chip { width: 26px; height: 26px; border-radius: 8px; }
.textlink { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .3s; }
.textlink:hover { opacity: 0.7; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px; display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--night-muted); justify-self: center; }
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: var(--night-ink); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--body); letter-spacing: -0.01em; }
.nav__brand svg { width: 22px; height: 22px; }
.nav__end { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 14px; }
.nav__end .signin { color: var(--night-muted); transition: color .3s; }
.nav__end .signin:hover { color: var(--night-ink); }
.nav.is-scrolled { background: rgba(14, 14, 13, 0.72); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--night-line); }
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled { background: rgba(241, 239, 233, 0.8); border-bottom-color: var(--line); }
.nav.is-light .nav__links, .nav.is-light .signin { color: var(--muted); }
.nav.is-light .nav__links a:hover, .nav.is-light .signin:hover { color: var(--ink); }
.nav.is-light .btn--light { background: var(--ink); color: var(--night-ink); }
.nav.is-light .btn--light .chip { background: var(--accent); color: var(--accent-ink); }
.nav__menu { display: none; }

/* ---------- bands ---------- */
.band { position: relative; padding: var(--band) 0; }
.band--night { background: var(--night); color: var(--night-ink); }
.band--night-2 { background: var(--night-2); color: var(--night-ink); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--surface { background: var(--surface); color: var(--ink); }
.band__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.band__head .label { margin-bottom: 20px; display: block; }
.band__head--stack { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

/* ---------- hero + story (sticky scene) ---------- */
.stage { position: relative; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,13,0.9) 0%, rgba(14,14,13,0.55) 30%, rgba(14,14,13,0) 55%),
    radial-gradient(120% 60% at 30% 112%, rgba(14,14,13,0.95) 20%, rgba(14,14,13,0) 60%),
    linear-gradient(180deg, rgba(14,14,13,0.7) 0%, rgba(14,14,13,0) 20%);
}
.stage__flow { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 7vh, 88px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero h1 { max-width: 22ch; }
.hero h1.h1--lines { max-width: none; }
.hero__sub { display: grid; gap: 26px; margin-top: 26px; }
.hero__sub p { color: var(--night-muted); font-size: 17.5px; line-height: 1.55; max-width: 44ch; }
.hero__eyebrow { margin-bottom: 22px; display: block; color: var(--night-muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--night-faint); }
.scrollcue i { width: 1px; height: 26px; background: linear-gradient(var(--night-faint), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ticker card */
.ticker { width: min(360px, 32vw); padding: 16px 18px 18px; }
.ticker__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ticker__live { display: inline-flex; align-items: center; gap: 8px; }
.ticker__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #79d3a2; box-shadow: 0 0 0 0 rgba(121, 211, 162, 0.5); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(121, 211, 162, 0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(121, 211, 162, 0); } }
.ticker__row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; min-height: 58px; }
.ticker__row time { font: 500 11.5px/1.6 var(--mono); color: var(--night-faint); white-space: nowrap; }
.ticker__row b { font-weight: 500; color: var(--night-ink); }
.ticker__row span { color: var(--night-muted); }
.ticker__body { transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.ticker__body.is-out { opacity: 0; transform: translateY(-6px); filter: blur(4px); }
.ticker__foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--night-line); font: 11px/1.4 var(--mono); color: var(--night-faint); letter-spacing: 0.02em; }

/* glass, used only over the scene */
.glass {
  background: rgba(24, 24, 22, 0.66);
  border: 1px solid var(--night-line);
  border-radius: var(--r-card);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

/* story steps */
.story { position: relative; padding-bottom: 10vh; }
.story__step { min-height: 78vh; display: flex; align-items: center; }
.story__card { width: min(420px, 100%); padding: 22px 22px 20px; }
/* only with motion: the cards around the active one rest dimmed */
.js .story__card { opacity: 0.38; transform: translateY(14px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .story__step.is-active .story__card { opacity: 1; transform: none; }
.story__num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.story__card h3 { font-size: 27px; margin-bottom: 8px; }
.story__card > p { color: var(--night-muted); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.story__rail { position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 10px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.story__rail.is-on { opacity: 1; }
.story__rail span { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-faint); transition: color .4s var(--ease); }
.story__rail span::before { content: ""; width: 10px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.story__rail span.is-on { color: var(--night-ink); }
.story__rail span.is-on::before { width: 22px; }
.story__steps { padding-left: clamp(0px, 9vw, 150px); }

/* record rows inside cards (real data from the product) */
.rec { border-top: 1px solid var(--night-line); }
.rec__row { display: grid; grid-template-columns: minmax(min-content, max-content) minmax(min-content, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--night-line); font-size: 13.5px; }
.rec__row .k { font: 500 11.5px/1.35 var(--mono); color: var(--night-muted); letter-spacing: .04em; min-width: 0; }
.rec__row .v { color: var(--night-ink); }
.rec--sched .rec__row { grid-template-columns: 40px minmax(0, 1fr) 11.5rem; }
.rec--sched .rec__row > :last-child { justify-self: end; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--night-line-2); color: var(--night-muted); }
.tag--red { color: #f39a86; border-color: rgba(243, 154, 134, 0.35); }
.tag--amber { color: #ecc07a; border-color: rgba(236, 192, 122, 0.35); }
.tag--green { color: #8ed8b0; border-color: rgba(142, 216, 176, 0.35); }
.tag--blue { color: #9dc2ee; border-color: rgba(157, 194, 238, 0.35); }
.bubble { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; margin-bottom: 8px; max-width: 92%; }
.bubble--in { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line); }
.bubble--out { background: rgba(255, 255, 255, 0.92); color: var(--ink); margin-left: auto; }
.bubble small { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; }
.source { margin-top: 10px; font: 11px/1.5 var(--mono); color: var(--night-faint); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__n { font: 400 clamp(52px, 5.6vw, 84px)/0.95 var(--display); letter-spacing: -0.02em; display: block; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.stat__t { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.stat__s { margin-top: 14px; font: 11px/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; }

/* ---------- modules with real captures ---------- */
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.band--surface .mod { background: var(--paper); }
.mod__cap { aspect-ratio: 16 / 10; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.mod__cap img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.mod:hover .mod__cap img { transform: scale(1.02); }
.mod__body { padding: 24px 26px 26px; display: grid; gap: 10px; }
.mod__body h3 { font-size: 26px; }
.mod__body p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.mod__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mod__list span { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 8px; }

/* ---------- live agent console ---------- */
.console { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.console__box { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; overflow: hidden; }
.console__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); }
.console__log { height: 380px; overflow-y: auto; padding: 18px; scroll-behavior: auto; }
.console__form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--night-line); }
.console__form input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--night-line-2); background: var(--night); color: var(--night-ink); padding: 0 14px; font: 15px var(--body); }
.console__form input::placeholder { color: var(--night-faint); }
.console__form input:focus { outline: none; border-color: var(--night-ink); }
.console__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.console__chips button { cursor: pointer; background: transparent; border: 1px solid var(--night-line-2); border-radius: 999px; padding: 9px 14px; font-size: 13.5px; color: var(--night-muted); transition: color .3s, border-color .3s; min-height: 40px; }
.console__chips button:hover { color: var(--night-ink); border-color: var(--night-ink); }
.console__confirm { display: flex; gap: 8px; margin: -4px 0 14px; }
.console__confirm button { cursor: pointer; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--night-line-2); background: transparent; color: var(--night-ink); font-size: 14px; transition: border-color .3s, background .3s; }
.console__confirm button:first-child { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.console__confirm button:hover { border-color: var(--night-ink); }
@media (max-width: 640px) { .console__confirm button { min-height: 44px; } }
.console__empty { color: var(--night-faint); font-size: 14px; }
.console__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.typing { display: inline-flex; gap: 4px; padding: 12px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--night-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.role { padding: 28px 24px 8px 0; }
.role + .role { padding-left: 24px; border-left: 1px solid var(--line); }
.role svg { width: 28px; height: 28px; margin-bottom: 26px; color: var(--ink); }
.role h3 { font-size: 24px; margin-bottom: 10px; }
.role p { color: var(--muted); font-size: 15px; }

/* ---------- control (promises) ---------- */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.promise { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid var(--night-line); }
.promise svg { width: 24px; height: 24px; color: var(--accent); margin-top: 4px; }
.promise h3 { font-size: 23px; margin-bottom: 6px; }
.promise p { color: var(--night-muted); font-size: 15px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.plan--pick { background: var(--ink); color: var(--night-ink); border-color: var(--ink); }
.plan__name { display: flex; justify-content: space-between; align-items: center; }
.plan__price { font: 400 58px/1 var(--display); letter-spacing: -0.02em; }
.plan__price small { font: 400 15px/1 var(--body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan--pick .plan__price small, .plan--pick .plan__note, .plan--pick li { color: var(--night-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.plan li::before { content: ""; width: 8px; height: 1px; background: currentColor; margin-top: 12px; opacity: .6; }
.plan__note { font-size: 13.5px; color: var(--muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plans__foot { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font: 400 22px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 26px; color: var(--muted); font-size: 16px; max-width: 64ch; }
.faq details[open] .ans { animation: ansin .6s var(--ease); }
@keyframes ansin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--night-muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--night-line-2); background: var(--night-2); color: var(--night-ink); padding: 0 14px; font: 15px var(--body); }
.form textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--night-ink); }
.form .err { color: #f39a86; font-size: 13px; min-height: 18px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__ok { display: none; padding: 26px; border: 1px solid var(--night-line); border-radius: 16px; }
.form.is-done { display: none; }
.form.is-done + .form__ok { display: block; }

/* ---------- final call + footer ---------- */
.cta { position: relative; overflow: clip; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; position: relative; z-index: 2; }
.cta { padding-bottom: 0; }
.cta__horizon { position: relative; height: clamp(240px, 30vw, 420px); margin-top: clamp(48px, 6vw, 88px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  pointer-events: none; }
.cta__horizon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot { background: var(--night); color: var(--night-muted); padding: 72px 0 40px; border-top: 1px solid var(--night-line); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--night-faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--night-ink); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--body); color: var(--night-ink); margin-bottom: 16px; }
.foot__brand svg { width: 24px; height: 24px; }
.foot__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--night-faint); }

/* ---------- marquee ---------- */
.marquee { overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marq 60s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font: 400 26px/1 var(--display); color: var(--night-muted); white-space: nowrap; }
.marquee__item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--night-faint); margin-left: 36px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- motion system (fails open) ---------- */
.js [data-rise] { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-rise][data-in] { opacity: 1; transform: none; filter: none; }
.js .split .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + var(--d, 0ms)); }
.js .split[data-in] .w > span { transform: none; }
/* the hero is on screen at first paint: its words arrive quickly and its buttons never wait */
.js .hero .split .w > span { transition-duration: .7s; transition-delay: calc(var(--i, 0) * 32ms); }
.js .hero [data-rise] { transition-duration: .55s, .65s, .55s; }
.js .hero__actions { opacity: 1; transform: none; filter: none; }
.split .glint { background: linear-gradient(100deg, currentColor 0 42%, var(--accent) 50%, currentColor 58% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.js .split[data-in] .glint { animation: glint 2.2s var(--ease) .6s both; -webkit-text-fill-color: transparent; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.js [data-draw] { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-draw][data-in] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js .split .w > span, .js [data-draw] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .marquee__track, .scrollcue i, .ticker__live::before { animation: none !important; }
  .js .split[data-in] .glint { animation: none; -webkit-text-fill-color: currentColor; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav .wrap { grid-template-columns: auto 1fr; }
  .nav__brand { justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { padding-left: 0; border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__steps { padding-left: 0; }
  .story__rail { display: none; }
}
@media (max-width: 820px) {
  /* on a phone the copy sits over the drawing: a soft night scrim keeps it readable */
  .hero__inner > div:first-child { position: relative; isolation: isolate; }
  .hero__inner > div:first-child::before { content: ''; position: absolute; inset: -40px -16px -24px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--night) 0%, transparent) 0%, color-mix(in srgb, var(--night) 90%, transparent) 18%, color-mix(in srgb, var(--night) 94%, transparent) 100%); }
  .band__head, .console, .faq, .cta__grid, .promises { grid-template-columns: minmax(0, 1fr); }
  .band__head { gap: 20px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .ticker { width: 100%; }
  .mods { grid-template-columns: minmax(0, 1fr); }
  .faq { gap: 24px; }
}
@media (max-width: 640px) {
  :root { --band: 88px; }
  body { font-size: 16px; }
  .nav { height: 62px; }
  .nav__end .signin { display: none; }
  .stats, .roles, .plans, .plans--4 { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 24px 0 8px; border-right: 0; border-top: 1px solid var(--line); }
  .stats { border-top: 0; }
  .role, .role + .role { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .roles { border-top: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .story__step { min-height: auto; padding: 14vh 0; }
  .console__log { height: 340px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 56px); }
  /* touch: every control at least 44px tall */
  .btn--sm { --h: 44px; }
  .console__chips button { min-height: 44px; }
  .nav__brand, .foot__brand { min-height: 44px; }
}

@media print {
  .nav, .stage__sticky, .scrollcue, .story__rail { display: none !important; }
  body { background: #fff; color: #000; }
}

/* screenshot zoom */
.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 7, .86); display: grid; place-items: center; padding: 56px 20px 20px; cursor: zoom-out; backdrop-filter: blur(6px); }
.zoom img { max-width: min(1600px, 100%); max-height: calc(100vh - 80px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.zoom__close { position: absolute; top: 14px; right: 16px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 500 14px/1 var(--body); cursor: pointer; }
