/* Concept E, round 2. Headline-led: one bold line and one capture per field. Same language as round 1:
   cobalt ground, the pile's three marks (filled, solid outline, dashed outline), gold when done. Phone first. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; 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-style: italic; font-display: swap; }

:root {
  --cobalt: #2338ff;
  --on-cobalt: #ffffff;
  --on-cobalt-soft: #dfe2ff;
  --mint: #85eba9;
  --gold: #ffd60a;
  --ink: #0b1033;
  --ink-soft: #2b3157;
  --paper: #ffffff;
  --money: #14713a; /* the extension's money green, only on the flyer coins' figures */

  --tilt: -1.2deg;
  --gutter: 1rem;
  --step: 4.25rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sheet: 0 1.25rem 2.75rem -1rem rgba(11, 16, 51, .35);
  --shadow-lift: 0 2rem 3.5rem -1.25rem rgba(11, 16, 51, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cobalt);
  color: var(--ink);
  font: 400 1.0625rem/1.45 "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, figure { margin: 0; }
p, figcaption { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.field--gold :focus-visible, .field--mint :focus-visible, .field--paper :focus-visible { outline-color: var(--cobalt); }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .625rem .9rem; border-radius: 999px; font-weight: 800; z-index: 5; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem;
  background: var(--paper); color: var(--cobalt);
  border: 0; border-radius: 999px;
  font: 800 1.1875rem/1 "Archivo", sans-serif; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); background: var(--gold); color: var(--ink); } }
.btn:active { transform: translateY(1px); }

/* ---------- the opening ---------- */
.top { color: var(--on-cobalt); overflow: clip; }
.mast { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .75rem; padding-block: .5rem .25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; color: var(--gold); text-decoration: none; }
.wordmark span { color: var(--on-cobalt); font: italic 800 1.375rem/1 "Archivo", sans-serif; letter-spacing: -.02em; }
/* on a phone the tag is two set lines, broken where the sentence turns, so it reads the same from 360 to 430 wide */
.mast-what { flex-basis: 100%; font-weight: 800; font-size: .9375rem; line-height: 1.3; letter-spacing: -.005em; color: var(--on-cobalt-soft); }
.mast-what span { display: block; }

/* the hero: the promise, the install, and the pile filling up once (mint, then outlined, then dashed: all gold) */
/* On a phone the words and the action are one block at the top: headline, sub-headline, the button right under it,
   then why it is an email and the second way. The hero ends there: on a phone the wordmark's own mark is the only
   pile (the large one stands beside the headline from a tablet up), and the film shows at the bottom of the screen. */
.hero { padding-block: 1rem 2.5rem; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 12.4vw, 3.375rem); line-height: .97; letter-spacing: -.04em; text-wrap: balance; }
/* a longer headline steps down (the build counts its words: 8 or 9, then 10 to 12) */
.h1--mid { font-size: clamp(2.125rem, 10.4vw, 2.875rem); }
.h1--long { font-size: clamp(1.875rem, 9vw, 2.5rem); line-height: 1; }
.now { color: var(--gold); }
.lede { max-width: 30ch; margin-top: .875rem; font-size: 1.1875rem; line-height: 1.35; }
.hero-mark { display: none; }
.hero .get { margin-top: 1.25rem; }

/* the pile mark, drawn as three bars (the icon's proportions: a bar is 132 by 32, 8 apart, tipped 8 degrees) */
.stack { --w: 15rem; --bw: max(3px, calc(var(--w) * .02)); display: flex; flex-direction: column-reverse; gap: calc(var(--w) * .06); width: var(--w); transform: rotate(-8deg); }
.stack i { position: relative; display: block; height: calc(var(--w) * .2424); border-radius: 999px; background: var(--gold); }

.sheet { background: var(--paper); border-radius: .875rem; overflow: hidden; box-shadow: var(--shadow-sheet); }
.sheet img { width: 100%; }

/* On a phone the results are one card each, in a row you push sideways. */
.results { margin-top: 1.5rem; margin-bottom: -1.5rem; }
/* each card is shown at about the size Canadian Tire shows it, so the extension's box reads; the next one shows at the
   edge and fades out there, which says "more this way" without a word cut in half */
