/* 1-z-2 landing — dark-first restyle, animated wordmark pipeline (option 3b).
   Source of truth: design_handoff_1z2_wordmark/ (README + 3b-reference.html).
   Nav + full-bleed header band (options 3a + 4b):
   design_handoff_1z2_site_nav/ (README + Site Header.dc.html). */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/spline-sans-mono.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
}

/* Dark is the base, not the override: the glow reads better dark. A light
   variant, if ever needed, inverts under prefers-color-scheme: light. */
:root {
  --bg: #0a0b12;
  --bg-deep: #06070c;
  --fg: #e5e7f2;
  --fg-mid: #b9bcd0;
  --fg-dim: #9a9db6;
  --fg-faint: #7d8098;
  --accent: oklch(.62 .16 285);
  --accent-bright: oklch(.76 .15 285);
  --tear: oklch(.72 .17 200);
  --conduit: rgba(160,150,255,.55);
  --line: rgba(229,231,242,.12);
  --line-strong: rgba(229,231,242,.18);
  --field: rgba(229,231,242,.04);
  --error: #f08b8b;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

/* The header band spans the viewport (4b); only its content sits in the
   1000px reading column. Body content keeps the column and its background,
   so the "black bars" remain below the header but not inside it. */
main { display: block; }

.shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
main > .shell {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 64px 0 84px;
}

/* Base link color for page prose. Later, more specific rules (footer, topnav,
   buttons-as-links) still override; this only catches links that used to fall
   through to the browser default blue. */
main a { color: var(--accent-bright); text-underline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header band: the wordmark is the product diagram ---------- */

/* Full-bleed: glow and rule span the viewport. The gradient is 60% wide
   (not 120%) because it is now centred on the viewport, not the column. */
header {
  background: var(--bg);
  background-image: radial-gradient(60% 140% at 50% 0%, rgba(120,110,255,.14), transparent 62%);
  border-bottom: 1px solid rgba(229,231,242,.1);
}
header .shell {
  position: relative;
  padding: 24px clamp(24px, 7vw, 76px) 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-copy {
  max-width: 760px;
  margin: 24px auto 2px;
  text-align: center;
}
.eyebrow,
.hero-copy .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent-bright);
}
.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 6.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-copy p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--fg-mid);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* inline-flex drops the whitespace text node before the arrow span */
  gap: 0.35em;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.hero-actions .hero-primary { background: var(--accent); color: #fff; }
.hero-actions .hero-secondary { border: 1px solid var(--line-strong); color: var(--fg); }
.hero-actions a:hover { filter: brightness(1.12); }

/* One mono uppercase line (3a). Items are named by destination; the hero
   owns the imperative copy. Nothing hides on phones — the row wraps to
   two lines instead (flex-wrap + the flex:1 spacer). */
.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 28px;
  margin-bottom: 10px;
  font: 12px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--fg-dim);
  text-decoration: none;
}
.topnav a:hover,
.topnav a:focus-visible { color: var(--fg); }
.topnav .brand {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--fg);
  margin-right: 12px;
}
.topnav .spacer { flex: 1; }
.topnav .dash { color: var(--accent-bright); }
.topnav [aria-current="page"] {
  color: var(--fg);
  border-bottom: 1px solid var(--accent-bright);
  padding-bottom: 2px;
}

.band { position: relative; height: clamp(104px, 16vw, 160px); margin-top: 16px; }

.conduit {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--conduit) 0 14px, transparent 14px 28px);
  animation: dashflow 1.1s linear infinite;
}

.chambers {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chamber {
  width: clamp(96px, 17vw, 170px);
  height: clamp(96px, 17vw, 170px);
  display: grid;
  place-items: center;
  background: var(--bg); /* opaque, so the conduit passes behind */
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 112px);
  line-height: 1;
  color: var(--fg);
  animation: flare 4.2s linear infinite;
}
/* 2 lights up the moment the round packet crosses its left border, then fades
   over the rest of the crossing. The packet's centre runs 50% → 98% of the
   band between 50% and 96% of the cycle; on desktop the block's left edge sits
   at ~80% of the band, so the packet's edge arrives at ~78% of the cycle. A
   negative delay of -d fires the 0% keyframe at (4.2s - d), so the delay is
   the remainder of the cycle. On phones the block is a bigger share of a
   narrower band, so it arrives earlier (see the 560px and 430px rules). */
