/* OOMU — "Trust, built in."
   Design system: restraint, whitespace, system typography, one accent.
   Mostly monochrome (black raven, near-black ink, Apple grays) with a single
   restrained blue for actions and links. No webfonts: SF Pro / system stack. */

:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --faint: #86868b;

  --paper: #ffffff;
  --paper-alt: #f5f5f7;
  --paper-cool: #f4f6f9;
  --night: #0a0a0c;

  --hairline: #d2d2d7;
  --hairline-soft: #e8e8ed;

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-quiet: #06c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1024px;
  --wide: 1120px;
  --narrow: 720px;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  --nav-h: 48px;
  --section-y: clamp(80px, 12vw, 140px);

  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-window: 0 40px 90px -30px rgba(0, 0, 0, 0.32), 0 12px 30px -16px rgba(0, 0, 0, 0.18);

  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.018em;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

::selection {
  background: rgba(0, 113, 227, 0.16);
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */

.section-inner,
.header-inner,
.footer-inner {
  width: min(100% - 44px, var(--max));
  margin: 0 auto;
}

.section-inner.wide {
  max-width: var(--wide);
}

section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand img {
  /* Golden ratio: ~1.618x the "OOMU" wordmark (1.18rem) so the raven reads clearly. */
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 1.0125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
}

.button:active {
  transform: scale(0.98);
}

.button.accent {
  background: var(--accent);
  color: #fff;
}

.button.accent:hover,
.button.accent:focus-visible {
  background: var(--accent-hover);
}

.button.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(0, 0, 0, 0.09);
}

.button.ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.button.ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.button.on-dark {
  background: #fff;
  color: #1d1d1f;
}

.button.on-dark:hover {
  background: rgba(255, 255, 255, 0.88);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.0125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-link::after {
  content: "›";
  margin-left: 0.28em;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.text-link:hover::after {
  transform: translateX(2px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
  margin-top: 1.6rem;
}

/* ---------- Eyebrow & lead ---------- */

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  font-weight: 400;
}

/* ---------- Generic hero (inner pages) ---------- */

.hero {
  padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 800px;
}

.hero-copy h1 {
  max-width: 16ch;
  margin: 0 auto;
}

.hero-copy > p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}

.hero-copy .eyebrow {
  margin-bottom: 0;
}

.hero-copy .button-row {
  justify-content: center;
}

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

.hero-home {
  padding: clamp(24px, 3.5vw, 42px) 0 clamp(22px, 3vw, 38px);
  text-align: center;
}

.hero-home .hero-lockup {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.hero-home h1 {
  font-size: clamp(3rem, 8.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: none;
}

.hero-home .hero-sub {
  max-width: 28ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-home .hero-note {
  color: var(--faint);
  font-size: 0.95rem;
}

.hero-home .button-row {
  justify-content: center;
  margin-top: 0.4rem;
}

/* ---------- App window visual ---------- */

.app-window {
  width: min(100%, 940px);
  margin: clamp(28px, 4vw, 48px) auto 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 1.1rem;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--hairline-soft);
}

.app-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dcdce1;
}

.app-bar i:nth-child(1) {
  background: #ff5f57;
}
.app-bar i:nth-child(2) {
  background: #febc2e;
}
.app-bar i:nth-child(3) {
  background: #28c840;
}

.app-bar .app-title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 33px;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 304px;
  text-align: left;
}

.app-rail {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1.1rem 0.85rem;
  border-right: 1px solid var(--hairline-soft);
  background: #fbfbfd;
}

.app-rail .rail-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.55rem 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-rail .rail-brand img {
  width: 20px;
  height: 20px;
}

.app-rail .rail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-rail .rail-item.active {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  font-weight: 500;
}

.app-rail .rail-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.app-canvas {
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  display: grid;
  align-content: center;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.2);
}

.flow-node .tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-node.done .tick {
  background: rgba(40, 200, 64, 0.16);
  color: #1d8c33;
}