.strip {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 3rem 1.75rem var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 68%; scroll-snap-align: start; display: block; }
.strip .sheet { box-shadow: 0 1rem 1.5rem -.75rem rgba(11, 16, 51, .45); }
/* the results as Canadian Tire lays them out, with the extension's four boxes as their own pictures (cut from the same
   capture) at the places they have there, and a light shade over everything else so the eye goes to them. cards.js
   brings the boxes in once; without it they are simply there, shade and all. */
.results { position: relative; }
.lit { position: relative; }
.lit-dim { position: absolute; inset: 0; background: rgba(11, 16, 51, .22); pointer-events: none; }
.box { position: absolute; left: var(--pl); top: var(--pt); width: var(--pw); display: block; container-type: inline-size; }
.lit--all .box:not(.box--own) { display: none; }
.lit.is-waiting .box { visibility: hidden; }
.lit.is-waiting .lit-dim { opacity: 0; }
/* the figure while it counts up: the extension's own type and colour over the box's figure, gone once it gets there */
.box-n { position: absolute; left: var(--nl); top: 3.6cqw; display: flex; align-items: flex-start; color: var(--money); font: 800 6.5cqw/1 "Helvetica Neue", Helvetica, Arial, sans-serif; white-space: nowrap; }
.box-n span { display: block; background: var(--paper); }
.box-n--line span { width: var(--nw); height: 9cqw; padding: 1.55cqw 0 0 .85cqw; }
.box-n--big { left: 17.3cqw; top: 2.6cqw; font-size: 5.6cqw; }
.box-n--big .box-n-a { display: flex; justify-content: flex-end; align-items: flex-start; width: 18.6cqw; height: 13.6cqw; padding-top: 1.7cqw; }
.box-n--big .box-n-a b { margin-left: .35cqw; font-size: 12.6cqw; line-height: .86; letter-spacing: -.04em; }
.box-n--big .box-n-b { width: 10.6cqw; height: 8.4cqw; padding: 1.7cqw 0 0 1.4cqw; font-size: 5.9cqw; }
.results .cards-again { position: absolute; left: 0; top: calc(100% - 1.5rem); margin: 0; color: var(--ink); }

.legend { display: flex; align-items: flex-start; gap: .6rem; max-width: 34rem; font-size: .875rem; line-height: 1.35; color: var(--on-cobalt-soft); }
.legend--ink { color: var(--ink-soft); }
.mark { flex: none; width: 1.75rem; height: .75rem; margin-top: .22em; border: 2px solid currentColor; border-radius: 999px; transform: rotate(-8deg); }
.mark--dash { border-style: dashed; }

/* the install on a phone: why it is an email (the extension runs on a computer), one full-width button, and the
   second way as a real, quieter button beside the small print */
