/* FlintLore site stylesheet
   Two selected themes: dark "Night" (default) and light "Day".
   With no stored choice, the OS preference decides via prefers-color-scheme;
   a stored choice (html[data-theme]) always wins in both directions.
   Display face: Space Grotesk (bundled). Body and UI: the system sans stack,
   which renders as SF Pro for the Apple Silicon audience. Monospace appears
   only inside the console demonstration and small data chips. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/font/SpaceGrotesk-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/font/SpaceGrotesk-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: dark;
  --bg: #0a0c08;
  --bg-deep: #060704;
  --surface: #11140c;
  --surface-2: #171b0f;
  --surface-3: #1e2313;
  --ink: #ede8d9;
  --ink-2: #bcb7a7;
  --muted: #8f8d7f;
  --line: #262b1b;
  --line-2: #333926;
  --line-warm: #4a3a22;
  --accent: #ee8128;
  --accent-2: #f79a47;
  --accent-deep: #d66a13;
  --on-accent: #170e04;
  --green: #58c584;
  --green-deep: #2f7a4d;
  --amber: #d9b15f;
  --red: #e07f6d;
  --focus: #f5c265;
  --glow: rgba(238, 129, 40, 0.14);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(8, 10, 6, 0.88);
  --chip-bg: rgba(237, 232, 217, 0.05);
  --topo-opacity: 0.1;
  --skeleton: rgba(237, 232, 217, 0.12);
  --skeleton-hi: rgba(237, 232, 217, 0.22);
  --body-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --shell: 76rem;
  --measure: 64ch;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
}

/* Light theme tokens, applied two ways so the OS preference works before
   JavaScript runs and an explicit choice wins afterwards. Keep both blocks
   identical. */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f1e6;
    --bg-deep: #ebe7d6;
    --surface: #faf8f0;
    --surface-2: #fffdf6;
    --surface-3: #f1edde;
    --ink: #1d2015;
    --ink-2: #555a47;
    --muted: #7b7f6d;
    --line: #ddd7c3;
    --line-2: #cfc8ae;
    --line-warm: #d9c39e;
    --accent: #a84708;
    --accent-2: #c2560f;
    --accent-deep: #933d06;
    --on-accent: #fffdf6;
    --green: #2c6e40;
    --green-deep: #2c6e40;
    --amber: #85681e;
    --red: #a33f2d;
    --focus: #8a4a00;
    --glow: rgba(194, 86, 15, 0.1);
    --shadow: 0 16px 44px -20px rgba(60, 52, 30, 0.35);
    --header-bg: rgba(250, 248, 240, 0.9);
    --chip-bg: rgba(29, 32, 21, 0.045);
    --topo-opacity: 0.16;
    --skeleton: rgba(29, 32, 21, 0.1);
    --skeleton-hi: rgba(29, 32, 21, 0.2);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1e6;
  --bg-deep: #ebe7d6;
  --surface: #faf8f0;
  --surface-2: #fffdf6;
  --surface-3: #f1edde;
  --ink: #1d2015;
  --ink-2: #555a47;
  --muted: #7b7f6d;
  --line: #ddd7c3;
  --line-2: #cfc8ae;
  --line-warm: #d9c39e;
  --accent: #a84708;
  --accent-2: #c2560f;
  --accent-deep: #933d06;
  --on-accent: #fffdf6;
  --green: #2c6e40;
  --green-deep: #2c6e40;
  --amber: #85681e;
  --red: #a33f2d;
  --focus: #8a4a00;
  --glow: rgba(194, 86, 15, 0.1);
  --shadow: 0 16px 44px -20px rgba(60, 52, 30, 0.35);
  --header-bg: rgba(250, 248, 240, 0.9);
  --chip-bg: rgba(29, 32, 21, 0.045);
  --topo-opacity: 0.16;
  --skeleton: rgba(29, 32, 21, 0.1);
  --skeleton-hi: rgba(29, 32, 21, 0.2);
}

/* ---------------------------------------------------------------- base */

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  background: var(--bg);
  font-size: 100%;
}

