/* DecisionOS — User guide. The app's own language: warm off-white, frosted
   white cards, the black ink sheet, the gold the Desk lights things with,
   Urbanist throughout. */

:root {
  --bg: hsl(225 9% 92%);
  --ink: hsl(240 4% 5%);
  --ink-raised: hsl(240 4% 10%);
  --text: hsl(240 6% 10%);
  --text-2: hsl(230 5% 36%);
  --text-3: hsl(230 4% 52%);
  --hair: hsl(230 10% 20% / .09);
  --glass: hsl(0 0% 100% / .78);
  --glass-strong: hsl(0 0% 100% / .92);
  --gold: hsl(44 88% 60%);
  --gold-deep: hsl(38 92% 50%);
  --gold-soft: hsl(44 88% 60% / .30);
  --amber: hsl(32 96% 64%);
  --violet: hsl(240 80% 61%);
  --shadow: 0 22px 48px -26px hsl(232 30% 12% / .55), 0 2px 8px -3px hsl(232 30% 12% / .12);
  --shadow-soft: 0 10px 26px -16px hsl(232 30% 12% / .45);
  --r-xl: 32px; --r-l: 24px; --r-m: 16px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* The sky: the Desk's warm glow, fixed behind everything. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }
.sky::before { width: 62vw; height: 62vw; right: -14vw; top: -22vw; background: radial-gradient(circle, hsl(44 96% 66% / .75), hsl(28 96% 66% / .32) 52%, transparent 72%); }
.sky::after { width: 48vw; height: 48vw; left: -18vw; top: 38vh; background: radial-gradient(circle, hsl(232 70% 80% / .45), transparent 70%); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top { position: fixed; inset: 12px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.top-bar {
  pointer-events: auto; width: min(1180px, 100%); height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 20px; border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-soft), inset 0 1px 0 hsl(0 0% 100% / .9); border: 1px solid hsl(0 0% 100% / .7);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.wordmark span { color: var(--text-3); }
.brand-tag { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.top-search { margin-left: auto; position: relative; width: min(360px, 40vw); }
.search-input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--hair); background: hsl(0 0% 100% / .7);
  padding: 0 44px 0 40px; font: 500 14px var(--font); color: var(--text);
  box-shadow: inset 0 1px 2px hsl(230 20% 20% / .06);
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { outline: none; border-color: hsl(240 4% 5% / .35); background: #fff; }
.search-icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search-key { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--hair); border-radius: 6px; padding: 2px 6px; background: #fff; }
.results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; display: none;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 20px; box-shadow: var(--shadow); border: 1px solid hsl(0 0% 100% / .8); padding: 6px; max-height: min(60vh, 440px); overflow: auto;
}
.results.open { display: block; }
.result { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.result:hover, .result[aria-selected="true"] { background: hsl(240 4% 5% / .06); }
.result b { display: block; font-weight: 600; font-size: 14px; }
.result span { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result mark { background: var(--gold-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.results-empty { padding: 14px; font-size: 14px; color: var(--text-2); }

.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, hsl(0 0% 24%), hsl(0 0% 6%)); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 26px -12px hsl(0 0% 0% / .7), inset 0 1px 0 hsl(0 0% 100% / .16); transition: filter .2s;
}
.btn-ink:hover { filter: brightness(1.25); }
.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: hsl(0 0% 100% / .75); border: 1px solid hsl(230 20% 20% / .06); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px -8px hsl(216 30% 25% / .35), inset 0 1px 0 hsl(0 0% 100% / .9);
}
.btn-glass:hover { background: #fff; }
.icon-btn { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { width: min(1180px, 100% - 32px); margin: 0 auto; padding: calc(var(--header-h) + 64px) 0 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.hero h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--text) 10%, hsl(36 70% 38%) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 34ch; margin: 0 0 30px; }
.role-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.roles { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: hsl(0 0% 100% / .55); border: 1px solid hsl(0 0% 100% / .7); box-shadow: inset 0 1px 3px hsl(230 20% 20% / .08); }
.role { border: 0; background: none; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background .25s var(--ease), color .25s; white-space: nowrap; }
.role[aria-pressed="true"] { background: linear-gradient(180deg, hsl(0 0% 24%), hsl(0 0% 6%)); color: #fff; box-shadow: 0 10px 20px -10px hsl(0 0% 0% / .7), inset 0 1px 0 hsl(0 0% 100% / .16); }
.path { margin-top: 22px; }
.path-title { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.path-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: p; }
.path-list a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500;
  background: hsl(0 0% 100% / .72); border: 1px solid hsl(0 0% 100% / .8); box-shadow: 0 4px 12px -8px hsl(230 30% 15% / .4); transition: transform .2s var(--ease), background .2s;
}
.path-list a:hover { transform: translateY(-1px); background: #fff; }
.path-list a::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px var(--mono); }

.hero-stage { position: relative; display: flex; justify-content: center; }
.callout {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: var(--glass-strong); box-shadow: var(--shadow); border: 1px solid hsl(0 0% 100% / .9);
}
.callout .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 4px var(--gold-soft); }
.callout-ask { left: -6%; bottom: 13%; }
.callout-decide { right: -6%; bottom: 23%; }
.callout-desk { left: -2%; top: 16%; }

/* ── The phone ──────────────────────────────────────────────────────────── */
.phone {
  --w: 300px; position: relative; width: var(--w); aspect-ratio: 390 / 844; flex: none;
  border-radius: calc(var(--w) * .145); padding: calc(var(--w) * .032);
  background: linear-gradient(160deg, hsl(240 4% 22%), hsl(240 4% 5%) 40%, hsl(240 4% 12%));
  box-shadow: 0 40px 80px -40px hsl(232 40% 10% / .7), 0 0 0 1px hsl(240 4% 30%), inset 0 0 0 2px hsl(240 4% 18%);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .12); overflow: hidden; background: #e9eaec; isolation: isolate; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.screen img.out { opacity: 0; }
.ring {
  position: absolute; z-index: 2; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--gold-soft), 0 0 0 9999px hsl(240 4% 5% / .38);
  transition: left .45s var(--ease), top .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
  animation: pulse 2.4s ease-in-out infinite;
}
.ring .badge {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font: 700 11px var(--mono); box-shadow: 0 4px 10px -4px hsl(38 90% 30% / .7);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--gold-soft), 0 0 0 9999px hsl(240 4% 5% / .38); }
  50% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 11px hsl(44 88% 60% / .12), 0 0 0 9999px hsl(240 4% 5% / .38); }
}

