/* The tools' scenes (site-src/v6/scenes.mjs; docs/design-v6/site/MOTION.md, "Product scene"), shared by Home, /tools/ and each tool's page.
   Every rule draws a scene's FINAL state, which is what shows without JavaScript, with reduced motion and on a low-end device;
   assets/js/v6/scenes.js only moves parts into it. Words never fade: they move inside a mask, or with their own surface. */

/* ───────── Link Check and the scanner (moved from Home's sheet as they were) ───────── */
/* the demo's frame: the stage (ink in both looks); the product's own surface inside it */
/* (a least height, not a fixed one: under a reader's own text spacing a demo grows rather than cut its words; WCAG 1.4.12) */
/* (each demo sits on a scene's stage panel, .sc-stage, as Price Match Tracker's does: one family, D15) */
.demo { position: relative; width: 100%; color: var(--stage-text); }
.sc-lc .sc-stage, .sc-qr .sc-stage { min-height: 22rem; }
/* Link Check's panel is its own surface to its rounded edge (the stage under it bled grey arcs at the corners in the light look) and
   has Link Check's own 1 px edge, so it reads as a panel on the white page too */
/* Link Check's own screen, on the stage: its surface, its 1 px edge */
.demo-lc { display: grid; align-content: center; max-width: 34rem; padding: 24px; border-radius: var(--r-card); background: var(--lc-screen); }
.demo-lc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--lc-line); pointer-events: none; }
.demo-lc > * { position: relative; }
.lc-field { padding: 10px 12px; border-radius: var(--r-control); background: var(--lc-field); box-shadow: inset 0 0 0 1px var(--lc-line); color: var(--lc-ink); font-size: 15px; line-height: 1.4; }
/* Link Check's answer: the parts the hero's screen and this demo share; each sets its own colours (the hero's is white in both looks) */
.lc-link > span { display: inline-block; text-decoration: underline; text-underline-offset: 2px; }
/* a row: the part, and its label at the right; where the two don't fit on one line the label goes under the part, which is never
   broken (a website split at its hyphen reads as a different website) */
.pr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 10px; }
.pv { position: relative; transform-origin: 0 0; }
.pv-real { white-space: nowrap; }
.demo-lc .lc-where-h { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--lc-ink-2); }
.demo-lc .plate { position: relative; display: grid; gap: 5px; padding: 12px 15px; color: var(--lc-ink); }
.demo-lc .plate::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--lc-ink); border-radius: 10px; }
.demo-lc :is(.pv-front, .pv-path) { font-size: 14px; color: var(--lc-ink-2); }
.demo-lc .pv-real { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.15; }
.demo-lc .strike { position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: var(--lc-red); transform-origin: 0 50%; }
.demo-lc .pl { font-size: 12.5px; color: var(--lc-ink-2); }
.demo-lc .pl-real { font-weight: 700; color: var(--lc-red-text); }
.demo-qr { display: grid; grid-template-rows: 1fr auto; gap: 16px; max-width: 24rem; }
.qr-view { position: relative; display: grid; place-items: center; padding-top: 14px; }
.qr { width: 132px; height: 132px; }
.qr-ground { fill: var(--s-screen); }
.qr-ink { fill: var(--stage); }
.qr-corners { position: absolute; left: 50%; top: calc(50% + 7px); width: 152px; height: 152px; margin: -76px 0 0 -76px; border-radius: 12px; box-shadow: 0 0 0 2px var(--stage-text-2); opacity: 0; }
.qr-scan { position: absolute; left: 50%; top: calc(50% + 7px - 66px); width: 148px; height: 2px; margin-left: -74px; border-radius: 1px; background: var(--stage-text); opacity: 0; transform: translateY(132px); }
.qr-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-card); background: var(--lc-screen); color: var(--lc-ink); box-shadow: inset 0 0 0 1px var(--lc-line); }
.qr-type { grid-column: 1; font-size: 12px; color: var(--lc-ink-2); }
.qr-title { grid-column: 1; font-size: 16px; font-weight: 700; line-height: 1.25; }
.qr-fact { grid-column: 1; display: flex; gap: 8px; font-size: 13px; }
.qr-fact span:first-child { color: var(--lc-ink-2); }
.qr-btn { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--lc-ink); color: var(--lc-screen); font-size: 14px; font-weight: 600; }

/* a demo waiting for the reading zone holds its first frame (the script plays it from here; without it, the final state shows) */
.demo[data-state="wait"] :is(.pv, .pl > span, .lc-where-h .m > span) { visibility: hidden; }
.demo[data-state="wait"] .plate::before { opacity: 0; }
.demo[data-state="wait"] .strike { transform: scaleX(0); }
/* (the card rises inside its own mask, so while it waits nothing of it shows: waiting below its place, a strip of it had shown at the
   stage's foot, cut by the stage's edge, before the scene played) */