.chamber.two {
  animation-name: flareTwo;
  animation-delay: calc(4.2s * -.22);
}

.chamber.z {
  position: relative;
  width: clamp(104px, 18.6vw, 186px);
  height: clamp(104px, 18.6vw, 186px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(120,110,255,.16), rgba(120,110,255,.04));
  border: 1px solid oklch(.62 .16 285 / .6);
  box-shadow: 0 0 60px oklch(.62 .16 285 / .22) inset;
  font-weight: 700;
  font-size: clamp(64px, 12vw, 124px);
  color: var(--accent-bright);
  animation: none;
}

.z-wrap {
  position: relative;
  display: block;
  animation: zJitter 4.2s steps(1,end) infinite;
  animation-delay: -2.1s;
}
.tear { position: absolute; inset: 0; }
.tear-top { color: var(--fg); animation: zTearTop 4.2s linear infinite; animation-delay: -2.1s; }
.tear-bot { color: var(--tear); animation: zTearBot 4.2s linear infinite; animation-delay: -2.1s; }

.pkt { position: absolute; top: 50%; }
.pkt-in {
  width: 18px; height: 18px;
  background: var(--fg);
  border-radius: 3px;
  box-shadow: 0 0 22px rgba(229,231,242,.8);
  animation: pktIn 4.2s linear infinite;
}
.pkt-out {
  width: 20px; height: 20px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 30px oklch(.76 .15 285 / .9);
  animation: pktOut 4.2s linear infinite;
}

.caps {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.caps .cap-io,
.caps .cap-z {
  width: clamp(96px, 17vw, 170px);
  text-align: center;
  color: var(--fg-dim);
  animation: breathe 4.2s ease-in-out infinite;
}
.caps .cap-z {
  width: clamp(104px, 18.6vw, 186px);
  color: var(--accent-bright);
  animation-delay: -2.1s;
}
.caps .cap-io[data-cap="to"] { animation-delay: -.15s; }

/* Dual layers stacked so pair swaps can dissolve without fighting breathe. */
.cap-io {
  display: grid;
  justify-items: center;
}
.cap-text {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .55s ease;
}
.cap-text.is-active { opacity: 1; }

.tagline {
  margin: 18px 0 0;
  padding-top: 8px;
  text-align: center;
  font-family: var(--mono);
  font-style: normal;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--fg-dim);
}

/* One master cycle: 4.2s, linear, infinite. Sync is achieved purely with
   negative animation-delay — do not change one duration without all of them.
   Keyframe blocks are copied from 3b-reference.html, not re-derived. */
@keyframes pktIn{0%{left:2%;opacity:0;transform:translate(-50%,-50%) scale(.9) rotate(0deg)}4%{opacity:1}45%{left:48%;opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0deg)}50%{left:50%;opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(90deg)}100%{left:50%;opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(90deg)}}
@keyframes pktOut{0%,50%{left:50%;opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(-90deg)}56%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(0deg)}62%{transform:translate(-50%,-50%) scale(1) rotate(0deg)}96%{left:98%;opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0deg)}100%{left:100%;opacity:0;transform:translate(-50%,-50%) scale(1) rotate(0deg)}}
@keyframes flare{0%{filter:brightness(1.7) drop-shadow(0 0 26px currentColor)}16%{filter:none}100%{filter:none}}
@keyframes flareTwo{0%{filter:brightness(1.7) drop-shadow(0 0 26px currentColor)}24%{filter:none}100%{filter:none}}
@keyframes zJitter{0%{transform:translateX(-4px)}3%{transform:translateX(5px)}6%{transform:none}100%{transform:none}}
@keyframes zTearTop{0%{clip-path:inset(0 0 52% 0);transform:translate(-11px,-5px);opacity:1}7%{clip-path:inset(0 0 52% 0);transform:none;opacity:1}9%{opacity:0}100%{opacity:0}}
@keyframes zTearBot{0%{clip-path:inset(48% 0 0 0);transform:translate(11px,5px);opacity:1}7%{clip-path:inset(48% 0 0 0);transform:none;opacity:1}9%{opacity:0}100%{opacity:0}}
@keyframes dashflow{to{background-position-x:28px}}
@keyframes breathe{0%,100%{opacity:.35}50%{opacity:.9}}

