/*
  pair shared components: type classes, the button pair, fields, panels and
  the quiz module (its stage, deck, answers, the two lights and the result
  card).

  Why one file: the home page's quiz section and the /quiz/ page mount the
  same module (site/quiz/quiz.js), and every page shares one button pair.
  Loaded after /tokens.css by the home page, /quiz/, the four text pages and
  /waitlist/remove; the founder, success and cancel pages get it through
  /quiz/quiz.css. Every value comes from a token in tokens.css; change it
  there, not here.

  The quiz look in one paragraph (vision build, Nov 2026): one ring carries
  the journey. Two lights start at the bottom of the ring and travel up
  either side as --p (0 to 1, the share of questions answered, set by the
  script) grows; at the reveal they meet at the top, flare, and the pair
  logo shows in the middle. The ring sits beside the questions when the
  quiz's parent is 880px wide or more (a container query, so the home page
  and /quiz/ each get the layout their width allows) and above them when it
  is narrower. The stage is a CSS grid where every screen and every question
  sits in the same cell, so it is always as tall as its tallest step and
  never jumps. The script gives each question data-at (gone, now, deck,
  away): the one in hand rises in, the one answered lifts away, and Back is
  the same motion reversed. Transform and opacity only; nothing that moves
  carries a shadow or a filter. Under prefers-reduced-motion nothing
  travels: every state is simply shown.

  The journey's motion (Nov 2026, quiz feel): before the first question the
  two lights drift and breathe on the ring around the question total, then
  settle to the bottom as the first question starts (--sway). Each question
  rises in word by word, its answers after it; a tap lights the chosen row
  (a sweep, its tile pops) while the others dim, all inside --dur-hold. On
  each new question the lights pulse once where they land and the count
  rises in; halfway and the last question say so under the count, with a
  bigger pulse, and the glow behind the ring moves from violet to coral as
  --p grows. Going back everything plays from above instead. The script only
  sets states (data-dir, data-beat, data-mark, .is-landing); every timing is
  a token.

  The result is a reveal in four beats: the card turns over, a list explains
  its four letters (.lmeans), the three reads follow, each rising in after
  the one before, and the founder invite closes it as the one warm next step,
  with Take the quiz again quiet under it (.pq-again-row).
*/

/* Headings set in the display face are always weight 700 with tight tracking (Quicksand, as in the app). */
.pq-q,.panel h2,.panel h3,.pq-working h2,.pq-working h3,.invite .pq-sub,.giftpick .pq-sub,.read h3,.read h4{letter-spacing:-.03em}

/* ── type ───────────────────────────────────────────────────────────── */
.kicker{font-family:var(--f-mono);font-size:var(--t-xs);font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--ai-0)}
.kicker.warm{color:var(--warm-0)}
.display{font-family:var(--f-display);font-weight:700;letter-spacing:-.035em;line-height:1.02}
.display em{font-style:normal;background:var(--grad-score);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.06em}
.lead{font-size:var(--t-lg);color:var(--ink-1);line-height:1.6;max-width:44ch}
.small{font-size:var(--t-sm);line-height:1.55;color:var(--ink-1)}
.small a{color:var(--ink-1);text-decoration:underline;text-underline-offset:3px;transition:color var(--dur-fast)}
.small a:hover{color:var(--ink-0)}

/* ── the button pair: warm (primary) and ghost (secondary) ─────────────
   States: hover steps up 1px and brightens, press sinks 1px and scales .985,
   focus shows the page ring, disabled goes flat, .is-loading holds its size
   with a spinner. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--control-h);padding:0 28px;border-radius:var(--r-pill);border:0;
  font-family:var(--f-sans);font-weight:700;font-size:var(--t-base);letter-spacing:.01em;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:transform var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease),background-color var(--dur-fast),border-color var(--dur-fast),filter var(--dur-fast)}
.btn-warm{background:var(--grad-warm);color:var(--bg-0);box-shadow:var(--shadow-warm)}
.btn-ghost{background:var(--glass-2);color:var(--ink-0);border:1px solid var(--hair)}
@media(hover:hover) and (pointer:fine){
  .btn-warm:hover{transform:translateY(-1px);box-shadow:var(--shadow-warm-hi);filter:brightness(1.04)}
  .btn-ghost:hover{transform:translateY(-1px);background:var(--glass-4);border-color:var(--ai-line)}
}
.btn:active{transform:translateY(1px) scale(.985);transition-duration:var(--dur-press)}
.btn[disabled],.btn[aria-disabled="true"]{cursor:not-allowed;transform:none;box-shadow:none;filter:none;background:var(--glass-3);color:var(--ink-1);border:1px solid var(--line-1)}
.btn.is-loading{pointer-events:none;opacity:.92;box-shadow:none}
.btn-sm{min-height:var(--tap);padding:0 18px;font-size:var(--t-sm)}
.btn.block{width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.spinner{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(7,5,19,.25);border-top-color:var(--bg-0);animation:spin var(--dur-spin) linear infinite;display:inline-block;vertical-align:-3px}
.spinner.light{border-color:var(--hair);border-top-color:var(--ai-0);width:36px;height:36px;border-width:3px}
@keyframes spin{to{transform:rotate(360deg)}}
/* a text button: Back in the quiz */
.back{display:inline-flex;align-items:center;gap:8px;min-height:var(--tap);padding:0 6px;margin-left:-6px;border:0;border-radius:var(--r-sm);background:none;color:var(--ink-1);
  font-family:var(--f-sans);font-weight:700;font-size:var(--t-base);cursor:pointer;transition:color var(--dur-fast),transform var(--dur-fast) var(--ease)}
.back:hover{color:var(--ink-0)}
.back:active{transform:translateX(-2px);transition-duration:var(--dur-press)}

