/* The public roast (/roast, /roast/{token}): its own parts on the shell it shares with /scan (flow-shell.css, load it
   first). Colours are --geo-site- tokens, light and dark. Nothing here moves after the page draws: the panel and the
   column are anchored to the top, and the motion only fades and slides things already in their place. */

.hidden { display: none !important; }

/* ── Layout: both columns from the top, so a growing result never moves the panel ─── */
@media (min-width: 960px) {
  .pr-main .sc-form { padding-top: 72px; }
  .pr-main .sc-form > .sc-inner { margin: 0; }
  .pr-main .sc-preview { align-items: flex-start; padding-top: 72px; }
  .pr-main .jr { position: sticky; top: 32px; width: 100%; }
}

/* ── Set-up ─────────────────────────────────────────────────────────────── */
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-chip { position: relative; }
.pr-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pr-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--geo-site-line);
  border-radius: 999px; font-size: 15px; color: var(--geo-site-muted); background: var(--geo-site-panel); cursor: pointer;
  transition: border-color .15s, background .15s; }
.pr-chip input:hover + span { border-color: var(--geo-site-muted); }
.pr-chip input:checked + span { border-color: var(--geo-site-btn); color: var(--geo-site-ink); background: var(--geo-site-ok-soft); font-weight: 600; }
.pr-chip input:focus-visible + span { outline: 3px solid var(--geo-site-btn); outline-offset: 2px; }
.pr-opt { font-weight: 400; color: var(--geo-site-muted); font-size: 13px; margin-left: 2px; }   /* after a space, so it's read as its own word */
.pr-form .sc-btn { margin-top: 8px; }

/* The steps: the panel's cards (desktop) and the list under the button (phones) mark the ones already done */
.jr .pv-card.is-done .jr-num { background: var(--geo-site-ok-soft); border-color: var(--geo-site-ok); color: var(--geo-site-ink); }   /* ink: the teal number was 4.3:1 */
.jr .pv-card { transition: border-color .2s, opacity .2s; }
.pr-jr .jr-next { opacity: 1; }   /* the shell's .85 made the next steps' text 4.1:1; the grey number already says "not yet" */
.pr-jr .jr-now { opacity: 1; }
.pr-price { font-weight: 600; color: var(--geo-site-ink); }

/* ── Cards: the result, the line, the email and the unlock ───────────────── */
.pr-card { background: var(--geo-site-panel); border: 1px solid var(--geo-site-line); border-radius: 16px; padding: 20px;
  margin: 16px 0 0; box-shadow: var(--geo-site-shadow); }
