/* Dahdio — dahdio.com
   One stylesheet for every page. No framework.
   Palette from the icon: deep green, amber (the dit), cream (the dah). */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c1f17;
  --bg-deep: #081711;
  --surface: #112a1f;
  --surface-2: #163426;
  --brand: #1e4d38;
  --line: rgba(244, 235, 208, 0.09);
  --line-2: rgba(244, 235, 208, 0.16);
  --cream: #f4ebd0;
  --text: #f4ebd0;
  --muted: #a9b19a;
  --faint: #8f9a84;
  --amber: #f2a93b;
  --amber-hi: #ffc46b;
  --amber-glow: rgba(242, 169, 59, 0.22);
  --ok: #7fbf95;

  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 48px);
  --wrap: 1240px;
  --radius: 18px;
  --fast: 140ms;
  --med: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 160ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--amber); color: var(--bg-deep); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 760px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--bg-deep); padding: 10px 14px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 12px; }

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

/* ---------- Mono labels & Morse ornaments ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 22px;
}
.eyebrow b { color: var(--amber); font-weight: 500; }

.morse { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.morse i {
  display: block; height: 4px; width: 4px; border-radius: 4px;
  background: var(--amber);
}
.morse i.d { width: 13px; background: var(--cream); opacity: 0.85; }
.morse i.g { width: 5px; background: none; }
.morse.lg i { height: 6px; width: 6px; border-radius: 6px; }
.morse.lg i.d { width: 19px; }
.morse.lg i.g { width: 9px; }

/* ---------- Buttons & links ---------- */

.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--display); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
              box-shadow var(--med) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--amber); color: #13120c; }
.btn-primary:hover { background: var(--amber-hi); box-shadow: 0 10px 30px -12px rgba(242, 169, 59, 0.7); }
.btn-ghost { border-color: var(--line-2); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: rgba(244, 235, 208, 0.42); background: rgba(244, 235, 208, 0.04); }
.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* The not-yet-live store button: plainly a status, not a link. */
.btn-soon {
  border-color: var(--line-2); color: var(--muted); background: rgba(244, 235, 208, 0.03);
  cursor: default; gap: 12px;
}
.btn-soon:active { transform: none; }
.btn-soon .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(242, 169, 59, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-soon .pulse { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(242, 169, 59, 0); }
}

/* Store state: <html data-play="soon|live">. Flip one attribute per page. */
[data-play="soon"] .when-live { display: none !important; }
[data-play="live"] .when-soon { display: none !important; }
/* Pricing state: <html data-pricing="early|paid">. */
[data-pricing="early"] .when-paid { display: none !important; }
[data-pricing="paid"] .when-early { display: none !important; }