/* ---------- Lede ---------- */

.lede {
  padding: 0 clamp(24px, 7vw, 76px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
  color: var(--fg-mid);
  align-items: center;
}
.lede p { margin: 0; text-wrap: pretty; }
.lede h2 { margin: 10px 0 0; font-size: clamp(25px, 3.4vw, 34px); line-height: 1.2; text-wrap: balance; }
.lede .sec-label { text-align: left; }
.lede em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
}

/* ---------- Four steps ---------- */

.how > h2 {
  margin: 10px auto 24px;
  text-align: center;
  font-size: 24px;
  text-wrap: balance;
}

.how ol {
  margin: 0;
  padding: 0 clamp(24px, 7vw, 76px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.how li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-bullet {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid oklch(.62 .16 285 / .7);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 12px;
}
.how p { margin: 0; font-size: 15px; color: var(--fg-dim); text-wrap: pretty; }
.how strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Showcase: one concrete translation ---------- */

.sec-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--fg-faint);
}

.showcase { padding: 0 clamp(24px, 7vw, 76px); }
.showcase h2 {
  margin: 12px auto 8px;
  text-align: center;
  font-size: 24px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.showcase .sub {
  margin: 0 auto 26px;
  text-align: center;
  color: var(--fg-mid);
  max-width: 62ch;
  text-wrap: pretty;
}
.showcase .pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.app-window {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(229,231,242,.02);
  min-width: 0;
  overflow: hidden;
}
.app-window.received {
  border-color: oklch(.62 .16 285 / .45);
  background: linear-gradient(180deg, rgba(120,110,255,.1), rgba(120,110,255,.02));
}
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--fg-faint);
}
.app-window.received .app-bar { color: var(--accent-bright); }
.app-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.app-body { padding: 22px; }
.item-type { font-family: var(--mono); color: var(--fg-faint); font-size: 10px; letter-spacing: .14em; }
.app-body h3 { margin: 5px 0 16px; font-size: 21px; }
.app-body ul { list-style: none; margin: 0; padding: 0; }
.app-body li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-mid);
  font-size: 13.5px;
}
.app-body li strong { color: var(--fg); font-weight: 500; white-space: nowrap; }
.checks li span::before { content: "○"; margin-right: 8px; color: var(--accent-bright); }
.send-chip,
.arrival-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--line-strong);
}
.arrival-chip { color: var(--accent-bright); border-color: oklch(.62 .16 285 / .45); }
.handoff { width: 94px; text-align: center; color: var(--accent-bright); }
.handoff span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.handoff strong { display: block; margin: 5px 0; color: var(--fg-mid); font-size: 11px; line-height: 1.3; font-weight: 500; }
.handoff i { display: block; font-style: normal; font-size: 24px; }
.showcase .cap {
  margin: 18px auto 0;
  max-width: 62ch;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--fg-faint);
  text-wrap: pretty;
}

