/* Employability Score app. Tokens from site/styles/tokens.css and design/system/project. */
:root {
  --paper: #F5F3EE; --card: #FFFFFF; --sunken: #ECE9E2; --line: #E2DED5;
  --ink: #1E1C19; --ink-2: #4A4741; --muted: #6B675F;
  --cobalt: #2E55D9; --cobalt-deep: #1F3DA6; --cobalt-glow: #4467E3; --cobalt-light: #5B7BEA; --cobalt-tint: #E3E9FB; --on-cobalt: #DCE4FF;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  --travel: cubic-bezier(.65,0,.25,1);
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 10px 22px -14px rgba(30,28,25,.25);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--sunken); color: var(--ink); font: 400 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.flood :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }

/* ---------- Stage: phone full-bleed; desktop shows a phone-sized device beside a quiet aside ---------- */
.stage { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.stage::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: var(--cobalt-tint); right: -24vmax; top: -30vmax; pointer-events: none; }
.aside { display: none; }
.device { position: relative; width: 100vw; height: 100dvh; background: var(--paper); overflow: hidden; container-type: size; isolation: isolate; }
@media (min-width: 760px) {
  .stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 48px; padding: 24px; }
  .aside { display: flex; flex-direction: column; gap: 16px; justify-self: end; max-width: 300px; position: relative; z-index: 1; }
  .device { grid-column: 2; width: min(420px, calc((100dvh - 48px) * .48)); height: min(880px, calc(100dvh - 48px)); min-width: 340px; min-height: 620px; border-radius: 40px; box-shadow: 0 0 0 8px var(--ink), 0 50px 90px -40px rgba(30,28,25,.55); }
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--display); letter-spacing: -.01em; }
.bm { width: 20px; height: 20px; border-radius: 50%; background: var(--cobalt); position: relative; flex: none; }
.bm::after { content: ""; position: absolute; left: 21%; top: 27%; width: 29%; height: 29%; border-radius: 50%; background: var(--paper); }
.aside-line { font: 700 26px/1.12 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.aside-hint { font-size: 14px; color: var(--muted); margin: 0; min-height: 20px; }

/* ---------- Screens ---------- */
.screen { position: absolute; inset: 0; background: var(--paper); color: var(--ink); isolation: isolate; overflow: hidden; opacity: 0; transform: translateX(32px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.screen.on { opacity: 1; transform: none; z-index: 2; }
.screen.out { opacity: 0; transform: translateX(-32px); z-index: 1; pointer-events: none; }
.screen.back.out { transform: translateX(32px); }
.flood { background: var(--cobalt); color: #fff; }
.inkbg { background: var(--ink); color: #fff; }

.body { position: absolute; inset: calc(var(--safe-top) + 92px) 22px calc(var(--safe-bottom) + 24px); display: flex; flex-direction: column; z-index: 2; }
.body.plain { top: calc(var(--safe-top) + 28px); }
.topbar { position: absolute; inset: calc(var(--safe-top) + 16px) 18px auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .brand { font-size: 14px; }
.flood .bm::after, .inkbg .bm::after { background: var(--cobalt); }
.flood .bm, .inkbg .bm { background: #fff; }

.kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.flood .kicker, .inkbg .kicker { color: var(--on-cobalt); }
.h-display { font: 800 clamp(30px, 9.4cqw, 42px)/1.02 var(--display); letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.h-title { font: 700 clamp(23px, 7cqw, 29px)/1.08 var(--display); letter-spacing: -.016em; margin: 0; text-wrap: balance; }
.lede { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.flood .lede, .inkbg .lede { color: var(--on-cobalt); }
.poster { font-family: var(--display); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; }

.pchip { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%; padding: 6px 11px 6px 10px; border: 0; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font: 400 11.5px/1.3 var(--mono); text-align: left; }
.pchip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.pchip.src::after { content: "i"; flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; margin-left: 2px; background: var(--card); color: var(--ink); font: 700 10px var(--body); }
.flood .pchip, .inkbg .pchip { background: rgba(255,255,255,.14); color: #fff; }
.flood .pchip::before, .inkbg .pchip::before { background: #fff; }
.flood .pchip.src::after, .inkbg .pchip.src::after { background: #fff; color: var(--cobalt-deep); }

.btn { display: block; width: 100%; border: 0; border-radius: 16px; padding: 15px; font-weight: 700; font-size: 15.5px; text-align: center; background: var(--cobalt); color: #fff; box-shadow: 0 4px 0 var(--cobalt-deep); transition: transform .15s var(--ease), box-shadow .15s var(--ease); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cobalt-deep); }
.btn.ink { background: var(--ink); box-shadow: 0 4px 0 #000; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--line); }
.btn.white { background: #fff; color: var(--cobalt-deep); box-shadow: 0 4px 0 var(--cobalt-deep); }
.btn.quiet { background: none; box-shadow: none; color: var(--cobalt); padding: 11px; }
.flood .btn.quiet, .inkbg .btn.quiet { color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.li { display: flex; align-items: center; justify-content: center; gap: 10px; }
.li svg { width: 18px; height: 18px; }

/* The brand mark as a big decorative shape */
.mark { position: absolute; border-radius: 50%; background: var(--cobalt); z-index: 1; pointer-events: none; }
.mark::after { content: ""; position: absolute; left: 21%; top: 27%; width: 29%; height: 29%; border-radius: 50%; background: var(--paper); }
.mark.glow { background: var(--cobalt-glow); }
.mark.glow::after { background: var(--cobalt-light); }
.inkbg .mark.glow { background: #2A2825; }
.inkbg .mark.glow::after { background: var(--ink); }
.mark.lit { background: #fff; z-index: 3; }
.mark.lit::after { background: var(--cobalt); }
.mark.small { z-index: 3; }

/* Entrance animations, replayed each time a screen opens */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes stick { from { opacity: 0; transform: rotate(-24deg) scale(.5); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes markin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes glowring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }
.screen.on .r { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 250ms); }
.screen.on .p { animation: pop .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 300ms); transform-origin: left bottom; }
.screen.on .st { animation: stick .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 900ms); }
.screen.on .g { transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 400ms); }
.screen.on .mark { animation: markin .9s var(--ease) both; animation-delay: 200ms; }

/* ---------- Landing ---------- */
.s-land .body { justify-content: flex-end; gap: 16px; top: calc(var(--safe-top) + 64px); }
.s-land .big { font: 800 clamp(40px, 13cqw, 56px)/.94 var(--display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.s-land .big span { color: var(--cobalt); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.s-land .foot, .s-sign .foot { margin-top: 6px; }
.invite { font-size: 13px; font-weight: 600; color: var(--cobalt-deep); background: var(--cobalt-tint); padding: 8px 12px; border-radius: 12px; align-self: flex-start; }

/* ---------- Sign up and upload ---------- */
.s-sign .body { gap: 12px; justify-content: flex-end; }
.or { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0; }
.trust { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 7px; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.trust li::before { content: ""; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.s-up .body { gap: 12px; }
.back-btn { border: 0; background: none; padding: 6px 0; font-weight: 600; font-size: 14px; color: var(--ink-2); align-self: flex-start; }
.drop { position: relative; display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .2s, background .2s; cursor: pointer; }
.drop.hot { box-shadow: inset 0 0 0 2px var(--cobalt); background: var(--cobalt-tint); }
.drop b { font: 700 18px var(--display); }
.drop span { font-size: 13px; color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .doc { width: 44px; height: 54px; border-radius: 8px; background: var(--cobalt-tint); position: relative; }
.drop .doc::after { content: "PDF"; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 11px var(--mono); color: var(--cobalt-deep); }
.howto { font-size: 13px; color: var(--ink-2); background: var(--sunken); border-radius: 14px; padding: 10px 12px; margin: 0; line-height: 1.4; }
.paste { width: 100%; min-height: 110px; flex: 1; max-height: 260px; resize: none; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 14px/1.4 var(--body); color: var(--ink); }
.paste:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt); }
.err { font-size: 13.5px; line-height: 1.4; color: var(--ink); background: var(--cobalt-tint); border-radius: 12px; padding: 10px 12px; margin: 0; border-left: 4px solid var(--cobalt); }
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Reading: rows stack in from the bottom, one at a time, each thinks before its number lands ---------- */
.s-read .body { gap: 0; top: calc(var(--safe-top) + 64px); }
.rd-mark { position: relative; flex: none; width: 64px; height: 64px; margin: 0 0 14px; }
.screen.s-read.on .rd-mark { animation: markin .9s var(--ease) .2s both, rdbreathe 2.4s ease-in-out 1.1s infinite; }
.screen.s-read.rd-done .rd-mark { animation: none; }
@keyframes rdbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.rd-title { font: 700 clamp(23px, 7cqw, 27px)/1.1 var(--display); letter-spacing: -.015em; margin: 8px 0 4px; }
.rd-sub { font-size: 14px; color: var(--muted); margin: 0; }
.rd-scan { position: relative; height: 2px; margin: 14px 0 4px; border-radius: 1px; background: var(--line); overflow: hidden; }
.rd-scan i { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; border-radius: 1px; background: var(--cobalt); animation: rdsweep 1.8s cubic-bezier(.45,0,.55,1) infinite; }
.rd-scan.done i { animation: none; width: 100%; transition: width .8s var(--ease); }
@keyframes rdsweep { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.rd-list { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px); mask-image: linear-gradient(to bottom, transparent 0, #000 56px); }
.rd-group { font: 600 12.5px var(--body); color: var(--cobalt-deep); padding: 16px 2px 6px; }
.rd { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(18px); transition: grid-template-rows 1s var(--travel), opacity .9s var(--ease) .15s, transform 1.1s var(--ease); flex: none; }
.rd.in { grid-template-rows: 1fr; opacity: 1; transform: none; }
.rd-in { overflow: hidden; min-height: 0; }
.rd-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line); }
.rd-ic { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--cobalt-tint); border-top-color: var(--cobalt); animation: rdspin 1s linear infinite; transition: background .4s, border-color .4s; }
.rd.ok .rd-ic { animation: none; border-color: var(--cobalt); background: var(--cobalt); }
.rd.ok .rd-ic::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 7.5px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@keyframes rdspin { to { transform: rotate(360deg); } }
.rd-t { font-size: 14px; line-height: 1.28; color: var(--ink); }
.rd-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rd b { font: 600 17px var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); opacity: 0; transition: opacity .5s; }
.rd.ok b { opacity: 1; }
.rd-status { margin: 14px 0 0; min-height: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- Questions ---------- */
.s-q .body { gap: 14px; top: calc(var(--safe-top) + 64px); }
.ring { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.ring svg { width: 38px; height: 38px; transform: rotate(-90deg); flex: none; }
.ring circle.v { transition: stroke-dashoffset 1s var(--ease); }
.qstep { font: 500 12px var(--mono); color: var(--muted); }
.why { font-size: 14px; color: var(--muted); margin: -4px 0 0; line-height: 1.4; }
.opts { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 16px; padding: 14px 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; line-height: 1.3; transition: background .15s, box-shadow .15s, color .15s; }
.opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: var(--card); transition: box-shadow .15s; }
.opt[aria-checked="true"] { background: var(--cobalt); color: #fff; box-shadow: 0 4px 0 var(--cobalt-deep); }
.opt[aria-checked="true"]::before { box-shadow: inset 0 0 0 6px #fff; background: var(--cobalt); }
.opt .guess { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.opt[aria-checked="false"] .guess { background: var(--sunken); color: var(--muted); }

/* ---------- Story chrome ---------- */
.segs { position: absolute; top: calc(var(--safe-top) + 14px); left: 14px; right: 14px; display: flex; gap: 4px; z-index: 18; }
.segs span { flex: 1; height: 3px; border-radius: 2px; background: rgba(30,28,25,.14); }
.segs span.on { background: var(--cobalt); }
.flood .segs span, .inkbg .segs span { background: rgba(255,255,255,.26); }
.flood .segs span.on, .inkbg .segs span.on { background: #fff; }
.where { position: absolute; top: calc(var(--safe-top) + 28px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; z-index: 18; }
.where b { font-weight: 600; }
.where span { color: var(--muted); }
.flood .where span, .inkbg .where span { color: var(--on-cobalt); }
.x { border: 0; background: none; padding: 4px; margin-right: -4px; color: inherit; opacity: .7; font-size: 18px; line-height: 1; }
.tapzone { position: absolute; inset: 0; z-index: 1; }
.hint { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 6px); text-align: center; font-size: 11.5px; color: var(--muted); z-index: 3; opacity: 0; animation: rise .6s var(--ease) 2.2s both; pointer-events: none; }
.flood .hint, .inkbg .hint { color: var(--on-cobalt); }

/* Hero: a flex area that holds one dominant visual; content sits below it */
.hero { position: relative; flex: 1; min-height: 0; }
.hero .poster { position: absolute; left: -.06em; bottom: 0; white-space: nowrap; }

/* Opener */
.s-open .body { justify-content: flex-end; gap: 14px; }
.s-open .h-display { font-size: clamp(32px, 10.5cqw, 46px); }

/* Profile type */
.s-type .body { justify-content: flex-end; gap: 12px; }
.s-type .h-display { font-size: clamp(36px, 12cqw, 52px); }
.skillrow { display: flex; flex-wrap: wrap; gap: 7px; }
.skillrow span { font: 600 13.5px var(--body); padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--cobalt-deep); box-shadow: 0 3px 0 var(--cobalt-deep); }

/* Pace */
.pace-bg { position: absolute; left: -28cqw; top: 9cqh; width: 120cqw; height: 120cqw; max-height: 60cqh; max-width: 60cqh; border-radius: 50%; background: var(--cobalt-tint); z-index: 0; }
.s-pace .hero .poster { font-size: min(100cqw, 46cqh); color: var(--cobalt); }
.s-pace .unit { position: absolute; left: min(52cqw, 25cqh); bottom: 8cqh; font: 800 clamp(20px, 6.6cqw, 27px)/1.04 var(--display); letter-spacing: -.02em; max-width: 9ch; }
.s-pace .bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.pace2 { position: relative; height: 92px; margin: 0 6px; }
.pace2 .rail { position: absolute; left: 0; right: 0; top: 30px; height: 14px; border-radius: 7px; background: var(--sunken); }
.pace2 .usual { position: absolute; top: 30px; height: 14px; border-radius: 7px; background: var(--cobalt-tint); box-shadow: inset 0 0 0 1.5px rgba(46,85,217,.35); }
.pace2 .mark { top: 25px; width: 24px; height: 24px; margin-left: -12px; }
.pace2 .you { position: absolute; top: 2px; transform: translateX(-50%); font: 700 13px var(--body); color: #fff; background: var(--cobalt); padding: 2px 9px; border-radius: 999px; }
.pace2 .yr { position: absolute; top: 52px; transform: translateX(-50%); font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.pace2 .ulbl { position: absolute; top: 72px; transform: translateX(-50%); font: 600 12.5px var(--body); color: var(--cobalt-deep); white-space: nowrap; }

/* Strength */
.s-strength .hero .poster { font-size: min(118cqw, 50cqh); color: #fff; }
.s-strength .unit { position: absolute; left: min(60cqw, 27cqh); bottom: 9cqh; width: 34cqw; font: 700 clamp(20px, 6.6cqw, 27px)/1.04 var(--display); letter-spacing: -.015em; }
.s-strength .bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.s-strength .lede { color: #fff; font-size: 16.5px; line-height: 1.38; }
.timeline { position: relative; height: 62px; margin-top: 4px; }
.timeline .tb { position: absolute; top: 14px; height: 6px; border-radius: 3px; background: #fff; }
.timeline .tb.old { opacity: .4; }
.timeline .lbl { position: absolute; top: 28px; font-size: 12px; line-height: 1.25; color: rgba(255,255,255,.7); max-width: 48%; }
.timeline .lbl b { display: block; color: #fff; font-weight: 600; }
.timeline .lbl.end { text-align: right; }
.s-strength .mark.glow.big { right: -30cqw; top: -10cqh; width: 90cqw; height: 90cqw; }
.screen.on .celebrate { animation: glowring 1.4s var(--ease) 1.2s 2; border-radius: 999px; }

/* Lists turned into pills and tiles */
.bigline { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 14px; }
.bigline b { font: 800 min(42cqw, 20cqh)/.74 var(--display); letter-spacing: -.06em; color: var(--cobalt); }
.bigline span { font: 800 clamp(18px, 5.6cqw, 22px)/1.08 var(--display); letter-spacing: -.01em; padding-bottom: 4px; max-width: 12em; text-wrap: balance; }
.sk-meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 2px 0 16px; }
.sk-meter i { height: 14px; border-radius: 4px; background: var(--sunken); }
.sk-meter i.on { background: var(--cobalt); }
.sk-h { font: 600 12.5px var(--body); color: var(--muted); margin: 6px 0 8px; }
.sk-pills { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-bottom: 10px; }
.sk-pills span { font: 600 14.5px var(--body); padding: 9px 14px; border-radius: 999px; }
.sk-pills .y { background: var(--cobalt); color: #fff; box-shadow: 0 3px 0 var(--cobalt-deep); }
.sk-pills .y::before { content: "\2713"; margin-right: 6px; font-weight: 700; }
.sk-pills .n { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.sk-pills .n::before { content: "+"; margin-right: 5px; font-weight: 700; color: var(--cobalt); }
.small-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }

/* AI tiles */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ai { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 92px; padding: 12px; border-radius: 16px; background: var(--cobalt); color: #fff; box-shadow: 0 4px 0 var(--cobalt-deep); font: 600 14px/1.22 var(--body); }
.ai em { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.ai em i { display: block; height: 100%; width: 80%; border-radius: 3px; background: #fff; transform-origin: left; }
.ai-rest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); margin-bottom: 12px; }
.ai-rest b { font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.ai-rest span { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.action { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 16px; background: var(--cobalt-tint); color: var(--cobalt-deep); font-size: 14px; line-height: 1.38; font-weight: 600; }
.action .mark { position: relative; width: 20px; height: 20px; margin-top: 1px; }
.action .mark::after { background: var(--cobalt-tint); }

/* Market price */
.s-price .body { gap: 8px; }
.price-big { font: 800 min(19cqw, 10cqh)/.9 var(--display); letter-spacing: -.045em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.price-big small { display: block; font: 600 15px/1.3 var(--body); letter-spacing: 0; color: var(--ink-2); margin-top: 10px; max-width: 30ch; }
.dots { margin: 14px 0 4px; }
.drow { position: relative; padding: 9px 0 8px; border-top: 1px solid var(--line); }
.drow .t { font-size: 13px; line-height: 1.3; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.drow .t b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.drow .track { position: relative; height: 14px; margin-top: 5px; }
.drow .track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--sunken); }
.drow .dot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); }
.drow .dot.hollow { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.drow.you .t, .drow.you .t b { color: var(--cobalt); }
.drow.you .mark { top: -1px; width: 16px; height: 16px; margin-left: -8px; }
.dots-group { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 2px; }

/* Score */
.s-score .num { position: relative; display: flex; align-items: flex-end; margin-top: 2cqh; padding-bottom: 6px; }
.s-score .num .poster { font-size: min(42cqw, 23cqh); letter-spacing: -.065em; }
.s-score .body > .kicker { margin-top: auto; }
.s-score .foot { margin-top: auto; }
.s-score .num .sticker { position: absolute; right: 0; bottom: -2px; margin: 0; font-size: 19px; }
.sticker { display: inline-block; font: 800 21px/1 var(--display); padding: 8px 14px 9px; border-radius: 12px; background: #fff; color: var(--cobalt); box-shadow: 0 4px 0 var(--cobalt-deep); transform: rotate(-6deg); margin: 0 0 22px 8px; white-space: nowrap; }
.ladder { position: relative; height: 74px; margin: 10px 8px 0; }
.ladder .rail { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.ladder .range { position: absolute; top: 30px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: left .9s var(--travel), width .9s var(--travel); }
.ladder .tick2 { position: absolute; top: 22px; width: 2px; height: 22px; margin-left: -1px; background: var(--on-cobalt); opacity: .75; }
.ladder .tl { position: absolute; font-size: 12px; line-height: 1.2; color: var(--on-cobalt); white-space: nowrap; }
.ladder .mark { top: 22px; width: 22px; height: 22px; margin-left: -11px; transition: left .9s var(--travel); }
.paper-ladder .rail { background: var(--sunken); }
.paper-ladder .range { background: var(--cobalt-tint); }
.paper-ladder .tick2 { background: var(--ink-2); opacity: .5; }
.paper-ladder .tl { color: var(--muted); }
.paper-ladder .ghost { position: absolute; top: 24px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-2); opacity: .55; }
.odds { font: 700 clamp(20px, 6.2cqw, 25px)/1.12 var(--display); letter-spacing: -.01em; margin: 12px 0 4px; text-wrap: balance; }
.nextband { font-size: 14px; color: var(--on-cobalt); margin: 0; }
.nextband b { color: #fff; }
.gates { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.gate-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.gate-row span { padding-top: 10px; font-size: 12px; font-weight: 600; color: var(--on-cobalt); border-top: 6px dotted rgba(255,255,255,.4); line-height: 1.1; }
.gate-row span.on { color: #fff; border-top: 6px solid #fff; }
.s-score .foot { gap: 8px; }

/* Lever */
.s-lever .lead-in { font: 700 clamp(22px, 7cqw, 28px)/1.1 var(--display); letter-spacing: -.015em; position: relative; z-index: 2; }
.s-lever .hero { display: flex; flex-direction: column; justify-content: center; gap: 2cqh; }
.s-lever .hero .poster { position: static; font-size: min(52cqw, 30cqh); letter-spacing: -.045em; }
.s-lever .pts { font: 700 22px var(--display); color: var(--on-cobalt); }
.s-lever .bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }

/* Simulator */
.s-sim .body { gap: 0; }
.s-sim .num { position: relative; display: flex; align-items: flex-end; margin-top: 10px; min-height: 96px; }
.s-sim .num .poster { font-size: min(30cqw, 14cqh); letter-spacing: -.06em; }
.s-sim .num .sticker { position: absolute; left: calc(min(30cqw, 14cqh) * 1.62); bottom: 0; }
.s-sim .sticker { font-size: 18px; margin-bottom: 12px; transition: background .35s, color .35s; }
.s-sim .sticker.tint { background: var(--cobalt-tint); color: var(--cobalt-deep); box-shadow: 0 4px 0 #C5D0F3; }
.s-sim .delta { font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; min-height: 19px; }
.s-sim .ladder { margin-top: 0; }
.levers { display: flex; flex-direction: column; border-top: 1px solid var(--line); overflow-y: auto; min-height: 0; flex: 0 1 auto; }
.lever { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lever .l { font-weight: 600; font-size: 15px; line-height: 1.25; }
.lever .m { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.switch { grid-row: 1 / span 2; grid-column: 2; position: relative; width: 52px; height: 32px; border: 0; border-radius: 999px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 0; transition: background .35s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,28,25,.3); transition: transform .35s var(--ease); }
.switch[aria-checked="true"] { background: var(--cobalt); box-shadow: none; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.lever input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--cobalt); }
.unlock { font-size: 13px; font-weight: 600; color: var(--cobalt-deep); margin: 8px 0 0; min-height: 18px; }
.s-sim .foot { padding-top: 10px; }

/* Share */
.s-share .body { gap: 12px; align-items: stretch; }
.sharewrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.sharecard { position: relative; width: min(64cqw, 33cqh); aspect-ratio: 236 / 378; border-radius: 24px; background: var(--cobalt); color: #fff; overflow: hidden; padding: 7% 7% 6%; display: flex; flex-direction: column; box-shadow: 0 22px 40px -22px rgba(31,61,166,.65); transform: rotate(-2.5deg); }
.sharecard .mark { right: -20%; top: -8%; width: 75%; aspect-ratio: 1; height: auto; }
.sharecard .top { font-size: 12.5px; color: var(--on-cobalt); position: relative; z-index: 2; }
.sharecard h3 { margin: auto 0 8px; font: 800 min(10cqw, 5.2cqh)/.95 var(--display); letter-spacing: -.035em; position: relative; z-index: 2; text-wrap: balance; }
.sharecard .era { font: 700 min(5cqw, 2.6cqh)/1.15 var(--display); color: var(--on-cobalt); position: relative; z-index: 2; }
.sharecard .best { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); font-size: 12.5px; line-height: 1.3; position: relative; z-index: 2; color: var(--on-cobalt); }
.sharecard .best b { display: block; font-weight: 600; font-size: 14.5px; color: #fff; }
.sharecard .brand2 { margin-top: 12px; font: 700 13px var(--display); position: relative; z-index: 2; }
.s-share .note { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.toast { position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 90px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 12px; z-index: 40; animation: rise .3s var(--ease) both; white-space: nowrap; }

/* Unlock with friends */
.s-viral .body { gap: 14px; top: calc(var(--safe-top) + 64px); }
.panel { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); display: grid; gap: 12px; }
.faces { display: flex; gap: 10px; }
.faces i { width: 44px; height: 44px; border-radius: 50%; background: var(--sunken); box-shadow: inset 0 0 0 2px var(--line); }
.faces i.j { background: var(--cobalt); box-shadow: none; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--sunken); border-radius: 12px; padding: 4px 4px 4px 12px; font: 400 12px var(--mono); color: var(--ink-2); }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox button { border: 0; background: var(--card); border-radius: 9px; padding: 8px 12px; font: 700 13px var(--body); color: var(--cobalt); box-shadow: 0 0 0 1px var(--line); }
.gets { list-style: none; margin: 0; padding: 0; }
.gets li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.gets li span { width: 30px; height: 30px; border-radius: 50%; background: var(--cobalt-tint); position: relative; }
.gets li span::after { content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px; border: solid var(--cobalt-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gets li b { font-weight: 600; }

/* Coming next: the job ad check */
.s-ad .body { gap: 12px; top: calc(var(--safe-top) + 64px); overflow-y: auto; }
.soon { align-self: flex-start; font: 600 12px var(--body); color: var(--cobalt-deep); background: var(--cobalt-tint); border-radius: 999px; padding: 5px 10px; }
.verdict { font: 800 clamp(32px, 10cqw, 40px)/1 var(--display); letter-spacing: -.03em; margin: 6px 0 2px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 6px 0; font-size: 14px; line-height: 1.32; border-bottom: 1px solid var(--line); }
.checks li small { display: block; font-size: 12px; color: var(--muted); }
.ck { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2L8 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.ck.gap { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.ck.unknown { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.fix { padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-card); }
.fix b { display: block; font-weight: 600; font-size: 14.5px; }
.fix span { font-size: 12.5px; color: var(--muted); }

/* ---------- Evidence sheet ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(30,28,25,.4); z-index: 90; animation: fadein .25s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100vw); max-height: 78dvh; overflow-y: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 18px 20px calc(var(--safe-bottom) + 22px); z-index: 91; animation: sheetup .35s var(--ease) both; }
@keyframes sheetup { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet h2 { font: 700 21px/1.15 var(--display); margin: 0 0 4px; }
.sheet .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.42; color: var(--ink-2); }
.sheet li .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sheet li .meta span, .sheet li .meta a { font: 400 11px var(--mono); background: var(--sunken); border-radius: 6px; padding: 3px 7px; color: var(--ink-2); text-decoration: none; }
.sheet li .meta a { color: var(--cobalt-deep); }
.sheet .close { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .screen.on .r, .screen.on .p, .screen.on .g, .screen.on .st, .screen.on .mark, .screen.on .celebrate, .screen.s-read.on .rd-mark, .rd-scan i { animation: none !important; }
  .screen { transition: opacity .2s; transform: none !important; }
  .rd { transition: opacity .2s; transform: none; }
}

/* Unlock screen grew a pay panel: scroll on short phones, tighter list */
.s-viral .body { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.s-viral .gets li { padding: 7px 0; }
@media (max-height: 720px) { .s-viral .h-display { font-size: 30px; } }

/* ---------------- Launch: beta, account, sign-in, feedback, legal (23 Oct) ---------------- */
.beta { margin-left: 2px; font: 600 10.5px/1 var(--body); letter-spacing: .02em; padding: 4px 7px; border-radius: 999px; background: var(--cobalt-tint); color: var(--cobalt-deep); }
.flood .beta, .inkbg .beta { background: rgba(255,255,255,.18); color: #fff; }
.tb-r { display: flex; gap: 2px; }
.tb-link { border: 0; background: var(--card); padding: 7px 13px; font: 600 13px var(--body); color: var(--ink); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.tb-link:hover { background: var(--sunken); }
.legal { display: flex; justify-content: center; gap: 18px; margin: 2px 0 0; font-size: 12.5px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; }
.consent { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 10px 0 0; text-wrap: pretty; }
.consent a, .sheet .small-note a { color: var(--cobalt-deep); }
.beta-note { font-size: 12.5px; color: var(--on-cobalt); margin: 10px 0 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cobalt); }
.signin { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.signin .sk-h { margin: 4px 0 -4px; }
.btn .g { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 13px var(--display); vertical-align: -5px; }
.field { width: 100%; border: 0; border-radius: 14px; padding: 13px 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 15px var(--body); color: var(--ink); }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt); }
.sheet .err { margin: 0 0 10px; }
.sheet li:has(> .btn.row) { padding: 0; }
.btn.row { text-align: left; padding: 14px 0; color: var(--ink); font-weight: 600; }
.btn.row.dim { color: var(--muted); }
.moods { flex-direction: row; flex-wrap: wrap; margin: 4px 0 10px; }
.moods .opt { width: auto; padding: 10px 14px; font-size: 14px; }
.paste.fb { min-height: 100px; flex: none; margin-bottom: 10px; }
.sheet > .btn + .btn { margin-top: 6px; }
.site-links { display: none; }
@media (min-width: 760px) {
  .site-links { display: flex; gap: 18px; position: fixed; left: 32px; bottom: 24px; z-index: 4; font-size: 13px; }
  .site-links a, .site-links button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
  .site-links a:hover, .site-links button:hover { color: var(--ink); text-decoration: underline; }
}
/* overflow: clip, so focusing a control can never scroll the phone frame sideways. */
.stage, .device, .screen { overflow: clip; }
.topbar .brand { min-width: 0; white-space: nowrap; }
.tb-r { flex: none; }
@media (max-width: 359px) { .topbar .brand { font-size: 13px; gap: 7px; } .tb-link { padding: 6px 10px; font-size: 12.5px; } }
/* The unlock screen carries the most (share, pay, save, feedback): it scrolls when a phone is short. */
.s-viral .body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 4px; }
.s-viral .body > * { flex-shrink: 0; }

/* ---------- Let better roles find you (fake-door opt-in) ---------- */
.s-opt .body { gap: 12px; top: calc(var(--safe-top) + 64px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.s-opt .foot { padding-top: 4px; }
.ocard { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--line); padding: 14px; display: grid; gap: 8px; flex: none; }
.oc-top { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); color: var(--muted); }
.oc-who { font: 700 16.5px/1.25 var(--display); }
.oc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-meta span { font-size: 12.5px; background: var(--sunken); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); }
.oc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.oc-list li { display: flex; justify-content: space-between; gap: 8px; }
.oc-list em { font: normal 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.oc-line { font-size: 13px; color: var(--ink-2); margin: 0; }
.oc-never { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); flex: none; }
.oc-never b { color: var(--ink); }
/* Headings get focus on each screen for screen readers; no visible ring for that programmatic focus. */
[tabindex="-1"]:focus { outline: none; }