.link {
  color: var(--cream); text-decoration: none; font-weight: 600;
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1.5px no-repeat,
              linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--med) var(--ease), color var(--fast) var(--ease);
}
.link:hover { background-size: 100% 1.5px, 100% 1.5px; }
.prose a:not(.btn) {
  color: var(--cream); text-decoration-line: underline; text-decoration-color: rgba(242, 169, 59, 0.55);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.prose a:not(.btn):hover { text-decoration-color: var(--amber); color: #fff; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 31, 23, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease), background-color var(--med) var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(10, 27, 20, 0.92); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 1.3rem/1 var(--display); letter-spacing: -0.03em; color: var(--cream);
  margin-right: auto; border-radius: 10px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(244, 235, 208, 0.08);
  transition: transform var(--med) var(--ease);
}
.brand-mark img { width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.97rem;
  border-radius: 999px;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav a:hover { color: var(--cream); background: rgba(244, 235, 208, 0.05); }
/* dit-dah under the current page */
.nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 4px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 2px 2px, var(--amber) 2px, transparent 2.5px) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--cream), var(--cream)) 8px 0 / 14px 4px no-repeat;
  border-radius: 4px;
}
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; margin-left: 8px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #13120c; background-color: var(--amber); }
.nav .btn-primary:hover { background-color: var(--amber-hi); }
.nav .hide-sm { display: inline-flex; }
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
  .nav .hide-xs-nav { display: none; }
  .nav a { padding: 0 9px; }
  .site-head .wrap { gap: 6px; }
}
@media (max-width: 359px) {
  .brand span { display: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(24px, 3.6vw, 44px) 0 0; display: flex; flex-direction: column; }
.hero h1 {
  font-size: clamp(2.6rem, 0.9rem + 6vw, 6.2rem);
  line-height: 0.92; letter-spacing: -0.045em; font-weight: 750;
}
.hero h1 .line, .hero h1 .soft { display: inline-block; }
.hero h1 .soft { color: var(--amber); }
.hero-sub { display: grid; gap: 8px 64px; margin-top: clamp(20px, 2.6vw, 34px); }
@media (min-width: 980px) {
  .hero-sub { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .hero-sub .cta-row { margin-top: 4px; }
}
.hero .lede { font-size: clamp(1.07rem, 0.98rem + 0.35vw, 1.22rem); color: var(--muted); max-width: 34em; margin: 0; }
.hero .lede strong { color: var(--cream); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.platforms { font: 400 0.72rem/1.7 var(--mono); color: var(--faint); letter-spacing: 0.02em; margin: 0; }
.platforms b { color: var(--cream); font-weight: 500; }
/* phones: the band straight after the headline, so the signature is in the first screen */
@media (max-width: 979px) {
  .hero .hero-title { order: 1; }
  .hero .band { order: 2; }
  .hero .hero-cap { order: 3; }
  .hero .hero-sub { order: 4; margin-top: 28px; }
}
.hide-xs { display: inline; }
@media (max-width: 480px) { .hide-xs { display: none; } }

/* The band */
.band {
  position: relative; margin-top: clamp(24px, 3.4vw, 44px);
  height: clamp(280px, 24vw, 350px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 62% 50%, rgba(30, 77, 56, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(8, 23, 17, 0.0), rgba(8, 23, 17, 0.55));
  overflow: hidden;
}
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-ui {
  position: absolute; left: 0; right: 0; top: 12px;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.band-ui .wrap { display: flex; justify-content: space-between; align-items: center; }
.band-tag { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.band-tag b { color: var(--amber); font-weight: 500; }
.band-toggle {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 23, 17, 0.6);
  color: var(--muted); font: 500 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.band-toggle:hover { color: var(--cream); border-color: rgba(244, 235, 208, 0.4); }
.band-toggle .ico { width: 8px; height: 9px; position: relative; }
.band-toggle .ico::before, .band-toggle .ico::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 9px; background: currentColor; border-radius: 1px;
}
.band-toggle .ico::before { left: 0; }
.band-toggle .ico::after { right: 0; }
.band-toggle[aria-pressed="true"] .ico::before {
  width: 0; height: 0; background: none; border-radius: 0;
  border-left: 8px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.band-toggle[aria-pressed="true"] .ico::after { display: none; }
.no-js .band-toggle, .band-toggle[hidden] { display: none; }

.band-caption {
  /* legend for the band; the canvas labels carry it on phones */
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  padding: 14px 0 0; font: 400 0.7rem/1.6 var(--mono); color: var(--faint); letter-spacing: 0.02em;
}
.band-caption .key { display: inline-flex; align-items: center; gap: 8px; }
.band-caption .sw { width: 18px; height: 4px; border-radius: 4px; background: var(--amber); display: inline-block; }
.band-caption .sw.c { background: var(--cream); opacity: 0.6; }
.band-caption .sw.n { background: repeating-linear-gradient(90deg, rgba(244,235,208,.45) 0 2px, transparent 2px 5px); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8.5vw, 116px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.7rem); letter-spacing: -0.035em; line-height: 0.98; font-weight: 720;
}
.section h2 em { font-style: normal; color: var(--amber); }
.section .intro { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); max-width: 36em; margin-top: 20px; }

/* Direct-audio statement */
.direct { background: var(--bg-deep); }
.direct-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .direct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; } }
.chain { width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; padding: 0; list-style: none; }
.chips li {
  font: 500 0.74rem/1 var(--mono); color: var(--cream); letter-spacing: 0.02em;
  padding: 10px 13px; border-radius: 999px; border: 1px solid var(--line-2);
}
.chips li.rec { border-color: rgba(242, 169, 59, 0.55); color: var(--amber); }
.fallback-note {
  font-size: 0.95rem; color: var(--muted); border-left: 2px solid var(--line-2);
  padding: 2px 0 2px 16px; margin-top: 8px; max-width: 34em;
}

/* Feature chapters */
.chapter {
  display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr);
  padding: clamp(48px, 6.5vw, 92px) 0;
}
.chapter + .chapter { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .chapter.flip .chapter-media { order: -1; }
}
.chapter h3 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1; font-weight: 700; margin-bottom: 20px; }
.chapter p { color: var(--muted); max-width: 32em; }
.chapter p strong { color: var(--cream); font-weight: 600; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 32em; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--cream); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 4px; border-radius: 4px;
  background:
    radial-gradient(circle at 2px 2px, var(--amber) 2px, transparent 2.5px) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--cream), var(--cream)) 7px 0 / 9px 4px no-repeat;
  opacity: 0.9;
}
.chapter-media { position: relative; display: flex; justify-content: center; }