/* ── fields ─────────────────────────────────────────────────────────── */
.form{display:flex;flex-direction:column;gap:22px}
.fld label,.fld .lbl{display:block;font-size:var(--t-sm);font-weight:700;color:var(--ink-1);margin-bottom:8px}
.fld fieldset{border:0;margin:0;padding:0;min-width:0}
.fld legend{padding:0}
.fld input,.fld select{width:100%;min-height:var(--control-h);padding:0 18px;border-radius:var(--r-md);background:var(--glass-3);border:1px solid var(--line-field);color:var(--ink-0);
  font-family:var(--f-sans);font-weight:600;font-size:var(--t-base);transition:border-color var(--dur-fast),background-color var(--dur-fast),box-shadow var(--dur-fast);appearance:none;-webkit-appearance:none}
.fld select{background-image:linear-gradient(45deg,transparent 50%,var(--ink-1) 50%),linear-gradient(135deg,var(--ink-1) 50%,transparent 50%);
  background-position:calc(100% - 22px) 24px,calc(100% - 16px) 24px;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
.fld select option{background:var(--bg-2);color:var(--ink-0)}
.fld input::placeholder{color:var(--ink-hint)}
.fld input:hover,.fld select:hover{border-color:var(--ai-line)}
.fld input:focus,.fld select:focus{outline:none;border-color:var(--ai-0);background:var(--glass-4);box-shadow:0 0 0 3px var(--ai-tint)}
.fld input:focus-visible,.fld select:focus-visible{outline:2px solid var(--ai-0);outline-offset:2px}
.fld [aria-invalid="true"]{border-color:var(--err)}
.field-err{margin-top:8px;font-size:var(--t-sm);color:var(--err)}
.field-err:empty{display:none}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.fld .check{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:var(--r-md);background:var(--glass-2);border:1px solid var(--line-1);cursor:pointer;
  font-size:var(--t-base);line-height:1.5;color:var(--ink-1);font-weight:500;margin:0;transition:border-color var(--dur-fast)}
.fld .check:hover{border-color:var(--ai-line)}
.fld .check input{flex:none;width:24px;height:24px;min-height:0;padding:0;margin:1px 0 0;border:revert;background:revert;border-radius:0;appearance:auto;-webkit-appearance:checkbox;accent-color:#FF8C77;cursor:pointer;box-shadow:none}
.check input[aria-invalid="true"]{outline:2px solid var(--err);outline-offset:2px}
.fld:has(.check input[aria-invalid="true"]) .check{border-color:var(--err)}
.check:has(input:focus-visible){outline:2px solid var(--ai-0);outline-offset:3px}
/* the date of birth row */
.dob{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1.3fr);gap:10px}
.dob label{font-weight:600;font-size:var(--t-xs);color:var(--ink-2);margin-bottom:6px}
.rule{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r-md);background:var(--ai-tint);border:1px solid var(--line-1);font-size:var(--t-sm);color:var(--ink-1)}
.rule b{color:var(--ink-0)}

/* ── panels: notices, problems, the founder invite ─────────────────── */
.panel{padding:30px 26px;border-radius:var(--r-xl);background:var(--panel);border:1px solid var(--line-0);box-shadow:var(--shadow-card)}
.panel.err{border-color:var(--err-line)}
.panel .mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin-bottom:18px;border:1px solid var(--line-1)}
.panel.err .mark{background:var(--err-tint);border-color:var(--err-line)}
.panel.ok .mark{background:var(--ok-tint);border-color:var(--ok-line)}
.panel h2,.panel h3{font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:1.06}
.panel p{margin-top:12px;color:var(--ink-1)}

/* ══ the quiz module ═══════════════════════════════════════════════════ */
.pq{position:relative;--p:0}
.pq h1,.pq h2,.pq h3,.pq h4{margin:0;font-weight:700}
.pq p{margin:0}
.pq [tabindex="-1"]:focus{outline:none} /* a heading that takes focus after a step is a reading place, not a control: no ring on either page; every control keeps its ring */
.pq .pq-title{font-size:var(--d-q);line-height:1.02;letter-spacing:-.015em;margin-top:14px;max-width:17ch}
.pq .lead{margin-top:16px}
.pq .form{margin-top:26px}
.pq-screen[data-screen="start"]{max-width:640px}
/* the quiz's parent answers to its own width, so the layout below follows the room the quiz has */
:has(> .pq){container-type:inline-size}

/* ── the ring ── */
/* --sway: the size of the resting drift (1 before the first question, 0 after), registered so it can ease */
@property --sway{syntax:"<number>";inherits:true;initial-value:0}
.pq-progress{display:flex;align-items:center;gap:18px;margin-bottom:26px}
.pq-ring{position:relative;flex:none;width:128px;aspect-ratio:1;isolation:isolate}
/* the atmosphere: two still soft lights behind the ring. Violet fades and coral grows as --p grows, and the last
   question lifts the coral; only their opacity and scale change (no filter, nothing moves across the page) */
.pq-glow{position:absolute;inset:-22%;z-index:-1;border-radius:50%;pointer-events:none;transition:opacity var(--dur-slow) var(--ease),transform var(--dur-slow) var(--ease)}
.pq-glow.v{background:radial-gradient(closest-side,rgba(139,124,246,.30),rgba(139,124,246,.10) 55%,rgba(139,124,246,0));opacity:calc(1 - var(--p) * .6);transform:translate(-6%,-4%)}
.pq-glow.c{background:radial-gradient(closest-side,rgba(255,122,99,.24),rgba(255,122,99,.08) 55%,rgba(255,122,99,0));opacity:calc(.2 + var(--p) * .7);transform:translate(6%,6%) scale(calc(.86 + var(--p) * .14))}
.pq[data-mark="last"] .pq-glow.c{opacity:1;transform:translate(2%,2%) scale(1.06)}
.pq-ring-art{display:block;width:100%;height:100%;overflow:visible}
.pq-ring-base{fill:none;stroke:var(--glass-3);stroke-width:5}
/* each arc is half the ring (r 84: 263.9 long) and draws from the bottom as --p grows */
.pq-arc{fill:none;stroke-width:5;stroke-linecap:round;stroke-dasharray:263.9 600;stroke-dashoffset:calc((1 - var(--p)) * 263.9px);transition:stroke-dashoffset var(--dur-slow) var(--ease)}
.pq-arc.v{stroke:var(--ai-1)}
.pq-arc.c{stroke:var(--warm-0)}
/* each light rides a full size layer turned about the ring's centre: violet up the left, coral up the right */
.pq-orb{position:absolute;inset:0;pointer-events:none;--side:1;--sway:0;
  transition:transform var(--dur-slow) var(--ease),opacity var(--dur-slow) var(--ease),--sway var(--dur-slow) var(--ease);
  animation:pqDrift var(--dur-drift) ease-in-out infinite alternate paused}
