/* ==========================================================================
   WTN HUB — Core stylesheet
   Palette: white ground, black type, red signal, grey structure.
   No photography. Geometry: soft rounded surfaces, pill controls, one accent.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3f;
  --ink-3: #6f6f72;
  --ink-4: #9a9a9c;

  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --line: #e6e8ea;
  --line-2: #d3d7db;

  --red: #d8232a;
  --red-deep: #a8151b;
  --red-tint: #fdf0f0;

  --live: #22c55e;

  --nav-h: 72px;
  --rail-w: 302px;
  --read-w: 820px;
  --shell: 1280px;

  /* radii */
  --r-pill: 999px;
  --r-card: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  /* soft elevation */
  --sh-1: 0 2px 8px rgba(17, 17, 17, 0.04);
  --sh-2: 0 10px 24px -8px rgba(17, 17, 17, 0.10);
  --sh-3: 0 18px 40px -14px rgba(17, 17, 17, 0.18);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.35rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.18rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.175rem; letter-spacing: -0.014em; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15rem; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
code, kbd { font-family: var(--f-mono); font-size: 0.855em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- 3. Primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
}

.rule-red {
  width: 46px;
  height: 4px;
  background: var(--red);
  border: 0;
  border-radius: var(--r-pill);
  margin: 0 0 22px;
}

/* eyebrow — soft chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: var(--red-tint);
  border: 1px solid rgba(216, 35, 42, 0.14);
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill);
  margin: 0 0 18px;
}
.eyebrow .tick { width: 16px; height: 3px; background: var(--red); border-radius: var(--r-pill); }

.lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 66ch;
}

.mono { font-family: var(--f-mono); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--f-text);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--sh-2);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: var(--sh-3);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--sh-1);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn--sm { padding: 10px 18px; font-size: 0.83rem; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. Icons ---------- */
.ico {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--sm { width: 15px; height: 15px; }
.ico--lg { width: 22px; height: 22px; }

/* ---------- 6. Top branding bar ---------- */
.topbar {
  background: var(--paper);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.brand__name span { color: var(--red); }
.brand__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.statusline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
  position: relative;
}
.dot--live {
  background: var(--live);
}
.dot--live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--live);
  border-radius: 50%;
  animation: ping 2.6s var(--ease) infinite;
}
.dot--red { background: var(--red); }
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 7. Sticky navigation (floating pill bar) ---------- */
.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  padding-top: 10px;
}
.nav__inner {
  height: calc(100% - 10px);
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 10px 0 22px;
  box-shadow: var(--sh-2);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  background: var(--surface-2);
}