/* Phone frame around the app screenshots */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 9px; background: #050d09;
  box-shadow:
    0 0 0 1px rgba(244, 235, 208, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -30px rgba(242, 169, 59, 0.18);
  transition: transform 420ms var(--ease);
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; object-position: top; display: block; }
.phone::after {
  content: ""; position: absolute; inset: 9px; border-radius: 30px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.phone.sm { width: min(250px, 60vw); }
.phone-pair { display: flex; align-items: flex-end; justify-content: center; max-width: 100%; }
@media (max-width: 700px) {
  .phone-pair .phone.front { width: 62vw; margin-left: -20vw; }
  .phone-pair .phone.back { width: 44vw !important; transform: translate(4vw, -28px) rotate(4deg) !important; }
}
.phone-pair .phone.back { transform: translate(28px, -40px) rotate(4deg); width: min(250px, 58vw); opacity: 0.9; z-index: 0; }
.phone-pair .phone.front { z-index: 1; margin-left: -48px; }
@media (hover: hover) {
  .chapter:hover .phone-pair .phone.back { transform: translate(38px, -52px) rotate(6deg); }
}

/* Floating annotation chips over media */
.note {
  position: absolute; z-index: 3;
  font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.02em;
  background: #0a1a13; color: var(--cream);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.note b { color: var(--amber); font-weight: 500; }
.note::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.18);
}
.note.l::before { right: -22px; top: 50%; transform: translateY(-50%); }
.note.r::before { left: -22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .note { display: none; } }