.pq-orb.v{transform:rotate(calc(var(--p) * 180deg))}
.pq-orb.c{transform:rotate(calc(var(--p) * -180deg));--side:-1;animation-delay:calc(var(--dur-drift) * -.35)}
.pq-orb i{position:absolute;left:50%;top:92%;width:20%;aspect-ratio:1;margin:-10% 0 0 -10%;border-radius:50%;animation:inherit;animation-name:pqBreathe}
/* the resting state, before the first question: the two lights drift apart up the ring and back, breathing, and
   never quite touch. When the first question starts --sway eases to 0, so they settle at the bottom where the arcs begin
   (the paused animation keeps its place while its size goes to nothing; a pause is free). Off screen it pauses. */
.pq[data-step="start"] .pq-orb{--sway:1;animation-play-state:running}
.pq.pq-off .pq-orb{animation-play-state:paused}
@keyframes pqDrift{from{rotate:calc(var(--sway) * var(--side) * 9deg)}to{rotate:calc(var(--sway) * var(--side) * 40deg)}}
@keyframes pqBreathe{from{scale:1;opacity:calc(1 - var(--sway) * .25)}to{scale:calc(1 + var(--sway) * .22);opacity:1}}
/* the landing: each new question the lights reach their place and pulse once (forward only); bigger at halfway and on the last */
.pq-orb i::after{content:"";position:absolute;inset:-60%;border-radius:50%;opacity:0;pointer-events:none}
.pq-orb.v i::after{background:radial-gradient(closest-side,rgba(201,185,255,.75),rgba(139,124,246,.25) 50%,rgba(139,124,246,0))}
.pq-orb.c i::after{background:radial-gradient(closest-side,rgba(255,200,188,.75),rgba(255,122,99,.25) 50%,rgba(255,122,99,0))}
.pq[data-dir="fwd"][data-beat="0"] .pq-orb i::after{animation:pqPulseA var(--dur-slow) var(--ease) both}
.pq[data-dir="fwd"][data-beat="1"] .pq-orb i::after{animation:pqPulseB var(--dur-slow) var(--ease) both}
.pq[data-dir="fwd"]:is([data-mark="half"],[data-mark="last"]) .pq-orb i::after{animation:pqPulseBig var(--dur-turn) var(--ease) both}
/* A and B are the same motion under two names: data-beat swaps them, which replays it without the script touching layout */
@keyframes pqPulseA{from{opacity:.9;transform:scale(.35)}to{opacity:0;transform:scale(1.15)}}
@keyframes pqPulseB{from{opacity:.9;transform:scale(.35)}to{opacity:0;transform:scale(1.15)}}
@keyframes pqPulseBig{0%{opacity:1;transform:scale(.35)}100%{opacity:0;transform:scale(2.1)}}
.pq-orb.v i{background:radial-gradient(circle,#fff 0 14%,var(--ai-0) 34%,rgba(139,124,246,0) 70%)}
.pq-orb.c i{background:radial-gradient(circle,#fff 0 14%,var(--warm-2) 34%,rgba(255,158,138,0) 70%)}
.pq-flare{position:absolute;left:27%;top:-15%;width:46%;aspect-ratio:1;border-radius:50%;pointer-events:none;opacity:0;transform:scale(.3);
  background:radial-gradient(circle,#fff 0 7%,rgba(201,185,255,.7) 24%,rgba(255,158,138,.3) 46%,rgba(255,158,138,0) 70%);
  transition:opacity var(--dur-slow) var(--ease),transform var(--dur-turn) var(--ease)}
.pq-mid{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.pq-mid > *{grid-area:1/1}
.pq-count{font-family:var(--f-mono);font-weight:500;letter-spacing:-.04em;font-size:var(--d-1);line-height:1;white-space:nowrap;color:var(--ink-0);--roll:1}
/* the count rises in with each question (from above when going back); data-beat flips each question, which restarts it */
.pq[data-dir="back"] .pq-count{--roll:-1}
.pq[data-beat="0"] .pq-count{animation:pqRollA calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base) both}
.pq[data-beat="1"] .pq-count{animation:pqRollB calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base) both}
/* A and B: the same motion under two names, swapped by data-beat to replay it */
@keyframes pqRollA{from{opacity:0;transform:translateY(calc(var(--roll) * 55%))}to{opacity:1;transform:none}}
@keyframes pqRollB{from{opacity:0;transform:translateY(calc(var(--roll) * 55%))}to{opacity:1;transform:none}}
/* before the first question: the total and the word under it. It lifts away fast as the first question starts */
.pq-intro{display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0;transform:translateY(-22%);pointer-events:none;
  transition:opacity var(--dur-base) var(--ease-exit),transform var(--dur-base) var(--ease-exit)}
.pq-intro b{font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:.9;
  background:var(--grad-score);-webkit-background-clip:text;background-clip:text;color:transparent;padding:0 .04em}
.pq-intro small{font-size:var(--t-xs);font-weight:700;letter-spacing:.08em;color:var(--ink-1)}
.pq[data-step="start"] .pq-intro{opacity:1;transform:none;transition:opacity var(--dur-slow) var(--ease) var(--dur-fast),transform var(--dur-slow) var(--ease) var(--dur-fast)}
/* halfway and the last question: a small word under the count */
.pq-note{position:absolute;left:0;right:0;top:64%;text-align:center;font-size:var(--t-xs);font-weight:700;letter-spacing:.08em;color:var(--warm-0);
  opacity:0;transform:translateY(6px);transition:opacity var(--dur-base) var(--ease-exit),transform var(--dur-base) var(--ease-exit)}
.pq[data-mark="half"] .pq-note[data-for="half"],.pq[data-mark="last"] .pq-note[data-for="last"]{opacity:1;transform:none;
  transition:opacity var(--dur-slow) var(--ease) var(--dur-base),transform var(--dur-slow) var(--ease) var(--dur-base)}
.pq-mark{width:46%;opacity:0;transform:scale(.92);transition:opacity var(--dur-slow) var(--ease),transform var(--dur-slow) var(--ease)}
.pq-mark svg{display:block;width:100%;height:auto}
/* the meeting: from the reveal on, the lights have met at the top, flare, and the logo takes the middle */
.pq:is([data-step="reveal"],[data-step="working"],[data-step="result"]) .pq-flare{opacity:1;transform:none;transition-delay:var(--dur-base)}
.pq:is([data-step="reveal"],[data-step="working"],[data-step="result"]) .pq-orb{opacity:0;transition:transform var(--dur-slow) var(--ease),opacity var(--dur-slow) var(--ease) var(--dur-slow)}
.pq:is([data-step="reveal"],[data-step="working"],[data-step="result"]) .pq-mark{opacity:1;transform:none;transition-delay:var(--dur-slow)}

/* the stage: every screen in one grid cell, so its height never changes between steps */
.pq-stage{display:grid;min-height:calc(var(--d-q) * 4.16 + 360px)}
/* the floor above is the tallest question's step, so the stage keeps one height even where the questions are its
   tallest step (/quiz/ on a laptop): the longest question is four lines at its 17ch measure and line height 1.04,
   at every width, and Back, the gaps and four one line answers come to 358px. Where another step is taller (phones,
   two columns) the floor sits under the stage's own height and does nothing. */
/* a step leaving goes quickly (--dur-base) and the next rises in after it, so two steps are never read at once and the
   whole change still takes one --dur-deal */
.pq-screen{grid-area:1/1;min-width:0;visibility:hidden;opacity:0;transform:translateY(-10px);
  transition:opacity var(--dur-base) var(--ease-exit),transform var(--dur-base) var(--ease-exit),visibility 0s linear var(--dur-base)}
.pq-screen.is-on{visibility:visible;opacity:1;transform:none;
  transition:opacity calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base),transform calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base),visibility 0s}
.pq-view[hidden]{display:none!important}
.pq-view.arrive{animation:pqArrive var(--dur-deal) var(--ease) both}
@keyframes pqArrive{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* the questions: one big serif line at a time. The one answered lifts away, the next rises in. */
.pq-ask{display:grid;gap:26px;align-content:start}
/* one column: the question in hand sits at a steady distance under Back and its answers follow straight after;
   the others are taken out of flow (the one leaving fades where it stood), so no hole opens between Back and a
   short question. The stage keeps its full height, so nothing below the quiz moves. */
.pq-deck{position:relative;display:grid}
.pq-card{position:relative;border-radius:var(--r-lg)}
.pq-deck .pq-card{grid-area:1/1;align-self:start;min-width:0;visibility:hidden;opacity:0;transform:translateY(22px);
  transition:opacity var(--dur-base) var(--ease-exit),transform var(--dur-base) var(--ease-exit),visibility 0s linear var(--dur-base)}
.pq-deck .pq-card[data-at="gone"]{transform:translateY(-14px)}
.pq-deck .pq-card[data-at="now"]{visibility:visible;opacity:1;transform:none;
  transition:opacity calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base),transform calc(var(--dur-deal) - var(--dur-base)) var(--ease) var(--dur-base),visibility 0s}
/* the incoming question waits until the outgoing one has left (--dur-base), then rises in over the rest of one deal,
   so the two are never readable at once and the whole change still takes --dur-deal */
.pq-deck .pq-card:not([data-at="now"]){position:absolute;inset:0 0 auto 0}
.pq-deck .pq-face{display:block}
.pq-deck .pq-rear,.pq-deck .pq-num{display:none}
.pq-q{font-family:var(--f-display);font-weight:700;font-size:var(--d-q);line-height:1.04;letter-spacing:-.015em;max-width:17ch}
/* the fixed one line under each question: quieter than the question, plain text read in order after it */
.pq-explain{margin-top:12px;max-width:34ch;font-size:var(--t-sm);line-height:1.5;color:var(--ink-1)}
/* the question rises in word by word (--w, the word's place, is set by the script and capped, so the last word lands
   within one deal); going back the words come down from above. A question leaving keeps its words where they are and
   they reset only once it has faded. The whole sentence is read once, from .pq-sr. */
.pq-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* the rising words never take a tap: while unseen they sit shifted over Back and the first answer */
.pq-words{pointer-events:none}
.pq-w{display:inline-block;opacity:0;transform:translateY(.32em);transition:opacity 0s linear var(--dur-base),transform 0s linear var(--dur-base)}
.pq[data-dir="back"] .pq-w{transform:translateY(-.26em)}
.pq-deck .pq-card[data-at="now"] .pq-w{opacity:1;transform:none;
  transition:opacity var(--dur-base) var(--ease) calc(var(--dur-base) + var(--w,0) * var(--dur-word)),transform var(--dur-base) var(--ease) calc(var(--dur-base) + var(--w,0) * var(--dur-word))}

/* the answers: one group per question in one cell; only the group in hand is painted */
.pq-answers{position:relative;display:grid;max-width:640px;overflow:clip;overflow-clip-margin:8px} /* 8px keeps focus rings whole */
.pq-opts[hidden]{display:none}
.pq-opts{grid-area:1/1;display:flex;flex-direction:column;gap:10px;visibility:hidden;transition:visibility 0s linear var(--dur-deal)}
.pq-opts[data-at="now"]{visibility:visible;transition-delay:0s}
.pq-opts .opt{opacity:0;transform:translateY(12px);transition:opacity var(--dur-slow) var(--ease),transform var(--dur-deal) var(--ease),border-color var(--dur-fast),background-color var(--dur-fast)}
.pq-opts[data-at="gone"] .opt{transform:translateY(-8px);transition-duration:var(--dur-base);transition-timing-function:var(--ease-exit)}
/* the delay applies to the arrival only (opacity, transform); hover colours answer at once */
.pq-opts[data-at="now"] .opt{opacity:1;transform:none;transition-delay:calc(var(--dur-base) + var(--i,0) * var(--dur-stagger)),calc(var(--dur-base) + var(--i,0) * var(--dur-stagger)),0s,0s}
.opt{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;gap:16px;width:100%;min-height:64px;padding:12px 18px;text-align:left;border-radius:var(--r-opt);cursor:pointer;
  background:var(--bg-2);border:1px solid var(--line-1);color:var(--ink-0);font-family:var(--f-sans);font-size:var(--t-md);font-weight:600;line-height:1.35}
.opt .key{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--glass-3);font-family:var(--f-display);font-weight:700;font-size:var(--t-lg);line-height:1;color:var(--ai-0);transition:background-color var(--dur-fast),color var(--dur-fast),transform var(--dur-base) var(--ease)}
.opt:hover,.opt:focus-visible{border-color:var(--ai-0);background:var(--bg-3)}
.pq-opts[data-at="now"] .opt:active{transform:translateY(1px) scale(.975);transition-delay:0s;transition-duration:var(--dur-press)}
/* (no grey or blue tap flash on phones: the press and the chosen state below are the feedback)
   the chosen answer (also how an earlier answer shows when you come back to it): its tile filled with the two lights,
   the row washed with them */
.opt[aria-pressed="true"]{border-color:transparent;background:linear-gradient(110deg,rgba(139,124,246,.24),rgba(255,158,138,.14)),var(--bg-3)}
.opt[aria-pressed="true"] .key{background:var(--grad-score);color:var(--bg-0)}
/* the moment of choosing (.is-landing, set on the tap): a soft light sweeps across the chosen row and its tile pops,
   the others dim and fall back, then the whole group lifts away as the next question deals in. All inside --dur-hold. */
.opt::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transform:translateX(-100%);
  background:linear-gradient(100deg,rgba(247,245,255,0) 30%,rgba(247,245,255,.16) 50%,rgba(247,245,255,0) 70%)}