.qr-card-m { overflow: clip; border-radius: var(--r-card); }
.demo[data-state="wait"] .qr-card { transform: translateY(100%); }

/* ───────── a scene's frame: the stage panel, and under it the sample's label and its Replay (or Pause) button ───────── */
.sc { display: grid; gap: var(--s3); margin: 0; }
.sc-stage { position: relative; display: grid; place-items: center; padding: var(--s6) var(--s4); overflow: clip; border-radius: var(--r-panel); background: var(--stage); container: sc / inline-size; }
.sc-cap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--tap); }
.sc-tag { font-size: var(--t-small); line-height: var(--lh-small); color: var(--text-2); }
.sc-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 6rem; min-height: var(--tap); padding: 0 var(--s4) 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-control); background: none; color: var(--text); cursor: pointer; font-size: var(--t-small); font-weight: 600; }
.sc-ico { width: 16px; height: 16px; fill: currentColor; }
.sc-btn .ico-pause { display: none; }
.sc-btn[data-state="playing"] .ico-pause { display: inline; }
.sc-btn[data-state="playing"] .ico-replay { display: none; }
@media (hover: hover) and (pointer: fine) { .sc-btn:hover { border-color: var(--text); } }

/* ───────── Price Match Tracker: its real flow, in its own light theme (tokens TRACKER), in a drawn browser window with no logos ─────────
   One composition of 360 x 520 px at scale 1 (a phone-wide browser), zoomed to fit its stage (--sk, set by the script; without it, the
   container's steps below). Its final state: the product page, the toolbar's count and the price-drop alert; the checklist and the popup
   are the steps the script plays on the way. */
.pmt { position: relative; width: 360px; height: 520px; zoom: var(--sk, 1); color: var(--t-text); font-family: var(--text-face); font-size: 12px; line-height: 1.35; text-align: left; }
@container sc (max-width: 391.98px) { .pmt { zoom: var(--sk, 0.9); } }
@container sc (min-width: 520px) { .pmt { zoom: var(--sk, 1.15); } }
@container sc (min-width: 720px) { .pmt { zoom: var(--sk, 1.3); } }
.pmt-win { position: absolute; inset: 0; overflow: clip; border-radius: 14px; background: var(--t-screen); }
.pmt-win::after { content: ""; position: absolute; inset: 0; z-index: 9; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--t-bar-line); pointer-events: none; }
.pmt-bar { position: relative; z-index: 6; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; background: var(--t-bar); border-bottom: 1px solid var(--t-bar-line); }
.pmt-dots { display: flex; gap: 5px; }
.pmt-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--t-bar-line); }
.pmt-url { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; padding: 0 10px; border-radius: 13px; background: var(--t-card); color: var(--t-bar-text); font-size: 12px; }
.pmt-ext { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.pmt-tag { width: 18px; height: 18px; }
.pmt-tag path:first-child { fill: var(--t-text); }
.pmt-tag circle { fill: var(--t-bar); }
.pmt-tag .pmt-tick { fill: none; stroke: var(--t-bar); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.pmt-badge { position: absolute; right: -3px; top: -2px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--t-badge); color: var(--t-on-badge); font-size: 10.5px; font-weight: 700; line-height: 1; }
.pmt-view { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; }
/* the store's page, drawn: its words only */
.pmt-page { position: absolute; left: 16px; right: 16px; top: 20px; display: grid; gap: 4px; }
.pmt-store { font-size: 12px; font-weight: 600; color: var(--t-text-2); }
.pmt-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pmt-price { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.1; }
.pmt-meta { font-size: 12.5px; color: var(--t-text-2); }
/* the extension's own button on a store page: bottom right */
.pmt-pill { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--t-btn); color: var(--t-on-btn); font-size: 14px; font-weight: 500; transform-origin: 100% 100%; }
.pmt-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-on-btn); }
/* the live checklist: the extension's in-page panel (320 px; 312 here) */
.pmt-panel { position: absolute; right: 12px; bottom: 64px; width: 312px; padding: 12px 14px 8px; border-radius: 18px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); visibility: hidden; transform-origin: 100% 100%; }
.pmt-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; }
.pmt-li { display: flex; gap: 8px; padding: 3px 0; }
.pmt-dot { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--t-dot-ok); }
.pmt-li[data-state="warn"] .pmt-dot { background: var(--t-dot-warn); }
.pmt-li[data-state="fail"] .pmt-dot { background: var(--t-dot-fail); }
.pmt-cv { display: grid; min-width: 0; overflow: clip; }
.pmt-cv > span { grid-area: 1 / 1; }
.pmt-cv > [data-was] { transform: translateY(-100%); }
/* the popup, from the toolbar icon: the best price sold by the store itself */
.pmt-pop { position: absolute; right: 8px; top: 4px; width: 300px; padding-bottom: 52px; border-radius: 14px; background: var(--t-screen); box-shadow: inset 0 0 0 1px var(--t-line); visibility: hidden; transform-origin: calc(100% - 20px) -8px; }
.pmt-pop-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--t-line); font-size: 14px; font-weight: 700; }
.pmt-pop-bar .pmt-tag circle { fill: var(--t-screen); }
.pmt-pop-bar .pmt-tag .pmt-tick { stroke: var(--t-screen); }
.pmt-pop-card { display: grid; gap: 4px; margin: 12px 12px 0; padding: 12px 14px 14px; border-radius: 14px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); }
.pmt-pop-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pmt-pop-price { margin-top: 4px; font-size: 26px; font-weight: 700; line-height: 1.1; }
.pmt-pop-at { font-size: 12.5px; color: var(--t-text-2); }
.pmt-chips { display: flex; gap: 6px; margin-top: 4px; }
.pmt-chips > span { padding: 2px 8px; border-radius: 999px; background: var(--t-chip); color: var(--t-on-chip); font-size: 12px; font-weight: 600; line-height: 1.5; }
.pmt-btns { display: flex; gap: 6px; margin-top: 8px; }
.pmt-btns > span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.pmt-b1 { background: var(--t-btn); color: var(--t-on-btn); }
.pmt-b2 { background: var(--t-btn-2); color: var(--t-text); transform-origin: 50% 50%; }
.pmt-toast { position: absolute; left: 50%; bottom: 12px; overflow: clip; transform: translateX(-50%); visibility: hidden; }
.pmt-toast > span { display: block; padding: 6px 12px; border-radius: 10px; background: var(--t-btn); color: var(--t-on-btn); font-size: 12.5px; font-weight: 600; }
/* the price-drop alert: it comes out of the toolbar icon and lands under it */
/* the price-drop notification: the system's, in the window's lower right (where Windows shows one), above Track price and over nothing
   the page says (at the top it had covered the product's name, leaving "Arvo - A" and "Over-th" beside it) */