/* Vote card */
.card {
  background: linear-gradient(180deg, var(--surface), #0f261c);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.vote { width: min(100%, 520px); padding: 22px; font-family: var(--mono); }
.vote-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.vote-head b { color: var(--amber); font-weight: 500; }
.vote-row {
  display: grid; grid-template-columns: 7.2em 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px dashed var(--line);
  font-size: clamp(0.74rem, 0.7rem + 0.3vw, 0.9rem);
}
.vote-row .who { color: var(--faint); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.vote-row .txt { color: var(--cream); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; }
.vote-row .txt .x { color: var(--amber); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.vote-row .v { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.vote-row .v.ok { color: var(--ok); }
.vote-result {
  display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; align-items: center;
  margin-top: 6px; padding: 16px 14px; border-radius: 12px;
  background: rgba(242, 169, 59, 0.08); border: 1px solid rgba(242, 169, 59, 0.35);
}
.vote-result .who { color: var(--amber); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.vote-result .txt { font-size: clamp(0.9rem, 0.82rem + 0.4vw, 1.1rem); color: var(--cream); letter-spacing: 0.04em; }
.js .vote [data-step] { opacity: 0; transform: translateY(6px); }
.js .vote.on [data-step] { opacity: 1; transform: none; transition: opacity var(--med) var(--ease), transform var(--med) var(--ease); }
.js .vote.on [data-step="1"] { transition-delay: 60ms; }
.js .vote.on [data-step="2"] { transition-delay: 200ms; }
.js .vote.on [data-step="3"] { transition-delay: 340ms; }
.js .vote.on [data-step="4"] { transition-delay: 620ms; }

/* Bento of small truths */
.bento { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bento .card { padding: 24px 24px 26px; display: flex; flex-direction: column; }
.bento .vis { height: 104px; margin-bottom: 22px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px dashed var(--line); padding-bottom: 18px; box-sizing: content-box; }
.bento h3 { font-size: 1.28rem; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 650; }
.bento p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.demo { font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.03em; color: var(--cream); line-height: 1.95; margin: 0; }
.demo .dim { opacity: 0.45; }
.demo .ps { color: var(--amber); }
.noise-strip { height: 40px; position: relative; }
.noise-strip svg { width: 100%; height: 100%; }
.noise-out { font-family: var(--mono); font-size: 0.84rem; color: var(--faint); margin: 10px 0 0; }
.noise-out .cursor { display: inline-block; width: 8px; height: 14px; background: var(--amber); vertical-align: -2px; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) { .noise-out .cursor { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

/* Keycaps */
.keys { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 26px 0 0; align-items: center; }
.kbd-line { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 9px;
  font: 500 0.72rem/1 var(--mono); color: var(--cream);
  background: linear-gradient(180deg, #1a3b2c, #132d21);
  border: 1px solid rgba(244, 235, 208, 0.16); border-bottom-width: 3px; border-radius: 8px;
  transition: transform var(--fast) var(--ease), border-bottom-width var(--fast) var(--ease);
}
kbd:hover { transform: translateY(1px); border-bottom-width: 2px; }
kbd.amber { color: var(--amber); border-color: rgba(242, 169, 59, 0.45); }

.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.formats li { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.06em; color: var(--cream); background: rgba(244, 235, 208, 0.06); border-radius: 6px; padding: 8px 10px; }

/* Alert mock */
.alert-mock { width: min(100%, 420px); padding: 18px 18px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.alert-mock .bell { width: 44px; height: 44px; border-radius: 12px; background: rgba(242, 169, 59, 0.12); display: grid; place-items: center; position: relative; }
.alert-mock .bell svg { width: 22px; height: 22px; }
.alert-mock .bell::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; border: 1px solid rgba(242, 169, 59, 0.6); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .alert-mock.on .bell::after { animation: ring 2.8s var(--ease) 0.3s infinite; }
}
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.5); } }
.alert-mock .t { font: 500 0.66rem/1.2 var(--mono); color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.alert-mock .m { font: 400 0.92rem/1.5 var(--mono); color: var(--cream); margin-top: 4px; letter-spacing: 0.03em; }
.alert-mock .m mark { background: rgba(242, 169, 59, 0.2); color: var(--amber-hi); border-radius: 4px; padding: 0 3px; }
.alert-stack { display: grid; gap: 12px; justify-items: center; width: 100%; }
.alert-stack .card:nth-child(2) { opacity: 0.55; transform: scale(0.95); }
.alert-stack .card:nth-child(3) { opacity: 0.25; transform: scale(0.9); }

/* Privacy band */
.private { background: var(--bg-deep); }
.private-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
@media (min-width: 760px) { .private-grid { grid-template-columns: repeat(3, 1fr); } }
.private-grid > div { background: var(--bg-deep); padding: 26px 24px 30px; }
.private-grid .n { font: 500 0.66rem/1 var(--mono); color: var(--amber); letter-spacing: 0.12em; margin-bottom: 38px; display: block; }
.private-grid h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.private-grid p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Pricing */
.price-early {
  margin-top: 44px; padding: clamp(26px, 4vw, 44px);
  display: grid; gap: 28px; align-items: center;
  border-radius: 24px; border: 1px solid rgba(242, 169, 59, 0.35);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(242, 169, 59, 0.12), transparent 60%),
    var(--surface);
}
@media (min-width: 860px) { .price-early { grid-template-columns: 1.2fr 1fr; } }
.price-early .tag { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: block; }
.price-early h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.price-early p { color: var(--muted); margin: 0; }
.price-early ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-early li { display: flex; gap: 12px; align-items: baseline; color: var(--cream); }
.price-early li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); transform: translateY(-2px); }

.plans { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1.15fr; } }
.plan { padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.plan.full { border-color: rgba(242, 169, 59, 0.45); background: radial-gradient(90% 120% at 100% 0%, rgba(242, 169, 59, 0.1), transparent 60%), var(--surface); }
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan .sub { color: var(--muted); margin-bottom: 20px; }
.plan ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; color: var(--cream); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 4px; border-radius: 3px; background: var(--cream); opacity: 0.6; }
.plan.full li::before { background: var(--amber); opacity: 1; }
.plan .fine { font-size: 0.86rem; color: var(--faint); margin: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; }
.options div { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font-size: 0.92rem; }
.options div span { display: block; font: 500 0.62rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }

/* Get it */
.getit { text-align: center; }
.getit h2 { max-width: 14em; margin-inline: auto; }
.getit .intro { margin-inline: auto; }
.getit .cta-row { justify-content: center; }
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.platform-row li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.74rem/1 var(--mono); color: var(--cream); }
.platform-row li.later { color: var(--faint); border-style: dashed; }
.platform-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.platform-row li.later .dot { background: transparent; border: 1px solid var(--faint); }

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

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-deep); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand p { color: var(--faint); font-size: 0.92rem; margin-top: 14px; max-width: 26em; }
.foot-brand p a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(242, 169, 59, 0.6); text-underline-offset: 3px; }
.site-foot h2 { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.site-foot a:hover { color: var(--cream); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 0.7rem/1.6 var(--mono); color: var(--faint); }

/* ---------- Inner pages ---------- */

.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5rem); letter-spacing: -0.045em; line-height: 0.95; font-weight: 750; }
.page-head .intro { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); max-width: 36em; margin-top: 22px; }