.pq-opts.is-landing .opt[aria-pressed="true"]::after{animation:pqSweep var(--dur-slow) var(--ease) both}
.pq-opts.is-landing .opt[aria-pressed="true"] .key{animation:pqKey var(--dur-hold) var(--ease) both}
.pq-opts[data-at="now"].is-landing .opt{transition-delay:0s;transition-duration:var(--dur-fast),var(--dur-fast),var(--dur-fast),var(--dur-fast)}
.pq-opts[data-at="now"].is-landing .opt[aria-pressed="false"]{opacity:.38;transform:translateY(3px) scale(.985)}
@keyframes pqSweep{from{opacity:1;transform:translateX(-100%)}to{opacity:1;transform:translateX(100%)}}
@keyframes pqKey{0%{transform:scale(.8)}55%{transform:scale(1.14)}100%{transform:none}}
.q-nav{display:flex;margin-top:-8px}
/* one column (phones, tablets, /quiz/): Back sits above the question, so the answers end the stage and nothing floats below them */
.pq-ask .q-nav{order:-1;margin:-10px 0 -14px}

/* the first step: the date of birth */
.pq .dob{max-width:440px}
.pq .rule{max-width:560px}
.pq .form > .btn.block{width:auto;align-self:flex-start}
.pq .form > .small{max-width:560px}

