/* Hallmark · round 8 B, the story rail · shape: Live surface (one cobalt plate; a frameless sheet on it plays the extension's clicks on a captured Canadian Tire search row) · genre: playful · theme: custom · job: try · idea: "a screen recording with a counter beside it: one caption at a time says what the extension does, the counter beside the sheet steps $10, $30, $50 as the pointer presses Activate and Swap in the pop-out, its coin pile gains a green layer per step and turns gold when the item is fully stacked" · vibe: "loud, flat and fast, on a page you recognise"
 * paper: oklch(96.6% 0.008 277) · accent: oklch(45.5% 0.29 268) · display: Archivo (width 125, weight 900) · body: Archivo (width 100) · hero: the headline across the top with the line and the install beside it; under them the sheet, and beside it the rail: the caption for this beat over the counter (the pop-out's cap at poster size) · nav: none, this file is the hero section only · footer: none, the hero section only · imagery: 1 capture of canadiantire.ca (a search row of four cards), the extension's card lines and pop-out drawn in the Coin Stroke look (process/ext-views.mjs, assets/ext.css) · signature: a counter whose coin pile fills one green layer per step and turns gold, a reel with three stops that only ever shows a real figure, and a gold flood that rises in three bands and leaves a row of four gold cards
 * axes: light/grotesk-heavy/chromatic-blue · posture: Committed (cobalt is the plate and the pop-out's cap; yellow is the install button and the fully stacked state, nothing else) · surface: flat (a white capture on a frameless sheet; the only shadow is the extension's own pop-out) · contrast: pass · fold: pass · hero-review: builder, every step looked at as a still and in the rendered video · finish-review: builder · copy: written for this piece and reviewed with slopmonster (process/copy-review.md); the card lines and the pop-out are the extension's own strings · v2.0.0 */
/* The page around the demo: tokens, the cobalt plate and the pitch. The demo itself is assets/demo.css. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }

:root {
  /* the brand, in one place (rename = edit these two lines; process/build.mjs reads them too) */
  --brand-name: "Stackmaxx";
  --badge-word: "Stackmaxxed";

  --space-3xs: 2px; --space-2xs: 4px; --space-s6: 6px; --space-xs: 8px; --space-s10: 10px; --space-sm: 12px; --space-md: 16px; --space-s20: 20px; --space-lg: 24px; --space-s32: 32px; --space-xl: 40px; --space-s48: 48px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-xl: 1.5625rem;
  --text-display: clamp(2.125rem, 2.9vw + 0.9rem, 3.5rem);
  --text-lead: clamp(1.0625rem, 0.35vw + 0.95rem, 1.25rem);

  --color-paper: #f3f4fa; --color-paper-2: #e8eaf4;
  --color-surface: #fafaff; --color-ct-page: #ffffff;
  --color-ink: #0b1033; --color-ink-2: #2f3558; --color-muted: #565d7e;
  --color-accent: #2338ff; --color-accent-ink: #fafaff;
  --color-accent-deep: #1727c4; --color-accent-soft: #dfe2ff; --color-accent-line: #8f9bff;
  --color-signal: #ffd60a; --color-signal-ink: #0b1033; --color-signal-press: #f2c400;
  --color-focus-on-accent: #fafaff;
  --color-ring: rgba(35, 56, 255, 0.22);
  --color-scrim: rgba(11, 16, 51, 0.5);   /* the demo's lens: the ink, as an overlay */
  --color-scrim-strong: rgba(11, 16, 51, 0.86);   /* the lens when the caption is set on it */

  /* ---- the extension's look in the demo (Coin Stroke, the three-colour app: cobalt for the brand and what you press,
     green for what you have now, gold for maxxed only). This block is its skin: the pop-out and the card lines draw
     every colour from these --sm-* names (they inherit into the shadow roots), so a new pop-out colour is an edit here. */
  --sm-brand: var(--color-accent);          /* the cap, buttons, links */
  --sm-accent: var(--color-signal);         /* gold: maxxed only (the pile, the badge word on cobalt) */
  --sm-on-accent: var(--color-signal-ink);  /* the gold pile's edge */
  --sm-money: #14713a;                      /* have now, on white */
  --sm-money-tint: #e8f6ee;                 /* have now: the soft green tile behind it (src tokens.css) */
  --sm-money-on-brand: #85eba9;             /* have now, on the cobalt cap (4.7:1) */
  --sm-ink: #16202e; --sm-muted: #556072; --sm-slot-wait: #6b7686;
  --sm-surface: #fdfdff; --sm-sunk: #f3f5f8; --sm-border: #d5dbe4;
  --sm-on-brand: #fdfdff; --sm-on-brand-muted: var(--color-accent-soft); --sm-on-brand-edge: rgba(253, 253, 255, 0.5);
  --sm-word: var(--sm-brand); --sm-btn-bg: var(--sm-brand); --sm-btn-fg: var(--sm-on-brand);
  --sm-shadow-float: 0 8px 28px rgba(22, 32, 46, 0.22);
  --sm-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sm-text-xs: 11px; --sm-text-sm: 12px; --sm-text-md: 13px; --sm-text-lg: 15px; --sm-text-xl: 18px; --sm-text-2xl: 24px; --sm-text-3xl: 28px;
  --sm-radius-xs: 4px; --sm-radius-sm: 6px; --sm-radius-lg: 10px;

  --font-display: "Archivo", "Archivo Fallback", ui-sans-serif, sans-serif;
  --font-body: "Archivo", "Archivo Fallback", ui-sans-serif, sans-serif;
  --radius-key: 10px; --radius-plate: 28px;
  --container: 1440px;

  /* two curves, each with one job: a hard stop for wipes, the counter and the camera, and a faster one for things
     that drop into place. Nothing overshoots. Cuts have no curve. */
  --ease-stop: cubic-bezier(0.2, 0, 0, 1);
  --ease-land: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press: 110ms; --dur-band: 150ms; --dur-wipe: 200ms; --dur-land: 260ms; --dur-roll: 460ms;
  --lag: 70ms;   /* the step between things that follow one another */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-accent) var(--color-paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: var(--space-md); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-stretch: 100%; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--color-signal); color: var(--color-signal-ink); }