html[data-reading-mode="large"] {
  font-size: 112.5%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a,
summary,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-2);
}

p,
ul,
ol,
dl {
  margin-block: 0;
}

p + p {
  margin-top: 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 4.6vw, 4.35rem);
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.95rem, 3.1vw, 3.05rem);
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

strong {
  font-weight: 650;
}

small {
  font-size: 0.92rem;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 650;
  transform: translateY(-220%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - 2.75rem), var(--shell));
  margin-inline: auto;
}

.section-gap {
  margin-top: 2.25rem;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------- reveal motion */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------- prelaunch bar */

.prelaunch-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.prelaunch-inner {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-block: 0.5rem;
  text-align: center;
}

.status-light {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

.status-light.amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 16%, transparent);
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  min-height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The cream mark sits on its approved inverse tile (same treatment as the
   favicon) so it holds up on the light header too. */
.wordmark img {
  width: 2.7rem;
  height: 1.8rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.4rem;
  border-radius: 9px;
  background: #1f1d22;
  box-shadow: inset 0 0 0 1px rgba(243, 232, 215, 0.14);
  object-fit: contain;
}

.wordmark:hover {
  color: var(--ink);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.7rem);
  margin-left: auto;
}

.desktop-nav a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 550;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

/* Day / Night theme switch */

.mode-control {
  display: inline-flex;
  min-height: 2.65rem;
  padding: 0.18rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--chip-bg);
}

.mode-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.mode-button.is-active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.mode-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: currentColor;
}

.mode-icon svg {
  width: 100%;
  height: 100%;
}

.text-control {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-control:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-control[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--chip-bg);
  color: var(--accent);
}

/* Mobile menu button + panel */

.nav-toggle {
  display: none;
  min-width: 2.85rem;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav nav {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.85rem 1.1rem;
}

.mobile-nav a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.6rem 0.4rem;
  border-radius: var(--r-s);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--chip-bg);
  color: var(--accent);
}

/* ------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
  color: var(--on-accent);
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 65%, transparent);
}

/* A single light sweep across the primary button on hover. */
.button:not(.secondary):not(.prelaunch) {
  position: relative;
  overflow: hidden;
}

.button:not(.secondary):not(.prelaunch)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 253, 246, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.button:not(.secondary):not(.prelaunch):hover::after {
  left: 118%;
}

.button:active {
  transform: translateY(0);
}

.button.secondary,
.button.prelaunch {
  border-color: var(--line-2);
  background: var(--chip-bg);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover,
.button.prelaunch:hover {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

main {
  display: block;
}

/* ------------------------------------------------------ kicker / lead */

.kicker,
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker span {
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  color: var(--accent);
  background: var(--chip-bg);
}

.lead {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.6;
}

.lead-spaced {
  margin-top: 1.25rem;
}

.lead-spaced-compact {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6.75rem) 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58rem 34rem at 82% 8%, var(--glow), transparent 62%),
    var(--bg-deep);
}

/* Drifting topographic contours: the page's territory. Two layers of the
   same tile move at slightly different speeds. */

.topo-field,
.topo-band {
  position: absolute;
  pointer-events: none;
  opacity: var(--topo-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='240' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%23a69472' stroke-width='1'%3E%3Cpath d='M-20 92C31 36 78 40 112 73s68 31 103-2 87-44 135 7'/%3E%3Cpath d='M-21 108C25 57 75 57 104 86s72 38 115 3 82-32 132 8'/%3E%3Cpath d='M-17 128c43-44 85-46 119-18s76 28 115 3 83-18 132 14'/%3E%3Cpath d='M-15 148c41-31 81-34 117-11s78 22 120 5 81-6 126 26'/%3E%3Cpath d='M33 11c21 18 21 42 3 61S8 113 28 135s58 19 82 5 55-7 65 19-7 58-31 70'/%3E%3Cpath d='M59-9c25 24 24 54 1 75s-27 46-4 63 59 6 82-6 54 5 58 35-13 59-39 83'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 240px;
}

.topo-field {
  inset: -20% 0 -10% 0;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
  animation: topo-drift 90s linear infinite;
}

.topo-band {
  inset: 0 0 auto;
  height: 100%;
  mask-image: linear-gradient(180deg, #000 0, transparent 82%);
  animation: topo-drift 120s linear infinite reverse;
}

@keyframes topo-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 640px -240px;
  }
}