/* reveal: the lights have met; the email and the box */
.pq-reveal .pq-mini{display:none}
.pq-reveal .form{max-width:520px}
.pq-reveal .pq-title{font-size:var(--d-q)}
.pq-working{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 0;gap:18px}
.pq-working h2,.pq-working h3{font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:1.06}

/* the result: a reveal in four beats. The card turns over (it carries no shadow, because it moves; its glow sits on
   the still frame behind it), the four letters are explained, the three reads follow, then the founder invite is
   the one strong next step, with Take the quiz again quiet under it. */
.pq-result .pq-title{margin-bottom:28px}
/* the card's width, one value: the card, its still glow frame and the share action under it all follow it (wider on a wide screen, below) */
.result-grid{--rc-w:min(300px,78vw);--rc-ar:5/7;display:grid;gap:28px}
/* with Luke's tarot art the card takes the art's own proportions (1696 by 2528) so nothing of it is cropped */
.result-grid.has-art{--rc-ar:1696/2528}
.result-side{display:grid;gap:16px;align-content:start;justify-items:start;min-width:0}
.result-main{min-width:0}
/* Share my card: a real button the card's width, then a polite status line; the link field shows only when copying failed */
.share{display:grid;gap:10px;width:var(--rc-w)}
.share-go{gap:10px;width:100%}
.share-link{width:100%;min-height:var(--tap);padding:0 14px;border-radius:var(--r-md);border:1px solid var(--line-field);background:var(--bg-0);color:var(--ink-0);font:inherit;font-size:var(--t-sm)}
.share-msg:empty{display:none}
/* Share your Pair Code (quiz/pair-code-share.js): the same width as the card; the field, its error and the button stack. [hidden] must win over .btn */
.share-code{margin-top:8px;padding-top:20px;border-top:1px solid var(--hair);gap:10px}
.share-h{font-family:var(--f-display);font-weight:700;font-size:var(--t-lg);line-height:1.2}
.pcs{display:grid;gap:10px}
.pcs [hidden]{display:none!important}
.panel .share-code{max-width:420px;margin:24px 0}
.turn{position:relative;perspective:1400px;display:flex;justify-content:flex-start}
/* the glow: a box shadow on a still frame the card's size (a shadow adds no scroll width at a phone's edge) */
.turn::before{content:"";position:absolute;left:0;top:0;width:var(--rc-w);aspect-ratio:var(--rc-ar);border-radius:var(--r-lg);pointer-events:none;
  box-shadow:-28px -24px 90px var(--ai-glow),28px 32px 90px var(--warm-glow)}
