/* RecapYap: Locked In brand. Mobile first; desktop gets a "use your phone" hand-off. */
@font-face { font-family: "Instrument Sans"; font-weight: 400 500; font-display: swap; src: url("../fonts/InstrumentSans-Regular.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600 800; font-display: swap; src: url("../fonts/InstrumentSans-Bold.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); }

:root {
  --night: #121019; --surface: #1E1A2B; --line: #2A2540; --text: #F4F1FF; --muted: #A9A1CC;
  --lilac: #D9CCFF; --lilac-2: #B9A6FF; --yellow: #FACC15; --orange: #FF6B2C; --ink: #14121F; --milk: #F7F4FF;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; min-height: 100dvh; }
a { color: var(--lilac); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em; margin: 0; }
.y { color: var(--yellow); }
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; }
.topbar .step { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.back { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; }
.pill-logo { height: 30px; display: block; }
.screen { display: none; flex: 1; flex-direction: column; padding: 4px 20px 24px; gap: 14px; }
.screen.on { display: flex; }

/* ---------- buttons ---------- */
.btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 16px 20px; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; cursor: pointer; min-height: 52px; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--lilac); border: 1.5px solid var(--lilac); }
.btn[disabled] { background: #3A3358; color: #8D86AE; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 10px; cursor: pointer; text-decoration: underline; }

/* ---------- landing ---------- */
.hero-moon { position: absolute; right: -110px; top: -120px; width: 250px; height: 250px; border-radius: 999px; background: var(--lilac); box-shadow: 0 0 0 4px var(--orange); z-index: 0; }
.landing-head { position: relative; z-index: 1; padding-top: 6px; }
.landing-head .big-pill { height: 46px; }
.landing h1 { font-size: clamp(50px, 15vw, 70px); margin-top: 18px; }
.fan { position: relative; height: 300px; margin: 6px 0 2px; }
.fan img { position: absolute; top: 10px; width: 150px; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.fan img:nth-child(1) { left: 50%; margin-left: -175px; transform: rotate(-9deg); top: 30px; }
.fan img:nth-child(2) { left: 50%; margin-left: 25px; transform: rotate(9deg); top: 30px; }
.fan img:nth-child(3) { left: 50%; margin-left: -75px; z-index: 2; }
.price-line { text-align: center; font-size: 14px; color: var(--muted); margin: -4px 0 0; }
.price-line b { color: var(--text); }
.promise { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.promise strong { color: var(--yellow); }
.foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; }
.foot a { color: var(--muted); }
/* Comfortable tap targets for thumbs (at least 44px) */
.foot { row-gap: 0; }
.foot a, .desk-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* "Forget my settings": looks like the other footer links; its "Done" note sits on its own line underneath */
.foot-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.foot-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.foot-note { flex-basis: 100%; margin: 0; }
.foot-note:empty { display: none; }
button.mini-btn, button.back, button.sh-back, button.sh-nav, button.sh-pick, #co-code, label.tick { min-height: 44px; }
button.back, button.sh-back, button.sh-nav { width: 44px; }

/* ---------- export guide ---------- */
.seg { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: 11px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.seg button[aria-selected="true"] { background: var(--lilac); color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 18px; padding: 11px 14px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--lilac); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; }
.steps span { font-size: 14px; color: var(--muted); }
.note { border-radius: 16px; padding: 12px 14px; font-size: 14px; background: rgba(255,107,44,0.14); border: 1.5px solid var(--orange); }

/* ---------- upload ---------- */
.drop { border: 2px dashed var(--lilac); border-radius: var(--r); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: rgba(217,204,255,0.05); cursor: pointer; }
.drop .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--lilac); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reading { display: none; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.reading.on { display: flex; }
.spinner { width: 20px; height: 20px; border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--yellow); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { display: none; background: rgba(255,107,44,0.14); border: 1.5px solid var(--orange); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.error.on { display: block; }

.found { background: var(--surface); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.found-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.found-head h3 { font-size: 34px; }
.badge { flex: none; background: var(--lilac); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--night); border-radius: 14px; padding: 10px; }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--yellow); }
.tile .k { font-size: 12px; color: var(--muted); }
.covers { display: flex; justify-content: space-between; background: var(--night); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--night); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.bigchat { background: var(--yellow); color: var(--ink); border-radius: 18px; padding: 14px; }
.bigchat h4 { font-size: 26px; margin-bottom: 4px; }

/* ---------- sheet (agree pop-up, explainer) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8,6,14,0.72); z-index: 20; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 22px calc(22px + env(safe-area-inset-bottom)); display: none; flex-direction: column; gap: 14px; max-height: 92dvh; overflow-y: auto; }
.sheet.on, .scrim.on { display: flex; }
.scrim.on { display: block; }
.grab { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: #3A3358; }
.sheet h2 { font-size: 34px; }
.tick { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid var(--muted); display: grid; place-items: center; cursor: pointer; }
.tick input:checked { background: var(--yellow); border-color: var(--yellow); }
.tick input:checked::after { content: "✓"; color: var(--ink); font-weight: 800; font-size: 16px; }
.small { font-size: 13px; color: var(--muted); }
.explain ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- desktop hand-off ---------- */
.desktop { display: none; }
@media (min-width: 900px) and (hover: hover) {
  body:not(.force-mobile) .app { display: none; }
  body:not(.force-mobile) .desktop { display: grid; }
}
.desktop { min-height: 100dvh; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; max-width: 1180px; margin: 0 auto; padding: 48px 56px; position: relative; }
.desktop .desk-title { font-size: clamp(54px, 5vw, 80px); margin: 22px 0 16px; }
.desktop .lede { font-size: 19px; max-width: 40ch; color: var(--muted); margin: 0 0 24px; }
.desktop .lede b { color: var(--text); }
.qr-card { background: var(--milk); color: var(--ink); border-radius: 28px; padding: 22px; display: flex; gap: 22px; align-items: center; max-width: 520px; }
.qr-card img { width: 200px; height: 200px; flex: none; border-radius: 10px; }
.qr-card h2 { font-size: 34px; margin-bottom: 6px; }
.qr-card p { margin: 0; font-size: 15px; }
.qr-card .url { font-weight: 800; }
.desk-fan { position: relative; height: 560px; }
.desk-fan img { position: absolute; width: 240px; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.desk-fan img:nth-child(1) { left: 0; top: 70px; transform: rotate(-10deg); }
.desk-fan img:nth-child(2) { right: 0; top: 70px; transform: rotate(10deg); }
.desk-fan img:nth-child(3) { left: 50%; margin-left: -120px; top: 0; z-index: 2; }
.desk-links { display: flex; gap: 20px; margin-top: 22px; font-size: 14px; align-items: center; }
.desk-links a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ---------- checkout ---------- */
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile .caps { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tile .v.name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
button.chip { color: var(--text); cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-height: 44px; justify-content: center; }
button.chip .was { font-size: 10.5px; font-weight: 600; opacity: 0.75; }
button.chip.renamed { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
button.chip.editing { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
button.chip.hidden-person { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); text-decoration: line-through; }
.editor { display: flex; flex-direction: column; gap: 6px; background: var(--night); border: 1.5px solid var(--yellow); border-radius: 16px; padding: 10px 12px; }
.edit-row { display: flex; gap: 8px; }
.edit-row input, .code input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; font-weight: 700; padding: 8px 0; }
.edit-row input:focus, .code input:focus { outline: none; }
.mini-btn { flex: none; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.hidden-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--night); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.hidden-note button { flex: none; background: none; border: 0; color: var(--lilac); font-weight: 700; cursor: pointer; padding: 6px; }
.code { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--lilac); border-radius: 16px; padding: 4px 6px 4px 14px; }
.code input { letter-spacing: 0.12em; text-transform: uppercase; }
.code.applied { border-color: var(--yellow); }
.sum { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum .row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.sum .row:first-child.struck span:last-child { text-decoration: line-through; }
a.btn[aria-disabled="true"] { background: #3A3358; color: #8D86AE; pointer-events: none; }
.tiles.two .tile { background: var(--surface); }
button.chip span:first-child { overflow-wrap: anywhere; }

/* ---------- orange pop-up (must be closed to carry on) ---------- */
.alert-pop { position: fixed; inset: 0; z-index: 40; background: rgba(8,6,14,0.78); display: flex; align-items: center; justify-content: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
/* "Saved everything?" can open while the card player or a share screen is up (they sit at 60-80), so it goes above all of them */
#leave-check { z-index: 120; }
.alert-box { width: 100%; max-width: 380px; background: var(--orange); color: var(--ink); border-radius: 26px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 4px var(--ink), 0 20px 50px rgba(0,0,0,0.5); }
.alert-box h2 { font-size: 34px; }
.alert-box p { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.alert-btn { background: var(--ink); color: var(--text); margin-top: 6px; }

/* after payment */
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.rc-list b { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--yellow); }
:is(h1, h2)[tabindex="-1"]:focus { outline: none; }

/* ---------- card player (Stories-style) ---------- */
html.player-open, html.player-open body { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 60; background: #0C0A12; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) max(10px, env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); }
.pl-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.pl-scale { position: absolute; left: 50%; top: 50%; width: 340px; height: 604px; transform-origin: center; }
.pl-slot { position: absolute; inset: 0; }
.pl-wipe { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: 26px; pointer-events: none; }
.pl-wipe > div { will-change: transform; }
.pl-status { margin: 0; min-height: 18px; padding: 4px 16px 0; text-align: center; font-size: 13px; color: var(--muted); }
.pl-actions { display: flex; gap: 8px; padding: 6px 16px 0; }
.pl-btn { flex: none; min-width: 48px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--lilac); background: transparent; color: var(--lilac); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.pl-wide { flex: 1; }
.pl-main { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
/* the small "Calmer" switch under every card (the intro has its own on slide 3) */
.pl-calm { display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 13px; }
.pl-sw { position: relative; width: 26px; height: 15px; flex: none; border-radius: 999px; background: rgba(217, 204, 255, 0.25); transition: background 0.15s; }
.pl-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 999px; background: var(--lilac); transition: transform 0.15s; }
.pl-calm[aria-checked="true"] .pl-sw { background: var(--orange); }
.pl-calm[aria-checked="true"] .pl-sw::after { transform: translateX(11px); background: var(--ink); }
.pl-intro [data-act="calm"] { visibility: hidden; }
/* intro slides are story only: no Save or Share while they're up */
.pl-intro [data-act="save"], .pl-intro [data-act="share"] { visibility: hidden; }
.ry-intro button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.pl-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.rc-actions { display: grid; gap: 10px; }

/* Calmer motion switch (recap screen); the same look sits on intro slide 3 */
.calm-switch { justify-self: start; display: flex; align-items: center; gap: 10px; background: transparent; border: 1.5px solid var(--lilac); border-radius: 999px; padding: 7px 18px 7px 8px; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.calm-switch .cs-track { position: relative; width: 38px; height: 22px; flex: none; box-sizing: border-box; border-radius: 999px; background: var(--surface); border: 1.5px solid rgba(217,204,255,0.55); }
.calm-switch .cs-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 999px; background: var(--lilac); transition: left 160ms cubic-bezier(.22,1,.36,1); }
.calm-switch .cs-text { display: flex; flex-direction: column; line-height: 1.15; }
.calm-switch .cs-text b { font-size: 14px; }
.calm-switch .cs-text span { font-size: 12px; color: var(--muted); }
.calm-switch[aria-checked="true"] { border-color: var(--yellow); background: rgba(250,204,21,0.1); }
.calm-switch[aria-checked="true"] .cs-track { background: var(--yellow); border-color: var(--yellow); }
.calm-switch[aria-checked="true"] .cs-knob { left: 18px; background: var(--ink); }
.calm-switch:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- "That's a wrap. Post it." after the last card (board screen 9) ---------- */
.pl-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: 10px; padding: 20px 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: var(--night); border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,0.55); }
.pl-end[hidden] { display: none; }
.pl-end h2 { margin: 0 0 4px; font-size: 34px; line-height: 0.95; }
.pl-end .link-btn { justify-self: center; color: var(--lilac); font-weight: 700; padding: 8px; }

/* ---------- share screen (board screens 10 and 11) ---------- */
.share { position: fixed; inset: 0; z-index: 70; background: #0C0A12; color: var(--text); display: flex; flex-direction: column; gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px max(12px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.sh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-back { width: 40px; height: 40px; border-radius: 999px; background: var(--surface); border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.sh-title { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.sh-pill { height: 24px; }
.sh-stage { flex: 1; min-height: 250px; display: flex; align-items: center; gap: 6px; }
.sh-frame { position: relative; flex: 1; align-self: stretch; overflow: hidden; touch-action: pan-y; }
.sh-scale { position: absolute; left: 50%; top: 50%; width: 340px; height: 604px; transform-origin: center; }
.sh-scale > .ry-card { box-shadow: 0 18px 50px rgba(0,0,0,0.55); }
.sh-nav { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid rgba(217,204,255,0.5); background: transparent; color: var(--lilac); font-size: 22px; line-height: 1; cursor: pointer; }
.sh-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.sh-meta b { color: var(--text); }
.sh-pick { border: 1.5px solid var(--lilac); background: transparent; color: var(--lilac); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; min-height: 34px; }
.sh-pick[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sh-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sh-thumbs::-webkit-scrollbar { display: none; }
.sh-thumb { position: relative; flex: none; width: 48px; height: 85px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; scroll-snap-align: center; outline: 2.5px solid transparent; outline-offset: 2px; }
.sh-thumb.on { outline-color: var(--yellow); }
.sh-mini { position: absolute; left: 0; top: 0; width: 340px; height: 604px; transform: scale(0.1412); transform-origin: 0 0; pointer-events: none; border-radius: 40px; overflow: hidden; }
.sh-tick { position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; }
.sh-thumb.picked .sh-tick { display: flex; }
.sh-swatches { display: flex; justify-content: space-between; gap: 4px; }
.sh-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 10.5px; cursor: pointer; min-width: 44px; }
.sh-dot { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 2px solid #3A3358; overflow: hidden; box-sizing: border-box; transition: transform 160ms cubic-bezier(.22,1,.36,1); }
.sh-dot > span { position: absolute; right: -8px; top: -8px; width: 30px; height: 30px; border-radius: 999px; }
.sh-sw[aria-checked="true"] { color: var(--text); }
.sh-sw[aria-checked="true"] .sh-dot { border-color: var(--text); transform: scale(1.08); }
.share .btn { min-height: 50px; padding: 13px 20px; }
.sh-status { margin: 0; min-height: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.sh-back:focus-visible, .sh-nav:focus-visible, .sh-pick:focus-visible, .sh-thumb:focus-visible, .sh-sw:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- checkout step 3: the free first card and the locked stack (upgrades, design picture 4) ---------- */
.peek { display: flex; gap: 12px; align-items: stretch; background: var(--surface); border-radius: 18px; padding: 10px; border: 1.5px solid var(--yellow); }
.peek-card { position: relative; width: 122px; height: 217px; flex: none; border-radius: 9px; overflow: hidden; }
.peek-side { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.peek-free { align-self: flex-start; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.peek-title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 0.95; }
.peek-line { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.peek-btns { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.peek-watch, .peek-save { border-radius: 999px; min-height: 40px; font-family: var(--display); font-weight: 800; font-size: 15px; cursor: pointer; }
.peek-watch { background: var(--lilac); color: var(--ink); border: 0; }
.peek-save { background: transparent; color: var(--lilac); border: 1.5px solid var(--lilac); }
.peek-watch:focus-visible, .peek-save:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.locked { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 10px 14px; }
.locked-stack { position: relative; width: 108px; height: 88px; flex: none; }
.locked-stack span { position: absolute; width: 46px; height: 82px; border-radius: 8px; border: 2px solid var(--night); filter: blur(2.2px); opacity: 0.85; box-sizing: border-box; }
.locked-lock { position: absolute; left: 34px; top: 22px; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); border: 2px solid var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; box-sizing: border-box; }
.locked-more { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; }
#co-more-list { margin-top: 2px; line-height: 1.35; }
/* WATCH IT: the free card full screen, with its FREE PREVIEW band */
.free-full { position: fixed; inset: 0; z-index: 50; background: var(--night); display: flex; flex-direction: column; gap: 10px; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); box-sizing: border-box; }
.free-full[hidden] { display: none; }
.free-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; }
.free-card { position: relative; border-radius: 22px; overflow: hidden; flex: none; }
.free-tag { position: absolute; right: 6px; top: 50px; background: var(--ink); border: 1.5px solid var(--yellow); color: var(--yellow); border-radius: 999px; padding: 3px 9px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 1px; z-index: 3; }
.free-actions { display: flex; flex-direction: column; gap: 8px; }
.free-actions .btn { font-family: var(--display); font-weight: 800; font-size: 21px; min-height: 50px; padding: 12px 20px; }
.free-actions .btn-ghost { color: var(--text); border-color: #3A3358; font-size: 18px; }

/* the note under every card (instead of Save / Share buttons): saving and sharing happen at the end */
.pl-hint { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 4px 12px; box-sizing: border-box; border-radius: 999px; border: 1.5px dashed rgba(217, 204, 255, 0.45); color: var(--muted); font-size: 12.5px; line-height: 1.25; }
.pl-hint b { color: var(--yellow); font-weight: 700; }
.pl-intro [data-act="hint"], .pl-ended [data-act="hint"] { visibility: hidden; }

/* Share hub, making the video, everyone's card (upgrades, picture 4 screens 3–5) */
.hub { overflow-y: auto; }
.hub-h { font-size: 38px; line-height: 0.92; margin: 4px 0 2px; }
.hub-story { border: 2px solid var(--yellow); border-radius: 20px; background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.hub-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-row h3 { font-size: 22px; }
.hub-chip { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.4px; white-space: nowrap; }
.hub-strip { position: relative; display: flex; gap: 4px; height: 86px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; }
.hub-mini { position: relative; flex: 1; min-width: 0; border-radius: 6px; overflow: hidden; }
.hub-mini .sh-mini { left: 50%; transform: translateX(-50%) scale(0.1424); transform-origin: 50% 0; border-radius: 0; }
.hub-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 999px; background: var(--ink); color: var(--yellow); border: 2.5px solid var(--yellow); display: flex; align-items: center; justify-content: center; padding-left: 3px; box-sizing: border-box; }
.hub-p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.hub-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-tile { display: grid; gap: 3px; align-content: start; text-align: left; background: var(--surface); border: 0; border-radius: 16px; padding: 12px; color: var(--text); font: inherit; cursor: pointer; min-height: 76px; }
.hub-tile b { font-size: 19px; }
.hub-tile span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.hub-tiles .hub-tile:only-child { grid-column: 1 / -1; }
.hub-foot { margin: auto 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.hub button:focus-visible, .making button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.making { z-index: 80; }
.mk-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.mk-ring { position: relative; width: min(64vw, 230px); aspect-ratio: 1; }
.mk-ring svg { width: 100%; height: 100%; display: block; }
.mk-arc { transition: stroke-dashoffset 300ms linear; }
.mk-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mk-pct { font-size: 60px; color: var(--yellow); line-height: 0.9; }
.mk-card { font-size: 13px; color: var(--muted); }
.mk-h { font-size: 34px; line-height: 0.92; }
.mk-p { margin: 0; max-width: 290px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mk-end { display: grid; gap: 8px; }
.mk-end .link-btn { justify-self: center; color: var(--lilac); font-weight: 700; padding: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .mk-arc { transition: none; } }

/* "See a full example" (homepage) and its EXAMPLE tag, fixed on every screen while the example is open */
.demo-btn { margin-top: 2px; }
.demo-note { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.demo-tag { position: fixed; z-index: 100; left: 50%; top: 0; transform: translateX(-50%); pointer-events: none;
  background: var(--yellow); color: var(--ink); border-radius: 0 0 10px 10px; padding: calc(3px + env(safe-area-inset-top, 0px)) 12px 3px;
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.recaps-made { margin: -4px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--lilac); }
