/* Purser — fictional demo. Directed after Billy Wilder, The Apartment (1960).
   One grey office of identical cards under a ceiling of light; one green = live money. */

:root {
  --floor: #e3e4df;
  --floor-2: #d3d6d0;
  --paper: #f3f3ef;
  --ink: #141614;
  --ink-2: #4c504b;
  --ink-3: #7c807a;
  --line: #c9ccc5;
  --graphite: #151716;
  --graphite-2: #1f2220;
  --on-dark: #e7e9e4;
  --on-dark-2: #9a9e98;
  --on-dark-line: #343834;
  --live: #2bd27a;
  --live-ink: #0d1b12;
  --frost: #eef3f4;
  --gut: clamp(16px, 4.5vw, 72px);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emb: "Share Tech Mono", ui-monospace, "Consolas", monospace;
  --r-card: clamp(10px, 1.4vw, 22px);
}

html { background: var(--graphite); overflow-x: clip; }
body {
  background: var(--floor);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 700; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; }

/* ---- the switch device: embossed card lettering ---- */
.emb {
  font-family: var(--emb);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 400;
  color: #3b3f3a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(0, 0, 0, .13);
}
.dark .emb, .card .emb, .deck-counter .emb, [data-top="dark"] .chrome .emb {
  color: #dadcd6;
  text-shadow: 0 -1px 0 rgba(255, 255, 255, .28), 0 1px 0 rgba(0, 0, 0, .9), 0 2px 2px rgba(0, 0, 0, .35);
}