.rcard{position:relative;width:var(--rc-w);aspect-ratio:var(--rc-ar);transform-style:preserve-3d;transition:transform var(--dur-turn) var(--ease)}
.rcard.back-up{transform:rotateY(180deg)}
.rcard.flat{transition:none}
.rcard .pq-face,.rcard .pq-rear{position:absolute;inset:0;border-radius:inherit;border:1px solid var(--line-1);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.rcard .pq-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px;text-align:center;
  background:radial-gradient(80% 60% at 0% 0%,rgba(139,124,246,.3),transparent 70%),radial-gradient(70% 60% at 100% 100%,rgba(255,122,99,.2),transparent 70%),var(--bg-2)}
.pq-rear{display:grid;place-items:center;background:repeating-linear-gradient(45deg,rgba(169,155,255,.07) 0 2px,transparent 2px 14px),linear-gradient(165deg,var(--bg-rear),var(--bg-1))}
.pq-rear::before{content:"";position:absolute;inset:10px;border-radius:var(--r-md);border:1px solid rgba(169,155,255,.3)}
.pq-rear svg{width:42%;max-width:130px;height:auto}
.rcard .pq-rear{transform:rotateY(180deg)}
.rcard .art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
/* once the art has loaded its picture is the card face; the code and name stay in the page as text for assistive technology */
.rcard.art-ready .letters,.rcard.art-ready .cname,.rcard.art-ready .src{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rcard:not(.art-ready) .art{opacity:0}
.rcard .letters{font-family:var(--f-display);font-weight:700;font-size:var(--d-num);line-height:1;letter-spacing:.04em;padding-left:.04em}
.rcard .letters span{background:var(--grad-score);-webkit-background-clip:text;background-clip:text;color:transparent}
.rcard .cname{font-family:var(--f-display);font-weight:700;font-size:var(--d-1);line-height:1.1}
.rcard .src{position:absolute;left:0;right:0;bottom:18px;font-family:var(--f-mono);font-size:var(--t-xs);letter-spacing:.2em;text-transform:uppercase;color:var(--ink-1)}
.reads{display:grid;gap:14px;min-width:0}
.read{padding:20px 22px;border-radius:var(--r-lg);background:var(--panel);border:1px solid var(--line-0)}
.read .kicker{display:block}
.read h3,.read h4{font-family:var(--f-display);font-weight:700;font-size:var(--d-1);line-height:1.1;margin-top:8px}
.read p{margin-top:8px;font-size:var(--t-base);color:var(--ink-1)}
.read p+p{margin-top:6px}
/* what the letters mean: one row per letter, the letter large in the score gradient; two across where they fit */
.lmeans{padding:20px 22px 22px;border-radius:var(--r-lg);background:var(--panel);border:1px solid var(--line-1)}
.lmeans .kicker{display:block}
.lmeans ul{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.lmeans li{display:flex;gap:14px;align-items:flex-start;padding:14px 16px 14px 12px;border-radius:var(--r-md);background:var(--glass-2);border:1px solid var(--line-0)}
.lm-k{flex:none;width:44px;text-align:center;font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:.95;
  background:var(--grad-score);-webkit-background-clip:text;background-clip:text;color:transparent}
.lm-b{min-width:0}
.lm-b b{display:block;font-weight:700;font-size:var(--t-base);color:var(--ink-0);line-height:1.3}
.lm-b span{display:block;margin-top:3px;font-size:var(--t-sm);line-height:1.45;color:var(--ink-1)}
/* the first read: the line in the serif, a pull quote between the letters and the three reads */
.first-read{font-family:var(--f-display);font-weight:700;font-size:var(--d-1);line-height:1.25;color:var(--ink-0);padding:20px 22px;background:var(--warm-tint);border-radius:var(--r-md)}
/* the next step: the invite carries the warm light and the page's one warm button */
.invite{margin-top:48px;padding:clamp(28px,5vw,44px) clamp(22px,4vw,40px);border-radius:var(--r-xl);border:1px solid var(--warm-line);
  background:radial-gradient(60% 80% at 0% 0%,rgba(139,124,246,.26),transparent 70%),radial-gradient(60% 80% at 100% 100%,rgba(255,122,99,.24),transparent 70%),var(--panel)}
.invite .pq-sub{font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:1.06;margin-top:12px;max-width:18ch}
.invite .btn-row{margin-top:24px}
/* what Founders get: a short ticked list, then the referral line */
.invite-perks{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px;max-width:60ch}
.invite-perks li{position:relative;padding-left:30px;font-size:var(--t-base);font-weight:600;line-height:1.45;color:var(--ink-0)}
.invite-perks li::before{content:"";position:absolute;left:2px;top:.3em;width:14px;height:8px;border-left:2px solid var(--warm-0);border-bottom:2px solid var(--warm-0);transform:rotate(-45deg)}
.invite-refer{margin-top:20px;font-size:var(--t-sm);color:var(--ink-1);max-width:60ch}
.invite-perks[hidden],.invite-refer[hidden]{display:none}
/* four more cards: a teaser, not a paywall. Four small backs (the same back as the result card, .pq-rear), each a link to the
   Founder page, labelled beneath. Two by two on a phone, four across from 600px. Lift is transform only. */
.fourcards{margin-top:48px}
.fourcards p.fc-line{margin-top:10px;max-width:46ch;color:var(--ink-1);font-size:var(--t-base)}
.fc-row{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;max-width:320px}
.fcard{display:flex;flex-direction:column;gap:10px;min-height:var(--tap);color:var(--ink-0);text-decoration:none;transition:transform var(--dur-base) var(--ease)}
.fcard .pq-rear{position:relative;aspect-ratio:5/7;border-radius:var(--r-md);border:1px solid var(--line-1);overflow:hidden}
.fcard .pq-rear::before{inset:8px;border-radius:var(--r-sm)}
.fc-name{font-family:var(--f-mono);font-size:var(--t-xs);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-1);line-height:1.4;text-align:center;overflow-wrap:anywhere}
.fcard:hover,.fcard:focus-visible{transform:translateY(-4px)}
.fcard:focus-visible{outline:2px solid var(--ai-0);outline-offset:4px}
@media(min-width:600px){.fc-row{grid-template-columns:repeat(4,minmax(0,1fr));max-width:640px}}

/* the Founder gift picker (built by /quiz/gift.js): option cards drawn over native radios, the item's photo beside them */
.giftpick{margin-top:48px}
.giftpick .pq-sub{font-family:var(--f-display);font-weight:700;font-size:var(--d-2);line-height:1.06;margin-top:12px;max-width:18ch}
.giftpick p.gift-note{margin-top:10px;max-width:46ch;color:var(--ink-1);font-size:var(--t-base)}
.giftpick .gift{margin-top:22px}
.gift{display:grid;gap:22px;align-items:start}
.gift-art{width:min(220px,100%);aspect-ratio:1;overflow:hidden;border-radius:var(--r-lg);background:var(--panel);border:1px solid var(--line-0)}
.gift-art[hidden]{display:none}
.gift-photo{display:block;width:100%;height:auto;border-radius:var(--r-lg)}
.gift-sets{display:grid;gap:18px;min-width:0}
.gift-group[hidden]{display:none}
.gift-fs{border:0;margin:0;padding:0;min-width:0}
.gift-fs legend{padding:0;margin-bottom:10px}
.gift-opts{display:flex;flex-wrap:wrap;gap:10px}
.gift-opt{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:var(--tap);min-width:var(--tap);padding:0 16px;border-radius:var(--r-md);
  background:var(--glass-2);border:1px solid var(--line-1);color:var(--ink-0);font-weight:700;font-size:var(--t-base);cursor:pointer;
  transition:border-color var(--dur-fast),background-color var(--dur-fast)}
.gift-opt:hover{border-color:var(--ai-line)}
.gift-opt-t{min-width:0;overflow-wrap:anywhere}
.gift-radio{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;appearance:none;-webkit-appearance:none}
.gift-opt:has(.gift-radio:checked){border-color:var(--warm-0);background:var(--warm-tint)}
.gift-opt:has(.gift-radio:focus-visible){outline:2px solid var(--ai-0);outline-offset:3px}
.gift-sw{flex:none;width:18px;height:18px;border-radius:50%;border:1px solid var(--line-field)}
.gift-now{min-height:1.55em;margin:0;color:var(--ink-0)}
.gift-now:empty{display:none}
@media(min-width:600px){.gift{grid-template-columns:220px minmax(0,1fr);gap:28px}}
@media(prefers-reduced-motion:reduce){.fcard,.fcard:hover,.fcard:focus-visible{transform:none;transition:none}}

.pq-again-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:22px}
.pq-again-row .small{max-width:46ch}
/* the reveal order: each part of the reads (its --i set by the script) and then the invite rise in, one after another */
.pq-result.arrive .reads > *,.pq-result.arrive .fourcards,.pq-result.arrive .giftpick,.pq-result.arrive .invite{animation:pqArrive var(--dur-deal) var(--ease) both;animation-delay:calc(var(--dur-base) + var(--i,0) * var(--dur-stagger) * 2)}
.pq-result.arrive .fourcards{--i:6}
.pq-result.arrive .giftpick{--i:7}
.pq-result.arrive .invite{--i:8}