.camo-field {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(30rem, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-grid > *,
.split-intro > *,
.disclosure-grid > *,
.faq-grid > *,
.edition-grid > *,
.footer-grid > * {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  padding-block: 1rem 3.25rem;
}

.hero-lead {
  max-width: 56ch;
  margin-top: 1.4rem;
  color: var(--ink-2);
  font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.hero-more {
  margin-top: 1.1rem;
  font-size: 0.98rem;
}

.hero-more a {
  font-weight: 650;
}

/* One quiet line of facts, not a block of cards. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 2.2rem;
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-facts dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-facts dd {
  position: relative;
  margin: 0;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.95rem;
}

.hero-facts dd::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 0.06em;
}

/* ------------------------------------------------- console demonstration */

.console-wrap {
  position: relative;
  min-width: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.demo-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

/* Cursor spotlight: a soft light that follows the pointer over the demo. */
.demo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(14rem 14rem at var(--sx, 50%) var(--sy, 50%), var(--glow), transparent 70%);
  transition: opacity 0.35s ease;
}

.demo-shell:hover::after {
  opacity: 1;
}

/* Outage moment: the demo "loses the internet" and keeps running. */
@keyframes outage-flicker {
  0%, 100% {
    filter: none;
  }

  12%, 34% {
    filter: brightness(0.62);
  }

  22%, 46% {
    filter: brightness(1.02);
  }

  58% {
    filter: brightness(0.86);
  }
}

.demo-shell.is-outage {
  animation: outage-flicker 1.1s ease both;
}

.demo-net.is-down {
  color: var(--red);
}

.demo-net.is-down i {
  background: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}

.demo-cut {
  margin-left: auto;
  border-color: var(--line-warm) !important;
  color: var(--accent) !important;
  font-weight: 650 !important;
}

.demo-cut:hover {
  border-color: var(--accent) !important;
}

.demo-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: 0.75;
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.demo-dots {
  display: inline-flex;
  gap: 0.38rem;
}

.demo-dots i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--line-2);
}

.demo-title {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-net {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.demo-net i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.demo-body {
  display: grid;
  gap: 1rem;
  min-height: 24.5rem;
  align-content: start;
  padding: 1.15rem 1.15rem 1.05rem;
}

.demo-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.demo-services span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.82rem;
}

.demo-services em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-services strong {
  flex: 0 0 auto;
}

.demo-services strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-exchange {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.demo-prompt {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.demo-prompt > b {
  color: var(--accent);
  font-weight: 700;
}

.demo-caret {
  width: 0.55em;
  height: 1.15em;
  flex: 0 0 auto;
  background: var(--accent);
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.demo-step::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: var(--line-2);
}

.demo-answer {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--r-s);
  background: var(--surface);
}

.demo-answer.is-withheld {
  border-left-color: var(--amber);
}

.demo-answer.is-medical {
  border-left-color: var(--red);
}

.demo-note {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-skeleton {
  display: grid;
  gap: 0.45rem;
}

.demo-skeleton i {
  height: 0.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-hi) 45%, var(--skeleton) 65%);
  background-size: 220% 100%;
  animation: skeleton-sheen 2.4s linear infinite;
}

.demo-skeleton i:nth-child(2) {
  width: 88%;
}

.demo-skeleton i:nth-child(3) {
  width: 64%;
}

@keyframes skeleton-sheen {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.demo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.demo-legend button {
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
}

.demo-legend button:hover {
  color: var(--ink);
}

.demo-legend button.is-active {
  border-color: var(--accent);
  background: var(--chip-bg);
  color: var(--accent);
}

.demo-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Origin tags shared by the demo and the answer-key cards */

.origin-tag {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.origin-tag.withheld {
  border-color: var(--amber);
  color: var(--amber);
}

.origin-tag.medical {
  border-color: var(--red);
  color: var(--red);
}

/* --------------------------------------------------------- fact strip */

.field-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.9rem;
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
  padding: 1.05rem 0 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 550;
}

.field-status span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.field-status strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------ sections */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 7.5vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 52rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-intro > p:last-child,
.split-intro > p,
.disclosure-heading > p:last-child {
  max-width: var(--measure);
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.18rem);
}

.split-intro {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
}

.split-intro > p {
  margin-top: 0;
}

.product-section {
  background: var(--bg);
}

.loden-section {
  overflow: hidden;
  background: var(--bg-deep);
}

.requirements-section {
  background: var(--bg);
}

.compat-section {
  background: var(--bg-deep);
}

.editions-section {
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

.disclosure-section {
  background: var(--bg-deep);
}

.faq-section {
  background: var(--bg);
}

/* --------------------------------------------------- feature bento grid */

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.feature-matrix article {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  padding: clamp(1.35rem, 2.3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-matrix article:nth-child(1) {
  grid-column: span 5;
  background:
    radial-gradient(24rem 14rem at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
}

.feature-matrix article:nth-child(2) {
  grid-column: span 7;
}

.feature-matrix article:nth-child(3),
.feature-matrix article:nth-child(4),
.feature-matrix article:nth-child(5) {
  grid-column: span 4;
}

.feature-matrix article:nth-child(6) {
  grid-column: span 12;
}

.feature-matrix article:hover {
  transform: translateY(-3px);
  border-color: var(--line-warm);
  box-shadow: var(--shadow);
}

.feature-matrix h3 {
  margin-top: 0.85rem;
}

.feature-matrix p {
  max-width: 58ch;
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.feature-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.feature-code::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.field-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  margin-top: 0.85rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-m);
  background: var(--surface-3);
}

.field-warning span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.field-warning p {
  color: var(--ink-2);
}

.caution {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
  border: 1px solid var(--line-warm);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s);
  background: var(--surface-3);
  color: var(--ink-2);
}

.caution strong {
  color: var(--accent);
}

/* --------------------------------------------------- answer flow + key */

.answer-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: flow;
}

.answer-step {
  counter-increment: flow;
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}

.answer-step::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.answer-step p {
  margin-top: 0.55rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.answer-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.answer-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.answer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.answer-card h3 {
  margin-top: 0.95rem;
  font-size: 1.18rem;
}

.answer-card p {
  margin-top: 0.55rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}

/* ------------------------------------------- requirements + setup route */

.requirements-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.85rem;
}

.requirements-board article {
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}

.requirement-primary {
  grid-row: span 2;
  border-color: var(--line-warm) !important;
  background:
    radial-gradient(22rem 16rem at 0% 100%, var(--glow), transparent 70%),
    var(--surface-2) !important;
}

.requirements-board article:nth-child(4) {
  grid-column: 2 / 4;
}

.requirements-board strong {
  display: block;
  margin-top: 1.2rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.requirements-board p {
  margin-top: 0.7rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.requirements-board ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding-left: 1.2rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.board-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.load-note {
  margin-top: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink-2);
}

.load-note strong {
  color: var(--amber);
}

.setup-route {
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-route li {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 2.5rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.setup-route li:last-child {
  border-bottom: 1px solid var(--line);
}

.route-number {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid var(--line-warm);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.setup-route h3 {
  font-size: 1.2rem;
}

.setup-route p {
  max-width: 68ch;
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* -------------------------------------------------- compatibility check */

.compat-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m) var(--r-m) 0 0;
  border-bottom: 0;
  background: var(--surface);
}

.compat-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.compat-field label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.compat-field select {
  min-height: 2.85rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: var(--surface-2);
  color: var(--ink);
}

.compat-field select:hover {
  border-color: var(--accent);
}

.compat-result {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-m) var(--r-m);
  background: var(--surface-2);
}

.compat-hint {
  color: var(--muted);
}

.compat-verdict {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--green);
}

.compat-verdict.compat-warn {
  border-left-color: var(--amber);
}

.compat-verdict.compat-no {
  border-left-color: var(--red);
}

.compat-verdict h3 {
  font-size: 1.3rem;
}

.compat-verdict p {
  max-width: 75ch;
  color: var(--ink-2);
}

.compat-verdict .compat-constant {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------ editions */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.edition-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.edition-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-warm);
  box-shadow: var(--shadow);
}

.edition-complete {
  border-color: var(--line-warm);
  background:
    radial-gradient(30rem 20rem at 100% 0%, var(--glow), transparent 68%),
    var(--surface-2);
}

.edition-complete::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.edition-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-heading h3 {
  margin-top: 0.55rem;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
}

.edition-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edition-price strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.3rem, 3.8vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edition-price span {
  color: var(--muted);
  font-size: 0.95rem;
}

.edition-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 1.9rem;
  padding: 0;
  color: var(--ink-2);
  list-style: none;
}

.edition-card li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.99rem;
}

.edition-card li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-48deg);
}

