/* Hallmark · shape: Feature Stack (swapped from Stat-Led: no figures given) · genre: playful · theme: Hum (deal 2/3, seed pixwell-relaxing-colour-by-number-pixel-64c4·94add991·2026-11-30·r0) · job: try · draw: a97f8f
 * hero: Counter (swapped from Corridor: the job puts the download beside the screen) · nav: edge-aligned torn strip (swapped from search-led: nothing to search) · footer: mast (swapped from index columns: no sitemap) · imagery: screenshots 6 (playwright, the running app), library 1, natural · signature: a real photo through the real generator, then a real starter pattern to paint on the page
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a calm app argues softly; leaned on the playable pattern so the page proves the claim instead of making it */
/* Hallmark · dismissed 23 · the footer's display text is the Pixwell wordmark itself, set in the brand pear on the ink mast */
/* Hallmark · waive 39b · button.cell 40px squares of the playable 14 by 13 Ginger Cat grid · these are app UI painting squares, and drag painting sweeps across several at once */
/* Hallmark · dismissed F4 · .btn is the paper card-stock secondary; only .btn--primary is filled, once in the hero */
/* Hallmark · hero-review: fix · 5 findings · 5 resolved · finish-review: subagent · 6 findings · 6 resolved · gap: none · sweep: Floor 0 FAIL · Reflex 1 (waived: 39b) · render warns a font fallback the shots and both reviews show is not real */
@import url("./tokens.css");
@import url("./base.css");

/* Page tokens: the face, the paper, the torn edges and the try-it pattern's own palette. */
@font-face { font-family: "Chillax"; src: url("fonts/chillax-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("fonts/chillax-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .09 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --tear-bottom: polygon(0 0, 100% 0, 100.00% calc(100% - 0.96vw), 97.92% calc(100% - 0.44vw), 95.83% calc(100% - 0.97vw), 93.75% calc(100% - 0.68vw), 91.67% calc(100% - 0.27vw), 89.58% calc(100% - 1.03vw), 87.50% calc(100% - 0.77vw), 85.42% calc(100% - 1.30vw), 83.33% calc(100% - 0.52vw), 81.25% calc(100% - 0.41vw), 79.17% calc(100% - 0.84vw), 77.08% calc(100% - 0.43vw), 75.00% calc(100% - 0.57vw), 72.92% calc(100% - 0.57vw), 70.83% calc(100% - 0.46vw), 68.75% calc(100% - 0.54vw), 66.67% calc(100% - 0.38vw), 64.58% calc(100% - 1.25vw), 62.50% calc(100% - 1.06vw), 60.42% calc(100% - 0.36vw), 58.33% calc(100% - 0.63vw), 56.25% calc(100% - 0.82vw), 54.17% calc(100% - 0.50vw), 52.08% calc(100% - 0.24vw), 50.00% calc(100% - 0.27vw), 47.92% calc(100% - 0.50vw), 45.83% calc(100% - 0.73vw), 43.75% calc(100% - 0.28vw), 41.67% calc(100% - 0.29vw), 39.58% calc(100% - 0.84vw), 37.50% calc(100% - 0.28vw), 35.42% calc(100% - 0.68vw), 33.33% calc(100% - 0.96vw), 31.25% calc(100% - 1.48vw), 29.17% calc(100% - 0.73vw), 27.08% calc(100% - 1.16vw), 25.00% calc(100% - 0.54vw), 22.92% calc(100% - 0.43vw), 20.83% calc(100% - 0.49vw), 18.75% calc(100% - 0.79vw), 16.67% calc(100% - 0.38vw), 14.58% calc(100% - 0.22vw), 12.50% calc(100% - 1.03vw), 10.42% calc(100% - 0.86vw), 8.33% calc(100% - 0.55vw), 6.25% calc(100% - 0.54vw), 4.17% calc(100% - 0.36vw), 2.08% calc(100% - 0.57vw), 0.00% calc(100% - 1.29vw));
  --tear-top: polygon(0.00% 0.61vw, 2.08% 0.59vw, 4.17% 0.30vw, 6.25% 0.94vw, 8.33% 0.20vw, 10.42% 0.76vw, 12.50% 0.63vw, 14.58% 0.85vw, 16.67% 0.68vw, 18.75% 0.74vw, 20.83% 0.90vw, 22.92% 1.41vw, 25.00% 0.81vw, 27.08% 1.03vw, 29.17% 0.67vw, 31.25% 0.84vw, 33.33% 0.40vw, 35.42% 0.53vw, 37.50% 0.29vw, 39.58% 0.62vw, 41.67% 1.21vw, 43.75% 0.83vw, 45.83% 0.75vw, 47.92% 1.25vw, 50.00% 0.62vw, 52.08% 1.40vw, 54.17% 0.69vw, 56.25% 1.04vw, 58.33% 0.20vw, 60.42% 0.22vw, 62.50% 0.22vw, 64.58% 0.99vw, 66.67% 0.77vw, 68.75% 0.30vw, 70.83% 0.63vw, 72.92% 0.58vw, 75.00% 0.76vw, 77.08% 1.67vw, 79.17% 1.15vw, 81.25% 0.41vw, 83.33% 0.61vw, 85.42% 1.09vw, 87.50% 1.14vw, 89.58% 0.28vw, 91.67% 0.42vw, 93.75% 0.24vw, 95.83% 0.50vw, 97.92% 0.42vw, 100.00% 1.00vw, 100% 100%, 0 100%);
  /* Ginger Cat, the starter pattern painted in the try-it section (its own palette, from the app's data). */
  --pal-1: oklch(28.6% 0.041 48); --pal-2: oklch(72.9% 0.162 59); --pal-3: oklch(97.2% 0.022 74); --pal-4: oklch(77.7% 0.138 5); --pal-5: oklch(67.3% 0.162 144);
  --pal-ink-1: var(--color-card); --pal-ink-2: var(--color-ink); --pal-ink-3: var(--color-ink); --pal-ink-4: var(--color-ink); --pal-ink-5: var(--color-ink);
  --nav-h: 72px;
  --shot-ratio: 780 / 1688;
}

body { background: var(--grain), var(--fibre), var(--color-paper); font-size: 1.0625rem; font-weight: 500; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------------------------------------------------------------- controls: card stock */
.btn {
  --edge: 5px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-stock);
  font-weight: 600; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  color: var(--color-ink);
  background: var(--grain), var(--fibre), var(--color-card);
  box-shadow: inset 0 0 0 1px var(--color-rule), 0 var(--edge) 0 0 var(--color-edge);
  transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap);
}
.btn:hover { --edge: 7px; translate: 0 -2px; }
.btn:active { --edge: 1px; translate: 0 4px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; translate: none; }
.btn--primary {
  background: var(--grain), var(--fibre), var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep), 2px calc(var(--edge) + 4px) 10px -3px color-mix(in oklab, var(--color-ink) 32%, transparent);
  transition-timing-function: var(--ease-spring);
}
.btn--sm { min-height: 44px; padding: 0 var(--space-md); --edge: 4px; }
.btn--sm:hover { --edge: 5px; }

