/* Interactive Origami Video demo: the page around OVD.Phone, OVD.Widget and OVD.Banner.
   Ported from the Interactive Origami Video deck. Everything is scoped to .site, the page wrapper;
   the site tokens set the accent (brand teal), the UI font (Inter) and the nav offset. */
/* Layout: a proof table. The phone is set in the middle of a newsprint sheet like a proof on the stone, the guide's
   notes sit in its margins, and the paper's own story page follows further down. The phone and the Origami unit keep
   their own fixed colours in both themes. One accent, process cyan, marks everything the demo itself adds. */
.site {
  --bg: #ffffff;
  --sheet: #f7f7f8;
  --raised: #fcfcfa;
  --ink: #35324b;
  --ink-2: #414142;
  --muted: #5d5f5c;
  --rule: #e0e0e3;
  --rule-strong: #a8a79f;
  --chip: #e9e9eb;
  --accent: #128a71;
  --accent-ink: #ffffff;
  --accent-wash: rgba(18, 138, 113, 0.10);
  --accent-glow: rgba(18, 138, 113, 0.38);
  --accent-clear: rgba(18, 138, 113, 0);
  --fold: #d9d7cf;
  --shadow: rgba(30, 27, 18, 0.30);
  --shadow-soft: rgba(30, 27, 18, 0.10);
  --toast-bg: #16171a;
  --toast-ink: #f3f2ed;

  /* The paper's own page: a fixed world, the same in both themes. */
  --np-bg: #ffffff;
  --np-ink: #141414;
  --np-muted: #5c5c5c;
  --np-rule: #dddddd;
  --np-red: #7a1f1f;
  --np-note: #128a71;
  --np-photo: #eceae4;
  --np-chrome: #ecebe8;
  --np-chrome-ink: #3d3d3d;

  /* The phone's hardware: fixed colours. */
  --bezel: #111214;
  --bezel-edge: #3a3c41;
  --screen-chrome: #f6f6f7;
  --screen-ink: #111111;
  --url-pill: #e6e6ea;

  --f-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-mast: 'UnifrakturMaguntia', 'Old English Text MT', 'Times New Roman', serif;
  --f-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --t-xs: 12px;
  --t-s: 13.5px;
  --t-m: 16px;
  --t-l: 18px;
  --t-xl: 22px;
  --t-2xl: 30px;
  --t-hero: clamp(38px, 4.3vw, 58px);

  --wrap: 1240px;
  --gut: 16px;
  --top-h: 64px;
}
/* Base rules stay out of the phone and the unit: their mount points carry .ovd-host, and :where() keeps these at zero
   specificity, so phone.css and widget.css always win inside them. */