:focus-visible { outline: 3px solid var(--color-focus-on-accent); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0; text-wrap: pretty; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bn::after { content: var(--brand-name); }
.bw::after { content: var(--badge-word); }

/* ---------- the plate and the pitch ---------- */
.faceplate { margin: var(--space-md) auto 0; width: calc(100% - 2 * var(--space-md)); max-width: calc(var(--container) - 2 * var(--space-md)); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-plate); padding: var(--space-md) var(--space-s48) var(--space-lg); overflow: clip; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 44px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-synthesis: none; font-style: italic; font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; font-size: var(--text-xl); line-height: 1; text-decoration: none; color: inherit; }
.wordmark svg { width: 1.3em; height: auto; }

/* the headline on the left; the line, the install and the fine print on the right, along its foot */
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-md) var(--space-xl); align-items: end; margin-top: var(--space-xs); }
h1 { margin: 0; font-family: var(--font-display); font-synthesis: none; font-stretch: 125%; font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; font-size: var(--text-display); text-wrap: balance; overflow-wrap: break-word; }
.pitch { display: grid; gap: var(--space-sm); justify-items: start; }
.lede { font-size: var(--text-lead); line-height: 1.45; max-width: 40ch; }
.install { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-s20); }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-key); font-weight: 700; font-size: var(--text-md); line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-press) linear, transform var(--dur-press) var(--ease-stop); }
.cta.on-cobalt { background: var(--color-signal); color: var(--color-signal-ink); }
.cta.on-cobalt:hover { background: var(--color-signal-press); }
.cta:active { transform: translateY(1px); }
.others { font-size: var(--text-sm); color: var(--color-accent-soft); }
.others a { font-weight: 700; }
.terms { font-size: var(--text-xs); line-height: 1.5; color: var(--color-accent-soft); }

@media (max-width: 48rem) {
  .hero-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  h1 { max-width: 18ch; }
  .faceplate { padding-inline: var(--space-s32); }
}
@media (max-width: 40rem) {
  :root { --radius-plate: 20px; }
  .faceplate { width: calc(100% - 2 * var(--space-xs)); margin-top: var(--space-xs); padding: var(--space-xs) var(--space-md) var(--space-md); }
  .hero-row { gap: var(--space-xs); margin-top: 0; }
  h1 { font-size: clamp(1.375rem, 6.5vw, 1.75rem); }
  .pitch { gap: var(--space-xs); }
  .lede { font-size: var(--text-sm); line-height: 1.4; }
  .install { flex-wrap: nowrap; gap: var(--space-sm); }
  .cta { min-height: 48px; padding: 0 var(--space-md); }
  .others { font-size: var(--text-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:active { transform: none; }
}