/* ---------------------------------------------------------------- nav: a torn paper strip */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: var(--grain), var(--fibre), var(--color-card);
  clip-path: var(--tear-bottom);
  padding-bottom: var(--space-xs);
  filter: drop-shadow(0 2px 2px color-mix(in oklab, var(--color-ink) 8%, transparent));
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; font-weight: 600; font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.wordmark img { width: 28px; height: 28px; image-rendering: pixelated; }
.wordmark:focus-visible, .nav-link:focus-visible, .foot a:focus-visible, .stack-steps a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: var(--space-2xs); }
.nav nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-link { color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.nav-link:hover { color: var(--color-accent-2); text-decoration: underline; }
.nav-link:active { color: var(--color-ink-2); }
html { scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }

/* ---------------------------------------------------------------- hero: Counter */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-lg); justify-items: start; }
.hero-copy h1 { max-width: 11ch; }
.hero-copy .lead { max-width: 30ch; color: var(--color-ink-2); }
.hero-actions { display: flex; gap: var(--space-md); padding-top: var(--space-xs); }
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.store {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  min-height: 48px; padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-sm);
  border-radius: var(--radius-stock);
  border: 1px solid var(--color-muted); color: var(--color-ink);
  font-weight: 600; line-height: 1.1;
}
.store svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.store span { display: grid; }
.store small { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.stores--close .store { border-color: var(--color-ink); }
.stores--close .store small { color: var(--color-ink-2); }

.hero-visual { --front-h: min(72dvh, 660px); --side-h: calc(var(--front-h) * 0.85); position: relative; display: grid; place-items: center; min-height: min(80dvh, 740px); }
.shot {
  margin: 0; aspect-ratio: var(--shot-ratio); border-radius: var(--radius-card);
  filter: var(--shadow-paper);
}
.shot > img { border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 9%, transparent); outline-offset: -1px; object-position: top; }
[data-slot][data-kind="product"] > img { filter: none; }
/* Three phones fanned out: Explore, painting in front, Create. All share one grid cell. */
.hero-visual > .shot { grid-area: 1 / 1; }
.shot--front { position: relative; z-index: 3; height: var(--front-h); }
.shot--left, .shot--right { z-index: 2; height: var(--side-h); }
.shot--left { translate: -64% 6%; rotate: -6deg; }
.shot--right { translate: 64% 6%; rotate: 6deg; }
/* Behind the phones: a soft tile with a faint painting grid, and a few painted squares
   stepping off its corners, the Pixwell mark's language. Sized to the phones, not the column. */