:where(.site *:not(.ovd-host *)), :where(.site *:not(.ovd-host *))::before, :where(.site *:not(.ovd-host *))::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
:where(.site a:not(.ovd-host *)) { color: inherit; }
:where(.site :focus-visible:not(.ovd-host *)) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
svg.si { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(.site :is(h1, h2, h3, h4):not(.ovd-host *)) { font-family: var(--f-display); text-wrap: balance; margin: 0; }
:where(.site p:not(.ovd-host *)) { margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 10px 14px; background: var(--ink); color: var(--bg); font: 600 var(--t-s)/1 var(--f-display); border-radius: 6px; }
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: 600 15px/1.1 var(--f-display); letter-spacing: 0.005em; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.vbtn:hover { background: var(--ink); color: var(--bg); }
.vbtn:active { transform: translateY(1px); }
.vbtn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vbtn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vbtn.small { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.vbtn.quiet { border-color: var(--rule-strong); }
.vbtn.quiet:hover { border-color: var(--ink); }
.vbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vbtn svg.si { font-size: 16px; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: 600 var(--t-s)/1.3 var(--f-display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .topbar { position: sticky; top: env(safe-area-inset-top, 0px); } }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: var(--top-h); flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 2px 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 10px; border-radius: 5px; font: 500 14.5px/1 var(--f-display); text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--chip); color: var(--ink); }
@media (max-width: 759px) { .topbar-in { padding-block: 10px 6px; } .nav { width: calc(100% + 20px); margin-inline: -10px; } }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  --pw: min(360px, calc(100vw - 2 * var(--gut) - 16px));
  --stage-w: calc(var(--pw) + 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--stage-w) minmax(0, 1fr); gap: 28px 52px; align-items: start;
  padding-block: 32px 56px; scroll-margin-top: calc(var(--top-h) + 4px);
}
@media (min-width: 760px) {
  .hero { --pw: clamp(320px, calc((100vh - 250px) * 0.5625), 360px); --pw: clamp(320px, calc((100svh - 250px) * 0.5625), 360px); --stage-w: max(calc(var(--pw) + 44px), 400px); }
}
.hero-copy { display: grid; gap: 18px; align-content: start; padding-top: 28px; min-width: 0; }
.veyebrow { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-weight: 800; font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 span { display: block; color: var(--accent); }
.lede { font-size: var(--t-l); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; max-width: 440px; }
.cta .vbtn { flex: 1 1 auto; }
.quiet-line { font: 400 var(--t-s)/1.45 var(--f-display); color: var(--muted); max-width: 40ch; }
.look-for { display: grid; gap: 8px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); list-style: none; font: 400 var(--t-s)/1.45 var(--f-display); color: var(--ink-2); }
.look-for li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.look-for svg { width: 20px; height: 20px; margin-top: 0; }
.look-for b { font-weight: 600; color: var(--ink); }

.hero-stage { display: grid; justify-items: center; gap: 18px; min-width: 0; width: 100%; }
.stage { position: relative; padding: 12px; }
.reg { position: absolute; width: 18px; height: 18px; color: var(--rule-strong); }
.reg.tl { left: 0; top: 0; } .reg.tr { right: 0; top: 0; } .reg.bl { left: 0; bottom: 0; } .reg.br { right: 0; bottom: 0; }

