:root {
  --primary: #0D5C63;
  --primary-hover: #0A474D;
  --primary-soft: #5FB8BE;
  --on-primary: #FFFFFF;
  --ink: #0B1F22;
  --ink-2: #10292D;
  --on-ink: #E6EFEE;
  --on-ink-muted: #9DB5B3;
  --tint: #E3EFEE;
  --tint-strong: #CBE2E0;
  --bg: #F4F5F3;
  --surface: #FFFFFF;
  --surface-2: #F9FAF9;
  --border: #D9DEDB;
  --border-strong: #BFC8C4;
  --text: #151A1C;
  --muted: #56605F;
  --ok: #1E6B3A;
  --ok-tint: #E2F1E6;
  --error: #B42318;
  --error-tint: #FBE6E4;
  --warning: #8F5400;
  --warning-tint: #FBF0DC;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(21, 26, 28, 0.06);
  --shadow: 0 1px 2px rgba(21, 26, 28, 0.05), 0 8px 24px rgba(21, 26, 28, 0.06);
  --paper: #FFFFFF;
  --primary-soft-hover: #8FCFD3;
  --sidebar: var(--ink);
  --font-display: Archivo, sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 87%; letter-spacing: -0.015em; color: var(--text); }
h1 { font-weight: 750; line-height: 1.08; }
h2 { font-weight: 700; line-height: 1.2; }
h3 { font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }
code, kbd, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mark { flex: none; }
.btn, button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover, button:hover, .button:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn.quiet, button.ghost, .button.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.quiet:hover, button.ghost:hover, .button.ghost:hover { background: var(--tint); color: var(--primary); border-color: var(--primary); }
button:disabled { background: var(--border); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
form[data-pending] button:disabled { cursor: progress; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.8125rem; font-weight: 600; line-height: 1; }
.note, .notice { background: var(--warning-tint); color: var(--warning); border-left: 3px solid currentColor; border-radius: var(--radius-sm); padding: 12px 16px; }
.banner { background: var(--error-tint); color: var(--error); border-left: 3px solid currentColor; border-radius: var(--radius-sm); padding: 12px 16px; }
.banner a { color: inherit; font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5FB8BE;
    --primary-hover: #8FCFD3;
    --on-primary: #0B1F22;
    --tint: #18302F;
    --tint-strong: #22413F;
    --bg: #0E1314;
    --surface: #151C1D;
    --surface-2: #121819;
    --border: #283234;
    --border-strong: #3A4648;
    --text: #E6EAE8;
    --muted: #9AA5A3;
    --ok: #7FCB98;
    --ok-tint: #17301F;
    --error: #F2A39A;
    --error-tint: #3A1A16;
    --warning: #F3D7A1;
    --warning-tint: #3A2C12;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.28);
    --sidebar: #0A1416;
    color-scheme: dark;
  }
}