/* ── Start here: the black sheet ────────────────────────────────────────── */
.sheet {
  width: min(1180px, 100% - 32px); margin: 0 auto 40px; padding: 40px 40px 36px; border-radius: 40px;
  background: radial-gradient(120% 140% at 100% 0%, hsl(240 4% 14%), var(--ink) 55%); color: hsl(40 20% 97%);
  box-shadow: 0 40px 80px -48px hsl(240 30% 6% / .9);
}
.sheet-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sheet .eyebrow { color: hsl(40 8% 60%); }
.sheet h2 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.sheet-note { color: hsl(40 12% 76%); font-size: 15px; max-width: 32ch; margin: 0; }
.five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.five a {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 176px; padding: 20px; border-radius: 24px; text-decoration: none;
  background: linear-gradient(180deg, hsl(0 0% 100% / .09), hsl(0 0% 100% / .03)); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .14), inset 0 0 0 1px hsl(0 0% 100% / .06);
  transition: background .25s, transform .25s var(--ease);
}
.five a:hover { background: linear-gradient(180deg, hsl(0 0% 100% / .14), hsl(0 0% 100% / .05)); transform: translateY(-2px); }
.five .n { font: 600 12px var(--mono); color: var(--gold); }
.five b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.five span { font-size: 14px; color: hsl(40 10% 70%); line-height: 1.45; }
.five .go { margin-top: auto; font-size: 13px; font-weight: 600; color: hsl(40 20% 97%); display: inline-flex; align-items: center; gap: 6px; }