.edition-card .button {
  align-self: end;
  justify-self: start;
}

.availability {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line-warm);
  border-radius: var(--r-m);
  background: var(--surface-3);
}

.availability .status-light {
  margin-top: 0.45rem;
}

.availability strong {
  color: var(--accent);
  letter-spacing: 0.03em;
}

.availability p {
  margin-top: 0.25rem;
  color: var(--ink-2);
}

/* -------------------------------------------------- before-you-buy list */

.disclosure-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.disclosure-heading {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.disclosure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: disclosure;
  border-top: 1px solid var(--line);
}

.disclosure-list li {
  counter-increment: disclosure;
  position: relative;
  padding: 1.05rem 0 1.05rem 3.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.disclosure-list li::before {
  content: counter(disclosure, decimal-leading-zero);
  position: absolute;
  top: 1.15rem;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.disclosure-list strong {
  color: var(--ink);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin-top: 1.4rem;
}

.legal-links a {
  font-weight: 650;
}

/* ---------------------------------------------------------------- FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.faq-heading {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.faq-list details {
  margin-bottom: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--line-warm);
  background: var(--surface-2);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 3.9rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 620;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .summary-icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .summary-icon {
  transform: rotate(45deg);
}

.faq-list .answer {
  max-width: 72ch;
  padding: 0 3.4rem 1.3rem 1.25rem;
  color: var(--ink-2);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.75fr 0.7fr 1.55fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-wordmark {
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.35rem;
  margin-top: 1.1rem;
}

.footer-status {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-status .status-light {
  margin-top: 0.45rem;
}

.footer-status strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-status p,
.footer-legal p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-legal p + p {
  margin-top: 1rem;
}

.footer-note {
  grid-column: 2 / -1;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------ subpages */

.subpage-main {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 7rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}

.side-nav strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  min-height: 2.6rem;
  padding: 0.5rem 0;
  color: var(--ink-2);
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--accent);
}