.pmt-note { position: absolute; right: 8px; bottom: 64px; width: 280px; padding: 10px 12px 12px; border-radius: 12px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-bar-line); }
.pmt-note-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.pmt-note-h .pmt-tag { width: 14px; height: 14px; }
.pmt-note-h .pmt-tag circle { fill: var(--t-card); }
.pmt-note-h .pmt-tag .pmt-tick { stroke: var(--t-card); }
.pmt-note-t { margin-top: 2px; font-size: 12.5px; color: var(--t-text); }
/* the press cue on a control the scene presses: a ring with no words */
.pmt-tap { position: absolute; z-index: 8; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--t-text); opacity: 0; pointer-events: none; }
.pmt-tap-1 { right: 52px; bottom: 32px; margin: 0 -18px -18px 0; }
.pmt-tap-2 { left: 0; top: 0; }

/* ───────── a tool's row (site-src/v6/scenes.mjs toolRow; Home's Free tools and the Tools page): each tool its own row, speaking to its
   own group; on the twelve columns from 1024 px its words in 1 to 5, its scene from column 7, where every right-hand picture starts (the
   design critic, D14) ───────── */
.tl-list { display: grid; gap: var(--s8); }
.tl { display: grid; align-content: start; gap: var(--s4); }
.tl-for { margin-bottom: var(--s2); font-size: var(--t-small); line-height: var(--lh-small); font-weight: 600; color: var(--text-2); }
.tl-name { font-weight: var(--w-h3); font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
.tl-name a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: underline 1px var(--line-strong); text-underline-offset: 0.18em; }
.tl-line { max-width: 30rem; margin-top: var(--s2); color: var(--text-body); }
.tl-meta { display: flex; flex-wrap: wrap; column-gap: var(--s3); margin-top: var(--s3); font-size: var(--t-small); color: var(--text-2); }
.tl-status { color: var(--text); font-weight: 560; }
@media (min-width: 1024px) {
  .tl-list { gap: var(--s9); }
  .tl { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: var(--gap); }
  .tl-text { grid-column: 1 / 6; }
  .tl > .sc { grid-column: 7 / 13; }
}