.flow-node .label {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.flow-node .meta {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.8rem;
}

.flow-node.current {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.flow-node.current .tick {
  background: var(--accent);
  color: #fff;
}

.flow-link {
  width: 2px;
  height: 16px;
  margin-left: calc(1rem + 13px);
  background: var(--hairline);
}

.flow-approve {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.07);
}

.flow-approve span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.flow-approve .pill {
  margin-left: auto;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---------- Content bands ---------- */

.content-band {
  padding: var(--section-y) 0;
}

.content-band.soft {
  background: var(--paper-alt);
}

.content-band.cool {
  background: var(--paper-cool);
}

.content-band.blue {
  background: var(--paper-alt);
}

.content-band.dark {
  background: var(--night);
  color: #f5f5f7;
}

.content-band.dark h1,
.content-band.dark h2,
.content-band.dark h3 {
  color: #fff;
}

.content-band.dark .prose,
.content-band.dark .lead {
  color: rgba(245, 245, 247, 0.66);
}

.content-band.dark .prose strong {
  color: #fff;
}

/* ---------- Statement (big centered moment) ---------- */

.statement-band {
  padding: clamp(96px, 14vw, 180px) 0;
}

.statement {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.3rem;
}

.statement h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
}

.statement h2 .dim {
  color: var(--faint);
}

.statement p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

/* Cadence: one thought per line (the OOMU voice) */
.cadence {
  display: grid;
  gap: 0.35rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cadence span {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
}

.cadence span.dim {
  color: var(--faint);
}

/* ---------- Split (headline + prose) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.section-head.center {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.15rem;
}

/* When a headline block stacks above its content (card grids, bento, steps),
   give it room to breathe. Split layouts place the head beside its content,
   and centered heads carry their own bottom margin — exclude both. */
.section-inner:not(.split) > .section-head:not(.center) + * {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.prose {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 60ch;
}

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

.callout {
  margin-top: 2.2rem;
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Flow steps (home: how it works) ---------- */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: flow;
}

.flow-steps .step-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.flow-steps .step-card .num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
}

.flow-steps .step-card h3 {
  font-size: 1.3rem;
}

.flow-steps .step-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Bento (trust pillars) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bento .tile {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--paper-alt);
  border: 1px solid transparent;
}

.content-band.soft .bento .tile,
.content-band.cool .bento .tile,
.content-band.blue .bento .tile {
  background: #fff;
  border-color: var(--hairline-soft);
}

.bento .tile .ic {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.bento .tile h3 {
  font-size: 1.4rem;
}

.bento .tile p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border-radius: var(--radius);
  background: var(--paper-alt);
  border: 1px solid transparent;
}

.content-band.soft .card,
.content-band.cool .card,
.content-band.blue .card {
  background: #fff;
  border-color: var(--hairline-soft);
}

.card h3 {
  font-size: 1.3rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 1.02rem;
}

.card .button-row {
  margin-top: 0.6rem;
}

/* ---------- Editions ---------- */

.editions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.edition {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--paper-alt);
}

.edition .tag {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.edition h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.022em;
}

.edition p {
  color: var(--muted);
  font-size: 1.08rem;
}

.edition .button-row {
  margin-top: auto;
  padding-top: 0.8rem;
}

/* ---------- Numbered list (tutorial) ---------- */

.numbered-list {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  max-width: 760px;
}

.step {
  position: relative;
  padding-left: 3.6rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 1.05rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Learn index ---------- */

.learn-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-soft);
  max-width: 880px;
}

.learn-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid var(--hairline-soft);
  transition: padding-left 0.2s ease;
}

.learn-item:hover {
  padding-left: 0.9rem;
}

.learn-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--ink);
  font-weight: 600;
}

.learn-item h3 {
  font-size: 1.25rem;
}

