/* First-launch onboarding v2 (docs/superpowers/specs/2026-11-14-onboarding-v2-design.md).
   It is a cover, so it keeps its own palette by day and by night on purpose: one sky gradient per
   screen, from the welcome video's sunset through the night (3-4) to sunrise (6), each screen fading
   in over the previous sky's middle colour. The live 3D models are
   drawn by world/onboarding-stage.mjs on one canvas over the dialog, inside each .onb-view. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.onb {
  --onb-bg: #dcf2e3; --onb-ink: #132a1e; --onb-ink-2: #4a5f53;
  --onb-drop: rgb(19 42 30 / .12); --onb-line: rgb(19 42 30 / .1);
  --onb-lime: #9be564; --onb-lime-line: #7fd447; --onb-lime-drop: #6fb83f;
  --onb-gold: #f4b63d; --onb-gold-soft: #fff1cf; --onb-gold-ink: #6e4700; --onb-bar: #f29b6f;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--onb-bg); color: var(--onb-ink); font-family: var(--font-ui);
  color-scheme: light; transition: background-color .45s ease;
}
.onb::backdrop { background: var(--onb-bg); }
.onb form { position: relative; height: 100%; }
.onb h1 { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.onb p { margin: 0; }

.onb-step { position: absolute; inset: 0; display: flex; flex-direction: column; }
.onb-step[hidden] { display: none; }
.onb-step:not([hidden]) { animation: onb-in .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes onb-in { from { opacity: 0; transform: translateY(14px); } }

/* the skies: each screen's gradient sits behind it, a little taller so the slide-in shows no gap */
.onb-step { isolation: isolate; }
.onb-step:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"])::before {
  content: ""; position: absolute; inset: -20px 0; z-index: -1; background: var(--sky);
}
.onb { --sky-2: linear-gradient(180deg, #e7b3c6 0%, #f2c4c0 45%, #f9d9b8 100%); }   /* sunset */
.onb-step[data-step="2"] { --sky: var(--sky-2); }
.onb-step[data-step="3"] { --sky: linear-gradient(180deg, #24204a 0%, #3b3566 50%, #74507c 100%); }   /* dusk */
.onb-step[data-step="4"] { --sky: linear-gradient(180deg, #121738 0%, #232a55 55%, #34407a 100%); }   /* night */
.onb-step[data-step="5"] { --sky: linear-gradient(180deg, #b6caec 0%, #cfe0f2 50%, #f6d9cc 100%); }   /* first light */
.onb-step[data-step="6"] { --sky: linear-gradient(180deg, #cfe3f5 0%, #fde9c8 55%, #fbcb8e 100%); }   /* sunrise */

/* night screens: words, arrow and progress turn white; cards, dials and fields stay white with dark ink */
.onb-step:is([data-step="3"], [data-step="4"]) { color: #fff; }
.onb-step:is([data-step="3"], [data-step="4"]) .onb-glow { opacity: .35; }
.onb-step:is([data-step="3"], [data-step="4"]) .onb-looks summary,
.onb-step:is([data-step="3"], [data-step="4"]) .setup-group legend { color: rgb(255 255 255 / .8); }
.onb-step:is([data-step="3"], [data-step="4"]) .onb-error { color: #ffb4a8; }
.onb-step[data-step="3"] > .onb-pill { background: rgb(255 255 255 / .16); }
.onb:is([data-step="3"], [data-step="4"]) .onb-back { color: #fff; }
.onb:is([data-step="3"], [data-step="4"]) .onb-progress { background: rgb(255 255 255 / .2); }
.onb:is([data-step="3"], [data-step="4"]) .onb-progress i { background: #fff; }
.onb-flat {
  gap: 14px;
  padding: calc(max(env(safe-area-inset-top, 0px), 16px) + 40px) calc(20px + env(safe-area-inset-right, 0px)) calc(max(env(safe-area-inset-bottom, 0px), 8px) + 16px) calc(20px + env(safe-area-inset-left, 0px));
}
/* short screens / open keyboard / opened looks: the step scrolls inside itself; layout is untouched when everything fits, so centring is kept */
.onb-step { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (max-height: 700px) { .onb-flat { padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 8px) + 24px); } }
.onb-progress { position: absolute; z-index: 5; top: calc(max(env(safe-area-inset-top, 0px), 16px) + 14px); left: 64px; right: 20px; height: 6px; border-radius: 3px; background: rgb(19 42 30 / .1); overflow: hidden; }
.onb-progress[hidden] { display: none; }
.onb-progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--onb-ink); transition: width .4s var(--ease); }
.onb-back { position: absolute; z-index: 6; top: calc(max(env(safe-area-inset-top, 0px), 16px) - 5px); left: calc(8px + env(safe-area-inset-left, 0px)); width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--onb-ink); }
.onb-back[hidden] { display: none; }
.onb-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.onb-sub { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--onb-ink-2); }

/* the live 3D: one canvas over everything, each model inside its .onb-view box */
.onb-gl { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; transition: opacity .18s ease; }
.onb[data-leaving="true"] .onb-gl { opacity: 0; }
.onb-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.onb-view { position: absolute; inset: 0; }
.onb-view-wide { inset: -10px -20px 0; }
.onb-glow { position: absolute; inset: 6% 12%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .75), rgb(255 255 255 / 0)); }

/* 2 · purpose: 2×2 cards, each with its own model */
.onb-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 8px 14px; background: #fff; border: 3px solid transparent; border-radius: 22px; box-shadow: 0 4px 0 var(--onb-drop);
  font: 800 18px/1.15 var(--font-ui); color: var(--onb-ink); text-align: center; transition: transform .15s var(--ease);
}
.onb-card .onb-view { inset: 4px 4px 66px; }
.onb-card small { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--onb-ink-2); line-height: 1.2; }
.onb-card:active { transform: scale(.97); }
.onb-card[aria-pressed="true"] { border-color: var(--onb-lime-line); box-shadow: 0 4px 0 var(--onb-lime-drop); }

/* 3 · rhythm: big dial stops and the gold they give */
.onb-dial { flex: none; display: flex; justify-content: center; gap: 14px; }
.onb-stop {
  width: 98px; height: 98px; border-radius: 50%; border: 3px solid transparent; background: #fff; box-shadow: 0 4px 0 var(--onb-drop);
  display: grid; place-content: center; text-align: center; color: var(--onb-ink); transition: transform .15s var(--ease);
}
.onb-stop b { display: block; font: 700 36px/1 var(--font-brand); }
.onb-stop span { font-size: 13px; font-weight: 700; color: var(--onb-ink-2); }
.onb-stop[aria-pressed="true"] { background: var(--onb-lime); border-color: var(--onb-lime-line); box-shadow: 0 5px 0 var(--onb-lime-drop); }
.onb-stop[aria-pressed="true"] span { color: var(--onb-ink); }
.onb-stop:active { transform: scale(.95); }
.onb-reward { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--onb-gold-soft); color: var(--onb-gold-ink); font-weight: 800; font-size: 17px; }
.onb-reward i { width: 18px; height: 18px; border-radius: 50%; background: var(--onb-gold); box-shadow: inset 0 0 0 2px #d89216; }
.onb-reward.bump { animation: onb-bump .35s ease; }
@keyframes onb-bump { 40% { transform: scale(1.15); } }
.onb-equiv { flex: none; align-self: center; text-align: center; font: 700 13.5px/1.3 var(--font-ui); color: rgb(255 255 255 / .88); max-width: 22rem; text-wrap: balance; }

.onb-cta {
  flex: none; width: 100%; min-height: 58px; border: 0; border-radius: 20px;
  background: var(--onb-lime); color: var(--onb-ink); box-shadow: 0 5px 0 var(--onb-lime-drop);
  font: 800 19px/1 var(--font-ui); transition: transform .12s, box-shadow .12s;
}
.onb-cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--onb-lime-drop); }
.onb-cta:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: 0 3px 0 var(--onb-lime-drop); }
.onb-link { flex: none; width: 100%; min-height: 44px; border: 0; background: none; color: inherit; font: 700 16px var(--font-ui); }

/* 4 · explorer */
.onb-field-wrap { flex: none; display: block; }
.onb-field {
  width: 100%; height: 56px; box-sizing: border-box; padding: 0 18px;
  background: #fff; border: 3px solid transparent; border-radius: 18px; box-shadow: 0 4px 0 var(--onb-drop);
  font: 700 19px var(--font-ui); color: var(--onb-ink); outline: none;
}
.onb-field:focus { border-color: var(--onb-lime-line); }
.onb-field::placeholder { color: #8f9a86; font-weight: 600; }
.onb-field[aria-invalid="true"] { border-color: var(--danger); }
.onb-error { flex: none; color: var(--danger); font-weight: 600; font-size: 14px; }
.onb-error:empty { display: none; }
.onb-looks { flex: none; }
.onb-looks summary {
  min-height: 44px; padding: 0 14px; border-radius: 16px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22);
  display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 14.5px; color: #fff; cursor: pointer;
}
.onb-looks[open] summary { margin-bottom: 8px; }
.onb-looks[open] #setupLooks { display: grid; gap: 10px; }
/* skin and hair colour are plain round swatches (the name stays for screen readers); hair style keeps
   its words, because all its swatches share one colour */
.onb .setup-choice:is([data-setup-category="skin"], [data-setup-category="hairColor"]) { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.onb .setup-choice:is([data-setup-category="skin"], [data-setup-category="hairColor"]) .wardrobe-swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; }
.onb .setup-choice:is([data-setup-category="skin"], [data-setup-category="hairColor"]) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the look choices keep the onboarding's light palette even when the app is in its night theme */
.onb .setup-group legend { color: var(--onb-ink-2); }
.onb .setup-choice { background: #fff; border: 2px solid transparent; color: var(--onb-ink); box-shadow: 0 3px 0 var(--onb-drop); font-weight: 700; }
.onb .setup-choice[aria-pressed="true"] { border-color: var(--onb-lime-line); box-shadow: 0 3px 0 var(--onb-lime-drop); }

/* 5 · your number */
.onb .onb-big { flex: none; font-family: var(--font-brand); font-weight: 800; font-size: 76px; line-height: .9; letter-spacing: -0.03em; }
.onb-big small { font-size: 34px; letter-spacing: 0; }
.onb-milestones { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
.onb-milestone-chip { padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .76); color: var(--onb-ink); font: 750 12.5px/1.2 var(--font-ui); box-shadow: 0 2px 0 var(--onb-drop); }
.onb-bars { flex: none; position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 96px; padding: 14px 16px 26px; background: #fff; border-radius: 22px; box-shadow: 0 4px 0 var(--onb-drop); }
.onb-bars button.onb-bar { position: relative; display: block; width: 100%; height: var(--h); padding: 0; border: 0; border-radius: 5px; background: var(--onb-bar); transform-origin: bottom; font-style: normal; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.onb-bars button.onb-bar::after { content: attr(data-m); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 700 11px var(--font-ui); color: var(--onb-ink-2); }
.onb-bars button.onb-bar.is-now { background: #e2713d; }
.onb-bars button.onb-bar.is-now::after { color: var(--onb-ink); font-weight: 800; }
.onb-bars button.onb-bar.is-selected { background: #1d5fd6; box-shadow: 0 0 0 2px rgb(29 95 214 / .25); }
.onb-bars button.onb-bar.is-selected::after { color: #1d5fd6; font-weight: 800; }
.onb-bars button.onb-bar:focus-visible { outline: 2px solid #1d5fd6; outline-offset: 2px; }
.onb-step:not([hidden]) .onb-bars button.onb-bar { animation: onb-grow .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 90ms + .3s); }
.onb-chart-hint { flex: none; text-align: center; font: 700 12.5px/1.2 var(--font-ui); color: var(--onb-ink-2); margin-top: -6px; }
@keyframes onb-grow { from { transform: scaleY(0); } }

/* 6 · first session, at sunrise */
.onb-session { text-align: center; }
.onb-pill { flex: none; align-self: center; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .6); font-weight: 800; font-size: 14px; }
/* on the question screens the pill sits left, above the question */
.onb-flat:not(.onb-session) > .onb-pill { align-self: flex-start; margin-bottom: -6px; }
.onb-clock { flex: none; }
.onb-clock b { display: block; font-family: var(--font-brand); font-size: 84px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.onb-clock span { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--onb-ink-2); }
.onb-mission { flex: none; align-self: center; max-width: 24rem; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .72); box-shadow: 0 3px 0 var(--onb-drop); font: 700 13.5px/1.35 var(--font-ui); color: var(--onb-ink); text-wrap: balance; }

/* 1 · welcome: interactive live 3D hero diorama (falls back to video/poster when WebGL unavailable or reduced motion) */
.onb-photo {
  background: linear-gradient(180deg, #1b1538 0%, #4d2963 38%, #bd606e 72%, #f4af7a 100%);
  color: #fff;
  transition: background .45s ease;
}
.onb-photo[data-hero-time="night"] {
  background: linear-gradient(180deg, #070d24 0%, #101b42 48%, #1c2e60 100%);
}
.onb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 1s cubic-bezier(.5, 0, .2, 1), filter 1s; }
.onb-photo[data-hero3d="ready"] .onb-bg,
.onb-photo[data-hero3d="ready"] .onb-shade { opacity: 0; pointer-events: none; }
.onb-photo.is-leaving .onb-bg { transform: scale(1.25); filter: saturate(.4) brightness(1.6); }
.onb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 10 40 / .15) 10%, rgb(25 14 45 / .82) 78%); transition: opacity .35s ease; }
.onb-hero-stars {
  position: absolute; inset: 0 0 35%; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 18%, #fff 90%, transparent),
    radial-gradient(2px 2px at 28% 9%, #ffe6a8 90%, transparent),
    radial-gradient(1.5px 1.5px at 46% 24%, #fff 90%, transparent),
    radial-gradient(2px 2px at 64% 12%, #c9dcff 90%, transparent),
    radial-gradient(1.5px 1.5px at 82% 21%, #fff 90%, transparent),
    radial-gradient(1.5px 1.5px at 91% 38%, #ffe6a8 90%, transparent),
    radial-gradient(1.5px 1.5px at 9% 41%, #c9dcff 90%, transparent);
}
.onb-photo[data-hero-time="night"] .onb-hero-stars { opacity: .9; }

.onb-hero-shell {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  height: 100%; min-height: 0; box-sizing: border-box;
  padding: calc(max(env(safe-area-inset-top, 0px), 12px) + 4px) calc(16px + env(safe-area-inset-right, 0px)) calc(max(env(safe-area-inset-bottom, 0px), 8px) + 10px) calc(16px + env(safe-area-inset-left, 0px));
}
.onb-hero-visual { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.onb-hero-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onb-hero-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--font-brand); color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .28); }
.onb-hero-brand img { border-radius: 8px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.onb-hero-badge {
  padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .24);
  font: 750 12px/1 var(--font-ui); color: #fff; white-space: nowrap; backdrop-filter: blur(8px);
}
.onb-hero-stage { position: relative; flex: 1 1 200px; min-height: 170px; touch-action: none; cursor: grab; user-select: none; }
.onb-hero-stage:active { cursor: grabbing; }
.onb-photo:not([data-hero3d="ready"]) .onb-drag-hint { display: none; }

.onb-hero-controls { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.onb-evo-switch { display: inline-flex; padding: 2px; border-radius: 999px; background: rgb(15 12 32 / .48); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(10px); }
.onb-evo-btn {
  min-height: 40px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent;
  color: rgb(255 255 255 / .82); font: 750 12.5px/1 var(--font-ui); white-space: nowrap; transition: background .16s ease, color .16s ease;
}
.onb-evo-btn[aria-pressed="true"] { background: #fff; color: #161830; box-shadow: 0 2px 6px rgb(0 0 0 / .22); }
.onb-time-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / .24); background: rgb(15 12 32 / .48);
  color: #fff; font: 750 12.5px/1 var(--font-ui); white-space: nowrap; backdrop-filter: blur(10px);
  transition: background .16s ease, border-color .16s ease;
}
.onb-evo-btn:focus-visible,
.onb-time-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.onb-time-dot { width: 9px; height: 9px; border-radius: 50%; background: #ffbe66; box-shadow: 0 0 8px #ffbe66; }
.onb-time-btn[aria-pressed="true"] { background: rgb(18 32 76 / .85); border-color: rgb(138 180 255 / .5); }
.onb-time-btn[aria-pressed="true"] .onb-time-dot { background: #9cc2ff; box-shadow: 0 0 8px #9cc2ff; }
.onb-drag-hint {
  padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .14);
  font: 700 11.5px/1 var(--font-ui); color: rgb(255 255 255 / .88); transition: opacity .25s ease;
}
.onb-drag-hint.is-used { opacity: 0; display: none; }

.onb-hero-panel {
  flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 15px 10px;
  border-radius: 24px; background: rgb(16 14 34 / .52); border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 28px rgb(8 6 22 / .34);
}
.onb-photo h1 { font-size: clamp(24px, 6.6vw, 33px); line-height: 1.04; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .28); }
.onb-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.onb-loop-step {
  display: grid; gap: 2px; padding: 8px 7px; border-radius: 14px;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .14); text-align: center;
}
.onb-loop-step b { font: 800 12.5px/1.1 var(--font-ui); color: #ffe7a8; }
.onb-loop-step span { font: 600 11.5px/1.15 var(--font-ui); color: rgb(255 255 255 / .88); }
.onb-proof { text-align: center; font: 700 12.5px/1.25 var(--font-ui); color: rgb(255 255 255 / .9); }
.onb-hero-panel .onb-link { min-height: 44px; color: rgb(255 255 255 / .92); }

.onb-wipe { position: absolute; inset: 0; z-index: 7; background: var(--sky-2); clip-path: circle(0 at 50% 88%); opacity: 1; pointer-events: none; }
.onb-wipe.is-on { transition: clip-path .42s cubic-bezier(.6, 0, .2, 1), opacity .26s ease; clip-path: circle(150% at 50% 88%); pointer-events: auto; }
.onb-wipe.is-on.is-fading { opacity: 0; pointer-events: none; }

/* ===== Premium pages (paywall/PAYWALL.md): steps 7 world, 8 compare, 9 the ask, 10 after yes ===== */

/* the skies go on from first light (5) into the sunrise: rose, gold, clear morning */
.onb-step:is([data-step="7"], [data-step="8"], [data-step="9"], [data-step="10"])::before {
  content: ""; position: absolute; inset: -20px 0; z-index: -1; background: var(--sky);
}
.onb-step[data-step="7"] { --sky: linear-gradient(180deg, #a9bdee 0%, #e9c6dc 52%, #ffd7ae 100%); }
.onb-step[data-step="8"] { --sky: linear-gradient(180deg, #ffe2b0 0%, #fdf0d6 45%, #e6f3da 100%); }
.onb-step:is([data-step="9"], [data-step="10"]) { --sky: linear-gradient(180deg, #bfe0f6 0%, #e4f3ea 46%, #f3f8ec 100%); }

.onb-premium { gap: 12px; }
.onb-premium h1 { font-size: 31px; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }

/* the Premium seal: a sunrise over the horizon, the one mark used wherever Premium is named */
.onb-seal {
  flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 9px;
  border-radius: 999px; background: var(--onb-ink); color: #ffd98a;
  font: 800 12.5px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase;
  box-shadow: 0 3px 0 rgb(19 42 30 / .22);
}
.onb-seal svg { width: 17px; height: 17px; }
.onb-premium > .onb-seal { margin-bottom: -4px; }

/* benefit rows: an icon tile and six words at most */
.onb-perks { flex: none; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-perks li {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px 0 10px;
  background: #fff; border-radius: 18px; box-shadow: 0 4px 0 var(--onb-drop);
  font: 700 17px/1.2 var(--font-ui);
}
.onb-chip { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #e3f6d6; color: #2f6b1f; }
.onb-chip svg { width: 21px; height: 21px; }
.onb-chip.is-gem { background: #ece6ff; color: #5a3fd0; }
.onb-chip.is-gold { background: var(--onb-gold-soft); color: var(--onb-gold-ink); }

/* 8 · gold: free against Premium, with the minutes they chose */
.onb-double { flex: none; display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 8px; }
.onb-double > div { display: grid; gap: 2px; padding: 10px 16px 8px; border-radius: 20px; background: rgb(255 255 255 / .62); }
.onb-double small { font: 800 12.5px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--onb-ink-2); }
.onb-double b { font: 800 40px/1 var(--font-brand); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--onb-ink-2); }
.onb-double b::after { content: " oro"; font-size: 19px; letter-spacing: 0; }
.onb-double .is-premium { background: #fff; box-shadow: 0 4px 0 #e9b14a; }
.onb-double .is-premium small { color: var(--onb-gold-ink); }
.onb-double .is-premium b { color: var(--onb-ink); font-size: 46px; }
.onb-arrow { width: 28px; height: 28px; fill: none; stroke: var(--onb-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* 9 · the comparison: Premium's column is lit */
.onb-compare { flex: none; position: relative; margin: 6px 0 12px; padding: 6px 0 4px; background: #fff; border-radius: 24px; box-shadow: 0 4px 0 var(--onb-drop); }
.onb-compare::before { content: ""; position: absolute; top: -8px; bottom: -8px; right: 8px; width: 98px; border-radius: 20px; background: #fff7df; box-shadow: 0 0 0 2.5px var(--onb-gold), 0 5px 0 #e9b14a; }
.onb-compare > div { position: relative; display: grid; grid-template-columns: 1fr 64px 98px; align-items: center; min-height: 52px; padding: 0 8px 0 18px; font: 700 16.5px/1.2 var(--font-ui); }
.onb-compare > div + div { border-top: 1.5px solid var(--onb-line); }
.onb-compare [role="cell"]:not(:first-child), .onb-compare [role="columnheader"] { justify-self: center; }
.onb-compare-head { min-height: 46px !important; font: 800 14px/1 var(--font-ui) !important; color: var(--onb-ink-2); }
.onb-compare-head .onb-seal { height: 26px; padding: 0 9px 0 7px; font-size: 11px; letter-spacing: .06em; box-shadow: none; }
.onb-compare .yes { display: block; width: 24px; height: 24px; color: #2f8a2a; }
.onb-compare .no { display: block; width: 14px; height: 3px; border-radius: 2px; background: #b8c2bb; }
.onb-spring { flex: 1; }

/* 10 · the ask */
.onb-pay { gap: 10px; }
.onb-pay .onb-stage { min-height: 84px; }
.onb-pay .onb-stage[data-premium-hero="b"] { min-height: 0; }
.onb-pay .onb-timeline { flex: 0 1 158px; min-height: 92px; padding-block: 0; grid-auto-rows: minmax(30px, 50px); }
.onb-note {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: rgb(255 255 255 / .92); box-shadow: 0 3px 0 var(--onb-drop);
  font: 700 14.5px/1 var(--font-ui); z-index: 5;
}
.onb-note svg { width: 18px; height: 18px; color: #2f6b1f; }
.onb-timeline { flex: 1 1 120px; min-height: 120px; list-style: none; margin: 0; padding: 4px 18px; display: grid; grid-auto-rows: minmax(36px, 58px); align-content: center; background: #fff; border-radius: 24px; box-shadow: 0 4px 0 var(--onb-drop); }
.onb-timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; font: 600 17px/1 var(--font-ui); color: var(--onb-ink-2); }
.onb-timeline li b { font: 800 19px/1 var(--font-ui); color: var(--onb-ink); }
.onb-timeline li:last-child span:last-child { font: 800 21px/1 var(--font-brand); color: var(--onb-ink); font-variant-numeric: tabular-nums; }
.onb-timeline li + li::before { content: ""; position: absolute; left: 17px; top: -6px; height: 12px; border-left: 2.5px dotted #b8c9bd; }
.onb-step[data-step="10"] .onb-timeline { flex: none; grid-auto-rows: 54px; }

.onb-plans { flex: none; display: grid; gap: 9px; }
.onb-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 8px 14px 8px 18px;
  background: #fff; border: 3px solid transparent; border-radius: 20px; box-shadow: 0 4px 0 var(--onb-drop); cursor: pointer;
}
.onb-plan[aria-checked="true"] { border-color: var(--onb-lime-line); box-shadow: 0 4px 0 var(--onb-lime-drop); }
.onb-plan b { font: 800 23px/1.05 var(--font-brand); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.onb-plan small { font: 600 13px/1 var(--font-ui); color: var(--onb-ink-2); }
.onb-plan em { display: block; margin-top: 3px; font: 700 14.5px/1.1 var(--font-ui); color: #2f6b1f; }
.onb-plan-side { display: grid; justify-items: end; gap: 4px; font: 700 14px/1 var(--font-ui); color: var(--onb-ink-2); white-space: nowrap; }
.onb-save { padding: 5px 10px; border-radius: 999px; background: var(--onb-gold-soft); color: var(--onb-gold-ink); font-weight: 800; font-size: 13.5px; }
.onb-legal { flex: none; text-align: center; font: 600 13px/1.35 var(--font-ui); color: var(--onb-ink-2); text-wrap: balance; }
.onb-pay .onb-link { min-height: 44px; margin: 0; color: var(--onb-ink); }
.onb-legal-links { flex: none; display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.onb-legal-links a { min-height: 44px; padding: 0 10px; display: grid; place-items: center; font: 600 13px/1 var(--font-ui); color: var(--onb-ink-2); text-decoration: none; }

/* transitions: the old sky lifts away while the new screen's parts come up one after another */
.onb-flat:not([hidden]) > * { animation: onb-rise .36s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms + .03s); }
.onb-flat > :nth-child(2) { --i: 1; } .onb-flat > :nth-child(3) { --i: 2; } .onb-flat > :nth-child(4) { --i: 3; }
.onb-flat > :nth-child(5) { --i: 4; } .onb-flat > :nth-child(6) { --i: 5; } .onb-flat > :nth-child(n+7) { --i: 6; }
.onb-flat:not([hidden]) > .onb-reward.bump { animation: onb-bump .35s ease; animation-delay: 0s; }
@keyframes onb-rise { from { opacity: 0; transform: translateY(18px); } }
.onb-compare > div:not(.onb-compare-head) .yes { animation: onb-tick .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--r) * 90ms + .45s); }
.onb-compare > div:nth-child(2) { --r: 0; } .onb-compare > div:nth-child(3) { --r: 1; } .onb-compare > div:nth-child(4) { --r: 2; }
.onb-compare > div:nth-child(5) { --r: 3; } .onb-compare > div:nth-child(6) { --r: 4; }
@keyframes onb-tick { from { opacity: 0; transform: scale(.3); } }
.onb-flat.is-leaving { transition: opacity .22s ease, transform .22s ease; opacity: 0; transform: translateY(-14px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .onb-flat:not([hidden]) > *, .onb-compare .yes { animation: none; }
  .onb-flat.is-leaving { transition: none; }
}
@media (max-height: 700px) {
  .onb-premium { gap: 8px; }
  .onb-premium h1 { font-size: 25px; }
  .onb-perks li { min-height: 46px; font-size: 16px; }
  .onb-compare > div { min-height: 45px; }
  .onb-plan { min-height: 52px; padding-block: 5px; }
  .onb-plan b { font-size: 21px; }
  .onb-double b { font-size: 32px; } .onb-double .is-premium b { font-size: 36px; }
  .onb-pay { gap: 6px; }
  .onb-pay .onb-stage { min-height: 68px; }
  .onb-pay .onb-link { min-height: 44px; margin: 0; }
  .onb-pay .onb-stage[data-premium-hero="b"] { display: none; }   /* too small to read here: the timeline is the hero */
  .onb-legal-links { margin-top: 0; }
}

.onb-compare .num { font: 800 19px/1 var(--font-brand); font-variant-numeric: tabular-nums; color: var(--onb-ink-2); }
.onb-compare .num.is-premium { font-size: 24px; color: var(--onb-ink); }
.onb-skip { position: absolute; z-index: 6; top: calc(max(env(safe-area-inset-top, 0px), 16px) - 5px); right: calc(8px + env(safe-area-inset-right, 0px)); height: 44px; padding: 0 12px; border: 0; background: none; color: var(--onb-ink); font: 700 15px/1 var(--font-ui); }
.onb:is([data-step="7"], [data-step="8"]) .onb-progress { right: 104px; }
.onb-plan small, .onb-legal-links a { white-space: nowrap; }

/* the two heroes of the ask: the dialog carries the variant this install was given */
.onb[data-premium-variant="a"] [data-premium-hero="b"], .onb[data-premium-variant="b"] [data-premium-hero="a"] { display: none; }
.onb-plan { width: 100%; text-align: left; font: inherit; color: inherit; }
.onb-plan > span:first-child { display: block; }
.onb-plan:active { transform: scale(.985); }
.onb-legal.is-error { color: var(--danger); }
/* the flat screens bring their parts in one by one, so the whole-step fade is the welcome's only */
.onb-step.onb-flat:not([hidden]) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .onb, .onb-progress i, .onb-cta, .onb-bg, .onb-gl, .onb-wipe, .onb-wipe.is-on,
  .onb-photo, .onb-shade, .onb-hero-stars, .onb-drag-hint,
  .onb-evo-btn, .onb-time-btn, .onb-bars button.onb-bar { transition: none; }
  .onb-step:not([hidden]), .onb-step:not([hidden]) .onb-bars button.onb-bar, .onb-reward.bump { animation: none; }
}
/* large screens: Step 1 expands into a panoramic two-column diorama showcase; steps 2+ stay centered */
@media (min-width: 560px) {
  .onb form { max-width: 460px; margin: 0 auto; }
}
@media (min-width: 860px) {
  .onb[data-step="1"] form { max-width: 1120px; }
  .onb-hero-shell {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
  }
  .onb-hero-visual { height: min(82vh, 620px); gap: 12px; }
  .onb-hero-stage { min-height: 400px; }
  .onb-hero-panel { padding: 26px 26px 18px; gap: 14px; }
  .onb-hero-panel h1 { font-size: 38px; }
  .onb-loop-step { padding: 11px 10px; }
  .onb-loop-step b { font-size: 13.5px; }
  .onb-loop-step span { font-size: 12.5px; }
}
/* small phones: the 3D boxes shrink first, then the big type, keeping Step 1 CTA above the fold */
@media (max-height: 700px) {
  .onb h1 { font-size: 25px; }
  .onb .onb-big { font-size: 56px; }
  .onb-stop { width: 82px; height: 82px; }
  .onb-clock b { font-size: 66px; }
  .onb-hero-shell { gap: 6px; padding-top: max(env(safe-area-inset-top, 0px), 10px); padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 6px) + 6px); }
  .onb-hero-visual { gap: 6px; }
  .onb-hero-stage { min-height: 145px; }
  .onb-hero-panel { gap: 7px; padding: 11px 12px 6px; border-radius: 20px; }
  .onb-photo h1 { font-size: 22px; }
  .onb-loop-step { padding: 6px 5px; }
  .onb-hero-panel .onb-cta { min-height: 48px; font-size: 17px; }
  .onb-hero-panel .onb-link { min-height: 44px; font-size: 14.5px; }
  .onb-mission { padding: 8px 11px; font-size: 12.5px; }
}

/* ===== 2026-11-22 redesign ===== */
/* 1 · welcome: the island alone on its sky (no video under it), grown with the thumb from day 1 to day 30 */
.onb-step[data-step="1"] .onb-hero-shell { gap: 12px; }
.onb-hero-brand { flex: none; align-self: center; }
.onb-hero-poster { position: absolute; inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; border-radius: 28px; opacity: 1; transition: opacity .3s ease; pointer-events: none; }
.onb-photo[data-hero3d="ready"] .onb-hero-poster { opacity: 0; }
.onb-hero-sub { font: 650 16px/1.3 var(--font-ui); color: rgb(255 255 255 / .86); margin-top: -4px !important; }
.onb-hero-panel { gap: 12px; padding: 18px 16px 8px; }

.onb-grow { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 4px; }
.onb-grow-end { font: 800 13px/1 var(--font-ui); color: rgb(255 255 255 / .82); white-space: nowrap; }
.onb-grow-track { position: relative; height: 48px; display: grid; align-items: center; }
.onb-grow input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
.onb-grow input::-webkit-slider-runnable-track {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--onb-lime) 0 var(--p), rgb(255 255 255 / .2) var(--p) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
}
.onb-grow input::-moz-range-track { height: 12px; border-radius: 6px; background: rgb(255 255 255 / .2); }
.onb-grow input::-moz-range-progress { height: 12px; border-radius: 6px; background: var(--onb-lime); }
.onb-grow input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 4px solid var(--onb-lime); box-shadow: 0 3px 0 var(--onb-lime-drop), 0 6px 14px rgb(8 6 22 / .35);
}
.onb-grow input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--onb-lime); box-shadow: 0 3px 0 var(--onb-lime-drop); }
.onb-grow input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
/* the day bubble rides above the thumb; before the first touch it says what to do and nudges */
.onb-grow-day {
  position: absolute; bottom: 42px; left: calc(17px + (100% - 34px) * var(--f, 0)); transform: translateX(-50%);
  padding: 5px 10px; border-radius: 999px; background: #fff; color: #161830; white-space: nowrap; pointer-events: none;
  font: 800 13px/1 var(--font-ui); box-shadow: 0 3px 8px rgb(8 6 22 / .25);
}
.onb-grow-day.is-hint { animation: onb-nudge 1.6s ease-in-out infinite; }
@keyframes onb-nudge { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(calc(-50% + 10px)); } }

/* 4 · the subtitle was unreadable on the night sky */
.onb-step:is([data-step="3"], [data-step="4"]) .onb-sub { color: rgb(255 255 255 / .8); }

/* 7 · double gold, counted with their own rhythm */
.onb-gold { flex: none; display: grid; gap: 0; padding: 4px 18px; background: #fff; border-radius: 24px; box-shadow: 0 4px 0 #e9b14a, 0 0 0 2.5px var(--onb-gold); }
.onb-gold-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 14px; min-height: 58px; align-content: center; font: 700 16.5px/1.2 var(--font-ui); color: var(--onb-ink-2); }
.onb-gold-row + .onb-gold-row { border-top: 1.5px solid var(--onb-line); }
.onb-gold-row s { font: 700 18px/1 var(--font-brand); color: #97a39b; text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.onb-gold-row b { font: 800 30px/1 var(--font-brand); color: var(--onb-gold-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.onb-gold-row b::after { content: " oro"; font-size: 15px; letter-spacing: 0; }

/* 9-10 · their own island, as the game draws it, framed like a postcard */
.onb-snap { position: relative; }
.onb-island-shot {
  position: absolute; top: 6px; left: 50%; height: calc(100% - 26px); width: auto; max-width: 92%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 26px; border: 5px solid #fff; box-sizing: border-box;
  box-shadow: 0 5px 0 var(--onb-drop), 0 18px 36px rgb(19 42 30 / .18); transform: translateX(-50%) rotate(-2deg);
}
.onb-snap.is-small { flex: 1 1 150px; min-height: 110px; }
.onb[data-island-shot="no"] .onb-snap { visibility: hidden; }
.onb-pay .onb-snap .onb-note { bottom: 0; }

/* 0 · welcome: the explorer drifting down under the parachute through a golden sky, live 3D; the name
   sits in the open sky above, the words and the button below */
.onb-welcome { color: #fff; background: linear-gradient(180deg, #6f5aa8 0%, #c9789a 42%, #f5a77a 70%, #ffd59a 100%); }
.onb-welcome-sun { position: absolute; left: 50%; top: 58%; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff3c9 0 34%, rgb(255 226 160 / .55) 35% 52%, rgb(255 214 150 / 0) 72%); pointer-events: none; }
.onb-welcome-view { inset: 6% 0 30%; }
.onb-welcome::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(60 30 70 / 0) 0%, rgb(60 30 70 / .55) 70%, rgb(50 24 58 / .78) 100%); }
.onb-welcome-top { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px;
  padding-top: calc(max(env(safe-area-inset-top, 0px), 16px) + 34px); }
.onb-welcome-top img { border-radius: 16px; box-shadow: 0 6px 18px rgb(20 10 40 / .35); }
.onb-welcome-name { font: 800 30px/1 var(--font-brand); letter-spacing: -0.01em; text-shadow: 0 2px 14px rgb(40 20 60 / .4); }
.onb-welcome-bottom { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 14px;
  padding: 0 calc(20px + env(safe-area-inset-right, 0px)) calc(max(env(safe-area-inset-bottom, 0px), 8px) + 12px) calc(20px + env(safe-area-inset-left, 0px)); }
.onb-welcome h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.02; letter-spacing: -0.02em; text-shadow: 0 2px 16px rgb(20 10 40 / .45); }
.onb-welcome .onb-link { min-height: 44px; color: rgb(255 255 255 / .92); }
.onb:is([data-step="0"]) .onb-progress, .onb[data-step="0"] .onb-back { display: none; }
.onb[data-step="1"] .onb-back { color: #fff; }
/* large screens: the island and its slider on the left, the words on the right */
@media (min-width: 860px) {
  .onb-step[data-step="1"] .onb-hero-shell { grid-template-columns: 1.25fr .9fr; grid-template-rows: 1fr auto; align-items: center; }
  .onb-step[data-step="1"] .onb-hero-stage { grid-column: 1; grid-row: 1; align-self: stretch; }
  .onb-step[data-step="1"] .onb-grow { grid-column: 1; grid-row: 2; }
  .onb-step[data-step="1"] .onb-hero-panel { grid-column: 2; grid-row: 1 / span 2; }
}