.nav__spacer { flex: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 0.85rem;
  font-weight: 650;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav__cta:hover { background: var(--red); transform: translateY(-1px); }
.nav__cta .ico { width: 14px; height: 14px; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: var(--r-pill);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav__burger span {
  display: block;
  width: 16px; height: 2px;
  background: var(--ink);
  border-radius: var(--r-pill);
  position: relative;
  transition: background 0.15s var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 306px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop__item {
  display: block;
  padding: 11px 14px;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.drop__item:hover { background: var(--surface); }
.drop__item strong { display: block; font-size: 0.875rem; font-weight: 650; }
.drop__item span { display: block; font-size: 0.79rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.drop__sep { height: 1px; background: var(--line); margin: 6px 6px; }

/* ---------- 8. Hero ---------- */
.hero {
  padding: 48px 0 76px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 62%);
  border-radius: 0 0 40px 40px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 60px;
  align-items: start;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero__lede { max-width: 54ch; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 30px 0 0;
}
.hero__meta div {
  padding: 0 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid var(--line-2);
}
.hero__meta div:last-child { border-right: 0; }
.hero__meta dt {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.hero__meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* target action block */
.target {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  box-shadow: var(--sh-2);
}
.target__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.target__cta {
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  margin-top: 2px;
  padding: 14px 20px;
  font-family: var(--f-display);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.target__cta .ico--lg { width: 20px; height: 20px; flex: none; }
.target__cta-arrow {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  opacity: 0.85;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.target__cta:hover .target__cta-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.jump { list-style: none; padding: 16px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.jump li { margin: 0; }
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-3);
  text-decoration: none;
  padding: 5px 0;
}
.jump a:hover { color: var(--red); }
.jump .ico { color: var(--ink-4); }

/* ---------- 9. Mirrors console ---------- */
.console {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
}
.console__bar .statusline { color: #fff; font-size: 0.72rem; }
.console__stamp {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
}
.console__body { padding: 8px 20px 18px; }

.mirror {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  margin: 10px 0 0;
  background: var(--surface);
  border-radius: var(--r-md);
}
.mirror__idx {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.mirror__body { min-width: 0; flex: 1; }
.mirror__addr {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.83rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  word-break: break-all;
  margin-bottom: 3px;
}
.mirror__addr b { color: var(--red); font-weight: 600; }
.mirror__note {
  font-size: 0.735rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mirror__note .ico { width: 12px; height: 12px; color: var(--red); }

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: all 0.16s var(--ease);
}
.copy:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.copy.is-done { background: var(--red); border-color: var(--red); color: #fff; }

.console__foot { padding: 16px 20px; background: var(--surface); }
.console__foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}
.console__foot a:hover { color: var(--red); }

/* ---------- 10. Alert card ---------- */
.alert {
  margin-top: 24px;
  border: 1px solid rgba(216, 35, 42, 0.2);
  background: var(--red-tint);
  padding: 22px 24px;
  border-radius: var(--r-card);
}
.alert__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 750;
  font-size: 0.98rem;
  color: var(--red-deep);
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.alert p { font-size: 0.885rem; color: var(--ink-2); margin-bottom: 14px; }
.alert p strong { color: var(--ink); }
.alert a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.845rem;
  font-weight: 650;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.alert a:hover { background: var(--red-deep); transform: translateY(-1px); }

/* ---------- 11. Sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }

.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 0; }

/* verification trio */
.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.verify-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px 30px;
  position: relative;
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.verify-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.verify-card__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 50%;
  margin-bottom: 16px;
}
.verify-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.verify-card p { font-size: 0.885rem; color: var(--ink-3); margin: 0; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 24px;
  box-shadow: var(--sh-1);
}
.stat__v {
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat__v em { font-style: normal; color: var(--red); }
.stat__k {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- 12. Teasers ---------- */
.teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.teaser {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 28px 26px;
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--line-2);
}
.teaser__ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
  border-radius: 50%;
  margin-bottom: 20px;
}
.teaser__ico .ico { width: 20px; height: 20px; }
.teaser h3 { font-size: 1.1rem; margin-bottom: 8px; }
.teaser p { font-size: 0.895rem; color: var(--ink-3); flex: 1; margin-bottom: 20px; }
.teaser__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--red);
}
.teaser__link:hover { color: var(--ink); }
.teaser__link .ico { transition: transform 0.18s var(--ease); }
.teaser:hover .teaser__link .ico { transform: translateX(4px); }

/* ---------- 13. FAQ / accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  transition: background 0.16s var(--ease);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--surface); }
.faq-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex: none;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}
.faq-caret {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  padding: 7px;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 50%;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.faq-item[open] .faq-caret {
  transform: rotate(180deg);
  color: #fff;
  background: var(--red);
}
.faq-a {
  padding: 0 22px 22px 66px;
  color: var(--ink-2);
  font-size: 0.945rem;
  max-width: 74ch;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-list .faq-a a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  margin-top: 6px;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
              color 0.16s var(--ease), transform 0.16s var(--ease);
}
.faq-list .faq-a a:hover {
  background: var(--paper);
  color: var(--red);
  border-color: var(--red);
  border-bottom-color: var(--red);
  transform: translateY(-1px);
}

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--surface);
  color: var(--ink);
  padding: 64px 0 34px;
  border-radius: 40px 40px 0 0;
  margin-top: 20px;
}
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-2);
}
.footer .brand__tag { background: var(--paper); border-color: var(--line); color: var(--ink-3); }
.footer__blurb {
  max-width: 40ch;
  font-size: 0.865rem;
  color: var(--ink-3);
  margin: 14px 0 0;
}
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; font-size: 0.87rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.79rem;
  color: var(--ink-3);
}
.footer__fp {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__fp b { color: var(--ink); font-weight: 600; }

/* ---------- 15. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  padding: 20px 0 0;
  margin: 0;
  list-style: none;
}
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--red); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   DOCUMENT PAGES (/guides, /review, /escrow-payments)
   ========================================================================== */

/* --- 15a. Article hero --- */
.doc-hero { padding: 34px 0 48px; }
.doc-hero h1 { max-width: 21ch; }
.doc-hero .lede { max-width: 72ch; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-tint);
  border: 1px solid rgba(216, 35, 42, 0.14);
  color: var(--red-deep);
  padding: 8px 16px 8px 12px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}
.badge .ico { width: 14px; height: 14px; color: var(--red); }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.meta-strip div {
  padding: 14px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  min-width: 150px;
}
.meta-strip dt {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.meta-strip dd { margin: 0; font-size: 0.9rem; font-weight: 650; }

/* --- 15b. Docked two-column layout --- */
.doc-layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
}
.rail {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  padding: 34px 24px 44px;
  background: var(--paper);
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); }

/* mobile accordion shell — inert on desktop */
.rail__toggle { display: none; }
.rail__inner { display: block; }

.rail__title {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.toc { list-style: none; margin: 0 0 8px; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 2px;
  font-size: 0.855rem;
  line-height: 1.4;
  color: var(--ink-3);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a.is-active {
  color: var(--ink);
  font-weight: 650;
  background: var(--surface-2);
}
.toc .n {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-4);
  flex: none;
  padding-top: 1px;
}
.toc a.is-active .n { color: var(--red); }

.toc-group {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-group::before { content: ""; width: 16px; height: 3px; background: var(--red); border-radius: var(--r-pill); }

/* rail widgets */
.widget {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--surface);
  border-radius: var(--r-md);
}
.widget--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.widget__t {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.widget--dark .widget__t { color: rgba(255, 255, 255, 0.6); }
.widget__t .ico { width: 13px; height: 13px; color: var(--red); }
.fp {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.widget--dark .fp { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.widget .copy, .widget .btn { width: 100%; justify-content: center; }
.widget__note { font-size: 0.76rem; color: var(--ink-3); margin: 12px 0 0; line-height: 1.5; }
.widget--dark .widget__note { color: rgba(255, 255, 255, 0.58); }
.widget--dark .copy { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.widget--dark .copy:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.widget--alert { border-color: rgba(216, 35, 42, 0.22); background: var(--red-tint); }
.widget--alert p { font-size: 0.8rem; color: var(--ink-2); margin: 0 0 10px; }

/* --- 15c. Article body --- */
.doc-body {
  padding: 40px 0 88px;
  min-width: 0;
}
.doc-body__inner {
  max-width: var(--read-w);
  padding: 10px 48px 0;
}
.doc-body h2 {
  font-size: clamp(1.42rem, 1.15rem + 0.9vw, 1.85rem);
  margin: 60px 0 16px;
  padding-top: 0;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.doc-body h3 {
  margin: 36px 0 10px;
  font-size: 1.1rem;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.doc-body h4 { margin: 24px 0 8px; font-size: 0.95rem; }
.doc-body p { color: var(--ink-2); max-width: 72ch; }
.doc-body p strong { color: var(--ink); }
.doc-body a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 35, 42, 0.32);
}
.doc-body a:hover { border-color: var(--red); }
.doc-body ul, .doc-body ol { color: var(--ink-2); max-width: 72ch; }
.doc-body li::marker { color: var(--ink-4); }
.doc-body hr { margin: 48px 0; border-top: 0; height: 1px; background: var(--line); }

/* passport / TL;DR card */
.passport {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin: 32px 0 0;
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.passport__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.passport__head .ico { color: var(--red); }
.passport__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.passport__grid > div {
  padding: 18px 22px;
  background: var(--paper);
}
.passport dt {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.passport dd { margin: 0; font-size: 0.98rem; font-weight: 650; letter-spacing: -0.005em; }
.passport dd em { font-style: normal; color: var(--red); }

/* callouts */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 28px 0;
  box-shadow: var(--sh-1);
}
.callout--red {
  background: var(--red-tint);
  border-color: rgba(216, 35, 42, 0.2);
}
.callout--red .callout__t { color: var(--red-deep); }
.callout__t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.callout__t .ico { color: var(--red); }
.callout p { margin-bottom: 0.6em; font-size: 0.915rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; font-size: 0.915rem; }

/* comparison matrices */
.matrix-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 28px 0;
  overflow-x: auto;
  box-shadow: var(--sh-1);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.865rem;
  min-width: 520px;
}
.matrix caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.matrix th, .matrix td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.matrix thead th {
  background: var(--paper);
  font-family: var(--f-display);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.matrix tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.matrix td { color: var(--ink-2); }
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: var(--surface); }
.matrix .hi { color: var(--ink); font-weight: 600; }
.matrix .warn { color: var(--red); font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.pill--high { color: var(--ink); background: var(--surface-2); }
.pill--mid { color: var(--ink-3); background: var(--surface); }
.pill--bad { color: #fff; background: var(--red); }

/* code / terminal */
.code {
  margin: 28px 0;
  border-radius: var(--r-md);
  background: #0d0d0e;
  color: #e8e8e6;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}
.code__bar .copy {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  padding: 6px 14px;
  box-shadow: none;
}
.code__bar .copy:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.code__bar .copy.is-done { background: var(--red); border-color: var(--red); color: #fff; }
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  line-height: 1.75;
}
.code .p { color: #fff; font-weight: 600; }
.code .ok { color: #fff; font-weight: 600; }
.code .dim { color: rgba(255, 255, 255, 0.45); }
.code .red { color: #ff6b6b; }

/* numbered procedure */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 22px 0 28px; }
.steps > li {
  counter-increment: st;
  position: relative;
  padding: 0 0 22px 50px;
  margin: 0;
}
.steps > li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 15.5px; top: 38px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 0.96rem; }
.steps p { font-size: 0.915rem; margin: 0; }

/* checklist */
.checklist {
  list-style: none;
  margin: 24px 0;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.checklist li {
  display: flex;
  gap: 13px;
  padding: 14px 16px;
  font-size: 0.905rem;
  color: var(--ink-2);
  margin: 0;
  align-items: flex-start;
  border-radius: var(--r-sm);
}
.checklist li + li { border-top: 1px solid var(--line); }
.checklist li:hover { background: var(--surface); }
.checklist .box {
  width: 20px; height: 20px;
  border: 2px solid var(--line-2);
  border-radius: 7px;
  flex: none;
  margin-top: 2px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.checklist li:hover .box { border-color: var(--red); }
.checklist code { color: var(--ink); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 0.8em; }

/* ASCII fund-flow diagram */
.flow {
  margin: 28px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  overflow-x: auto;
  box-shadow: var(--sh-1);
}
.flow pre {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.775rem;
  line-height: 1.62;
  color: var(--ink-2);
  white-space: pre;
}
.flow .b { color: var(--ink); font-weight: 700; }
.flow .r { color: var(--red); font-weight: 700; }

/* closing CTA */
.final {
  margin-top: 60px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--sh-3);
}
.final__t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.final p { margin: 0; font-size: 0.885rem; color: rgba(255, 255, 255, 0.66); max-width: 52ch; }
.final .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: none;
}
.final .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.final .btn .ico { transition: transform 0.18s var(--ease); }
.final .btn:hover .ico { transform: translateX(4px); }

/* key/value definition block */
.kv {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 26px 0;
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.kv div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}
.kv div + div { border-top: 1px solid var(--line); }
.kv dt {
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.kv dd { margin: 0; padding: 14px 18px; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- 16. Mobile TOC sheet ---------- */
.sheet-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: 12px;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.87rem;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-3);
  width: auto;
  cursor: pointer;
  text-align: left;
}
.sheet-bar__l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sheet-bar__l span {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex: none;
}
.sheet-bar__cur { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-bar .ico { color: var(--red); }
.sheet-bar .caret { margin-left: auto; transition: transform 0.2s var(--ease); }
.sheet-bar[aria-expanded="true"] .caret { transform: rotate(180deg); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
  z-index: 130;
}
.sheet-backdrop.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 140;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--sh-3);
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
  max-height: 78vh;
  overflow-y: auto;
  padding: 24px 22px 30px;
}
.sheet.is-open { transform: translateY(0); }
.sheet__grip { width: 44px; height: 4px; background: var(--line-2); border-radius: var(--r-pill); margin: 0 auto 18px; }
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet__head h2 { font-size: 1rem; margin: 0; }
.sheet__close {
  background: var(--surface);
  border: 1px solid var(--line);
}
.sheet .toc { padding-top: 4px; }
.sheet .toc a { padding: 11px 12px; font-size: 0.9rem; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1180px) {
  :root { --rail-w: 268px; }
  .doc-body__inner { padding-inline: 36px; }
  .hero__grid { gap: 44px; }
}

@media (max-width: 1023px) {
  .shell { padding-inline: 20px; }

  /* nav collapses */
  .nav__inner { padding-right: 8px; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: calc(var(--nav-h) + 4px) 20px auto 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 18px;
    gap: 2px;
    box-shadow: var(--sh-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    max-height: calc(100vh - var(--nav-h) - 16px);
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { height: 46px; border-radius: var(--r-sm); padding-inline: 14px; }
  .nav__link[aria-current="page"] { color: #fff; background: var(--red); }
  .nav__spacer { display: none; }
  .nav__cta { display: none; }
  .has-drop { display: block; }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    margin: 0;
    padding: 2px 0 2px 10px;
    min-width: 0;
  }
  .drop__sep { display: none; }

  /* hero */
  .hero {
    padding: 40px 0 56px;
    border-radius: 0 0 32px 32px;
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__meta div { padding-right: 18px; margin-right: 18px; }

  /* grids */
  .verify-grid, .teasers, .stats { grid-template-columns: minmax(0, 1fr); }

  /* doc layout: rail becomes sticky accordion */
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
    height: auto;
    max-height: none;
    overflow: hidden;
    border-right: 0;
    padding: 0;
    background: var(--paper);
    transition: box-shadow 0.2s var(--ease);
  }
  .rail.is-open { box-shadow: var(--sh-2); }
  .rail__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: var(--surface);
    border: 0;
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 650;
    text-align: left;
    color: var(--ink);
  }
  .rail__toggle span:first-child {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 500;
  }
  .rail__toggle .caret { margin-left: auto; transition: transform 0.2s var(--ease); color: var(--ink-3); }
  .rail__toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .rail__inner { padding: 20px; display: none; }
  .rail.is-open .rail__inner { display: block; }

  .doc-body__inner { padding-inline: 0; }
  .doc-body { padding-top: 34px; }

  .passport__grid { grid-template-columns: minmax(0, 1fr); }
  .meta-strip div { flex: 1; min-width: 45%; }
  .kv div { grid-template-columns: minmax(0, 1fr); }
  .kv div + div { border-top: 1px solid var(--line); }
  .kv dt { border-right: 0; border-bottom: 1px solid var(--line); }
  .final { flex-direction: column; align-items: flex-start; padding: 28px; }
  .faq-a { padding-left: 22px; }
}

@media (max-width: 860px) {
  .brand__tag { display: none; }
  .topbar__inner { height: 44px; }
  .footer { border-radius: 28px 28px 0 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .shell { padding-inline: 16px; }
  .section { padding: 58px 0; }
  .hero { border-radius: 0 0 24px 24px; }
  .hero__meta { flex-direction: column; }
  .hero__meta div { border-right: 0; padding: 8px 0; margin: 0; }
  .faq-a { padding-left: 20px; padding-right: 20px; }
  .doc-hero { padding-top: 26px; }
  .steps > li { padding-left: 44px; }
  .steps > li::before { width: 29px; height: 29px; }
  .steps > li::after { left: 14px; }
  .footer__cols { gap: 30px; }
  .btn { padding: 13px 22px; }
  .final .btn { width: 100%; }
}

/* Bottom-sheet TOC (doc pages with .has-sheet-bar — same pattern as /guides) */
.sheet-bar { padding-bottom: 14px; }
body.has-sheet-bar { padding-bottom: 86px; }

@media (max-width: 1023px) {
  body.has-sheet-bar .rail { display: none; }
  body.has-sheet-bar .sheet-bar { display: flex; }
}

/* ---------- 18. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover, .teaser:hover, .verify-card:hover, .copy:hover, .teaser__link:hover { transform: none; }
}

/* ---------- 19. Print ---------- */
@media print {
  .topbar, .nav, .rail, .sheet-bar, .sheet, .sheet-backdrop, .final { display: none !important; }
  body { color: #000; }
  .doc-layout { grid-template-columns: 1fr; }
  .code { background: #fff; color: #000; }
}