.learn-item p {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* ---------- Glossary ---------- */

.glossary-search {
  max-width: 540px;
  margin: 1.8rem auto 0;
  text-align: left;
}

.glossary-search label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.glossary-group {
  display: grid;
  gap: 1.4rem;
}

.glossary-group h2 {
  font-size: 1.7rem;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.term {
  padding: 1.3rem 1.4rem;
  border-radius: 14px;
  background: var(--paper-alt);
}

.content-band.soft .term,
.content-band.cool .term,
.content-band.blue .term {
  background: #fff;
  border: 1px solid var(--hairline-soft);
}

.term dt {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.term dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Forms ---------- */

.glossary-search input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glossary-search input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.form-panel {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--paper-alt);
}

.content-band.soft .form-panel,
.content-band.cool .form-panel,
.content-band.blue .form-panel {
  background: #fff;
  border: 1px solid var(--hairline-soft);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid .button {
  justify-self: start;
}

.form-status {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Download ---------- */

.download-panel {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--paper-alt);
}

.content-band.blue .download-panel {
  background: #fff;
  border: 1px solid var(--hairline-soft);
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 1rem;
}

.platform-tabs button {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-tabs button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.platform-tabs button .soon {
  margin-left: 0.45rem;
  padding: 0.08rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 1px;
}

.platform-tabs button[aria-pressed="true"] .soon {
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}

[data-platform-panel] h3 {
  font-size: 1.2rem;
}

[data-platform-panel] p {
  color: var(--muted);
  margin-top: 0.3rem;
}

[hidden] {
  display: none !important;
}

/* ---------- Closing ---------- */

.closing {
  text-align: center;
  display: grid;
  gap: 1.6rem;
  max-width: 820px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
}

.closing .lockup {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.closing .lockup .mark {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.closing .lockup .tag {
  color: var(--faint);
  font-size: 1.1rem;
}

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

.site-footer {
  padding: 44px 0 56px;
  background: var(--paper-alt);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.4fr;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.footer-brand .fb-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem 1.5rem;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-fine {
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- Reveal on scroll (JS-gated to stay visible without JS) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 940px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .card-grid,
  .card-grid.two {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.6rem;
    border-radius: 16px;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow-soft);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
    font-size: 0.98rem;
  }

  .bento,
  .editions,
  .card-grid,
  .card-grid.two,
  .glossary-list {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-rail {
    display: none;
  }

  .learn-item {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
  }

  .learn-item .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .button-row {
    width: 100%;
  }

  .hero-home .button-row,
  .hero-copy .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home .button-row .button,
  .hero-copy .button-row .button {
    width: 100%;
  }

  .hero-home .button-row .text-link,
  .hero-copy .button-row .text-link {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .flow-node .meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Dark mode (follows the OS, like Apple) ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-soft: #d2d2d7;
    --muted: #a1a1a6;
    --faint: #86868b;

    --paper: #000000;
    --paper-alt: #1d1d1f;
    --paper-cool: #161617;
    --night: #000000;

    --hairline: #48484a;
    --hairline-soft: #2a2a2c;

    --accent: #2997ff;
    --accent-hover: #4aa8ff;
    --accent-quiet: #2997ff;

    --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.5);
    --shadow-window: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  /* The raven is a black PNG — flip it to stay visible on dark surfaces. */
  .brand img,
  .rail-brand img,
  .footer-brand img {
    filter: invert(1) brightness(1.08);
  }

  ::selection {
    background: rgba(41, 151, 255, 0.32);
  }

  .site-header {
    background: rgba(0, 0, 0, 0.7);
  }

  .site-header[data-scrolled="true"] {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
  }

  .button.secondary {
    background: rgba(255, 255, 255, 0.1);
  }

  .button.secondary:hover,
  .button.secondary:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .button.ghost:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  /* App window → realistic dark chrome */
  .app-window {
    background: var(--paper-alt);
    border-color: var(--hairline-soft);
  }

  .app-bar {
    background: #2a2a2c;
    border-bottom-color: var(--hairline-soft);
  }

  .app-rail {
    background: #161617;
    border-right-color: var(--hairline-soft);
  }

  .app-rail .rail-item.active {
    background: rgba(41, 151, 255, 0.18);
  }

  .app-canvas {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  }

  .flow-node {
    background: #2a2a2c;
    border-color: #3a3a3c;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  }

  .flow-node .tick {
    background: #3a3a3c;
    color: var(--muted);
  }

  .flow-node.done .tick {
    background: rgba(48, 209, 88, 0.22);
    color: #30d158;
  }

  .flow-node.current {
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.18);
  }

  .flow-link {
    background: var(--hairline);
  }

  .flow-approve {
    background: rgba(41, 151, 255, 0.16);
  }

  /* Surfaces hardcoded to white on tinted bands → elevated dark panels */
  .content-band.soft .bento .tile,
  .content-band.cool .bento .tile,
  .content-band.blue .bento .tile,
  .content-band.soft .card,
  .content-band.cool .card,
  .content-band.blue .card,
  .content-band.soft .term,
  .content-band.cool .term,
  .content-band.blue .term,
  .content-band.soft .form-panel,
  .content-band.cool .form-panel,
  .content-band.blue .form-panel,
  .content-band.blue .download-panel {
    background: #2a2a2c;
    border-color: var(--hairline-soft);
  }

  /* Form fields */
  .glossary-search input,
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    background: #1d1d1f;
    border-color: var(--hairline);
    color: var(--ink);
  }

  .platform-tabs button {
    background: transparent;
    border-color: var(--hairline);
    color: var(--ink);
  }

  .platform-tabs button[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 760px) {
  .site-nav {
    background: rgba(22, 22, 23, 0.96);
    border-color: var(--hairline-soft);
  }
}