/* a middling width (the /quiz/ page on a laptop): the card beside its reads */
@container (min-width:700px){
  .result-grid{--rc-w:300px;grid-template-columns:minmax(0,300px) minmax(0,1fr);align-items:start;gap:40px}
  .result-side{position:sticky;top:24px}
}
/* room for two columns: the ring holds still on the left while the questions change on the right */
@container (min-width:880px){
  .pq{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(40px,6vw,110px);align-items:start}
  .pq > .pq-view{grid-column:2;grid-row:1;min-width:0}
  .pq-progress{grid-column:1;grid-row:1;position:sticky;top:calc(var(--header-h) + 32px);flex-direction:column;align-items:flex-start;gap:26px;margin:0}
  .pq-ring{width:min(100%,360px)}
  .pq-ring-base,.pq-arc{stroke-width:3}
  .pq-count{font-size:var(--d-2)}
  .pq-intro b{font-size:var(--d-3)}
  .pq-intro small,.pq-note{font-size:var(--t-sm)}
  .pq-stage{padding-top:8px}
  .pq-ask .q-nav{order:0;margin:-8px 0 0}
  /* two columns: every question shares one cell as tall as the longest, and each sits on its answers */
  .pq-deck .pq-card{align-self:end}
  .pq-deck .pq-card:not([data-at="now"]){position:relative;inset:auto}
  /* the result leaves the two column quiz layout: no ring, the card large on the left and held in view, the reads and the next steps on the right */
  .pq[data-step="result"]{display:block}
  .pq[data-step="result"] .pq-progress{display:none}
  .result-grid{--rc-w:340px;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:clamp(48px,6vw,80px)}
}
@media(max-width:520px){
  .btn-row .btn{width:100%}
  .dob{grid-template-columns:1fr 1.6fr 1.2fr;gap:8px}
  .pq-progress{margin-bottom:20px}
  .opt{min-height:60px;padding:10px 14px;gap:12px}
}
/* a phone on its side (short and wide): the question beside its answers, a smaller ring, so a question fits one screen */
@media(max-height:520px) and (min-width:600px) and (max-width:1000px){
  .pq-stage{min-height:0} /* questions use a smaller size here, so the floor above would overshoot */
  .pq-ask{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;align-items:start}
  .pq-ask .q-nav{order:0;grid-column:2;margin:0}
  .pq-q{font-size:var(--d-1)}
  .pq-progress{margin-bottom:12px}
  .pq-ring{width:80px}
  .pq-intro small,.pq-note{display:none} /* no room for words inside the small ring: the total and the count say it */
  .pq-intro b{font-size:var(--d-1)}
  .opt{min-height:var(--tap)}
}
@media(prefers-reduced-motion:reduce){
  .pq-screen,.pq-card,.pq-opts,.pq-opts .opt,.pq-arc,.pq-orb,.pq-flare,.pq-mark,.rcard,.pq-glow,.pq-intro,.pq-note,.pq-w,.opt .key{transition:none!important}
  /* a finished still state: the lights rest at the bottom of the ring, the total in the middle, every word in place */
  .pq-orb,.pq-orb i,.pq-orb i::after,.pq-count,.opt::after,.opt .key{animation:none!important}
  .pq-w,.pq[data-dir="back"] .pq-w,.pq-intro,.pq-note,.pq-opts[data-at="now"].is-landing .opt[aria-pressed="false"]{transform:none}
  .pq-view.arrive,.pq-result.arrive .reads > *,.pq-result.arrive .fourcards,.pq-result.arrive .giftpick,.pq-result.arrive .invite{animation:none}
  .pq-deck .pq-card,.pq-opts .opt,.pq-opts[data-at="gone"] .opt{transform:none}
  .rcard.back-up{transform:none}
  .spinner{animation:none}
}