/* Morph showcase: the same thing shown in two shapes, with what changed in between. */
.morph .app-body h3 { margin-bottom: 4px; }
.morph .meta { margin: 0 0 14px; font-size: 12.5px; color: var(--fg-dim); }
.morph .field-label {
  margin: 14px 0 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.morph .stay-tag {
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--fg-faint);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 2px 7px;
}
.morph .stays { opacity: .5; }
.morph .method { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--fg-mid); }
.morph .method li { padding: 2px 0; }
.morph .aisle {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.morph .checks li.new {
  color: var(--fg);
  margin: 0 -10px;
  padding-inline: 10px;
  background: oklch(.62 .16 285 / .10);
  box-shadow: inset 2px 0 0 var(--accent-bright);
  border-radius: 6px;
}
.morph .checks li.new span::before { content: "\25CF"; margin-right: 8px; color: var(--accent-bright); }
.morph .checks li.done { text-decoration: line-through; color: var(--fg-faint); }
.morph .checks li.done span::before { content: "\2713"; margin-right: 8px; color: var(--fg-faint); }
.morph .handoff { width: 138px; }
.morph .handoff strong { display: none; }
.morph .changes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.morph .changes li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--fg-mid);
  text-align: left;
}
.morph .changes b {
  display: block;
  margin-bottom: 2px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.morph .changes li:last-child b { color: var(--fg-faint); }
.morph .changes li:last-child { color: var(--fg-faint); }

/* ---------- Where it helps ---------- */

.uses { padding: 0 clamp(24px, 7vw, 76px); }
.uses > h2 { margin: 10px auto 24px; text-align: center; font-size: 24px; text-wrap: balance; }
.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.use-grid article { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 22px 56px; }
.use-grid article > span {
  position: absolute; left: 20px; top: 21px; width: 24px; height: 24px;
  display: grid; place-items: center; border: 1px solid oklch(.62 .16 285 / .55);
  border-radius: 7px; color: var(--accent-bright); font-family: var(--mono); font-size: 12px;
}
.use-grid h3 { margin: 0 0 6px; font-size: 16px; }
.use-grid p { margin: 0; color: var(--fg-dim); font-size: 14px; text-wrap: pretty; }

/* ---------- Rebuild story ---------- */

.survives {
  margin: 0 clamp(24px, 7vw, 76px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(120,110,255,.1), rgba(229,231,242,.015));
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 34px;
  align-items: center;
}
.survives .sec-label { text-align: left; }
.survives h2 { margin: 9px 0 10px; font-size: 25px; line-height: 1.2; }
.survives p { margin: 0; color: var(--fg-dim); font-size: 14px; }
.rebuild-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.app-version { border: 1px solid var(--line-strong); border-radius: 12px; padding: 15px; background: var(--bg); }
.app-version.new { border-color: oklch(.62 .16 285 / .5); }
.app-version small, .app-version span { display: block; color: var(--fg-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.app-version strong { display: block; margin: 5px 0; font-size: 14px; }
.rebuild-arrow { text-align: center; color: var(--fg-faint); }
.rebuild-arrow span { display: block; font-family: var(--mono); font-size: 9px; }
.rebuild-arrow b { color: var(--accent-bright); font-size: 20px; }
.stable-line { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px solid oklch(.62 .16 285 / .45); display: flex; justify-content: space-between; gap: 12px; color: var(--accent-bright); }
.stable-line span { color: var(--fg-dim); font-size: 12px; }

/* ---------- Straight answers ---------- */

.faq { padding: 0 clamp(24px, 7vw, 76px); }
.faq .grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px 40px;
}
.faq .qa { border-top: 1px solid var(--line); padding-top: 16px; }
.faq h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  text-wrap: pretty;
}
.faq .qa p { margin: 0; font-size: 15px; color: var(--fg-dim); text-wrap: pretty; }

/* ---------- Claim card ---------- */

section#claim {
  margin: 0 auto;
  max-width: 560px;
  width: calc(100% - clamp(48px, 14vw, 152px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px clamp(22px, 5vw, 38px);
  background: rgba(229,231,242,.02);
}

h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.note { margin: 0 0 20px; color: var(--fg-dim); font-size: 15px; }

/* The card and its submit button are centered; the heading and intro follow,
   so the card doesn't mix alignments. Form labels stay left with the fields. */
#claim h2,
#claim > .note { text-align: center; }

form { display: flex; flex-direction: column; }

label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}

input {
  width: 100%;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg);
  background: var(--field);
  border: 1px solid rgba(229,231,242,.16);
  border-radius: 10px;
  padding: 13px 14px;
}
input::placeholder { color: var(--fg-faint); }

.handle-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.handle-field .at {
  position: absolute;
  left: 14px;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 17px;
  pointer-events: none;
}
.handle-field input { padding-left: 32px; }

.hint { margin: 0 0 20px; color: var(--fg-faint); font-size: 13px; }

#invite { margin-bottom: 0; }

button {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 22px;
  cursor: pointer;
}
#submit {
  margin: 36px 0 0;
  font-size: 17px;
  padding: 18px 44px;
  border-radius: 12px;
}
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .55; cursor: default; }
button.secondary {
  background: transparent;
  color: var(--fg);
  border-color: rgba(229,231,242,.16);
}

