/* The pages that host a working product, on the one system (the site round, 23 November 2026; site-src/v6/pages/products.mjs):
   Price Match Tracker's page and its try page, the scanner's two pages. Their bodies are design v5's (every word, every part the
   products' own code reads); page.css draws them as it draws every page carried from design v5. The products' surfaces keep their own
   sheets, which read their names inside .skin from the product bridge (products.css). This sheet holds what only these pages have. */

/* ───────── the header stays in the page's flow on a tool's own page, as on Link Check's: nothing is held over the tool or what it shows
   (the scanner's sample codes and lookup chain bring a card into view below a fixed header they look for by design v5's names) ───────── */
.is-product .mast { position: relative; }

/* ───────── a product's own surface (.skin) is drawn by its own sheet on design v5's base: the system's heading face, ink and balance,
   its buttons and its icons' fill stay out of it (a tie in weight with the system's rules, won by coming later) ───────── */
:where(.skin) :is(h1, h2, h3) { color: inherit; font-family: inherit; text-wrap: wrap; }
:where(.skin) :is(p) { text-wrap: wrap; }

/* ───────── from 1024 px the tracker's working copy stands beside its opening, as Home's stage stands beside its headline: the name,
   what it does and the way to get it on the left; the working copy on the right, its line and Open full screen above it ───────── */
@media (min-width: 1024px) {
  .is-product .wrap:has(> .top + .sec-demo) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-product .wrap:has(> .top + .sec-demo) > * { grid-column: 1 / 13; }
  .is-product .wrap > .top:has(+ .sec-demo) { grid-column: 1 / 6; }
  .is-product .wrap > .top + .sec-demo { grid-column: 6 / 13; display: block; padding-top: var(--s7); }
  .is-product .wrap > .top + .sec-demo > * + * { margin-top: var(--s4); }
  .is-product .wrap > .top + .sec-demo > .sec-h { position: static; font-family: var(--display); font-weight: var(--w-h4); font-size: var(--t-h4); line-height: var(--lh-h4); letter-spacing: 0; }
}

/* ───────── the scanner's panel sits on the page's own edges (its sheet insets it by an old token: design v5 drew it 48 px in from the
   text above it); its own layout is unchanged ───────── */
.is-product :is(.sc-panel, .try-stage) > .skin { --panel-inset: 0px; --safe-l: 0px; --safe-r: 0px; }

/* ───────── the working copy's "Sample data" label: the system's tag (a 1 px edge, small corners, no fill), as How we work's "Sample reviews
   and names" is drawn; it was a grey pill, the only one on the site (design v5's rule lived in a sheet no page loads any more) ───────── */
.is-product .skin .tag-lime { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border-radius: 6px; background: none; box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ───────── the tracker's working copy on its own light page (A2): the product keeps its light look, so its line under the window and
   its "Sample data" sit on its white, not on the dark page (they read 2.63:1 and 1:1 there) ───────── */
.is-product .skin:not(.skin-site) { padding: var(--s4); border-radius: var(--r-panel); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
/* (on a phone the working copy keeps its whole width: its light page runs above and below it, not at its sides, where at 320 px it
   squeezed the product's own rows) */
@media (max-width: 599.98px) { .is-product .skin:not(.skin-site) { padding-inline: 0; box-shadow: none; } }
/* the try page: the window as wide as the product page in it needs, in the middle of the screen (D12: at 1440 px half of it was empty) */
.is-product .try-stage > .demo-frame-full { max-width: 64rem; margin-inline: auto; }

/* the add-it cards: a lone card (the tracker in one store) takes the row, never half of it */
.is-product .add-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* ───────── the store's button (design v5's), filled in the page's ink ───────── */
.is-product .btn-store:not(.skin .btn) { background: var(--text); border-color: var(--text); color: var(--bg); }


/* the scanner's credits (a section of fine print with no heading of its own): in the sections' text column from 1024 px, under their words,
   where design v5 had it (e2e/scanner-ui.spec.mjs); page.css spans a heading-less section across the grid, which suits Contact's form */
@media (min-width: 1024px) { .is-product .sec[aria-label="Credits"] > * { grid-column: 5 / 13; } }

/* the working copy's call to Track price: its ring pulses twice, 4.4 s in all, so nothing moves for more than 5 s without a pause control
   (WCAG 2.2.2; it pulsed three times, 5.3 s of blinking: the final review of 23 Nov 2026). The product's own sheet stays as it is. */
.is-product .skin .trk-track::after { animation-iteration-count: 2; }