.document {
  max-width: 46rem;
}

.document-centered {
  margin-inline: auto;
}

.document h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
}

.document h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.document h3 {
  margin: 1.8rem 0 0.75rem;
  font-size: 1.25rem;
}

.document p,
.document li {
  color: var(--ink-2);
}

.document ul,
.document ol {
  padding-left: 1.4rem;
}

.document li + li {
  margin-top: 0.65rem;
}

.document a {
  font-weight: 650;
}

.review-banner,
.emergency-banner,
.notice-box {
  margin: 1.5rem 0;
  padding: 1.15rem 1.3rem 1.15rem 1.4rem;
  border-radius: var(--r-m);
}

.review-banner {
  border: 1px solid var(--line-warm);
  border-left: 3px solid var(--accent);
  background: var(--surface-3);
  color: var(--ink-2);
}

.review-banner strong {
  color: var(--accent);
}

.emergency-banner {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--surface);
  color: var(--ink-2);
}

.emergency-banner strong {
  color: var(--red);
}

.notice-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--surface);
  color: var(--ink-2);
}

.status-pill {
  display: inline-flex;
  margin-right: 0.55rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--ink-2);
}

.plain-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: plain-steps;
}

.plain-steps li {
  counter-increment: plain-steps;
  position: relative;
  min-height: 3.25rem;
  padding: 0.85rem 0 0.85rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.plain-steps li::before {
  content: counter(plain-steps, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  left: 0;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-warm);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 68rem) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    order: 5;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 54rem;
    padding-bottom: 0.5rem;
  }

  .console-wrap {
    max-width: 46rem;
  }

  .feature-matrix article:nth-child(1),
  .feature-matrix article:nth-child(2) {
    grid-column: span 6;
  }

  .feature-matrix article:nth-child(3),
  .feature-matrix article:nth-child(4) {
    grid-column: span 6;
  }

  .feature-matrix article:nth-child(5),
  .feature-matrix article:nth-child(6) {
    grid-column: span 12;
  }

  .subpage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-nav {
    position: static;
  }

  .disclosure-heading,
  .faq-heading {
    position: static;
  }
}