.get { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .625rem .875rem; margin-top: 1.5rem; }
.where { grid-column: 1 / -1; margin-top: .25rem; font-weight: 800; font-size: .9375rem; line-height: 1.2; }
.get .btn { grid-column: 1 / -1; font-size: 1.25rem; }
.copy { min-height: 3rem; padding: 0 1.125rem; background: none; border: 2px solid currentColor; border-radius: 999px; color: inherit; font: 800 1rem/1 "Archivo", sans-serif; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.copy:active { background: var(--paper); color: var(--cobalt); }
.get-note { font-size: .875rem; line-height: 1.3; color: var(--on-cobalt-soft); }
.on-desk { display: none; }

/* ---------- fields ---------- */
.field { padding-block: var(--step); overflow: clip; }
.field--mint { background: var(--mint); }
.field--cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.field--paper { background: var(--paper); }
.field--ink { background: var(--ink); color: var(--on-cobalt); }
.field--gold { background: var(--gold); }

h2 { max-width: 22ch; font-weight: 800; font-size: clamp(2rem, 9.4vw, 2.625rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.wide { max-width: 26ch; }
/* a headline that reads on into a lighter line: one sentence */
.h2-on { display: block; margin-top: .4em; font-weight: 400; font-size: .64em; line-height: 1.15; letter-spacing: -.02em; color: var(--on-cobalt-soft); }
.line { max-width: 44ch; margin-top: 1rem; font-size: 1.125rem; }
/* on a phone the swap's second line is a plain line under its headline, like every other section's */
.sub { max-width: 44ch; margin-top: 1rem; font-size: 1.125rem; text-wrap: pretty; }

/* ---------- the film: a video player at rest. The poster in its frame, a round play button dead centre, the
   running time in the corner; no native controls, never on its own ---------- */
.film-field { padding-block: 2.5rem; }
.film { position: relative; width: min(100%, (100svh - 5rem) * .5625); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 1rem; overflow: hidden; background: var(--cobalt); box-shadow: var(--shadow-lift); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* everything below is for the scripted player; without film.js the video keeps the browser's own controls */
.film-shade, .film-time { display: none; }
.film--ready video { cursor: pointer; }
.film--ready .film-shade { display: block; position: absolute; inset: 0; background: rgba(11, 16, 51, .3); pointer-events: none; transition: opacity .25s; }
.film-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4rem; height: 4rem; padding: 0;
  background: rgba(11, 16, 51, .86); color: var(--paper); border: 3px solid var(--paper); border-radius: 50%; box-shadow: var(--shadow-lift);
  cursor: pointer;
  transition: scale .25s var(--ease-out), opacity .2s, background-color .2s, color .2s, border-color .2s;
}
.film-ico { width: 50%; height: 50%; }
.film-ico--play { margin-left: 6%; }
.film-ico--pause, .is-playing .film-ico--play { display: none; }
.is-playing .film-ico--pause { display: block; }
.film-play:focus-visible { outline-color: var(--gold); outline-offset: 4px; border-radius: 50%; background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (hover: hover) { .film:hover .film-play { scale: 1.05; background: var(--gold); color: var(--ink); border-color: var(--gold); } }
.film-play:active { scale: .95; }
.film--ready .film-time { display: block; position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .5rem; border-radius: .375rem; background: rgba(11, 16, 51, .86); color: var(--paper); font-weight: 800; font-size: .875rem; line-height: 1; letter-spacing: .01em; pointer-events: none; transition: opacity .2s; }
.is-playing .film-shade, .is-playing .film-time, .is-playing .film-play:not(:focus-visible) { opacity: 0; }
.is-playing .film-play:not(:focus-visible) { pointer-events: none; }

/* ---------- the card it already knows ---------- */
.tier-pics { margin-top: 1.75rem; max-width: 27rem; }
.tier-set { width: 82%; border: 1px solid #d5dbe4; }
.tier-row { position: relative; margin: .75rem 0 0 6%; transform: rotate(-1.4deg); box-shadow: var(--shadow-lift); }

/* ---------- one run on one product: the offer to activate, then the swap, on the same field ---------- */
.run { container-type: inline-size; }
.open { margin-top: 1.75rem; }
.open-sum { position: relative; z-index: 1; width: 102%; margin: -19.2% -1% 0; border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-lift); }
.open-sum img { width: 100%; }

/* the swap picks up under the breakdown: a dashed line (the swap's mark) runs down from it and becomes the frame
   around the picture of the next step */
.next { margin-left: .5rem; }
.next-words { position: relative; padding: 2.5rem 0 2rem 1.125rem; }
.next-words::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 3px dashed var(--ink); }
.next-shot { position: relative; max-width: 27rem; padding: .625rem; }
.next-shot::before { content: ""; position: absolute; inset: 0; border: 3px dashed var(--ink); border-radius: 0 1.375rem 1.375rem 1.375rem; }
.next-shot .sheet { position: relative; }

/* ---------- the pile you can press ---------- */
.play { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; margin-top: 1.5rem; }
.fig { white-space: nowrap; }
.fig--have { color: var(--mint); }
/* the readout. Before: what you have now, small, and the $50 to reach, large, in the swap's dashed outline (not yours
   yet). Both pressed: the outline fills gold and the $50 is the biggest thing on the screen, under the badge word. */
.prize {
  position: relative; isolation: isolate; container-type: inline-size;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .25rem 1rem;
  padding: 1rem 1.25rem 1.125rem;
  border: 3px dashed var(--on-cobalt); border-radius: 1.5rem;
  color: var(--on-cobalt);
  transition: color .3s .1s, border-color .3s .1s;
}
.prize::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: var(--gold);
  clip-path: inset(0 100% 0 0 round 1.5rem);
  transition: clip-path .45s var(--ease-out);
}
.prize.is-maxxed { grid-template-columns: minmax(0, 1fr); padding-block: 1.125rem 1.25rem; border-color: transparent; color: var(--ink); }
.prize.is-maxxed::before { clip-path: inset(0 0 0 0 round 1.5rem); }
.prize-now { font-weight: 800; font-size: 1.125rem; line-height: 1.1; letter-spacing: -.02em; }
.prize-now .fig { display: block; font-size: 2.125rem; line-height: 1; letter-spacing: -.035em; }
.prize-goal { display: grid; justify-items: end; text-align: right; }
.prize-amt { position: relative; display: block; font-weight: 900; font-size: 25cqw; line-height: .84; letter-spacing: -.05em; white-space: nowrap; }
.prize-amt small { position: relative; top: .1em; margin-right: .03em; font-size: .44em; letter-spacing: -.02em; vertical-align: top; }
.prize-how { margin-top: .5rem; font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; }
.prize-word { color: var(--cobalt); font-style: italic; font-weight: 900; font-size: clamp(1.875rem, 11cqw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.prize.is-maxxed .prize-goal { justify-items: start; text-align: left; }
.prize.is-maxxed .prize-amt { margin-top: .1em; font-size: 58cqw; transform-origin: 0 85%; }
.prize.is-maxxed .prize-how { margin-top: .625rem; font-size: 1.25rem; }
/* the count-up sits over the real figure, which is already $50 */
.prize-amt.is-counting { color: transparent; }
.prize-count { position: absolute; left: 0; top: 0; color: var(--ink); font-weight: inherit; }

.pile { display: flex; flex-direction: column-reverse; gap: .5rem; transform: rotate(var(--tilt)); transform-origin: 30% 50%; }
.slab {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .4rem .75rem;
  padding: .875rem 1rem;
  border: 3px solid var(--on-cobalt); border-radius: 1.5rem;
  color: var(--on-cobalt);
  transition: color .35s .08s, border-color .35s .08s;
}
.slab--swap { border-style: dashed; }
/* the fill: wipes in from the left when a slab becomes yours */
.slab::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: var(--mint);
  clip-path: inset(0 100% 0 0 round 1.5rem);
  transition: clip-path .7s var(--ease-out), background-color .5s;
}
.slab.is-full { color: var(--ink); border-color: transparent; }
.slab.is-full::before { clip-path: inset(0 0 0 0 round 1.5rem); }
.pile.is-maxxed .slab::before { background: var(--gold); }
/* the bottom layer is always yours, so it is painted for real rather than wiped in */
.slab--have { background: var(--mint); transition: background-color .5s; }
.slab--have::before { content: none; }
.pile.is-maxxed .slab--have { background: var(--gold); }
.pile.is-maxxed .slab--act::before { transition-delay: 0s, .12s; }
.pile.is-maxxed .slab--swap::before { transition-delay: 0s, .24s; }

.tile {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  border: 2px solid currentColor; border-radius: .75rem;
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
}
.slab--swap .tile { border-style: dashed; }
.slab.is-full .tile { border-style: solid; border-color: transparent; background: rgba(11, 16, 51, .1); }
.slab-what { display: contents; font-size: .9375rem; line-height: 1.3; }
.slab-what strong { grid-column: 2; grid-row: 1; align-self: center; font-weight: 800; font-size: 1.125rem; letter-spacing: -.015em; }
.slab-what span { grid-column: 1 / -1; grid-row: 2; color: var(--on-cobalt-soft); transition: color .35s .08s; }
.slab.is-full .slab-what span { color: var(--ink-soft); }
.slab-amt { grid-column: 3; grid-row: 1; font-weight: 800; font-size: 1.375rem; letter-spacing: -.03em; }
.slab-state { grid-column: 1 / -1; grid-row: 3; font-weight: 800; font-size: 1rem; }
.press {
  grid-column: 1 / -1; grid-row: 3; justify-self: stretch;
  min-height: 3rem; padding: 0 1.25rem;
  background: var(--paper); color: var(--cobalt);
  border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.0625rem/1 "Archivo", sans-serif;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s;
}
@media (hover: hover) { .press:hover { transform: scale(1.03); background: var(--gold); color: var(--ink); } }
.press:active { transform: scale(.97); }
.press:disabled { min-height: 0; padding: 0; background: none; color: var(--ink); cursor: default; transform: none; text-align: left; }
/* "Put it back" shows once something is pressed; its line keeps its height, so nothing moves when it does */
.try-note { min-height: 2.75rem; margin-top: 1rem; font-size: 1rem; }
.try-note .again { margin-left: 0; padding-inline: 0; }

/* a phone's slabs are one row each, laid out as the extension lays out an offer: its mark, its name, and on the right
   the amount with the button (or what became of it) under it. The sentence under each name is a desktop extra. */
@media (max-width: 44rem) {
  .slab { grid-template-rows: auto auto; gap: .3rem .75rem; padding: .75rem .875rem; }
  .tile { grid-row: 1 / 3; }
  .slab-what { display: block; grid-column: 2; grid-row: 1 / 3; }
  .slab-what strong { display: block; font-size: 1.0625rem; line-height: 1.15; text-wrap: balance; }
  .slab-what span { display: none; }
  .slab-amt { justify-self: end; font-size: 1.3125rem; line-height: 1.1; }
  .press, .slab-state { grid-column: 3; grid-row: 2; justify-self: end; }
  .press { min-height: 2.75rem; padding: 0 1.125rem; font-size: 1rem; }
  .press:disabled, .slab-state { min-height: 1.5rem; font-size: .9375rem; text-align: right; }
  .rung--2 span { display: block; }
}
.again { min-height: 2.75rem; margin-left: .25rem; padding: 0 .25rem; background: none; border: 0; color: var(--on-cobalt); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- the flyer ---------- */
.flyer { display: grid; gap: 1.75rem; }
.flyer-words { order: -1; }
.flyer-pic { transform: rotate(.8deg); }
/* the flyer as Canadian Tire prints it, and the extension's coins on top: each coin is its own picture, cut from the
   capture, at the place it has there. flyer.js flies them in once; without it they are simply there. */
.flyer-lit { position: relative; }
/* a phone shows the page's right-hand panel (690 of the capture's 1728 across, from 1038), so its coins are large */
.coins { position: absolute; top: 0; left: -150.435%; width: 250.435%; height: 100%; pointer-events: none; container-type: size; }
.coin { position: absolute; aspect-ratio: 1; }
.coin img { width: 100%; height: 100%; }
.coins.is-waiting .coin { visibility: hidden; }
/* the figure while it counts up: the extension's own type and colours, over the coin's face, gone once it lands */
.coin-n {
  position: absolute; left: 50%; top: 50%; width: 4.05cqw; aspect-ratio: 1; translate: -50% -50%;
  display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--paper); color: var(--money);
  font: 800 1.3166cqw/1.05 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em;
}
.coin-n span { display: block; rotate: -7deg; }
.coin-n--long { font-size: 1.114cqw; letter-spacing: -.03em; }
.coin--gold .coin-n { width: 4.4cqw; background: var(--gold); color: var(--ink); }
.flyer-key { align-items: center; gap: .25rem 1rem; margin-top: 1rem; color: var(--on-cobalt); font-weight: 800; }
.flyer-key .again { margin-left: 0; }

/* ---------- it only gets better: each line a fuller mark and a bigger voice ---------- */
.climb { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .625rem; margin-top: 1.75rem; transform: rotate(var(--tilt)); transform-origin: 0 50%; }
.rung { padding: .7em 1em; border: 3px solid var(--ink); border-radius: 1.5rem; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.rung--1 { border-style: dashed; font-size: 1.0625rem; line-height: 1.3; }
.rung--2 { font-size: 1.3125rem; line-height: 1.3; }
.rung--3 { border-color: var(--mint); background: var(--mint); font-size: 1.75rem; }
.rung--4 { border-color: var(--gold); background: var(--gold); border-radius: 999px; padding: .28em .5em .3em; font-weight: 900; font-size: clamp(1.75rem, 9.6vw, 3rem); letter-spacing: -.045em; white-space: nowrap; }

/* ---------- the close: the hero's pile again, finished and larger, running off the edge ---------- */
.close { padding-bottom: 3rem; }
.close-in { display: grid; gap: 2.5rem; }
.closer { max-width: none; font-weight: 900; font-size: clamp(2.5rem, 12vw, 4rem); line-height: .94; letter-spacing: -.045em; }
/* the tip: after the install, never above it, and quieter than it */
.tip { margin-top: 1.5rem; font-size: .9375rem; line-height: 1.3; color: var(--on-cobalt-soft); }
.tip a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); font-weight: 800; }
.close .stack { --w: 80vw; justify-self: end; margin-right: -3.5rem; }

.foot { background: var(--cobalt); color: var(--on-cobalt-soft); padding-bottom: 2.75rem; font-size: .9375rem; }
.foot .wrap { display: grid; gap: 1rem 3rem; padding-top: 1.75rem; border-top: 2px solid rgba(255, 255, 255, .3); }
.foot-legal { max-width: 58ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); font-weight: 800; }

/* ---------- from a tablet up ---------- */
@media (min-width: 44.01rem) {
  :root { --gutter: clamp(1.5rem, 4vw, 5rem); --step: clamp(5rem, 9vw, 8.5rem); --tilt: -2deg; }
  body { font-size: 1.125rem; }
  .on-phone { display: none; }
  span.on-desk { display: inline; }
  a.on-desk { display: inline-flex; }

  .mast { flex-wrap: nowrap; padding-block: 1.125rem; }
  .mast-what { flex-basis: auto; font-size: 1rem; padding-left: 1.25rem; border-left: 2px solid rgba(255, 255, 255, .45); color: inherit; }
  .mast-what span { display: inline; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: min(100svh - 4.75rem, 50rem); padding-block: 1.5rem clamp(2rem, 5vh, 3rem); }
  h1 { font-size: clamp(2.75rem, 5.7vw, 5.25rem); line-height: .96; text-wrap: wrap; }
  .h1--mid { font-size: clamp(2.5rem, 5vw, 4.5rem); }
  .h1--long { font-size: clamp(2.25rem, 4.3vw, 3.75rem); }
  .lede { margin-top: 1.5rem; font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
  .get { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .get .btn { font-size: 1.1875rem; }
  .get-note { font-size: .9375rem; }
  .hero .get { margin-top: 2rem; }
  .hero-mark { display: block; justify-self: end; }
  .hero .stack { --w: clamp(15rem, 40vw, 36rem); margin: 0; }

  .results { margin-top: clamp(2rem, 4vw, 3.25rem); margin-bottom: 0; }
  .strip { display: block; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .strip .sheet { box-shadow: var(--shadow-lift); }
  .strip-more { display: none; }
  .strip > * { flex: none; }
  .box { left: var(--dl); top: var(--dt); width: var(--dw); }
  .lit--all .box:not(.box--own) { display: block; }
  .results .cards-again { top: calc(100% + .5rem); }
  .legend { font-size: .9375rem; }

  h2 { font-size: clamp(2.25rem, 4.1vw, 3.625rem); line-height: 1.04; letter-spacing: -.03em; }
  .line { font-size: 1.25rem; }
  .sub { max-width: none; margin-top: 1rem; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }

  .film-field { padding-block: clamp(3rem, 6vw, 5.5rem); }
  .film { width: min(100%, 68rem, (100svh - 7rem) * 1.7778); aspect-ratio: 16 / 9; border-radius: 1.25rem; }
  .film-play { width: 5.5rem; height: 5.5rem; border-width: 4px; }
  .film--ready .film-time { right: 1rem; bottom: 1rem; font-size: 1rem; }

  /* the details hang out of the page exactly where the strip sits in the capture, and down into the swap's part */
  .open { position: relative; margin-top: clamp(2rem, 4vw, 3.25rem); }
  .open-page { width: 91.5cqw; }
  .open-sum { position: absolute; left: 57.6cqw; top: 22.7cqw; width: 32.9cqw; margin: 0; }
  /* 38.2cqw: how far the breakdown hangs below the page capture. Two rows, each words beside a picture: the headline
     beside the breakdown's swap rows, the sub-headline beside the picture of the swap it recommends */
  .next { display: grid; grid-template-columns: 53cqw 4.6cqw 32.9cqw; grid-template-rows: calc(38.2cqw + 4.5rem) auto; margin-left: 0; }
  .next-words { display: contents; }
  .next-words::before { content: none; }
  .next h2 { grid-column: 1; grid-row: 1; align-self: center; max-width: none; padding-bottom: 4.5rem; }
  .next .sub { grid-column: 1; grid-row: 2; align-self: center; max-width: 22ch; margin: 0; font-size: clamp(1.625rem, 2.9cqw, 2.375rem); }
  .next-shot { grid-column: 3; grid-row: 2; max-width: none; margin: 0 -.875rem; padding: .875rem; }
  .next-shot::before { border-radius: 1.625rem; }
  .next-shot::after { content: ""; position: absolute; left: 50%; bottom: 100%; height: 4.5rem; border-left: 3px dashed var(--ink); }

  .tier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
  .tier-pics { margin-top: 0; max-width: 29rem; justify-self: end; }
  .tier-row { margin: .875rem 0 0 10%; }

  .play { gap: 1.75rem; margin-top: clamp(1.75rem, 4vh, 3rem); }
  .prize { padding: 1.5rem 2rem 1.625rem; border-radius: 2rem; }
  .prize::before { clip-path: inset(0 100% 0 0 round 2rem); }
  .prize.is-maxxed::before { clip-path: inset(0 0 0 0 round 2rem); }
  .prize.is-maxxed { padding-block: 1.5rem 1.75rem; }
  .prize-now { font-size: 1.375rem; }
  .prize-now .fig { font-size: 3rem; }
  .prize-amt { font-size: 19cqw; }
  .prize.is-maxxed .prize-amt { font-size: 36cqw; }
  .prize-how { font-size: 1.25rem; }
  .prize.is-maxxed .prize-how { font-size: 1.5rem; }
  .pile { gap: .625rem; }
  .slab { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: .5rem; column-gap: clamp(.9rem, 1.6vw, 1.5rem); border-radius: 2rem; }
  .slab::before { clip-path: inset(0 100% 0 0 round 2rem); }
  .slab.is-full::before { clip-path: inset(0 0 0 0 round 2rem); }
  .tile { width: 3.25rem; height: 3.25rem; font-size: 1.125rem; border-radius: .875rem; }
  .slab-what { display: block; font-size: 1.0625rem; }
  .slab-what strong { display: block; font-size: 1.3125rem; }
  .slab-amt { align-self: start; padding-top: .35rem; font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
  .press, .slab-state { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
  .press { min-width: 7.5rem; }
  .press:disabled { text-align: right; }

  /* the flyer page is shown large, so the coins on it can be read */
  .flyer { gap: clamp(2rem, 4vw, 3.25rem); }
  .flyer-pic { width: min(100%, 68rem); transform: rotate(-.8deg); }
  .coins { left: 0; width: 100%; }

  .climb { gap: .875rem; margin-top: clamp(2rem, 4vw, 3.25rem); }
  .rung { border-radius: 999px; padding: .6em 1.1em; }
  .rung--1 { font-size: 1.375rem; }
  .rung--2 { font-size: clamp(1.625rem, 2.5vw, 2.125rem); margin-left: 1.5%; }
  .rung--3 { font-size: clamp(2rem, 3.6vw, 3.125rem); margin-left: .5%; }
  .rung--4 { font-size: clamp(4rem, 9.6vw, 8.5rem); padding: .2em .42em .24em; margin-left: -.5%; }

  .close { padding-bottom: clamp(5rem, 9.5vw, 9rem); }
  .close-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
  .closer { font-size: clamp(3rem, 6.6vw, 6.25rem); }
  .close .get { margin-top: 2.25rem; }
  .tip { margin-top: 1.25rem; font-size: 1rem; }
  .close .stack { --w: clamp(18rem, 52vw, 46rem); margin-right: calc(-1 * var(--gutter) - 14vw); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

/* ---------- a wide screen: the pile's slabs become single rows ---------- */
@media (min-width: 62.01rem) {
  /* the readout stands beside the pile, as tall as it */
  .play { grid-template-columns: minmax(0, 1fr) clamp(19rem, 29vw, 26rem); align-items: stretch; gap: clamp(1.5rem, 3vw, 3rem); }
  .pile { grid-column: 1; grid-row: 1; align-self: center; }
  .prize { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.25rem; }
  .prize-goal, .prize.is-maxxed .prize-goal { justify-items: start; text-align: left; }
  .prize-amt { font-size: 40cqw; }
  .prize.is-maxxed .prize-amt { font-size: 62cqw; }
  .slab { grid-template-columns: auto minmax(0, 1fr) auto 8.5rem; min-height: 6.25rem; padding: .75rem 1.125rem; border-radius: 999px; }
  .slab::before { clip-path: inset(0 100% 0 0 round 999px); }
  .slab.is-full::before { clip-path: inset(0 0 0 0 round 999px); }
  .slab--swap { margin-left: 2.5%; margin-right: -1%; }
  .slab--act { margin-left: 1%; margin-right: 1.5%; }
  .slab--have { margin-right: 3%; }
  .slab-amt { align-self: center; padding-top: 0; }
  .press, .slab-state { grid-column: 4; grid-row: 1; }
  .slab-state { padding-right: .75rem; }
  .press:disabled { padding-right: .75rem; }
}

/* ---------- motion: things settle as they come into view; nothing is ever hidden waiting for it ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the hero's pile fills as the extension's does: yours (mint), an offer to activate (solid outline), a swap (dashed
     outline), then all of it gold. It ends as the plain gold mark, which is also what shows without motion. */
  .stack--fill i { background: none; }
  .stack--fill i::before, .stack--fill i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: 2.5s var(--ease-out) .45s both; }
  .stack--fill i::before { background: var(--gold); }
  .stack--fill i::after { border: var(--bw) solid var(--on-cobalt); opacity: 0; }
  .stack--fill i:nth-child(3)::after { border-style: dashed; }
  .stack--fill i:nth-child(1)::before { animation-name: fill-1; }
  .stack--fill i:nth-child(2)::before { animation-name: fill-2; }
  .stack--fill i:nth-child(3)::before { animation-name: fill-3; }
  .stack--fill i:nth-child(2)::after { animation-name: line-2; }
  .stack--fill i:nth-child(3)::after { animation-name: line-3; }
  @keyframes fill-1 { 0%, 76% { background: var(--mint); } 100% { background: var(--gold); } }
  @keyframes fill-2 { 0%, 16% { clip-path: inset(0 100% 0 0 round 99rem); background: var(--mint); } 40%, 76% { clip-path: inset(0 0 0 0 round 99rem); background: var(--mint); } 100% { clip-path: inset(0 0 0 0 round 99rem); background: var(--gold); } }
  @keyframes fill-3 { 0%, 46% { clip-path: inset(0 100% 0 0 round 99rem); background: var(--mint); } 70%, 76% { clip-path: inset(0 0 0 0 round 99rem); background: var(--mint); } 100% { clip-path: inset(0 0 0 0 round 99rem); background: var(--gold); } }
  @keyframes line-2 { 0%, 34% { opacity: 1; } 40%, 100% { opacity: 0; } }
  @keyframes line-3 { 0%, 64% { opacity: 1; } 70%, 100% { opacity: 0; } }

  @media (min-width: 44.01rem) {
    .strip > * { animation: settle .9s var(--ease-out) backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes settle { from { transform: translateY(2.25rem) rotate(1.2deg); } to { transform: none; } }
  }

  @supports (animation-timeline: view()) {
    .slab, .rung, .stack--set i { animation: land var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 115%; }
    @keyframes land { from { transform: translateX(-2.5rem) rotate(-2.5deg) scale(.96); } to { transform: none; } }
    .rung { transform-origin: 0 50%; }

    .tier-row, .flyer-pic { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 1.5rem; } to { translate: 0 -1.5rem; } }
  }

  /* the payoff, about half a second: the figure pops as it counts up, the badge word slides in, and the pile's three
     slabs slam together and spring back */
  .prize.is-maxxed .prize-amt { animation: pop .62s var(--ease-out) both; }
  .prize.is-maxxed .prize-word { animation: word-in .5s var(--ease-out) both; transform-origin: 0 100%; }
  @keyframes pop { 0% { transform: scale(.5) rotate(-4deg); } 55% { transform: scale(1.07) rotate(1deg); } 100% { transform: none; } }
  @keyframes word-in { from { transform: translateX(-1.25rem) scale(.8); } to { transform: none; } }
  .pile.is-maxxed .slab { animation: slam .55s cubic-bezier(.3, 0, .2, 1) both; animation-timeline: auto; animation-range: normal; }
  .pile.is-maxxed .slab--swap { --sl: .6rem; }
  .pile.is-maxxed .slab--have { --sl: -.6rem; }
  @keyframes slam { 0% { transform: none; } 32% { transform: translateY(var(--sl, 0rem)) scale(1.02, .96); } 62% { transform: translateY(calc(var(--sl, 0rem) * -.35)); } 100% { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition-duration: .01s !important; }
}