.prose { font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.025em; margin: 2.4em 0 0.7em; font-weight: 680; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.6em; font-weight: 650; }
.prose p, .prose li { color: #d9d6c0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--cream); }

/* Connect page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); text-decoration: none; color: var(--muted); font-size: 0.92rem;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.toc a:hover { color: var(--cream); border-color: rgba(244, 235, 208, 0.4); background: rgba(244, 235, 208, 0.04); }
.toc a .n { font: 500 0.64rem/1 var(--mono); color: var(--amber); }

.way {
  display: grid; gap: 28px 64px; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) { .way { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; } }
.way .num { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.way .num .rec { color: #13120c; background: var(--amber); padding: 5px 8px; border-radius: 6px; letter-spacing: 0.08em; font-size: 0.62rem; }
.way h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.02; }
.way p { color: var(--muted); max-width: 32em; }
.way p strong { color: var(--cream); font-weight: 600; }
.diagram { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 20px; padding: clamp(14px, 2.4vw, 28px); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 600px) {
  /* diagrams go full-bleed on phones so their labels stay legible */
  .diagram { margin-inline: calc(-1 * var(--gutter)) !important; border-radius: 0; border-inline: 0; padding: 18px 8px 16px; }
  .diagram figcaption { padding-inline: var(--gutter); }
  .diagram .dg-lbl, .diagram .dg-lbl-a { font-size: 14px; }
  .diagram .dg-lbl-lg { font-size: 16px; }
}
.diagram figcaption { font: 400 0.7rem/1.6 var(--mono); color: var(--faint); margin-top: 14px; letter-spacing: 0.02em; }