@media (max-width: 52rem) {
  .prelaunch-inner {
    justify-content: flex-start;
    text-align: left;
  }

  .header-actions .button {
    display: none;
  }

  .text-control {
    display: none;
  }

  .split-intro,
  .disclosure-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .answer-flow,
  .answer-key {
    grid-template-columns: minmax(0, 1fr);
  }

  .compat-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requirements-board {
    grid-template-columns: 1fr;
  }

  .requirement-primary {
    grid-row: auto;
  }

  .requirements-board article:nth-child(4) {
    grid-column: auto;
  }

  .edition-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-note {
    grid-column: auto;
  }

  .demo-services {
    grid-template-columns: 1fr;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

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

  .legal-table tr {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
  }

  .legal-table td {
    padding: 0.85rem 1rem;
    border: 0;
  }

  .legal-table td + td {
    border-top: 1px solid var(--line);
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

@media (max-width: 40rem) {
  .wrap {
    width: min(calc(100% - 1.6rem), var(--shell));
  }

  .header-inner {
    min-height: 4rem;
    gap: 0.6rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .mode-label {
    display: none;
  }

  .mode-button {
    padding-inline: 0.6rem;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .kicker {
    gap: 0.5rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .field-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .feature-matrix article,
  .feature-matrix article:nth-child(1),
  .feature-matrix article:nth-child(2),
  .feature-matrix article:nth-child(3),
  .feature-matrix article:nth-child(4),
  .feature-matrix article:nth-child(5),
  .feature-matrix article:nth-child(6) {
    grid-column: span 12;
  }

  .compat-form {
    grid-template-columns: 1fr;
  }

  .setup-route li {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 1rem;
  }

  .hero-actions,
  .button-row {
    display: grid;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .demo-chrome .demo-title {
    display: none;
  }

  .faq-list .answer {
    padding-right: 1.25rem;
  }
}

/* ------------------------------------------------------ motion + modes */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .accent,
  .kicker,
  .eyebrow,
  .origin-tag,
  .board-label,
  .feature-code,
  a {
    color: LinkText;
  }

  .button,
  .route-number,
  .mode-button,
  .text-control,
  .nav-toggle,
  .demo-legend button,
  .plain-steps li::before {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }

  .status-light,
  .demo-net i,
  .demo-dots i {
    border: 1px solid CanvasText;
    background: CanvasText;
  }

  .demo-shell,
  .demo-answer,
  .edition-card,
  .answer-card,
  .compat-verdict,
  .feature-matrix article {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
  }

  .topo-field,
  .topo-band,
  .site-header,
  .mobile-nav,
  .prelaunch-bar,
  .mode-control,
  .text-control,
  .nav-toggle,
  .hero-actions,
  .button-row,
  .demo-legend,
  .site-footer {
    display: none !important;
  }

  .section,
  .subpage-main {
    padding: 1.5rem 0;
    border-color: #888;
  }

  h1,
  h2,
  h3,
  p,
  li,
  dt,
  dd,
  .lead,
  .muted,
  .document p,
  .document li {
    color: #111 !important;
  }

  a {
    color: #111;
  }

  .feature-matrix article,
  .requirements-board article,
  .edition-card,
  .answer-card,
  .demo-shell {
    background: transparent !important;
    box-shadow: none !important;
  }
}