.canvas {
  position: absolute; left: 50%; top: 50%; translate: -50% -48%; rotate: -4deg; z-index: 1;
  width: min(100%, calc(var(--front-h) * 1.2)); height: auto; overflow: visible; pointer-events: none;
}
.canvas .tile { fill: color-mix(in oklab, var(--color-accent) 42%, var(--color-paper)); }
.canvas .grid-line { fill: none; stroke: color-mix(in oklab, var(--color-accent-deep) 22%, transparent); stroke-width: 1.5; }
.canvas .px-a { fill: var(--color-accent); }
.canvas .px-b { fill: var(--color-accent-2); }
.canvas .px-c { fill: var(--color-accent-3); }
.canvas .px-m { fill: var(--color-mint); }

/* ---------------------------------------------------------------- signature: photo to pattern */
.turn { padding-block: var(--section-gap-s) var(--section-gap); }
.turn-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.turn-head .lead { color: var(--color-ink-2); }
.turn-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: center; }
.sheet { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-card); filter: var(--shadow-paper); }
.sheet > img { border-radius: var(--radius-card); }
.sheet--photo { rotate: -2deg; }
.sheet--pattern { display: grid; place-items: center; padding: var(--space-lg); background: var(--grain), var(--fibre), var(--color-card); rotate: 1.5deg; }
.sheet--pattern .pixels { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.turn-facts { margin: 0; display: grid; gap: 0; }
.turn-facts div { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.turn-facts div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.turn-facts dt { font-weight: 600; font-size: var(--text-title); }
.turn-facts dd { margin: var(--space-2xs) 0 0; color: var(--color-muted); }

/* ---------------------------------------------------------------- Feature Stack */
.stack { padding-block: var(--section-gap); background: var(--grain), var(--fibre), var(--color-paper-2); clip-path: var(--tear-top); }
.stack-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.stack-pane { position: sticky; top: calc(var(--nav-h) + var(--space-2xl)); display: grid; gap: var(--space-xl); }
.stack-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); counter-reset: step; }
.stack-steps li { counter-increment: step; }
.stack-steps a {
  display: flex; align-items: baseline; gap: var(--space-md);
  padding: var(--space-sm) 0; color: var(--color-muted); text-decoration: none; font-size: var(--text-title); font-weight: 600; line-height: 1.25;
  transition: color var(--dur-short) var(--ease-out);
}
.stack-steps a::before { content: counter(step); min-width: 1.6em; font-size: var(--text-md); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.stack-steps a:hover, .stack-steps a[aria-current="step"] { color: var(--color-ink); }
.stack-steps a[aria-current="step"]::before { color: var(--color-mint-deep); }
.stack-steps a:active { color: var(--color-ink-2); }
.stack-shots { display: grid; gap: var(--space-4xl); justify-items: center; padding-top: var(--space-xl); }
.moment { margin: 0; display: grid; gap: var(--space-xl); justify-items: center; }
.moment > .shot { position: relative; }
.moment::before {
  content: ""; grid-area: 1 / 1; align-self: center; justify-self: center;
  width: calc(min(84dvh, 740px) * 780 / 1688 + 2 * var(--space-3xl)); height: calc(100% + var(--space-2xl));
  background: var(--grain), var(--fibre), var(--color-sugar);
  border-radius: var(--radius-card); clip-path: var(--tear-top); filter: var(--shadow-paper);
}
.moment:nth-child(even)::before { background: var(--grain), var(--fibre), var(--color-card); rotate: 2deg; }
.moment:nth-child(odd)::before { rotate: -2.5deg; }
.moment > .shot, .moment > figcaption { grid-column: 1; }
.moment > .shot { grid-row: 1; z-index: var(--z-raised); }
.moment > figcaption { grid-row: 2; position: relative; z-index: var(--z-raised); margin-top: var(--space-lg); }
.moment .shot { height: min(84dvh, 740px); }
.moment:nth-child(odd) .shot { rotate: -1.5deg; }
.moment:nth-child(even) .shot { rotate: 1.5deg; }
.moment figcaption { max-width: 34ch; text-align: center; color: var(--color-ink-2); }

/* ---------------------------------------------------------------- try it: a real pattern, card stock */
.try { padding-block: var(--section-gap-s) var(--section-gap); }
.try-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: center; }
.try-head { display: grid; gap: var(--space-lg); }
.try-head .lead { color: var(--color-ink-2); }
.try-status { font-weight: 600; }
.try-status mark { background: color-mix(in oklab, var(--color-accent) 55%, transparent); color: inherit; padding-inline: var(--space-2xs); box-decoration-break: clone; }
.board-wrap { display: grid; gap: var(--space-xl); justify-items: center; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-card); filter: var(--shadow-paper); }
.board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); width: min(100%, 560px); aspect-ratio: 14 / 13; gap: 0; touch-action: none; user-select: none; }
.cell {
  display: grid; place-items: center; min-width: 0; padding: 0; border: 0;
  background: color-mix(in oklab, var(--color-paper-3) 60%, var(--color-card));
  box-shadow: inset 0 0 0 0.5px color-mix(in oklab, var(--color-ink) 14%, transparent);
  color: var(--color-muted); font-size: clamp(0.625rem, 1.3vw, 0.9375rem); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.cell.is-bg { background: transparent; box-shadow: none; cursor: default; }
.cell.is-match { background: color-mix(in oklab, var(--color-accent-2) 16%, var(--color-card)); color: var(--color-ink); }
.cell:hover:not(.is-done) { background: color-mix(in oklab, var(--color-accent-2) 26%, var(--color-card)); }
.cell:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; position: relative; z-index: var(--z-raised); }
.cell:active { background: color-mix(in oklab, var(--color-accent-2) 34%, var(--color-card)); }
.cell:disabled { cursor: default; }
.cell.is-done { color: transparent; box-shadow: none; }
.cell.is-done[data-n="1"] { background: var(--pal-1); } .cell.is-done[data-n="2"] { background: var(--pal-2); } .cell.is-done[data-n="3"] { background: var(--pal-3); }
.cell.is-done[data-n="4"] { background: var(--pal-4); } .cell.is-done[data-n="5"] { background: var(--pal-5); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
.chip {
  --edge: 5px;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--radius-stock);
  background: var(--grain), var(--chip); cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ink) 14%, transparent), 0 var(--edge) 0 0 color-mix(in oklab, var(--chip) 70%, var(--color-ink));
  transition: translate var(--dur-micro) var(--ease-snap), box-shadow var(--dur-micro) var(--ease-snap);
}
.chip span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); font-weight: 600; }
.chip:hover { --edge: 7px; translate: 0 -2px; }
.chip:active, .chip[aria-checked="true"] { --edge: 1px; translate: 0 4px; }
.chip[aria-checked="true"] { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.chip:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.chip:disabled { opacity: 0.55; cursor: not-allowed; }
.chip.is-complete span { background: var(--color-mint-deep); color: var(--color-card); }

/* ---------------------------------------------------------------- rows */
.rows { padding-block: var(--section-gap-s) var(--section-gap); }
.rows-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.rows-list { margin: 0; }
.rows-list div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.rows-list div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows-list dt { font-size: var(--text-title); font-weight: 600; }
.rows-list dd { margin: 0; color: var(--color-ink-2); }

/* ---------------------------------------------------------------- close: the pear field */
.close { padding-block: var(--section-gap-s) 0; background: var(--grain), var(--fibre), var(--color-accent); clip-path: var(--tear-top); overflow: hidden; }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; }
.close-grid > div { display: grid; gap: var(--space-xl); justify-items: start; align-self: center; padding-bottom: var(--space-2xl); }
.close h2 { color: var(--color-accent-ink); max-width: 12ch; }
.shot--close { height: min(70dvh, 620px); margin-bottom: calc(-1 * var(--space-3xl)); rotate: 3deg; justify-self: center; }

