/* Design v5: the pages that host a product (site-src/v5/pages/products.mjs): the scanner, Price Match Tracker, Motel POS and their try
   pages. The products' own surfaces (the scanner's panel, the tracker's working copy, the Motel POS demo) keep their stylesheets
   (assets/css/tools/); this is the page around them, and the scanner page's explainers. Lime is the logo's alone: a demo's "lime"
   is a light grey here, and the scanner (the site's own tool) takes the ink (scanner-look.css). */
.skin:not(.skin-site) { --lime: #DADADA; --lime-well: #EDEDED; }

.status-hold { font-weight: 700; }
.note { display: grid; gap: var(--s1); max-width: var(--col); padding-block: var(--s3); border-block: 1px solid var(--ink); }
.sc-panel { margin-top: var(--s5); }
.demo-frame { margin-top: var(--s3); max-width: 100%; overflow: hidden; }
.pt-get { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.pt-get .meta { flex-basis: 100%; }
.pt-badge { display: inline-flex; min-height: var(--tap); align-items: center; border-radius: 8px; overflow: hidden; }
.pt-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.pt-badge img { width: 172px; height: 60px; }
.add-grid { display: grid; gap: var(--s6); }
.add-main, .add-soon { display: grid; gap: var(--s3); align-content: start; }
.add-steps { display: grid; gap: var(--s2); padding-left: var(--s5); }
@media (min-width: 900px) { .add-grid { grid-template-columns: 1fr 1fr; } }
.pt-phone { display: none; }
@media (hover: none) and (pointer: coarse) { .pt-desk .pt-badge, .pt-desk .btn { display: none; } .pt-phone { display: flex; } }
.try-full, .pos-full-link { white-space: nowrap; }
.tm { margin-top: var(--s7); }
/* the tracker's try page: its window is as tall as the screen leaves it (the bar, the stage's padding, the frame), so the page does not scroll */
@media (min-width: 641px) {
  .is-try .trk-full .trk-body, .is-try .trk-full:not([data-state="idle"]) .trk-body { height: clamp(520px, calc(100dvh - 196px), 760px); }
}

/* films: the browser's own video, poster first */
.film { display: grid; gap: var(--s2); max-width: 360px; margin-top: var(--s4); }
.film video { width: 100%; height: auto; aspect-ratio: 2 / 3; background: #000; }
.film-lines { display: grid; gap: var(--s2); padding-left: var(--s5); }

/* the scanner page's explainers (site-src/v5/scan-explain.mjs): pick a code, and one block says what stays and what leaves */
.sx { display: grid; gap: var(--s4); }
.sx-pick { border: 0; padding: 0; }
.sx-legend { padding-bottom: var(--s2); font-weight: 700; }
.sx-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sx-chip { position: relative; display: inline-flex; }
.sx-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sx-chip span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--ink-3); font-size: var(--t-small); font-weight: 700; }
.sx-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sx-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.sx-card { display: none; gap: var(--s3); padding-block: var(--s3); border-block: 1px solid var(--line); }
.sx:has(#sx-link:checked) [data-for="link"], .sx:has(#sx-wifi:checked) [data-for="wifi"], .sx:has(#sx-product:checked) [data-for="product"], .sx:has(#sx-book:checked) [data-for="book"], .sx:has(#sx-contact:checked) [data-for="contact"], .sx:has(#sx-upi:checked) [data-for="upi"], .sx:has(#sx-text:checked) [data-for="text"] { display: grid; }
.sx-h { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); font-weight: 700; color: var(--ink-2); }
.sx-h svg, .rd-icon svg, .lm svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (min-width: 700px) { .sx-card { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.rd-grid { list-style: none; display: grid; border-top: 1px solid var(--line); }
.rd-item { display: flex; gap: var(--s3); align-items: flex-start; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.rd-text { display: grid; }
.rd-text span { font-size: var(--t-small); color: var(--ink-2); }
@media (min-width: 700px) { .rd-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
.lm { display: grid; gap: var(--s4); }
.lm-root { display: flex; gap: var(--s3); align-items: flex-start; }
.lm-root span, .lm-step { display: grid; }
.lm-root small, .lm-step span { font-size: var(--t-small); color: var(--ink-2); }
.lm-branches { list-style: none; display: grid; gap: var(--s5); }
.lm-b { display: flex; gap: var(--s2); align-items: center; font-weight: 700; }
.lm-steps { display: grid; gap: var(--s2); margin-top: var(--s2); padding-left: var(--s5); }
.lm-end { color: var(--ink-2); }

/* The scanner's own buttons (its markup: btn, btn-primary, btn-secondary, btn-sm): the site's button, on its surface only. The
   product replicas (.skin without .skin-site) draw their own. */
.skin-site .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: var(--t-small); line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.skin-site .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.skin-site .btn-primary { background: var(--ink); color: var(--bg); }
.skin-site .btn-sm { min-height: var(--tap); padding: 0 var(--s4); }
.skin-site .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* a demo's hint: the step to try next, in bold; every step is laid in the same place, hidden, so the line never changes height
   (assets/js/demo-hints.js says the next one) */
.demo-hint { display: grid; margin: var(--s2) 0 var(--s4); font-weight: 700; }
.demo-hint > * { grid-area: 1 / 1; }
.demo-hint-room { display: grid; visibility: hidden; }
.demo-hint-room > * { grid-area: 1 / 1; }

/* a product demo's own buttons (the Motel POS demo, the tracker's copy): the product's look, as it was drawn before, on its light screen.
   Its stylesheet (assets/css/tools/demos.css) sizes only some of them. */
.skin:not(.skin-site) .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); border: 0; border-radius: var(--r-control); font: 600 16px / 1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; user-select: none; }
.skin:not(.skin-site) .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.skin:not(.skin-site) .btn-primary { background: var(--ink); color: var(--bg); }
.skin:not(.skin-site) .btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.skin:not(.skin-site) .btn-sm { min-height: var(--tap); padding: 0 var(--s4); }
.skin:not(.skin-site) .btn[disabled], .skin:not(.skin-site) .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