/* ── Layout: rail + chapters ────────────────────────────────────────────── */
.layout { width: min(1180px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 236px 1fr; gap: 40px; align-items: start; }
.rail { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 6px 4px 20px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-group { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 8px 12px; }
.rail-group:first-child { margin-top: 0; }
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background .2s, color .2s, opacity .2s;
}
.rail a .k { font: 500 11px var(--mono); color: var(--text-3); width: 18px; }
.rail a:hover { background: hsl(0 0% 100% / .6); color: var(--text); }
.rail a.active { background: #fff; color: var(--text); box-shadow: var(--shadow-soft); }
.rail a.active .k { color: var(--gold-deep); }
.rail a.dim { opacity: .45; }

.chapters { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.chapter {
  position: relative; padding: 36px; border-radius: var(--r-xl); background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid hsl(0 0% 100% / .8); box-shadow: var(--shadow); transition: opacity .3s;
}
.chapter.not-yours { opacity: .72; }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ch-num { font: 600 13px var(--mono); color: var(--gold-deep); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: hsl(240 4% 5% / .06); color: var(--text-2); }
.chip.where { background: hsl(44 88% 60% / .18); color: hsl(36 70% 28%); }
.chip.where::before { content: "Where "; font-weight: 500; opacity: .75; margin-right: 4px; }
.chapter h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.lede { margin: 10px 0 0; color: var(--text-2); font-size: 17px; max-width: 56ch; }
.ch-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; margin-top: 28px; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.step-btn {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border: 0; border-radius: 18px; background: transparent; transition: background .25s, box-shadow .25s;
}
.step-btn:hover { background: hsl(0 0% 100% / .55); }
.step.active .step-btn { background: #fff; box-shadow: var(--shadow-soft); }
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 600 13px var(--mono);
  background: hsl(240 4% 5% / .07); color: var(--text-2); transition: background .25s, color .25s;
}
.step.active .step-n { background: var(--ink); color: var(--gold); }
.step-text { font-size: 16px; line-height: 1.5; padding-top: 4px; color: var(--text); }
.step-text b { font-weight: 600; }
.key { display: inline-block; font: 600 12px var(--mono); padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; vertical-align: 1px; }

.tip { margin-top: 18px; display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: hsl(44 88% 60% / .14); border: 1px solid hsl(44 88% 60% / .3); font-size: 15px; color: hsl(30 30% 22%); }
.tip::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px), var(--gold-soft); }

/* The stage: the phone, whole, with the step's control ringed. No lens and
   no zoom (2026-10-12, founder) — everything stays within the screen. */
.stage { position: sticky; top: calc(var(--header-h) + 24px); width: 320px; display: flex; flex-direction: column; align-items: center; }
/* Sized by the window's height too, so the whole phone is in view on a laptop. */
.stage .phone { --w: clamp(220px, calc((100vh - 340px) * 0.462), 300px); }
.stage-caption { margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; }
/* Each step's own screen: phones and print only (the stage covers desktop). */
.step-phone { display: none; }

.ch-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hair); }
.ch-foot a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; flex-direction: column; gap: 2px; }
.ch-foot a small { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ch-foot a:hover { color: var(--text); }
.ch-foot .next { text-align: right; margin-left: auto; }

/* ── FAQ & footer ───────────────────────────────────────────────────────── */
.faq details { border-radius: 18px; background: hsl(0 0% 100% / .6); margin-top: 8px; transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); translate: 0 -70%; rotate: 45deg; transition: rotate .25s, translate .25s; }
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--text-2); }
.contact { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px; border-radius: 22px; background: var(--ink); color: hsl(40 20% 97%); }
.contact p { margin: 0; flex: 1 1 260px; color: hsl(40 12% 76%); }
.contact b { color: #fff; }
.contact .btn-glass { color: var(--ink); }

.foot { width: min(1180px, 100% - 32px); margin: 56px auto 0; padding: 28px 4px 120px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-3); font-size: 14px; border-top: 1px solid var(--hair); }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Phone contents pill + sheet (small screens only). */
.toc-pill, .toc-sheet, .toc-scrim { display: none; }