h1 { font-size: 2.5rem; margin: 0 0 16px; max-width: 18ch; }
h2 { font-size: 1.625rem; margin: 48px 0 12px; }
h3 { font-size: 1.125rem; margin: 0 0 8px; }
p { margin: 0 0 14px; max-width: 66ch; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 10; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--primary); text-decoration: none; font-family: var(--font-display); font-stretch: 87%; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand span { color: var(--text); }
.brand:hover { color: var(--primary); }
.top .mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 2px; order: 3; width: calc(100% + 24px); margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
.nav a, .signin { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .signin:hover { color: var(--text); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.hero { background: radial-gradient(1200px 520px at 85% 10%, #134a50 0%, rgba(19, 74, 80, 0) 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(230, 239, 238, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 239, 238, 0.045) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 40px; padding: 56px 0 64px; align-items: center; }
.hero h1 { color: var(--paper); font-size: 2.75rem; max-width: 14ch; }
.hero .lede { color: var(--on-ink-muted); font-size: 1.125rem; max-width: 52ch; }
.hero code { color: var(--on-ink); background: rgba(230, 239, 238, 0.08); padding: 1px 6px; border-radius: 4px; font-size: 0.875em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 12px; border: 1px solid rgba(230, 239, 238, 0.16); border-radius: 999px; color: var(--on-ink); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-soft); box-shadow: 0 0 0 4px rgba(95, 184, 190, 0.2); }
.hero .actions .btn { background: var(--primary-soft); color: var(--ink); }
.hero .actions .btn:hover { background: var(--primary-soft-hover); color: var(--ink); }
.hero .actions .btn.quiet { background: transparent; color: var(--on-ink); border-color: rgba(230, 239, 238, 0.32); }
.hero .actions .btn.quiet:hover { background: rgba(230, 239, 238, 0.08); border-color: var(--on-ink); }
.hero-ns { margin: 20px 0 0; color: var(--on-ink-muted); font-size: 0.875rem; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.mirror { display: block; width: min(300px, 80%); height: auto; color: var(--primary-soft); opacity: 0.9; }
.path-card { position: relative; width: min(380px, 100%); margin: 16px 0 0 auto; padding: 16px 18px; background: rgba(11, 31, 34, 0.86); border: 1px solid rgba(230, 239, 238, 0.14); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.path-card figcaption { color: var(--on-ink-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.path li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(230, 239, 238, 0.04); font-size: 0.875rem; }
.path li.edge { background: rgba(95, 184, 190, 0.12); border: 1px solid rgba(95, 184, 190, 0.35); }
.hop { font-weight: 600; color: var(--paper); }
.hop-note { color: var(--on-ink-muted); font-family: var(--font-mono); font-size: 0.8125rem; }
.path code { flex: 1 1 100%; color: var(--on-ink); background: transparent; padding: 0; font-size: 0.8125rem; }
.verdict { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #F3D7A1; color: #3A2C12; font-size: 0.75rem; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; max-width: none; }
.band { padding: 64px 0; }
.band.tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.kicker { margin: 0 0 8px; color: var(--primary); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.split-grid { display: grid; gap: 20px; }
.split-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.split-card h2 { margin: 0 0 12px; font-size: 1.375rem; }
.split-card p:last-child { margin-bottom: 0; }
.split-card.before { background: var(--surface-2); }
.split-card.before .kicker { color: var(--muted); }
.split-card.after { border-color: var(--tint-strong); box-shadow: var(--shadow); }
.feature-grid, .tier-grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.feature { transition: border-color 120ms ease, box-shadow 120ms ease; }
.feature:hover { border-color: var(--tint-strong); box-shadow: var(--shadow); }
.feature p { color: var(--muted); font-size: 0.9375rem; }
.tag { display: inline-block; margin: 0 0 14px; padding: 2px 8px; border-radius: 4px; background: var(--tint); color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; }
.steps { margin: 12px 0 0; padding-left: 1.25rem; max-width: 66ch; }
.steps li { margin: 0 0 10px; }
.flow { list-style: none; padding: 0; max-width: none; display: grid; gap: 16px; counter-reset: step; }
.flow li { counter-increment: step; position: relative; margin: 0; padding: 22px; padding-top: 60px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.flow li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 20px; left: 22px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--primary); background: var(--tint); padding: 2px 8px; border-radius: 4px; }
.flow p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.cta { display: grid; gap: 20px; align-items: center; padding: 36px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); }
.cta h2 { color: var(--paper); margin: 0 0 10px; }
.cta .kicker { color: var(--primary-soft); }
.cta p { color: var(--on-ink-muted); margin-bottom: 0; }
.cta .actions { margin: 0; }
.cta .btn { background: var(--primary-soft); color: var(--ink); }
.cta .btn:hover { background: var(--primary-soft-hover); color: var(--ink); }
.cta .btn.quiet { background: transparent; color: var(--on-ink); border-color: rgba(230, 239, 238, 0.32); }
.cta .btn.quiet:hover { background: rgba(230, 239, 238, 0.08); border-color: var(--on-ink); }

.page-head { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-head-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; padding: 48px 0 40px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { color: var(--muted); font-size: 1.125rem; margin: 0; max-width: 60ch; }
.page-mirror { display: none; width: 220px; height: auto; color: var(--primary); opacity: 0.16; justify-self: end; }
.prose { padding: 40px 0 72px; max-width: 760px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.prose > h2:first-child { margin-top: 0; }
.prose .note { margin: 0 0 24px; max-width: 66ch; }
.prose .actions { margin-top: 24px; }
.numbered { counter-reset: n; list-style: none; padding: 0; }
.numbered li { counter-increment: n; position: relative; padding: 4px 0 14px 48px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }
.qa { margin-bottom: 12px; }
.qa h2 { font-size: 1.125rem; margin: 0 0 6px; }
.qa p { color: var(--muted); }
.tier-grid { margin: 0 0 28px; }
.tier { display: flex; flex-direction: column; gap: 4px; }
.tier .badge { align-self: flex-start; margin: 0 0 10px; }
.tier h2 { margin: 0 0 6px; font-size: 1.375rem; }
.tier-detail { color: var(--muted); font-size: 0.875rem; }

.foot { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { color: var(--muted); font-size: 0.9375rem; margin: 8px 0 0; max-width: 34ch; }
.foot .mark { width: 22px; height: 22px; }
.foot nav { display: flex; flex-direction: column; gap: 2px; }
.foot nav a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--primary); text-decoration: underline; }
.foot-label { margin: 0 0 6px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.foot-fine p { color: var(--muted); font-size: 0.8125rem; margin: 0 0 6px; max-width: none; }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 880px) {
  .nav { order: 0; width: auto; margin: 0; overflow: visible; }
  .account { margin-left: auto; }
  h1 { font-size: 3rem; }
  .hero h1 { font-size: 3.5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding: 88px 0 96px; }
  .mirror { width: min(440px, 100%); }
  .path-card { margin-top: -44px; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1.4fr 1fr; padding: 48px; }
  .cta .actions { justify-content: flex-end; }
  .page-head-grid { grid-template-columns: 1fr auto; padding: 64px 0 52px; }
  .page-mirror { display: block; }
}
@media (prefers-color-scheme: dark) {
  .brand { color: var(--primary); }
  .split-card.before { background: var(--surface-2); }
  .flow li { background: var(--surface-2); }
  .cta { background: var(--ink); border: 1px solid var(--border); }
}