/* ---- buttons: small card plates ---- */
.btn-card {
  display: inline-flex; align-items: center; gap: .62em;
  height: 3.15em; padding: 0 1.25em 0 .95em;
  border-radius: .55em;
  background: var(--live); color: var(--live-ink);
  font: 600 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset -4px 0 0 rgba(0, 0, 0, .08), 0 1px 0 rgba(0, 0, 0, .25), 0 10px 22px -12px rgba(0, 0, 0, .55);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.btn-card:hover { transform: translateY(-3px) rotate(-1.4deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset -4px 0 0 rgba(0, 0, 0, .08), 0 1px 0 rgba(0, 0, 0, .25), 0 16px 26px -12px rgba(0, 0, 0, .6); }
.btn-card:active { transform: translateY(0) rotate(0); }
.chip {
  width: 1.15em; height: .86em; border-radius: .2em; flex: none;
  background:
    linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .28) 32% 36%, transparent 36% 64%, rgba(0, 0, 0, .28) 64% 68%, transparent 68%),
    linear-gradient(0deg, transparent 46%, rgba(0, 0, 0, .28) 46% 54%, transparent 54%),
    linear-gradient(135deg, #e7e9e3, #9fa39c 50%, #d3d6cf);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.btn-sm { height: 2.6em; font-size: .9rem; }
.btn-line {
  font: 500 1rem/1 var(--text); text-decoration: none; padding: .9em .2em .55em;
  border-bottom: 1.5px solid currentColor;
}
.btn-line:hover { border-bottom-width: 3px; }
.btn-mini {
  font: 500 .82rem/1 var(--text); color: inherit; background: none; cursor: pointer;
  border: 1px solid currentColor; border-radius: .45em; padding: .55em .8em; opacity: .8;
}

/* ---- instruments ---- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 68px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gut);
  color: var(--ink); pointer-events: none;
}
.chrome > * { pointer-events: auto; }
[data-top="dark"] .chrome { color: var(--on-dark); }
/* the slate's own ground wherever content scrolls beneath it (the hero is a fixed set: it keeps the bare slate) */
html:not(.in-hero) .chrome { background: rgba(243, 243, 239, .93); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html:not(.in-hero)[data-top="dark"] .chrome { background: rgba(21, 23, 22, .93); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 var(--display); font-stretch: 75%; letter-spacing: -.03em; text-decoration: none; }
.wm-card { width: 30px; height: 19px; border-radius: 3.5px; background: var(--graphite); position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.wm-card::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--live); }
.nav { display: flex; gap: 26px; margin-left: auto; font: 500 14px/1 var(--text); }
.nav a { text-decoration: none; opacity: .78; padding: 8px 0; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.chrome-cta { margin-left: 4px; }

.deck-counter { position: fixed; right: var(--gut); bottom: 28px; z-index: 40; width: 168px; height: 106px; }
.dc-top, .dc-edges i {
  position: absolute; inset: 0; border-radius: 9px; background: var(--graphite);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(0, 0, 0, .6);
}
.dc-edges i { transform: translate(calc(var(--i) * 5px), calc(var(--i) * -5px)); background: var(--graphite-2); }
.dc-top { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; }
.dc-top::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; border-radius: 0 9px 9px 0; background: #3b3f3b; }
.dc-n { font-size: 11px; color: var(--on-dark-2) !important; }
.dc-label { font-size: 13px; line-height: 1.2; }

.slip {
  position: fixed; left: var(--gut); bottom: 28px; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  border-radius: 10px; background: rgba(243, 243, 239, .92); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 22px -14px rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
}
[data-bottom="dark"] .slip { background: rgba(31, 34, 32, .92); color: var(--on-dark); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
[data-bottom="dark"] .slip .emb { color: #dadcd6; text-shadow: 0 1px 0 rgba(0, 0, 0, .9); }
.slip, .deck-counter { transition: opacity .3s ease-out; }
.in-hero .slip, .in-hero .deck-counter, .in-deal .slip, .in-controls .deck-counter { opacity: 0; pointer-events: none; }
.slip-card { width: 38px; height: 24px; border-radius: 4px; background: var(--graphite); position: relative; flex: none; }
.slip-edge { position: absolute; right: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--live); }
.frozen .slip-edge { background: #8a8e88; }
.slip-text { display: flex; flex-direction: column; gap: 3px; }
.slip-k { font: 500 11px/1 var(--text); opacity: .65; }
.slip-v { font-size: 12.5px; line-height: 1.1; }

/* ---- the card ---- */
.card { position: relative; aspect-ratio: 1.586; container-type: inline-size; }
.card-3d { transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; border-radius: 4.4cqw; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: var(--on-dark);
  background:
    var(--grain),
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .09), transparent 55%),
    linear-gradient(160deg, #2a2d2b 0%, #181a19 52%, #222523 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
.face > * { position: absolute; }
.back { transform: rotateY(180deg); }
.c-brand { left: 7cqw; top: 6.4cqw; font: 700 7.4cqw/1 var(--display); font-stretch: 75%; letter-spacing: -.03em; color: #eceee9; }
.c-type { right: 9cqw; top: 8cqw; font-size: 2.7cqw; color: #a3a7a0 !important; }
.c-chip {
  left: 7.4cqw; top: 20cqw; width: 11.6cqw; height: 8.8cqw; border-radius: 1.7cqw;
  background:
    linear-gradient(90deg, transparent 31%, rgba(0, 0, 0, .3) 31% 34%, transparent 34% 66%, rgba(0, 0, 0, .3) 66% 69%, transparent 69%),
    linear-gradient(0deg, transparent 31%, rgba(0, 0, 0, .3) 31% 34%, transparent 34% 66%, rgba(0, 0, 0, .3) 66% 69%, transparent 69%),
    linear-gradient(135deg, #e6e8e2, #9da19a 48%, #cfd2cb 70%, #8f938c);
  box-shadow: inset 0 0 0 .25cqw rgba(0, 0, 0, .35);
}
.c-wave { left: 21.6cqw; top: 20.6cqw; width: 6cqw; height: 7.6cqw; background: var(--wave) center/contain no-repeat; opacity: .7; }
.c-num { left: 7.4cqw; top: 35.5cqw; font-size: 4.9cqw; letter-spacing: .13em; white-space: nowrap; }
.c-name { left: 7.4cqw; bottom: 10cqw; font-size: 4.3cqw; white-space: nowrap; }
.c-role { left: 7.4cqw; bottom: 5cqw; font-size: 2.7cqw; color: #a3a7a0 !important; }
.c-limit { right: 9cqw; bottom: 10.5cqw; font-size: 3.5cqw; white-space: nowrap; }
.c-status { right: 9cqw; top: 20.4cqw; font-size: 3.6cqw; color: var(--live-ink); }
.c-plate { right: 9cqw; top: 20.4cqw; font-size: 3.4cqw; line-height: 1; padding: .3em .45em .25em; border-radius: .3em; background: var(--live); color: var(--live-ink) !important; text-shadow: none !important; }
.card.is-frozen .c-plate { background: var(--frost); color: #1b1e1c !important; }
.c-edge { right: 0; top: 0; bottom: 0; width: 2.6cqw; background: linear-gradient(180deg, #43e08f, var(--live) 40%, #22b468); }
.face.off .c-edge { background: linear-gradient(180deg, #3f433f, #2f322f); }
.frozen .c-edge, .card.is-frozen .c-edge { background: #80847e; }
.c-sheen {
  inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .13) 46%, rgba(255, 255, 255, .02) 54%, transparent 64%);
  background-size: 260% 100%; background-position: var(--sheen, 60%) 0;
}
.c-frost {
  inset: 0; pointer-events: none; opacity: var(--fo, 0);
  background: var(--frost-img) center/cover, radial-gradient(140% 120% at 100% 100%, rgba(238, 243, 244, .55), rgba(238, 243, 244, .3) 60%, rgba(238, 243, 244, .2));
  -webkit-mask-image: radial-gradient(circle at 96% 96%, #000 calc(var(--fr, 0%) - 10%), transparent var(--fr, 0%));
  mask-image: radial-gradient(circle at 96% 96%, #000 calc(var(--fr, 0%) - 10%), transparent var(--fr, 0%));
}
.card.is-frozen .c-frost { --fo: 1; --fr: 170%; }
.back .c-stripe { left: 0; right: 0; top: 11cqw; height: 15cqw; background: #0a0b0a; }
.back .c-back-brand { right: 8cqw; bottom: 7cqw; font: 700 5cqw/1 var(--display); font-stretch: 75%; color: #5c605b; }

/* ============ 1 · ARRIVAL ============ */
.arrival { --length: 270; }
.arrival .frame { background: var(--floor); }
.room { position: absolute; inset: 0; overflow: hidden; perspective: 640px; perspective-origin: 71% 47%; }
.floor, .ceiling { position: absolute; left: -70%; width: 240%; overflow: hidden; }
.floor { bottom: -2px; height: 420vh; transform-origin: 50% 100%; transform: rotateX(81deg); background: var(--floor); }
.ceiling { top: -2px; height: 300vh; transform-origin: 50% 0; transform: rotateX(-80deg); background: #eceeea; }
.floor-grid, .ceiling-grid { position: absolute; left: 0; right: 0; will-change: transform; }
.floor-grid { top: -1400px; bottom: 0; background: var(--floor-tile) 0 100% / 300px 250px repeat; transform: translate3d(0, var(--push, 0px), 0); }
.ceiling-grid { top: 0; bottom: -1400px; background: var(--ceil-tile) 0 0 / 300px 220px repeat; transform: translate3d(0, calc(var(--push, 0px) * -1), 0); }
.haze { position: absolute; left: 0; right: 0; top: 33%; height: 28%; background: linear-gradient(180deg, rgba(236, 238, 234, 0), rgba(236, 238, 234, .96) 50%, rgba(227, 228, 223, 0)); }
.room::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 71% 47%, transparent 55%, rgba(60, 64, 58, .14)); pointer-events: none; }

.lead-wrap { position: absolute; left: 71%; top: 47%; width: min(26vw, 50vh); z-index: 3; transform: translate(-50%, -50%); perspective: 1400px; }
.lead-pose { position: relative; transform-style: preserve-3d; transform-origin: 70% 36%; }
.lead { width: 100%; box-shadow: none; }
.lead .face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 50px -24px rgba(20, 22, 20, .55); }
.deck { position: absolute; inset: 0; transform-style: preserve-3d; }
.deck i {
  position: absolute; inset: 0; border-radius: 4.4cqw; container-type: inline-size;
  background: linear-gradient(160deg, #2a2d2b, #161817); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 2px 0 rgba(0, 0, 0, .25);
}

.hero-copy { position: absolute; z-index: 2; left: var(--gut); top: 0; bottom: 0; width: min(62vw, 980px); display: flex; flex-direction: column; justify-content: center; padding: 76px 0 5vh; box-sizing: border-box; gap: 0; }
.kicker { font-size: 13px; margin-bottom: 2.6vh; }
h1 { font-size: min(12.4vw, 21vh); font-stretch: 80%; line-height: .86; letter-spacing: -.022em; word-spacing: .06em; margin-bottom: 4vh; }
h1 .line { display: block; overflow: clip; padding-bottom: .04em; margin-bottom: -.04em; }
h1 .line > span { display: block; }
.lede { max-width: 33rem; font-size: 18px; line-height: 1.5; color: #2a2d29; margin-bottom: 3.4vh; }
.ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trust { margin-top: 1.6vh; font-size: 13.5px; color: var(--ink-2); }
.dark .trust { color: var(--on-dark-2); }

.stats { position: absolute; z-index: 2; right: var(--gut); bottom: 6vh; width: min(30vw, 470px); }
.stats-cap { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.odo-stat { font: 700 clamp(26px, 2.8vw, 46px)/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; color: var(--ink); }
.through { position: absolute; inset: 0; z-index: 5; background: var(--graphite); opacity: 0; pointer-events: none; }

/* ============ shared sections ============ */
.dark { background: var(--graphite); color: var(--on-dark); }
.light { background: var(--floor); }
.paper { background: var(--paper); }
.label { font-size: 12.5px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.illus { font: 500 11px/1 var(--text); text-transform: none; letter-spacing: 0; text-shadow: none; padding: 4px 7px; border-radius: 5px; border: 1px solid currentColor; opacity: .75; }
h2 { font-size: clamp(34px, 4vw, 64px); line-height: .95; letter-spacing: -.02em; max-width: 14em; }
.sec-body { max-width: 34rem; font-size: 17.5px; color: var(--ink-2); }
.dark .sec-body { color: var(--on-dark-2); }
.dealt { margin-top: calc(var(--r-card) * -1.6); border-radius: var(--r-card) var(--r-card) 0 0; position: relative; z-index: 2; transform-origin: 0 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 -24px 50px -30px rgba(0, 0, 0, .35); }
.dark.dealt { box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -24px 50px -30px rgba(0, 0, 0, .6); }

/* ============ 2 · CONTROLS ============ */
.controls .frame { padding: 22vh var(--gut) 16vh; }
.controls .sec-head { margin-bottom: 10vh; max-width: 60rem; }
.controls-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 6vw; }
.card-sticky { position: sticky; top: calc(50vh - min(17.5vw, 28vh) / 1.586 / 1 - 10px); }
.rule-card { width: min(35vw, 56vh); }
.card-caption { margin-top: 22px; font-size: 14px; color: var(--on-dark-2); }
.steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; padding: 4vh 0 10vh; border-top: 1px solid var(--on-dark-line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { font-size: 12.5px; margin-bottom: 16px; color: var(--on-dark-2) !important; }
.step h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.03em; line-height: 1; margin-bottom: 18px; }
.step > p { max-width: 31rem; color: var(--on-dark-2); }
.roles { display: flex; gap: 10px; margin: 30px 0 26px; flex-wrap: wrap; }
.role {
  font: 500 15px/1 var(--text); color: var(--on-dark); background: transparent; cursor: pointer;
  border: 1px solid #444944; border-radius: 8px; padding: 13px 18px; min-height: 44px;
}
.role:hover { border-color: #7b807a; }
.role[aria-pressed="true"] { background: var(--on-dark); color: var(--graphite); border-color: var(--on-dark); }
.pays { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 16px; color: var(--on-dark-2); }
.slot { font: 400 clamp(22px, 2.1vw, 32px)/1 var(--emb); letter-spacing: .04em; color: var(--graphite); }
.merchants { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.merchants li { font-size: 13.5px; padding: 6px 10px; border-radius: 6px; background: #232624; color: #c9ccc6; }

.limit-read { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 10px; }
.odo-limit { font: 700 clamp(64px, 8.4vw, 140px)/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; color: var(--on-dark); }
.per { font-size: 16px; color: var(--on-dark-2); }
.range { position: relative; max-width: 34rem; padding: 18px 0 0; --v: .2; }
.range-label { display: block; font-size: 11.5px; margin-bottom: 14px; color: var(--on-dark-2) !important; }
.range-track { position: relative; height: 34px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: #3a3e3a; }
.range-fill { position: absolute; left: 0; top: 16px; height: 2px; width: calc(var(--v) * 100%); background: var(--live); }
.tick { position: absolute; top: 10px; left: calc(var(--at) * 100%); width: 1px; height: 14px; background: #5a5f59; }
.range-thumb { position: absolute; top: 3px; left: calc(var(--v) * 100%); width: 44px; height: 28px; margin-left: -22px; border-radius: 5px; background: #2a2d2b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(0, 0, 0, .8); pointer-events: none; }
.range-thumb span { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; border-radius: 0 5px 5px 0; background: var(--live); }
.range-thumb::before { content: ""; position: absolute; left: 7px; top: 9px; width: 10px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #e6e8e2, #9da19a); }
.range:has(input:focus-visible) .range-thumb { outline: 2px solid var(--live); outline-offset: 3px; }
.range input { position: absolute; left: -22px; right: -22px; top: 30px; height: 44px; width: calc(100% + 44px); margin: 0; opacity: 0; cursor: grab; touch-action: pan-y; }
.range input:active { cursor: grabbing; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: #6f736e; margin-top: 4px; }
.range-scale span:nth-child(2) { position: absolute; left: 10%; transform: translateX(-50%); }
.range-scale span:nth-child(3) { position: absolute; left: 50%; transform: translateX(-50%); }
.range-scale { position: relative; }
.chain { list-style: none; padding: 0; margin: 34px 0 0; max-width: 34rem; display: grid; gap: 0; }
.chain li { display: grid; grid-template-columns: 22px 9.5em 1fr; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--on-dark-line); color: #6f736e; }
.chain .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #5a5f59; }
.chain li.on { color: var(--on-dark); }
.chain li.on .dot { background: var(--live); border-color: var(--live); }
.chain li.on .chain-k { color: #dadcd6; }
.chain .chain-k { font-size: 12px; color: #5f635e; text-shadow: none; }
.chain-v { font-size: 15px; }

.hold {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  margin-top: 34px; width: min(100%, 23rem); height: 74px; padding: 0 22px;
  border: 0; border-radius: 12px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: var(--on-dark); color: var(--graphite); font: 600 17px/1 var(--text);
  box-shadow: inset -6px 0 0 #b9bdb6, 0 14px 26px -16px rgba(0, 0, 0, .9);
}
.hold-fill { position: absolute; inset: 0; background: var(--frost-img) center/cover, var(--frost); transform-origin: 0 50%; transform: scaleX(var(--hold, 0)); }
.hold-ring, .hold-label { position: relative; }
.hold-ring svg { width: 34px; height: 34px; display: block; transform: rotate(-90deg); }
.hold-ring circle { fill: none; stroke: var(--graphite); stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--hold, 0)); }
.hold-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(21, 23, 22, .18); }
.is-frozen-ui .hold { background: var(--frost); box-shadow: inset -6px 0 0 #c7d1d3, 0 14px 26px -16px rgba(0, 0, 0, .9); }
.hint { margin-top: 14px; font-size: 13.5px; color: var(--on-dark-2); }

/* ============ 3 · BOARD ============ */
.board .frame, .fees .frame, .faq .frame { padding: 18vh var(--gut) 16vh; }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: end; margin-bottom: 8vh; }
.flapboard { background: var(--graphite); border-radius: var(--r-card); padding: clamp(18px, 2.4vw, 40px); color: var(--on-dark); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); }
.fb-head, .fb-row { display: grid; grid-template-columns: 6.3em 12.3em 9em 1fr; align-items: center; column-gap: 1.2em; }
.fb-head { font: 400 12px/1 var(--emb); letter-spacing: .1em; text-transform: uppercase; color: #7c807a; padding-bottom: 14px; border-bottom: 1px solid #2c302d; }
.fb-head span { font-size: 12px; }
.fb-rows { font: 600 clamp(15px, 1.75vw, 27px)/1 var(--display); font-stretch: 75%; }
.fb-row { padding: .55em 0; border-bottom: 1px solid #252826; }
.fb-row .flap { font-size: inherit; }
.fb-row .amt { justify-self: start; }
.fb-status { font: 500 14px/1.25 var(--text); color: #a9ada7; display: flex; align-items: center; gap: 8px; }
.fb-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5a5f59; flex: none; }
.fb-status.ok::before { background: var(--live); }
.fb-status.no { color: #e7e9e4; }
.fb-status.no::before { background: transparent; box-shadow: inset 0 0 0 1.5px #e7e9e4; }
.fb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #8d918b; }
.fb-live { font-size: 12.5px; display: inline-flex; gap: 8px; align-items: center; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #8d918b; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: 6vh; max-width: 60rem; }
.facts p { font-size: 17px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }

/* ============ 4 · FEES ============ */
.fees-grid { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 6vw; align-items: start; }
.fees-intro h2 { margin-bottom: 20px; }
.fees-intro .sec-body { margin-bottom: 34px; }
.fee-list { list-style: none; margin: 0; padding: 0; }
.fee-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 20px; padding: 20px 4px; border-top: 1px solid var(--line); cursor: default; outline-offset: -2px; }
.fee-list li:last-child { border-bottom: 1px solid var(--line); }
.fee-k { font-size: 17px; }
.fee-v { text-align: right; font-size: 15px; color: var(--ink-2); }
.fee-amt { font: 700 clamp(26px, 2.5vw, 40px)/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; color: var(--ink); margin-right: .15em; }
/* the ledger: the fee list printed on a card statement slip; a hovered or focused row takes the live edge */
.fee-list.ledger { position: relative; overflow: hidden; background: #fbfbf8; border-radius: var(--r-card); padding: 4px clamp(18px, 2.2vw, 34px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 24px 44px -30px rgba(0, 0, 0, .35); }
.ledger li { position: relative; }
.ledger li:first-child { border-top: 0; }
.ledger li:last-child { border-bottom: 0; }
.ledger li::after { content: ""; position: absolute; right: calc(-1 * clamp(18px, 2.2vw, 34px)); top: -1px; bottom: -1px; width: 6px; background: transparent; transition: background-color .15s ease-out; }
.ledger li:hover::after, .ledger li:focus-visible::after { background: var(--live); }
.ledger .fee-k { font: 400 15px/1.35 var(--emb); text-transform: uppercase; letter-spacing: .07em; color: #3b3f3a; text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(0, 0, 0, .13); }
.fee-note { margin-top: 30px; margin-left: calc(38% + 2.3vw); font-size: 15px; color: var(--ink-2); }

/* ============ 5 · SAFETY ============ */
.safety .frame { padding: 20vh var(--gut) 18vh; }
.statement { font: 600 clamp(28px, 3.7vw, 60px)/1.1 var(--display); font-stretch: 85%; letter-spacing: -.025em; max-width: 21em; margin-bottom: 12vh; }
.safe-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3vw; }
.safe-list li { border-top: 1px solid #3a3e3a; padding-top: 18px; }
.safe-list h3 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.safe-list p { font-size: 15.5px; color: var(--on-dark-2); }

/* ============ 6 · MONTH END ============ */
.close { --length: 270; }
.close .frame { background: var(--floor); }
.close-copy { position: absolute; left: var(--gut); top: 15vh; width: min(34vw, 520px); z-index: 2; }
.close-copy h2 { margin-bottom: 18px; }
.table-top { position: absolute; left: 40vw; right: var(--gut); top: 12vh; bottom: 30vh; }
.mini { position: absolute; left: 0; top: 0; width: var(--mw, 150px); will-change: transform; transform-origin: 50% 50%; }
.mini .face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 24px -14px rgba(0, 0, 0, .55); }
.mini .c-name { font-size: 6cqw; bottom: 9cqw; }
.mini .c-brand { font-size: 9cqw; }
.receipt {
  position: absolute; left: 50%; top: -38%; width: 46%; height: 58%; margin-left: -23%;
  background: #fbfbf8; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .35);
  background-image: repeating-linear-gradient(180deg, transparent 0 14%, #d8dad4 14% 17%);
  background-size: 70% 100%; background-position: 50% 30%; background-repeat: no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 90% 100%, 80% 92%, 70% 100%, 60% 92%, 50% 100%, 40% 92%, 30% 100%, 20% 92%, 10% 100%, 0 92%);
}
.tally { position: absolute; left: 0; top: 0; font-size: 11.5px; white-space: nowrap; padding: 6px 9px; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.close-total { position: absolute; left: var(--gut); right: var(--gut); bottom: 7vh; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 28px; row-gap: 6px; }
.odo-total { font: 700 min(11.2vw, 20vh)/.9 var(--display); font-stretch: 75%; letter-spacing: -.03em; color: var(--ink); }
.total-cap { font-size: 16px; color: var(--ink-2); }
.total-cap.miss b { font: 700 1.4em/1 var(--display); font-stretch: 75%; color: var(--ink); }

/* ============ 7 · FAQ ============ */
.faq .frame { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 6vw; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 clamp(20px, 1.7vw, 26px)/1.2 var(--display); font-stretch: 85%; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 26px; height: 17px; margin-top: 3px; border-radius: 3px; border: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 1.5px 10px no-repeat; }
.qa details[open] summary::after { background: linear-gradient(var(--paper), var(--paper)) 50% 50% / 10px 1.5px no-repeat, var(--ink); }
.qa p { padding: 0 0 24px; max-width: 38rem; color: var(--ink-2); }

/* ============ 8 · DEAL ============ */
.deal { --length: 160; }
.deal .frame { background: var(--graphite); }
.hand { position: absolute; left: 50%; right: var(--gut); top: 16vh; bottom: 18vh; }
.hand .card { position: absolute; left: 50%; top: 50%; width: min(19vw, 33vh); margin-left: calc(min(19vw, 33vh) / -2); margin-top: calc(min(19vw, 33vh) / -3.17); transform-origin: 50% 160%; }
.hand .face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 40px -18px rgba(0, 0, 0, .9); }
.deal-copy { position: absolute; left: var(--gut); bottom: 9vh; width: min(52vw, 820px); z-index: 2; }
.deal-h { font-size: min(10.4vw, 19vh); font-stretch: 80%; line-height: .86; letter-spacing: -.022em; word-spacing: .06em; max-width: none; margin-bottom: 4vh; }
.deal-h > span { display: block; white-space: nowrap; }   /* broken by hand: "Deal the / team in." */
.deal-body { max-width: 30rem; color: var(--on-dark-2); margin-bottom: 16px; }
.first-card { font-size: 12.5px; margin-bottom: 26px; }
.deal .ctas { color: var(--on-dark); }

/* ---- the conversion moment: an application slip, ruled like a card statement, with the card's live edge ---- */
.apply-slip {
  position: relative; display: grid; justify-items: start; width: fit-content; max-width: 100%; box-sizing: border-box;
  padding: 18px 40px 16px 24px; border-radius: var(--r-card); overflow: hidden;
  background: var(--grain), radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .06), transparent 55%), linear-gradient(160deg, #262927, #1a1c1b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 26px 44px -26px rgba(0, 0, 0, .9);
}
.apply-slip > :not(.slip-live, .btn-card) { width: 100%; margin: 0; padding: 14px 0; border-top: 1px solid var(--on-dark-line); }
.apply-slip > :first-child { border-top: 0; padding-top: 2px; }
.apply-slip > .trust { padding-bottom: 2px; }
.apply-slip > .btn-card { width: auto; padding: 0 1.25em 0 .95em; border-top: 0; margin: 0 0 16px; }
.apply-slip .slip-live { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; border-radius: 0 var(--r-card) var(--r-card) 0; background: linear-gradient(180deg, #3f433f, #2f322f); transition: background .18s ease-out; }
.apply-slip:has(a:hover, a:focus-visible) .slip-live { background: linear-gradient(180deg, #43e08f, var(--live) 40%, #22b468); }
.apply-slip.paper-slip { background: #fbfbf8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 24px 44px -30px rgba(0, 0, 0, .35); }
.paper-slip > :not(.slip-live) { border-top-color: var(--line); }
.paper-slip .slip-live { background: linear-gradient(180deg, #d3d6cf, #c2c5be); }

.credits { background: var(--graphite); color: #8d918b; padding: 6vh var(--gut) 12vh; border-top: 1px solid #262927; font-size: 13.5px; display: grid; gap: 12px; }
.disclaimer { max-width: 52rem; color: #b5b8b2; }

/* ============ reduced motion ============ */
.reduced-motion .dealt { transform: none !important; }

/* ============ tablet / phone ============ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .chrome-cta { margin-left: auto; }
  .safe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6vh; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .chrome { height: 58px; }
  .wordmark { font-size: 22px; }
  .chrome-cta { font-size: .82rem; height: 2.5em; }
  .deck-counter { display: none; }
  .slip { left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); padding: 8px 12px 8px 8px; }

  .arrival { --length: 230; }
  .room { perspective: 520px; perspective-origin: 50% 37%; }
  .floor { transform: rotateX(78deg); }
  .lead-wrap { left: 52%; top: 37%; width: 58vw; }
  .hero-copy { left: 16px; right: 16px; width: auto; justify-content: flex-start; padding: 76px 0 calc(16px + var(--safe-bottom)); }
  .kicker { font-size: 11px; margin-bottom: 1.4vh; }
  h1 { font-size: 19.5vw; margin-bottom: 0; }
  .hero-top { display: block; }
  .lede { font-size: 15.5px; margin-bottom: 18px; margin-top: auto; }
  .ctas { gap: 18px; }
  .trust { font-size: 12px; }
  .stats { left: 16px; right: 16px; width: auto; bottom: auto; top: calc(37% + 21vw + 12px); }
  .stats-cap { font-size: 11px; margin-bottom: 6px; padding-bottom: 5px; }
  .odo-stat { font-size: 22px; }

  .controls .frame { padding: 14vh 16px 10vh; }
  .controls .sec-head { margin-bottom: 4vh; }
  .controls-grid { grid-template-columns: 1fr; gap: 0; }
  .card-col { position: sticky; top: 58px; z-index: 3; margin: 0 -16px; padding: 10px 16px 14px; background: linear-gradient(var(--graphite) 86%, rgba(21, 23, 22, 0)); }
  .card-sticky { position: static; display: flex; align-items: center; gap: 14px; }
  .rule-card { width: 56vw; flex: none; }
  .card-caption { margin: 0; font-size: 12.5px; }
  .step { min-height: 0; padding: 5vh 0 7vh; }
  .step:first-child { padding-top: 3vh; border-top: 1px solid var(--on-dark-line); }
  .odo-limit { font-size: 20vw; }
  .chain li { grid-template-columns: 18px 7.2em 1fr; }
  .chain-v { font-size: 13.5px; }

  .board .frame, .fees .frame, .faq .frame { padding: 12vh 16px 10vh; }
  .sec-head.split { grid-template-columns: 1fr; gap: 16px; margin-bottom: 4vh; }
  .flapboard { padding: 14px; }
  .fb-head { display: none; }
  .fb-rows { font-size: 3.4vw; }
  .fb-row { grid-template-columns: 4.7em 10em auto; column-gap: .6em; row-gap: 8px; }
  .range input { left: 0; right: 0; width: 100%; }
  .fb-status { grid-column: 1 / -1; font-size: 12.5px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts p { font-size: 15.5px; padding: 12px 0; }

  .fees-grid { grid-template-columns: 1fr; gap: 6vh; }
  .fee-list li { padding: 16px 2px; gap: 12px; }
  .fee-k { font-size: 15px; }
  .fee-v { font-size: 13px; }
  .fee-note { margin-left: 0; }

  .safety .frame { padding: 12vh 16px 12vh; }
  .safe-list { grid-template-columns: 1fr; row-gap: 4vh; }
  .statement { margin-bottom: 7vh; }

  .close { --length: 240; }
  .close-copy { top: 10vh; left: 16px; right: 16px; width: auto; }
  .close-copy .sec-body { font-size: 15px; }
  .table-top { left: 16px; right: 16px; top: 40vh; bottom: 30vh; }
  .close-total { left: 16px; right: 16px; bottom: calc(9vh + var(--safe-bottom)); }
  .odo-total { font-size: 17vw; }
  .total-cap { font-size: 13.5px; }

  .faq .frame { grid-template-columns: 1fr; gap: 4vh; }

  .deal { --length: 140; }
  .hand { left: 16px; right: 16px; top: 9vh; bottom: 60vh; }
  .hand .card { width: 34vw; margin-left: -17vw; margin-top: -10.7vw; }
  .deal-copy { left: 16px; right: 16px; width: auto; bottom: calc(5vh + var(--safe-bottom)); }
  .deal-h { font-size: 17vw; margin-bottom: 2.4vh; }
  .apply-slip { width: 100%; padding: 14px 30px 12px 16px; }
  .apply-slip > :not(.slip-live, .btn-card) { padding: 9px 0; }
  .apply-slip > .btn-card { margin-bottom: 12px; }
  .deal-body { margin-bottom: 12px; }
  .fee-list.ledger { padding: 2px 16px; }
  .ledger li::after { right: -16px; }
  .ledger .fee-k { font-size: 13.5px; }
  .first-card { font-size: 11px; }
}