/* ── Medium ─────────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .layout { grid-template-columns: 1fr; }
  .rail { display: none; }
  .five { grid-template-columns: repeat(3, 1fr); }
}

/* ── Small: phones and narrow tablets — each step carries its own screen. ── */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .top { inset: 8px 0 auto; padding: 0 12px; }
  .top-bar { height: 52px; padding: 0 6px 0 16px; }
  .brand-tag { display: none; }
  .top-search { display: none; }
  .icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: hsl(0 0% 100% / .7); margin-left: auto; cursor: pointer; }
  .top-bar .btn-ink { height: 40px; padding: 0 14px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: calc(var(--header-h) + 40px); padding-bottom: 32px; }
  .hero-lede { font-size: 17px; }
  .roles { display: flex; width: 100%; }
  .role { flex: 1; padding: 0 8px; font-size: 13px; }
  .hero-stage .phone { --w: min(240px, 62vw); }
  .callout-desk { display: none; }
  .callout { font-size: 12px; padding: 8px 11px; }
  .callout-ask { left: 0; } .callout-decide { right: 0; } .callout-desk { left: 0; }
  .sheet { padding: 28px 18px 22px; border-radius: 30px; margin-bottom: 24px; }
  .sheet-head { flex-direction: column; align-items: start; }
  .five { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
  .five::-webkit-scrollbar { display: none; }
  .five li { flex: 0 0 72%; scroll-snap-align: start; }
  .five a { min-height: 160px; }
  .chapter { padding: 24px 18px; border-radius: 28px; }
  .lede { font-size: 16px; }
  .ch-body { display: block; margin-top: 18px; }
  .stage { display: none; }
  .steps { gap: 14px; }
  .step-btn { padding: 4px 0; background: none !important; box-shadow: none !important; cursor: default; }
  .step .step-n { background: var(--ink); color: var(--gold); }
  .step-phone { display: flex; justify-content: center; margin: 14px 0 6px; }
  .step-phone .phone { --w: min(250px, 66vw); }
  .tip { margin-left: 0; }
  .toc-pill {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 45; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0;
    height: 48px; max-width: calc(100% - 32px); padding: 0 18px 0 8px; border-radius: 999px; border: 0; cursor: pointer;
    background: linear-gradient(180deg, hsl(0 0% 24%), hsl(0 0% 6%)); color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 18px 36px -14px hsl(0 0% 0% / .7), inset 0 1px 0 hsl(0 0% 100% / .16);
  }
  .toc-pill .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: hsl(0 0% 100% / .12); }
  .toc-pill .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc-scrim { position: fixed; inset: 0; z-index: 70; background: hsl(240 4% 5% / .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .toc-sheet {
    /* No display here: closed, it stays display:none (only .toc-open shows it).
       Pushed off-screen instead, Safari's sliding toolbar let its top edge peek
       up at the foot of every page. */
    position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 82vh; flex-direction: column;
    border-radius: 30px 30px 0 0; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 -20px 60px -20px hsl(240 30% 6% / .5); padding: 10px 16px max(16px, env(safe-area-inset-bottom));
    translate: 0 calc(100% + 48px); transition: translate .35s var(--ease);
  }
  .toc-open .toc-scrim, .toc-open .toc-sheet { display: flex; }
  .toc-open .toc-scrim { display: block; }
  .toc-open .toc-sheet.shown { translate: 0 0; }
  .toc-grab { width: 40px; height: 5px; border-radius: 3px; background: hsl(240 4% 5% / .18); margin: 0 auto 12px; }
  .toc-sheet .search-wrap { position: relative; margin-bottom: 10px; }
  .toc-sheet .search-input { height: 46px; font-size: 16px; }
  .toc-list { overflow: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .toc-list .rail-group { margin-left: 4px; }
  .toc-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 15px; }
  .toc-list a .k { font: 500 12px var(--mono); color: var(--text-3); width: 20px; }
  .toc-list a.active { background: #fff; box-shadow: var(--shadow-soft); }
  .toc-list a.dim { opacity: .5; }
  .toc-results .result { padding: 12px; }
  .foot { padding-bottom: 110px; }
}

@media (max-width: 420px) {
  .top-bar .btn-ink span { display: none; }
  .five li { flex-basis: 82%; }

}

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

/* ── Print / "Save as PDF": every step with its screen, no chrome. ─────── */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .sky, .top, .rail, .toc-pill, .toc-sheet, .toc-scrim, .stage, .ch-foot, .hero-stage, .contact .btn-glass { display: none !important; }
  .hero { padding: 0 0 12px; display: block; }
  .layout { display: block; width: auto; }
  .sheet { background: #fff; color: #000; box-shadow: none; border: 1px solid #ddd; padding: 16px; }
  .five { grid-template-columns: repeat(5, 1fr); }
  .five a { background: none; box-shadow: none; border: 1px solid #ddd; min-height: 0; }
  .five span, .sheet .eyebrow, .sheet-note { color: #444; }
  .five .go { display: none; }
  .chapter { box-shadow: none; border: 1px solid #ddd; background: #fff; break-inside: avoid-page; padding: 18px; margin-bottom: 12px; opacity: 1 !important; }
  .ch-body { display: block; }
  .step { break-inside: avoid; }
  .step-phone { display: block; margin: 6px 0 10px 46px; }
  .step-phone .phone { --w: 150px; box-shadow: none; }
  .ring { animation: none; }
}