.pr-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.pr-card .sc-field:first-of-type { margin-top: 14px; }
.pr-muted { color: var(--geo-site-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.pr-note { background: var(--geo-site-soft); border: 1px solid var(--geo-site-line); border-radius: var(--geo-site-r); padding: 12px 14px;
  margin: 16px 0 0; line-height: 1.5; font-size: 15px; }
.pr-small { margin-top: 12px; }
.pr-center { text-align: center; margin-top: 10px; }
.pr-card .sc-btn { margin-top: 16px; }
.pr-card .sc-err { margin-top: 10px; }

/* Phii's track: the homepage sample check's (home-v6) */
.pr-sniff-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.pr-tally { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--geo-site-ink); }
.pr-track { position: relative; height: 64px; margin: 4px 0 8px; border-bottom: 2px solid var(--geo-site-line); }
.pr-trail { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--geo-site-phii-ink); }
.pr-walker { position: absolute; bottom: -1px; left: 0; width: 60px; }
.pr-walker svg { display: block; width: 60px; height: auto; overflow: visible; --dog-ink: var(--geo-site-phii-ink); --dog-collar: var(--geo-site-phii-collar); --dog-paper: var(--geo-site-panel); }
.pr-walker .dog-leg { transform-box: fill-box; transform-origin: 50% 8%; }
.pr-walker .dog-head { transform-box: fill-box; transform-origin: 20% 60%; }
.pr-walker.is-walking .dg-leg-a { animation: pr-leg-a .25s ease-in-out infinite alternate; }
.pr-walker.is-walking .dg-leg-b { animation: pr-leg-b .25s ease-in-out infinite alternate; }
.pr-walker.is-walking .dog-head { animation: pr-nose .5s ease-in-out infinite; }
@keyframes pr-leg-a { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
@keyframes pr-leg-b { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes pr-nose { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
.pr-say { position: absolute; left: 0; top: 0; max-width: 100%; transform: translateX(0);   /* moved with Phii by transform (no layout shift) */
  padding: 5px 11px; border-radius: 12px 12px 12px 3px;
  background: var(--geo-site-soft); color: var(--geo-site-ink); font-size: 13px; font-weight: 700; line-height: 1.3; }
.pr-say.is-flip { border-radius: 12px 12px 3px 12px; }   /* the tail on the right, still over Phii's head */

/* Working: the roast's own steps, ticking like /scan's */
.pr-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pr-steps li { display: flex; gap: 12px; align-items: center; color: var(--geo-site-muted); font-size: 15px; }
.pr-steps .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--geo-site-line); position: relative; }
.pr-steps li.now { color: var(--geo-site-ink); font-weight: 600; }
.pr-steps li.now .dot { border-top-color: var(--geo-site-btn); animation: pr-spin .9s linear infinite; }
.pr-steps li.done { color: var(--geo-site-ink); }
.pr-steps li.done .dot { background: var(--geo-site-btn); border-color: var(--geo-site-btn); }
.pr-steps li.done .dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--geo-site-btn-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-quip { margin: 14px 0 0; color: var(--geo-site-muted); font-style: italic; min-height: 1.5em; }

/* The result */
.pr-top { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
.pr-score { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 6px solid var(--tone, var(--geo-site-btn));
  font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-score > div { width: 100%; text-align: center; }   /* the count grows inside a box that stays put */
.pr-score small { font-size: 11px; color: var(--geo-site-muted); font-weight: 500; display: block; text-align: center; margin-top: 2px; }
.pr-verdict { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0; }
.pr-judged { color: var(--geo-site-muted); font-size: 14px; margin: 4px 0 0; overflow-wrap: anywhere; }
.pr-fix { border: 1px solid var(--geo-site-line); border-left: 4px solid var(--tone); border-radius: var(--geo-site-r); padding: 14px 16px; margin: 14px 0 0; }
.pr-fix h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 700; }
.pr-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--geo-site-soft); color: var(--tone); }
.pr-fix dl { margin: 0; }
.pr-fix dt { font-size: 12px; font-weight: 600; color: var(--geo-site-muted); margin-top: 8px; }
.pr-fix dd { margin: 2px 0 0; line-height: 1.5; font-size: 15px; }
.pr-sub { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--geo-site-line); font-size: 15px; }
.pr-badge { flex: none; width: 40px; padding: 3px 0; text-align: center; border-radius: 7px; font-size: 12px; font-weight: 800;
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.is-fix .pr-badge { background: var(--geo-site-warn-soft); color: var(--geo-site-warn); }
.is-fine .pr-badge { background: var(--geo-site-ok); color: var(--geo-site-panel); }   /* 5.0:1 light, 8.7:1 dark (green on soft green was 4.3:1) */
.pr-row .pr-name { flex: 1; min-width: 0; }
.pr-row .pr-name span { display: block; color: var(--geo-site-muted); font-size: 14px; }
.pr-lock { flex: none; color: var(--geo-site-muted); display: inline-flex; }
.pr-lockbar { flex: none; width: 56px; height: 8px; border-radius: 4px; background: var(--geo-site-soft); }
.pr-count { margin-top: 14px; }
/* waiting their turn: the homepage's way */
.pr-anim .pr-item { transition: opacity .35s, transform .35s; }
.pr-anim .pr-item:not(.is-shown) { opacity: .22; transform: translateY(4px); }
.pr-anim .pr-item:not(.is-shown) .pr-badge { opacity: 0; transform: scale(.4); }
.pr-anim .pr-walker, .pr-anim .pr-say { transition: transform .45s linear; }
.pr-anim .pr-trail { transition: transform .45s linear; }
.pr-locked-dim .pr-locked { opacity: .55; }
.pr-ctl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pr-ctl button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--geo-site-line); border-radius: 999px;
  background: transparent; color: var(--geo-site-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.pr-ctl button:hover { border-color: var(--geo-site-muted); }
.pr-ctl button:focus-visible { outline: 3px solid var(--geo-site-btn); outline-offset: 2px; }

/* The AI line */
.pr-ai { border-left: 4px solid var(--geo-site-btn); }
.pr-ai.is-landing { animation: pr-land .5s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pr-land { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pr-ai-title { font-weight: 700; margin: 8px 0 4px; }
.pr-ai-line { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0; }

/* The unlock: the shell's offer card */
.pr-unlock { border-color: var(--geo-site-btn); }

@media (min-width: 960px) {
  .pr-card { padding: 24px; }
}
/* Desktop: the panel shows the steps (it's hidden from screen readers), so the list stays readable to them, unseen */
@media (min-width: 960px) {
  .pr-form .sc-journey { display: grid; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-btn:active { transform: none; }
  .pr-anim .pr-item, .pr-anim .pr-walker, .pr-anim .pr-say, .pr-anim .pr-trail, .pr-badge, .jr .pv-card, .pr-chip span { transition: none !important; }
  .pr-walker.is-walking *, .pr-steps .dot, .pr-ai.is-landing { animation: none !important; }
}