/* ---------------------------------------------------------------- footer: mast */
.foot { padding-block: var(--space-4xl) var(--space-2xl); background: var(--color-ink); color: var(--color-paper); }
.foot-mark { margin: 0 0 var(--space-xl); font-size: clamp(4.5rem, 14vw, 12rem); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 0.9; color: var(--color-accent); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 22%, transparent); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot a { color: var(--color-paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a:active { color: var(--color-accent); }
.foot-legal { color: color-mix(in oklab, var(--color-paper) 75%, var(--color-ink)); }
.foot-credits { margin-top: var(--space-lg); font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 75%, var(--color-ink)); }
.foot-credits a { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .hero-grid, .turn-head, .stack-grid, .try-grid, .rows-grid, .close-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-visual { min-height: 0; padding-block: var(--space-lg) var(--space-xl); }
  .hero-visual { --front-h: min(58dvh, 440px); }
  .shot--left { translate: -52% 7%; }
  .shot--right { translate: 52% 7%; }
  .hero .stores { display: none; }
  .hero-copy h1 { max-width: none; font-size: clamp(2rem, 8.6vw, 3rem); }
  .turn-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .turn-facts { grid-column: 1 / -1; }
  .stack-pane { position: static; }
  .stack-steps { display: none; }
  .stack-shots { gap: var(--space-3xl); }
  .moment .shot { height: min(72dvh, 560px); }
  .moment::before { width: calc(min(72dvh, 560px) * 780 / 1688 + 2 * var(--space-xl)); }
  .rows-list div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .shot--close { height: min(64dvh, 480px); }
  .nav-link { display: none; }
}
@media (max-width: 40rem) {
  .canvas { display: none; } /* the fan fills a phone screen edge to edge; the tile would only show as slivers */
  .shot--left { translate: -46% 7%; }
  .shot--right { translate: 46% 7%; }
  .board-wrap { padding: var(--space-md); }
  .chip { width: 48px; height: 48px; }
  .chips { gap: var(--space-xs); flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .cell, .stack-steps a { transition: none; }
  .btn:hover, .btn:active, .chip:hover, .chip:active, .chip[aria-checked="true"] { translate: none; }
}

/* ---------------------------------------------------------------- legal pages (terms, privacy) */
.legal { padding-block: var(--space-3xl) var(--section-gap-s); }
.legal-head { display: grid; gap: var(--space-md); padding-bottom: var(--space-xl); margin-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.legal-head h1 { font-size: var(--text-display-s); }
.legal-date { color: var(--color-muted); font-size: var(--text-sm); }
.legal-body { max-width: 68ch; }
.legal-body h2 { margin: var(--space-2xl) 0 var(--space-md); font-size: var(--text-2xl); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: var(--space-xl) 0 var(--space-xs); font-size: var(--text-lg); }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 var(--space-md); }
.legal-body ul, .legal-body ol { padding-left: var(--space-lg); }
.legal-body li { margin-bottom: var(--space-xs); }
.legal-body li::marker { color: var(--color-accent-deep); }
.legal-body a { color: var(--color-accent-2); }
.legal-body a:hover { color: var(--color-ink); }
.legal-body a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--space-2xs); }
.legal-summary { margin-bottom: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-card); box-shadow: inset 0 0 0 1px var(--color-rule), var(--shadow-card); }
.legal-summary h2 { margin: 0 0 var(--space-sm); font-size: var(--text-title); }
.legal-summary ul { margin: 0; }
.legal-summary li:last-child { margin-bottom: 0; }
.legal-body a.legal-contact { display: inline-block; padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-xs); background: color-mix(in oklab, var(--color-accent) 45%, var(--color-card)); color: var(--color-ink); font-weight: 600; text-decoration: none; }
.legal-body a.legal-contact:hover { text-decoration: underline; }
@media (max-width: 40rem) { .legal { padding-top: var(--space-xl); } .legal-summary { padding: var(--space-md); } }