/* The phone: a realistic frame around the /v page in a phone browser. */
.device { position: relative; width: calc(var(--pw) + 20px); padding: 10px; border-radius: 54px; background: var(--bezel);
  box-shadow: 0 0 0 1.5px var(--bezel-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 70px -34px var(--shadow), 0 12px 24px -16px var(--shadow); }
.device::before, .device::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: var(--bezel-edge); }
.device::before { left: -3px; top: 132px; height: 62px; box-shadow: 0 -52px 0 0 var(--bezel-edge); }
.device::after { right: -3px; top: 168px; height: 92px; }
.device-screen { position: relative; overflow: hidden; border-radius: 44px; background: var(--screen-chrome); color: var(--screen-ink); font-family: var(--f-system); }
.device-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 38px; padding: 4px 24px 0; gap: 8px; font: 600 14px/1 var(--f-system); }
.device-status .island { width: calc(var(--pw) * 0.26); height: 26px; border-radius: 14px; background: #000; }
.device-status .icons { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.device-status .icons svg { height: 11px; width: auto; fill: currentColor; }
.device-url { display: grid; place-items: center; height: 38px; padding: 0 10px 6px; }
.url-pill { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--url-pill); font: 400 12.5px/1 var(--f-system); color: #2a2a2a; min-width: 0; }
.url-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.url-pill svg { width: 11px; height: 11px; flex: none; fill: #6b6b6b; }
.device-player { position: relative; width: var(--pw); max-width: 100%; aspect-ratio: 9 / 16; background: #000; }
.device-bottom { position: relative; display: flex; justify-content: space-around; align-items: center; height: 38px; padding: 0 22px 10px; color: #2d6fd6; }
.device-bottom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.device-bottom .home { position: absolute; left: 50%; bottom: 6px; width: 112px; height: 4px; margin-left: -56px; border-radius: 3px; background: #111; }
.mount-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #e8e8e8; font: 500 14px/1.45 var(--f-system); text-align: center; }
@media (max-width: 759px) {
  .stage { padding: 0; }
  .reg { display: none; }
  .device { width: calc(var(--pw) + 14px); padding: 7px; border-radius: 46px; }
  .device-screen { border-radius: 39px; }
  .device::before, .device::after { display: none; }
}

/* The guide's console under the phone. It docks to the bottom of the window while a walkthrough runs off screen. */
.console-home { width: 100%; min-width: 0; }
.console { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--raised); box-shadow: 0 1px 0 var(--shadow-soft); }
.console.is-docked { position: fixed; z-index: 50; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(calc(100vw - 2 * var(--gut)), 780px); transform: translateX(-50%); gap: 8px; padding: 12px 16px; box-shadow: 0 18px 40px -16px var(--shadow), 0 0 0 1px var(--rule); }
.console-label { display: flex; align-items: center; gap: 8px; font: 600 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.console-label .live { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.console[data-mode="tour"] .console-label .live, .console[data-mode="show"] .console-label .live, .console[data-mode="turn"] .console-label .live { background: var(--accent); }
.guide { font: 500 var(--t-l)/1.4 var(--f-body); color: var(--ink); min-height: 2.8em; text-wrap: pretty; }
.guide b { font-family: var(--f-display); font-weight: 700; }
.guide-sub { font: 400 var(--t-s)/1.45 var(--f-display); color: var(--muted); }
.console-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.console-row .spacer { flex: 1 1 auto; }
.dots { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0 0 2px; padding: 0; list-style: none; flex: 1 1 100%; min-width: 0; }
.console.is-docked .guide { min-height: 0; }
@media (max-width: 759px) {
  .console.is-docked { padding: 10px 14px; gap: 6px; }
  .console.is-docked .guide { font-size: 16px; line-height: 1.38; }
  .console.is-docked .console-label { display: none; }
}
.dots li { flex: 0 1 8px; min-width: 4px; height: 8px; border-radius: 4px; border: 1.5px solid var(--rule-strong); }
.dots li.done { background: var(--ink-2); border-color: var(--ink-2); }
.dots li.now { flex-basis: 20px; background: var(--accent); border-color: var(--accent); }
.step-count { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock { padding: 8px 10px; border-radius: 6px; background: var(--sheet); font: 500 11.5px/1.5 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; word-break: break-word; }

/* The side column: what is on the phone, the business switch, and the "Your turn" prompts. */
.hero-side { display: grid; gap: 22px; align-content: start; padding-top: 28px; min-width: 0; }
.panel { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); min-width: 0; }
.panel-label { font: 600 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.now-name { font-weight: 800; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.01em; }
.now-kicker { font: 500 var(--t-s)/1.3 var(--f-display); color: var(--muted); margin-top: -6px; }
.now-notice { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 11px 5px 6px; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--raised); color: var(--ink); font: 500 13.5px/1.1 var(--f-display); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--f-display); color: #fff; flex: none; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.turn-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: turn; }
.turn-item { border-radius: 8px; }
.turn-item > button.turn-head { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: 600 14.5px/1.3 var(--f-display); cursor: pointer; }
.turn-item > button.turn-head:hover { background: var(--chip); }
.turn-mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font: 600 11px/1 var(--f-mono); color: var(--muted); }
.turn-item.is-done .turn-mark { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.turn-item.is-now { background: var(--raised); box-shadow: 0 0 0 1px var(--accent); }
.turn-item.is-now .turn-mark { border-color: var(--accent); color: var(--accent); }
.turn-body { display: grid; gap: 10px; padding: 0 12px 12px 44px; }
.turn-body p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.turn-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Bands ───────────────────────────────────────────────── */
.band { padding-block: 64px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--top-h) - 1px); }

/* Feature cards: slips of white stock with a folded corner. */
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feat { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 10px; padding: 20px 20px 18px; background: var(--raised); border: 1px solid var(--rule); border-radius: 3px; min-width: 0; }
.feat::after { content: ''; position: absolute; top: -1px; right: -1px; width: 26px; height: 26px; background: linear-gradient(225deg, var(--bg) 0 50%, var(--fold) 50% 100%); border-bottom-left-radius: 3px; box-shadow: -1px 1px 2px var(--shadow-soft); }
.feat h3 { font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.005em; padding-right: 22px; }
.feat-line { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.feat-best { font: 400 var(--t-s)/1.4 var(--f-display); color: var(--muted); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feat.is-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 28px; align-items: center; }
.feat.is-wide > * { grid-column: 1; }
.feat.is-wide .feat-actions { grid-column: 2; grid-row: 1 / span 4; }
@media (max-width: 640px) { .feat.is-wide { grid-template-columns: minmax(0, 1fr); } .feat.is-wide .feat-actions { grid-column: 1; grid-row: auto; } }
.feat.is-running { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rel { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 4px; font: 600 11px/1.2 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.rel-1 { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.rel-2 { border: 1px solid var(--ink-2); color: var(--ink-2); }
.rel-3 { border: 1px dashed var(--muted); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font: 400 var(--t-s)/1.4 var(--f-display); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ── In the paper: a story page of the invented Riverbend Courier ─ */
.browser { border-radius: 12px; overflow: hidden; overflow: clip; border: 1px solid var(--rule-strong); box-shadow: 0 30px 60px -40px var(--shadow); background: var(--np-bg); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--np-chrome); color: var(--np-chrome-ink); border-bottom: 1px solid var(--np-rule); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9c8c4; flex: none; }
.browser-url { flex: 1 1 auto; min-width: 0; height: 26px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; background: #ffffff; font: 400 12.5px/1 var(--f-system); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444; }
.np { background: var(--np-bg); color: var(--np-ink); font-family: var(--f-body); }
.np-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 28px; border-bottom: 1px solid var(--np-rule); font: 500 12px/1.3 var(--f-display); color: var(--np-muted); }
.np-mast { padding: 18px 28px 12px; text-align: center; border-bottom: 3px double var(--np-ink); }
.np-mast b { display: block; font: 400 clamp(34px, 5.4vw, 56px)/1 var(--f-mast); letter-spacing: 0.01em; color: var(--np-ink); }
.np-mast span { display: block; margin-top: 6px; font: 500 11.5px/1.2 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--np-muted); }
.np-nav { display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; padding: 10px 28px; border-bottom: 1px solid var(--np-rule); font: 600 13.5px/1.2 var(--f-display); color: var(--np-ink); }
.np-nav span.on { color: var(--np-red); }
.np-bill { padding: 18px 28px 0; }
.np-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 26px 28px 40px; }
.np-story { max-width: 660px; min-width: 0; }
.np-kicker { font: 700 12px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--np-red); }
.np-story h3 { margin-top: 10px; font: 700 clamp(28px, 3.4vw, 40px)/1.08 var(--f-body); letter-spacing: -0.01em; color: var(--np-ink); }
.np-deck { margin-top: 12px; font: italic 400 19px/1.45 var(--f-body); color: #333333; }
.np-byline { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--np-rule); font: 500 13px/1.4 var(--f-display); color: var(--np-muted); }
.np-byline b { color: var(--np-ink); font-weight: 600; }
.np-photo { margin: 22px 0 0; }
.np-photo svg { display: block; width: 100%; height: auto; background: var(--np-photo); }
.np-photo figcaption { margin-top: 8px; font: 400 13px/1.45 var(--f-display); color: var(--np-muted); }
.np-body { margin-top: 22px; display: grid; gap: 16px; font: 400 18px/1.62 var(--f-body); color: #1d1d1d; }
.np-body .dl { font-weight: 700; letter-spacing: 0.02em; }
.np-rail { display: grid; gap: 26px; align-content: start; min-width: 0; }
.np-more h4 { padding-bottom: 8px; border-bottom: 2px solid var(--np-ink); font: 700 13px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--np-ink); }
.np-more ul { margin: 0; padding: 0; list-style: none; }
.np-more li { padding: 12px 0; border-bottom: 1px solid var(--np-rule); font: 600 16px/1.35 var(--f-body); color: var(--np-ink); }
.np-sticky { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 8px; justify-items: center; }
.np-foot { padding: 16px 28px; border-top: 1px solid var(--np-rule); font: 400 12px/1.4 var(--f-display); color: var(--np-muted); text-align: center; }
.unit-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; margin: 6px 0; min-width: 0; }
.unit-wrap > .unit-slot { justify-self: stretch; }
.unit-note { display: flex; flex-wrap: nowrap; text-align: center; align-items: center; justify-content: center; gap: 4px 8px; font: 600 11px/1.2 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--np-note); }
.unit-note::before { content: ''; flex: none; width: 18px; height: 1.5px; background: var(--np-note); }
.unit-note::after { content: ''; flex: none; width: 18px; height: 1.5px; background: var(--np-note); }
.unit-slot { position: relative; width: 100%; display: flex; justify-content: center; }
.unit-slot.is-scaled { display: block; overflow: hidden; }
.unit-scale { flex: none; width: max-content; max-width: none; transform-origin: 0 0; }
.unit-clock { width: min(100%, 300px); }
.paper-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.sound-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; font: 500 var(--t-s)/1.4 var(--f-display); color: var(--ink-2); }
.sound-note .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.sound-note.is-off .dot { background: #c0841a; animation: sn-pulse 1.8s ease-in-out infinite; }
.sound-note.is-on .dot { background: #2f8a4a; }
.sound-note .vbtn.small { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
@keyframes sn-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 26, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(192, 132, 26, 0); } }
@media (prefers-reduced-motion: reduce) { .sound-note.is-off .dot { animation: none; } }
.np-leader { padding: 0 28px 28px; }
.unit-slot-bn { display: block; }
.unit-bn { width: 100%; }
.np-mini { margin-top: -4px; }
@media (min-width: 900px) { .np-mini.unit-wrap > .unit-slot { justify-self: center; width: 320px; max-width: none; } }   /* a 320 px unit in the 300 px rail: it keeps its size and overhangs the gutter */
@media (max-width: 899px) {
  .np-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .np-sticky { position: static; }
}
@media (max-width: 759px) {
  .np-top, .np-mast, .np-nav, .np-grid, .np-foot, .np-bill, .np-leader { padding-inline: 14px; }
  .np-top span:last-child { display: none; }
  .np-body { font-size: 17px; }
}

/* ── Try another business ───────────────────────────────── */
.bizs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.biz { display: grid; grid-template-rows: auto 1fr; background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; min-width: 0; }
.biz.is-lead { grid-column: span 2; }
.biz-pic { position: relative; aspect-ratio: 16 / 9; background: #333; overflow: hidden; }
.biz.is-lead .biz-pic { aspect-ratio: 32 / 9; }
.biz-pic svg, .biz-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.biz-pic .ini { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--f-display); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.biz-pic .fallback { position: absolute; inset: 0; }
.biz-body { display: grid; gap: 8px; grid-template-rows: auto auto 1fr auto; padding: 16px 16px 16px; }
.biz-body h3 { font-weight: 700; font-size: 18px; line-height: 1.2; }
.biz-kicker { font: 500 var(--t-s)/1.3 var(--f-display); color: var(--muted); margin-top: -4px; }
.biz-change { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.biz-body .vbtn { justify-self: start; margin-top: 4px; }
.biz.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 1099px) { .bizs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 819px) { .bizs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .bizs { grid-template-columns: minmax(0, 1fr); } .biz.is-lead { grid-column: auto; } .biz.is-lead .biz-pic { aspect-ratio: 16 / 9; } }

/* ── How it works ───────────────────────────────────────── */
.how { scroll-margin-top: calc(var(--top-h) + 16px); border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); }
.how > summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; }
.how > summary::-webkit-details-marker { display: none; }
.how > summary .sum-text { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.how > summary h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; letter-spacing: -0.015em; }
.how > summary .sum-sub { display: block; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.how > summary .chev { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--rule-strong); border-radius: 50%; transition: transform .2s; }
.how[open] > summary .chev { transform: rotate(180deg); }
.how-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; padding: 8px 24px 30px; border-top: 1px solid var(--rule); padding-top: 26px; }
.how-body section { display: grid; gap: 12px; align-content: start; min-width: 0; }
.how-body h3 { font-weight: 700; font-size: 20px; }
.how-body .full { grid-column: 1 / -1; }
.how-body ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.how-body li b { color: var(--ink); font-family: var(--f-display); font-weight: 600; }
.how-body p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.how-body .note { font: 400 var(--t-s)/1.45 var(--f-display); color: var(--muted); }
.subhead { font: 600 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.table-scroll { overflow-x: auto; }
.days { width: 100%; border-collapse: collapse; font: 400 14.5px/1.45 var(--f-display); }
.days .num { font-variant-numeric: tabular-nums; }
.days th, .days td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.days th { font: 600 var(--t-xs)/1.2 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.days td.num, .days th.num { text-align: right; white-space: nowrap; }
.days tr.total td { border-bottom: 0; font-weight: 700; }
.days td:first-child { white-space: nowrap; font-weight: 600; }
.switches { display: grid; gap: 18px; }
.switch { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.switch legend { padding: 0; font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.switch legend small { margin-left: 6px; font: 500 11px/1 var(--f-mono); color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--raised); font: 500 14px/1.2 var(--f-display); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:checked + span { font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--f-display); cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.mono { font-family: var(--f-mono); font-size: 0.86em; }
.source-table { width: 100%; border-collapse: collapse; font: 400 14px/1.45 var(--f-display); }
.source-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.source-table td:first-child { width: 34%; font-weight: 600; }
@media (max-width: 859px) { .how-body { grid-template-columns: minmax(0, 1fr); } .how > summary { padding: 18px; } .how-body { padding-inline: 18px; } }

/* ── Earlier explorations ───────────────────────────────── */
.foot { padding-block: 56px 40px; border-top: 1px solid var(--rule); background: var(--sheet); }
.foot h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.015em; }
.foot .band-head { margin-bottom: 24px; }
.earlier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.earlier li { border-top: 1px solid var(--rule); }
.earlier a { display: grid; gap: 4px; padding: 14px 0 16px; text-decoration: none; }
.earlier b { font: 700 16px/1.3 var(--f-display); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.earlier a:hover b { text-decoration-color: var(--accent); }
.earlier span.idea { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.earlier .in { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: var(--accent-wash); color: var(--accent); font: 600 10.5px/1.5 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; text-decoration: none; }
.colophon { margin-top: 30px; font: 400 var(--t-xs)/1.5 var(--f-mono); color: var(--muted); }
@media (max-width: 899px) { .earlier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .earlier { grid-template-columns: minmax(0, 1fr); } }

/* ── Hero breakpoints ───────────────────────────────────── */
/* Two columns between 760 and 1139 px: the copy and the guide on the left, the phone on the right, so the phone
   is on screen from the start. */
@media (max-width: 1139px) {
  .hero { grid-template-columns: minmax(0, 1fr) var(--stage-w); grid-template-rows: auto 1fr; grid-template-areas: "copy stage" "side stage"; gap: 24px 36px; }
  .hero-copy { grid-area: copy; padding-top: 8px; }
  .hero-copy .lede { max-width: 60ch; }
  .hero-copy .look-for { display: none; }
  .hero-stage { grid-area: stage; }
  .hero-side { grid-area: side; padding-top: 0; }
}
@media (max-width: 759px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; padding-block: 22px 44px; gap: 24px; }
  .hero-copy, .hero-stage, .hero-side { grid-area: auto; grid-column: 1; }
  .hero-side { padding-top: 0; }
  .look-for { display: none; }
  .band { padding-block: 48px; }
}

/* ── The ghost finger, the hint ring, the toast ─────────── */
.ghost { position: fixed; left: 0; top: 0; z-index: 70; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; opacity: 0; transition: opacity .22s; will-change: transform; }
.ghost.is-on { opacity: 1; }
.ghost.is-rest { opacity: 0.5; }
.ghost i { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.62); box-shadow: 0 0 0 2.5px var(--accent), 0 6px 16px rgba(0, 0, 0, 0.38); transition: transform .12s ease-out; }
.ghost.is-press i { transform: scale(0.88); }
.ghost b { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.95); opacity: 0; }
.ghost.is-press b { animation: ghostRing .45s ease-out; }
@keyframes ghostRing { from { opacity: 0.95; transform: scale(0.6); } to { opacity: 0; transform: scale(1.5); } }
.hint { position: fixed; left: 0; top: 0; z-index: 45; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .25s; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px var(--accent); }
.hint.is-on { opacity: 1; animation: hintPulse 1.9s ease-in-out infinite; }
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px var(--accent), 0 0 0 4.5px var(--accent-glow); }
  55% { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px var(--accent), 0 0 0 16px var(--accent-clear); }
}
.toast { position: fixed; z-index: 80; left: 50%; top: calc(var(--top-h) + 14px + env(safe-area-inset-top, 0px)); max-width: min(92vw, 460px); padding: 11px 16px; border-radius: 8px; background: var(--toast-bg); color: var(--toast-ink); font: 500 14.5px/1.4 var(--f-display); box-shadow: 0 14px 30px -12px var(--shadow); transform: translate(-50%, -8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ghost, .ghost i, .hint, .toast, .vbtn, .how > summary .chev { transition: none; }
  .hint.is-on { animation: none; }
  .ghost.is-press b { animation: none; opacity: 0.9; transform: scale(1.15); }
}
html[data-ovd-motion="reduce"] .ghost, html[data-ovd-motion="reduce"] .ghost i, html[data-ovd-motion="reduce"] .hint, html[data-ovd-motion="reduce"] .toast { transition: none; }
html[data-ovd-motion="reduce"] .hint.is-on { animation: none; }
html[data-ovd-motion="reduce"] .ghost.is-press b { animation: none; opacity: 0.9; transform: scale(1.15); }
/* Site shell */
.site { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--t-m); line-height: 1.55; overflow-x: clip; }
:where(.site :is(h1, h2):not(.ovd-host *)) { font-family: var(--font-display, 'Source Serif 4', Georgia, serif); font-weight: 600; letter-spacing: -0.01em; }
.site .hero { padding-block: var(--section-pad); }
.site a:hover { text-decoration: none; }
.site img { display: inline; }
.site .ovd-host img { display: block; }
/* Template rules: site section rhythm, square corners, no card shadows. The phone and the units keep theirs. */
.site .band { padding-block: var(--section-pad); border-top: var(--border); }
.site .band.tpl-section--tinted { --raised: #ffffff; --sheet: #ffffff; }
.site .section-intro { margin-bottom: var(--space-7); }
.site .section-intro .u-text-body { color: var(--text-secondary); }
.site .np { --f-body: 'Source Serif 4', Georgia, 'Times New Roman', serif; }   /* the newspaper keeps its serif */
.site :is(.vbtn, .console, .panel, .chip, .clock, .turn-item, .feat, .biz, .browser, .browser-url, .sound-note, .url-pill-free) { border-radius: 0; }
.site :is(.feat, .biz, .browser, .turn-item.is-now, .feat.is-running, .biz.is-on) { box-shadow: none; }
.site .feat::after { display: none; }
.site .vbtn { font-family: var(--font-body, Inter, sans-serif); font-weight: 500; border-width: 1px; }
.site .hero-copy .btn { justify-content: center; }
.site .hero-copy .cta { display: grid; gap: var(--space-2); }
.site :is(.feat, .biz) h3 { font-family: var(--font-display, 'Source Serif 4', Georgia, serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
