/* Case study page. Shares the Spec Sheet tokens with index.html
   (keep the :root block in sync if the palette changes). */
:root {
  --bg: #FBFBFC; --paper: #FFFFFF; --fg: #0D0F17; --muted: #626879; --faint: #A3A8B8;
  --grid: rgba(1,36,197,0.085); --border: rgba(13,15,23,0.12);
  --ink: #0124C5; --ink-soft: #E9EDFB; --redline: #0124C5;
  --ok: #12B76A; --ok-soft: #E3F6EC; --warn: #E8930C; --warn-soft: #FDF1DC; --bad: #E5372B; --bad-soft: #FCE6E4;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.anno { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--redline); white-space: nowrap; pointer-events: none; }

/* nav */
header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,252,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 3px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.04em; text-decoration: none; }
.logo-node { width: 9px; height: 9px; background: var(--ink); display: inline-block; margin: 0 2px; animation: node 2.4s ease-in-out infinite; }
@keyframes node { 50% { background: var(--redline); } }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; text-decoration: none; padding: 11px 18px; border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* type */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--ink); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 128px); line-height: .88; letter-spacing: -.05em; margin: 0; }
.lede { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.03em; margin: 18px 0 0; max-width: 22ch; text-wrap: balance; }
.lede em { font-style: normal; color: var(--ink); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: .98; letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.section { padding-block: 96px; position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.num { font-family: var(--mono); font-size: 12px; color: var(--redline); letter-spacing: .06em; display: block; margin-bottom: 14px; }

/* ─── case hero ─── */
.case-hero { padding-block: 72px 40px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--paper); }
.specs div { padding: 14px 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.specs div:nth-child(odd) { border-right: 1px solid var(--border); }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 15px; font-weight: 500; }

/* ─── device frames ─── */
.browser { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(13,15,23,.04), 0 30px 60px -28px rgba(1,36,197,.35), 0 12px 24px -16px rgba(13,15,23,.25); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #F4F5F8; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5D8E0; }
.url { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url b { color: var(--ink); font-weight: 400; }
.browser-view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: #F3F4F6; }
.browser-view img { width: 100%; height: auto; position: absolute; top: 0; left: 0; }
.phone { position: relative; width: 100%; aspect-ratio: 9 / 19.2; background: #0D0F17; border-radius: 14% / 6.6%; padding: 2.2%;
  box-shadow: inset 0 0 0 1.5px #3A3F4D, 0 40px 60px -30px rgba(1,36,197,.45), 0 18px 30px -18px rgba(13,15,23,.5); }
.phone::after { content: ""; position: absolute; top: 1.9%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); background: #0D0F17; border-radius: 99px; }
.phone .screen { width: 100%; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* hero composite */
.stage { position: relative; margin-top: 56px; aspect-ratio: 16 / 9.2; perspective: 2400px; }
.stage .browser { position: absolute; left: 0; top: 4%; width: 74%; transform: rotateY(9deg) rotateX(3deg); transform-origin: left center; }
.stage .p1 { position: absolute; right: 13%; top: 10%; width: 20%; transform: rotate(-3deg); z-index: 2; }
.stage .p2 { position: absolute; right: 0; top: 22%; width: 17.5%; transform: rotate(4deg); z-index: 1; }
.callout { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; }
.callout::before { content: ""; width: 34px; height: 1px; background: var(--redline); }
.callout.l::before { order: 2; }
.callout .anno { background: var(--bg); padding: 2px 6px; border: 1px solid var(--redline); }
.stage .c1 { left: 1.5%; top: 0; }
.stage .c2 { right: 1%; bottom: 0; }

/* ─── summary ─── */
.tldr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
.big-p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -.015em; font-weight: 400; margin: 0; text-wrap: pretty; }
.big-p strong { font-weight: 600; color: var(--ink); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { background: var(--paper); border: 1px solid var(--border); padding: 24px; min-width: 0; }
.card .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card p strong { color: var(--fg); font-weight: 600; }

/* decision blocks */
.decision { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.tco { display: grid; gap: 0; border: 1px solid var(--border); background: var(--paper); margin-top: 24px; }
.tco div { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tco div:last-child { border-bottom: 0; }
.tco dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--redline); margin-bottom: 4px; }
.tco dd { margin: 0; font-size: 15.5px; line-height: 1.55; }

/* stepper (persistent views) */
.stepper { margin-top: 40px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.steps button { font-family: var(--mono); font-size: 11.5px; padding: 7px 10px; border: 1px solid var(--border); background: var(--paper); color: var(--muted); cursor: pointer; }
.steps button[aria-current="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.step-cap { margin-top: 14px; font-size: 15.5px; color: var(--muted); min-height: 3em; }
.step-cap b { color: var(--fg); font-weight: 600; }
.progress { height: 2px; background: var(--border); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--redline); }
.browser-view img.fade { transition: opacity .35s ease; }

/* before / after */
.ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 900px; margin: 48px auto 0; align-items: start; }
.ba figure, .phones figure { margin: 0; min-width: 0; }
figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 14px; letter-spacing: .03em; }
figcaption b { color: var(--fg); font-weight: 400; }
figcaption .tag { color: var(--redline); }
.phones { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; margin-top: 48px; align-items: start; }
.phones.raised figure:nth-child(2) { margin-top: -28px; }

/* status model diagram */
.diagram { background: var(--paper); border: 1px solid var(--border); padding: 28px; margin-top: 40px; overflow-x: auto; }
.diagram svg { width: 100%; min-width: 760px; height: auto; display: block; font-family: var(--body); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.vs .card.before { border-left: 3px solid var(--faint); }
.vs .card.after { border-left: 3px solid var(--ink); }

/* quote */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.32; letter-spacing: -.02em; text-wrap: balance; }
.quote figcaption { font-size: 12px; margin-top: 20px; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }

.next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 40px 0; }
.next a.big { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; text-decoration: none; }
.next a.big:hover { color: var(--ink); }
footer { background: var(--fg); color: #D6D9E3; padding-block: 28px; font-family: var(--mono); font-size: 12px; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: #fff; }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.lb::backdrop { background: rgba(13,15,23,.82); }
dialog.lb img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
[data-zoom] { cursor: zoom-in; }

@media (max-width: 900px) {
  .hero-top, .tldr, .decision { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trio, .outcomes, .vs { grid-template-columns: minmax(0, 1fr); }
  .stage { aspect-ratio: 4 / 3.4; }
  .stage .browser { width: 92%; transform: none; }
  .stage .p1 { width: 32%; right: 4%; top: 34%; }
  .stage .p2 { display: none; }
  .stage .c1 { display: none; }
  .ba, .phones { gap: 14px; }
  .phones.raised figure:nth-child(2) { margin-top: 0; }
  .crumbs .hide-sm { display: none; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div:nth-child(odd) { border-right: 0; }
  .specs div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) { .logo-node { animation: none; } html { scroll-behavior: auto; } }

/* ─── Sample Generator additions ─── */
.nda { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border: 1px dashed var(--redline); background: var(--paper); font-size: 15px; color: var(--muted); max-width: 640px; }
.nda b { color: var(--redline); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; font-weight: 400; white-space: nowrap; padding-top: 3px; }

/* before/after stage */
.stage.sg .browser.back { left: 0; top: 0; width: 56%; transform: rotateY(12deg) rotateX(3deg) scale(.96); filter: grayscale(1) contrast(.92); opacity: .9; }
.stage.sg .browser.front { left: auto; right: 0; top: 14%; width: 70%; transform: rotateY(-8deg) rotateX(2deg); transform-origin: right center; z-index: 2; }
.stage.sg .browser.back .browser-view { aspect-ratio: 2376 / 1182; }
.stage.sg .browser.front .browser-view { aspect-ratio: 2522 / 1440; }
.stage.sg .c1 { left: 1%; top: auto; bottom: 18%; }
.stage.sg .c2 { right: 1%; bottom: auto; top: 6%; }

/* insight */
.insight { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.insight .dim { color: var(--faint); }
.insight em { font-style: normal; color: var(--ink); }

/* three paths */
.paths { display: grid; gap: 12px; margin-top: 36px; }
.path { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--border); padding: 20px 24px; }
.path .letter { font-family: var(--mono); font-size: 20px; color: var(--muted); }
.path h3 { margin: 0 0 2px; }
.path p { margin: 0; color: var(--muted); font-size: 15.5px; }
.path .verdict { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 7px 12px; border: 1px solid var(--border); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--redline); }
.path.chosen { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 20px 40px -28px rgba(1,36,197,.6); }
.path.chosen .letter { color: var(--ink); }
.path.chosen .verdict { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
.aside { margin-top: 18px; font-style: italic; color: var(--muted); max-width: 70ch; }

/* spine + annotated screen */
.spine-wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 44px; }
.spine { list-style: none; margin: 0; padding: 0; position: relative; }
.spine::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
.spine li { position: relative; padding: 0 0 26px 34px; cursor: default; }
.spine li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--paper); border: 1px solid var(--faint); transition: background .2s, border-color .2s; }
.spine li b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; transition: color .2s; }
.spine li span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.spine li small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; line-height: 1.45; }
.spine li.on::before { background: var(--redline); border-color: var(--redline); }
.spine li.on b { color: var(--redline); }
.spine li.na { opacity: .55; }
.annot { position: relative; }
.annot .browser-view { aspect-ratio: 2522 / 1440; }
.mark { position: absolute; border: 1.5px solid var(--redline); background: rgba(1,36,197,.04); opacity: .18; transition: opacity .25s, background .25s; pointer-events: none; }
.mark i { position: absolute; top: -11px; left: -11px; width: 22px; height: 22px; background: var(--redline); color: #fff; font: 10.5px/22px var(--mono); text-align: center; font-style: normal; }
.mark.on { opacity: 1; background: rgba(1,36,197,.10); }
.annot-cap { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.lesson { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.closing { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -.03em; text-align: center; max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.closing em { font-style: normal; color: var(--ink); }

@media (max-width: 900px) {
  .spine-wrap, .lesson { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage.sg .browser.back { width: 70%; transform: none; }
  .stage.sg .browser.front { width: 88%; top: 26%; transform: none; }
  .path { grid-template-columns: 32px minmax(0, 1fr); }
  .path .verdict { grid-column: 2; justify-self: start; }
}

/* ─── GreenHill / Magellan additions ─── */
/* three browsers fanned out */
.stage.fan { aspect-ratio: 16 / 8.4; }
.stage.fan .browser { width: 54%; }
.stage.fan .browser-view { aspect-ratio: 1440 / 1024; }
.stage.fan .b1 { left: 0; top: 12%; transform: rotateY(16deg) scale(.94); transform-origin: left center; }
.stage.fan .b2 { left: 23%; top: 0; transform: none; z-index: 2; }
.stage.fan .b3 { left: auto; right: 0; top: 12%; transform: rotateY(-16deg) scale(.94); transform-origin: right center; }
.stage.fan .c1 { left: 1%; top: auto; bottom: 0; }
/* wide web view + phones (Magellan) */
.stage.wide .browser-view { aspect-ratio: 2000 / 1412; }
.stage.wide .browser { width: 70%; }

/* persona */
.persona { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
.persona figure { margin: 0; }
.persona .shot { border: 1px solid var(--border); background: var(--paper); box-shadow: 0 24px 48px -30px rgba(1,36,197,.45); }
.persona blockquote { margin: 0 0 22px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.persona ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.persona li { padding: 12px 14px; background: var(--paper); border: 1px solid var(--border); font-size: 15.5px; line-height: 1.5; }
.persona li b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--redline); font-weight: 400; display: block; margin-bottom: 3px; }

/* artefact strip (research boards) */
.artefacts { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.artefacts figure { margin: 0; min-width: 0; }
.artefacts .shot { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border); background: var(--paper); }
.artefacts .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* pillar: text + screen */
.pillar { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; margin-top: 64px; }
.pillar.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.pillar.flip > :first-child { order: 2; }
.pillar .browser-view { aspect-ratio: 1440 / 1024; }
.pillar h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; }
.pillar .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.proto { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--fg); color: #F3F4F8; padding: 32px 36px; margin-top: 8px; }
.proto p { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
.proto .btn { border-color: #F3F4F8; color: #F3F4F8; }
.proto .btn:hover { background: #F3F4F8; color: var(--fg); }

@media (max-width: 900px) {
  .persona, .pillar, .pillar.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pillar.flip > :first-child { order: 0; }
  .artefacts { grid-template-columns: minmax(0, 1fr); }
  .stage.fan { aspect-ratio: 4 / 3; }
  .stage.fan .browser { width: 80%; }
  .stage.fan .b1 { transform: none; } .stage.fan .b3 { transform: none; top: 30%; }
  .stage.fan .b2 { left: 10%; top: 15%; }
  .stage.wide .browser { width: 92%; }
}

/* retired toggle: hidden on pages that were locked while it still existed */
.redline-toggle, #redline-toggle { display: none !important; }
.proto, .proto h1, .proto h2, .proto h3, .proto p { color: #F3F4F8 !important; }

/* one background across the site: the daylight sky (assets/sky.js) replaces the old blueprint grid */
body { background-image: none; }
/* words never sit bare on the clouds in a faint tint */
figcaption, .anno, .hub-label, .sec-label { text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.proto .anno, .proto figcaption, footer .anno { text-shadow: none; }

/* faint and muted words stay readable on the sky */
:root { --faint: #5F667B; --muted: #4A5064; }

/* previous / next: keep the page gutter, and stack on phones */
.container.next { padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px var(--gutter); }
@media (max-width: 640px) {
  .container.next { flex-direction: column; align-items: stretch; gap: 14px; padding: 32px 20px; }
  .container.next .btn { justify-content: center; min-height: 52px; }
  .container.next a.big { display: flex; justify-content: center; align-items: center; gap: .3em; text-align: center; padding: 14px 16px; border-radius: var(--btn-r, 10px); background: #0D0F17; color: #fff; font-size: 24px; }
  .container.next a.big:hover, .container.next a.big .sw-t { color: #fff; }
}

/* the dark footer runs to the very bottom; the floating bar sits on it, not on a strip of sky below */
html.has-dock body:has(footer) { padding-bottom: 0; }
html.has-dock body > footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); margin-bottom: 0; }
/* the bar stays solid so its labels read over the black */
html.has-dock body:has(footer) .dock { background: rgba(251,251,252,.95); }