input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-color: transparent;
}

#status {
  margin-top: 0;
  font-size: 15px;
  color: var(--fg-dim);
}
#status:empty { display: none; }
#status:not(:empty) { margin-top: 16px; }
#status.error { color: var(--error); }

.claim-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--fg-faint);
  text-wrap: pretty;
}

/* ---------- Waitlist (the door for people without an invite) ---------- */

#waitlist {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
}
#waitlist h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
#waitlist .note { margin-bottom: 16px; font-size: 14.5px; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-row input { flex: 1 1 200px; width: auto; font-size: 15px; }
.waitlist-row button { align-self: center; margin-inline: auto; padding: 12px 18px; }
#recovery-form { margin-bottom: 16px; }
.waitlist-row input:disabled { opacity: .55; }
#waitlist-status, #recovery-status { font-size: 14.5px; color: var(--fg-dim); }
#waitlist-status:empty, #recovery-status:empty { display: none; }
#waitlist-status:not(:empty), #recovery-status:not(:empty) { margin-top: 14px; }
#waitlist-status.error, #recovery-status.error { color: var(--error); }
#recovery-status.done { color: #6fce8f; }

/* ---------- Success state ----------
   Not part of the 3b redesign: existing styles carried into the new token
   set (dark surface, violet accent). Needs a design pass before launch. */

#success h3 { margin: 24px 0 12px; font-size: 20px; font-weight: 600; }
#success a { color: var(--accent-bright); text-underline-offset: 3px; }
#success p { margin: 0 0 16px; font-size: 15px; color: var(--fg-mid); }
#success .note { margin: 0; }

h4 { margin: 32px 0 8px; font-size: 16px; font-weight: 600; color: var(--fg-dim); }

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.warn {
  background: #241f12;
  border: 1px solid #4a3f21;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}

pre {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}
code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}
.tok { color: var(--accent-bright); font-weight: 600; }

/* ---------- Footer ---------- */

footer {
  margin: 0 clamp(24px, 7vw, 76px);
  border-top: 1px solid rgba(229,231,242,.1);
  padding-top: 22px;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 12.5px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
footer a { color: var(--fg-dim); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .band *, .caps * { animation: none !important; }
  .pkt { display: none; }
  .tear { opacity: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  /* Nav wraps to two lines: brand … Dashboard → on the first, the four
     destination links spread on the second (the 3a phone reference). The
     spacer becomes a full-width break between the two rows. */
  .topnav { justify-content: space-between; }
  .topnav .spacer { order: 1; flex-basis: 100%; }
  .topnav a:not(.brand):not(.dash) { order: 2; }
  .caps { display: none; }
  /* Narrow band: 2's left edge slides from ~81% of it at 560px to ~70% at
     375px, so the packet arrives earlier the narrower the phone. */
  .chamber.two { animation-delay: calc(4.2s * -.27); }
  .conduit {
    height: 1px;
    background: rgba(160,150,255,.35);
    animation: none;
  }
  .hero-copy { margin-top: 12px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .showcase .pair { grid-template-columns: 1fr; }
  .handoff { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .handoff::before, .handoff::after { content: ""; height: 1px; background: var(--line-strong); }
  .handoff strong { display: none; }
  .handoff i { transform: rotate(90deg); }
  .use-grid { grid-template-columns: 1fr; }
  .survives { grid-template-columns: 1fr; padding: 24px 20px; }
  .rebuild-diagram { grid-template-columns: 1fr; }
  .rebuild-arrow b { display: block; transform: rotate(90deg); }
  .stable-line { grid-column: 1; flex-direction: column; gap: 2px; }
}

@media (max-width: 560px) {
  .morph .handoff { display: block; width: 100%; text-align: center; }
  .morph .handoff::before, .morph .handoff::after { display: none; }
  .morph .handoff span, .morph .handoff i { display: inline-block; vertical-align: middle; margin: 0 6px; }
  .morph .changes { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
}

/* Narrower still: 2's edge is ~70% of the band. Kept after the 560px rule so
   it wins at the same specificity. */
@media (max-width: 430px) {
  .chamber.two { animation-delay: calc(4.2s * -.33); }
}