/* ── the result page on a wide screen (900px and up; a phone is untouched) ──
   The card and its reads keep their two columns, with the card held in view beside the reads only. Everything after the
   reads (four more cards, the gift pick, the Founder invite, Take the quiz again) then runs the full width, laid on the same
   two columns so every edge lines up: the words of a section under the card, its cards or options under the reads.
   .result-main becomes display:contents so its children join the .result-grid; subgrid carries the columns down. */
@media(min-width:900px){
  .pq[data-step="result"] .result-grid{column-gap:clamp(48px,6vw,80px);row-gap:0}
  .pq[data-step="result"] .result-main{display:contents}
  /* not sticky here: the column now holds the card, Share my card and the Pair Code block, taller than the reads, and a stuck column would slide down over the full width rows below */
  .pq[data-step="result"] .result-side{grid-column:1;grid-row:1;position:static}
  .pq[data-step="result"] .reads{grid-column:2;grid-row:1;min-width:0}
  .pq[data-step="result"] .fourcards,.pq[data-step="result"] .giftpick{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 1fr;align-items:start;
    margin-top:72px;padding-top:56px;border-top:1px solid var(--line-0)}
  .pq[data-step="result"] .fourcards > :not(.fc-row),.pq[data-step="result"] .giftpick > :not(#pq-gift-picker){grid-column:1}
  .pq[data-step="result"] .fc-row,.pq[data-step="result"] #pq-gift-picker{grid-column:2;grid-row:1/span 2;margin-top:0;min-width:0}
  .pq[data-step="result"] .fc-row{max-width:none;gap:18px 20px}
  .pq[data-step="result"] .fourcards .kicker{align-self:start}
  .pq[data-step="result"] .giftpick .gift{margin-top:0}
  /* the invite: the promise and its button on the left, what Founders get on the right */
  .pq[data-step="result"] .invite{grid-column:1/-1;margin-top:72px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr auto;
    column-gap:clamp(40px,5vw,72px);padding:clamp(40px,4vw,56px)}
  .pq[data-step="result"] .invite > *{grid-column:1}
  .pq[data-step="result"] .invite .invite-perks{grid-column:2;grid-row:1/span 3;align-self:center;margin-top:0}
  .pq[data-step="result"] .invite .invite-refer{grid-column:2;grid-row:4;align-self:center}
  .pq[data-step="result"] .invite .btn-row{grid-row:4;align-self:center}
  .pq[data-step="result"] .pq-again-row{grid-column:1/-1;margin-top:28px}
  /* the gift picker with no photo yet: the options take the whole width instead of the photo's narrow column */
  .gift:has(> .gift-art[hidden]){grid-template-columns:minmax(0,1fr)}
}
/* 900 to 1099px: the reads column is too narrow for four cards with their labels on one line, so four more cards runs the full width */
@media(min-width:900px) and (max-width:1099px){
  .pq[data-step="result"] .fourcards{display:block}
  .pq[data-step="result"] .fc-row{margin-top:22px;max-width:640px}
}


/* ── Pair Code video slot (index.html #pair-video; built by the script there). Own block, kept last. ──
   The slot is portrait 9:16 and stays hidden until the file has loaded. The Unmute/Mute button sits top
   right, clear of the native controls along the bottom. */
.pc-video{position:relative;width:min(100%,260px);margin-top:28px;aspect-ratio:9/16;border-radius:var(--r-lg);overflow:hidden;background:var(--bg-2);box-shadow:var(--shadow-lift)}
.pc-video[hidden]{display:none}
.pc-video video{display:block;width:100%;height:100%;object-fit:cover}
.pc-sound{position:absolute;top:12px;right:12px;min-width:var(--tap);min-height:var(--tap);padding:0 16px;border:1px solid var(--hair);border-radius:var(--r-pill);background:var(--panel);color:var(--ink-0);font:700 var(--t-sm)/1 var(--f-sans);cursor:pointer}
.pc-sound:hover{border-color:var(--ai-line)}
/* On the home page the Pair Code card has this video as its only media: the photo stays in the markup as the fallback and hides
   while the video shows. A phone gives it the full column at the top of the card; from 900px it moves into the sticky left column. */
.feat > .pc-video{width:100%;margin-top:0;margin-bottom:22px}
.feat:has(> .pc-video:not([hidden])) > picture{display:none}
@media(min-width:900px){
  /* the slot lives in the sticky left column here (the script moves it): centred in the frame's cell, shown only while the panel is active */
  .feats > .pc-video{grid-column:1;grid-row:1;align-self:start;justify-self:center;position:sticky;margin:0;z-index:2;
    top:calc(var(--header-h) + 4vh + 24px);height:calc(min(720px,100svh - var(--header-h) - 8vh) - 48px);width:auto;transition:opacity var(--dur-base) var(--ease)}
  .feats > .pc-video:not(.on){opacity:0;visibility:hidden;pointer-events:none}
  .feats.pc-on .frame{visibility:hidden}
  .feats > .frame{grid-column:1;grid-row:1}
  .feats > .feat-list{grid-column:2;grid-row:1}
}