/* SVG diagram vocabulary (shared by the landing chain) */
.dg-body { fill: #163426; stroke: rgba(244, 235, 208, 0.34); stroke-width: 1.5; }
.dg-body2 { fill: #0f261c; stroke: rgba(244, 235, 208, 0.22); stroke-width: 1.2; }
.dg-line { fill: none; stroke: rgba(244, 235, 208, 0.34); stroke-width: 1.5; }
.dg-cable { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-signal { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 9 16 9; }
.dg-amber { fill: var(--amber); }
.dg-cream { fill: var(--cream); }
.dg-dim { fill: rgba(244, 235, 208, 0.18); }
.dg-lbl { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: 0.04em; }
.dg-lbl-a { font: 500 11px var(--mono); fill: var(--amber); letter-spacing: 0.04em; }
.dg-lbl-lg { font: 600 13px var(--display); fill: var(--cream); }
.dg-knob { fill: #0c1f17; stroke: rgba(244, 235, 208, 0.4); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .dg-signal { animation: flow 1.6s linear infinite; }
  .paused .dg-signal { animation-play-state: paused; }
}
@keyframes flow { to { stroke-dashoffset: -37; } }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.level-grid figure { margin: 0; }
.level-grid .lv { font: 500 0.66rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 10px; text-align: center; }
.level-grid .lv.ok { color: var(--ok); }
.level-grid .lv.bad { color: var(--amber); }

.not-rec {
  margin-top: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 20px;
  border: 1px dashed var(--line-2); background: transparent;
}
.not-rec h2 { font-size: 1.35rem; margin: 0 0 10px; }
.not-rec p { color: var(--muted); margin: 0 0 12px; max-width: 44em; }
.not-rec .lab { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 14px; }
.not-rec-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .not-rec-grid { grid-template-columns: 1fr 1fr; } }

/* Support / FAQ */
.contact-card {
  display: grid; gap: 18px; align-items: center; padding: clamp(24px, 3.4vw, 36px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 760px) { .contact-card { grid-template-columns: 1fr auto; } }
.contact-card .lab { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; display: block; }
.contact-card .mail { font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; color: var(--cream); text-decoration: none; word-break: break-all; }
.contact-card .mail:hover { color: var(--amber-hi); }
.contact-card p { color: var(--muted); margin: 10px 0 0; }
.copy-btn { position: relative; }
.copy-btn .done { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--fast) var(--ease); }
.copy-btn.copied .label { opacity: 0; }
.copy-btn.copied .done { opacity: 1; }
.copy-btn .label { transition: opacity var(--fast) var(--ease); }

.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-group { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 56px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 2px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em;
  transition: color var(--fast) var(--ease);
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber-hi); }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform var(--med) var(--ease), border-color var(--fast) var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--med) var(--ease); }
.faq details[open] summary .pm { border-color: var(--amber); color: var(--amber); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 2px 22px; color: var(--muted); max-width: 44em; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans a { color: var(--cream); text-decoration-color: rgba(242, 169, 59, 0.6); text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height var(--med) var(--ease), content-visibility var(--med) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
}

.keymap { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.95rem; }
.keymap th, .keymap td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keymap th { font: 500 0.64rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.keymap td:first-child { white-space: nowrap; width: 1%; }
.keymap td { color: var(--muted); }

/* Privacy */
.policy-layout { display: grid; gap: 40px; padding-bottom: 100px; }
@media (min-width: 1000px) { .policy-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; } }
.policy-nav { position: sticky; top: 92px; align-self: start; }
.policy-nav h2 { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.policy-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: p; }
.policy-nav a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.93rem; line-height: 1.35;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.policy-nav a::before { counter-increment: p; content: counter(p, decimal-leading-zero); font: 500 0.62rem/1.9 var(--mono); color: var(--faint); }
.policy-nav a:hover, .policy-nav a.here { color: var(--cream); background: rgba(244, 235, 208, 0.05); }
.policy-nav a.here::before { color: var(--amber); }
@media (max-width: 999px) { .policy-nav { position: static; border: 1px solid var(--line); border-radius: 16px; padding: 18px; } }
.summary-box { border-radius: 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.summary-box p { margin: 0; color: var(--cream); font-size: 1.08rem; }
.summary-box .lab { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 12px; }
.policy h2 { scroll-margin-top: 90px; }
.updated { font: 400 0.72rem/1.6 var(--mono); color: var(--faint); margin-top: 10px; }

/* 404 */
.lost { min-height: calc(100vh - 68px - 190px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .morse { justify-content: center; margin-bottom: 36px; gap: 6px; }
.lost .morse i { height: 12px; width: 12px; border-radius: 12px; }
.lost .morse i.d { width: 38px; }
.lost h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.lost p { color: var(--muted); max-width: 30em; margin: 0 auto 28px; }
@media (prefers-reduced-motion: no-preference) {
  .lost .morse i { animation: key 2.6s var(--ease-in-out) infinite; }
  .lost .morse i:nth-child(2) { animation-delay: 0.12s; }
  .lost .morse i:nth-child(3) { animation-delay: 0.24s; }
  .lost .morse i:nth-child(4) { animation-delay: 0.36s; }
  .lost .morse i:nth-child(5) { animation-delay: 0.48s; }
  .lost .morse i:nth-child(6) { animation-delay: 0.6s; }
}
@keyframes key { 0%, 100% { opacity: 1; } 40% { opacity: 0.25; } }

/* ---------- Reveal on scroll (JS only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: 70ms; }
  .js [data-reveal="3"] { transition-delay: 140ms; }
}

@media print {
  :root { --bg: #fff; --bg-deep: #fff; --surface: #fff; --text: #000; --cream: #000; --muted: #222; --faint: #444; }
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .policy-nav, .skip { display: none; }
  .prose p, .prose li { color: #000; }
}

@media (max-width: 699px) { .hero-cap { display: none; } }

/* ---------- Entrance and keying (fast, subtle, skipped under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1 > *, .hero-sub > * { animation: rise 520ms var(--ease) both; }
  .hero h1 > :nth-child(1) { animation-delay: 40ms; }
  .hero h1 > :nth-child(2) { animation-delay: 110ms; }
  .hero-sub > :nth-child(1) { animation-delay: 170ms; }
  .hero-sub > :nth-child(2) { animation-delay: 220ms; }
  .band { animation: fade 700ms var(--ease) 120ms both; }
  .js .morse.key i:not(.g) { animation: keyed 180ms steps(1) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes keyed { 0% { opacity: 0.2; } 100% { opacity: 1; } }
