/* Hallmark · shape: Counter-led product page (Marquee Hero swapped: the product needs showing at once) · genre: playful · theme: Hum (deal 1/3, seed brain-camp-free-thinking-skills-8acf·f90ce2fb·2026-11-17·r0) · job: try · draw: 2c4fba
 * hero: Counter · nav: edge-aligned (masthead swapped: the genre file says it fights playful) · footer: colophon block · imagery: the product (real Brain Camp screenshots) · signature: the real camp map as a torn sheet of cut paper, the one big thing on the first screen
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · answered 49: the three tabs are card-stock tiles holding a title and one line; the line hides under 60rem · answered F4: .btn is the card-stock secondary, not a filled primary */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: the grown-ups facts are words, so they sit as a ruled list beside one big head rather than as tiles */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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='.012 .09' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --torn-bottom: polygon(0 0, 100% 0, 100.0% calc(100% - 3.4px), 97.5% calc(100% - 5.6px), 95.0% calc(100% - 2.8px), 92.5% calc(100% - 5.9px), 90.0% calc(100% - 3.8px), 87.5% calc(100% - 4.1px), 85.0% calc(100% - 6.7px), 82.5% calc(100% - 4.5px), 80.0% calc(100% - 7.1px), 77.5% calc(100% - 5.4px), 75.0% calc(100% - 7.3px), 72.5% calc(100% - 8.3px), 70.0% calc(100% - 6.0px), 67.5% calc(100% - 2.4px), 65.0% calc(100% - 4.8px), 62.5% calc(100% - 5.8px), 60.0% calc(100% - 3.1px), 57.5% calc(100% - 5.0px), 55.0% calc(100% - 4.3px), 52.5% calc(100% - 2.4px), 50.0% calc(100% - 6.1px), 47.5% calc(100% - 3.4px), 45.0% calc(100% - 4.1px), 42.5% calc(100% - 2.5px), 40.0% calc(100% - 5.2px), 37.5% calc(100% - 6.8px), 35.0% calc(100% - 6.2px), 32.5% calc(100% - 2.2px), 30.0% calc(100% - 4.5px), 27.5% calc(100% - 2.7px), 25.0% calc(100% - 2.7px), 22.5% calc(100% - 2.6px), 20.0% calc(100% - 2.0px), 17.5% calc(100% - 5.5px), 15.0% calc(100% - 7.5px), 12.5% calc(100% - 7.4px), 10.0% calc(100% - 3.5px), 7.5% calc(100% - 3.4px), 5.0% calc(100% - 4.3px), 2.5% calc(100% - 2.6px), 0.0% calc(100% - 2.7px));
  --torn-top: polygon(0.0% 2.4px, 2.5% 2.3px, 5.0% 5.6px, 7.5% 3.7px, 10.0% 3.0px, 12.5% 3.3px, 15.0% 3.9px, 17.5% 2.9px, 20.0% 2.5px, 22.5% 4.7px, 25.0% 3.8px, 27.5% 4.6px, 30.0% 6.7px, 32.5% 2.1px, 35.0% 3.5px, 37.5% 4.9px, 40.0% 4.3px, 42.5% 7.0px, 45.0% 6.0px, 47.5% 5.1px, 50.0% 3.0px, 52.5% 6.5px, 55.0% 4.2px, 57.5% 6.8px, 60.0% 7.2px, 62.5% 6.9px, 65.0% 8.5px, 67.5% 5.9px, 70.0% 4.6px, 72.5% 3.3px, 75.0% 2.9px, 77.5% 3.6px, 80.0% 2.9px, 82.5% 3.8px, 85.0% 2.6px, 87.5% 3.4px, 90.0% 5.2px, 92.5% 7.8px, 95.0% 7.9px, 97.5% 7.0px, 100.0% 3.2px, 100% 100%, 0 100%);
  --torn-both: polygon(0.0% 5.4px, 2.5% 7.5px, 5.0% 8.2px, 7.5% 2.0px, 10.0% 2.8px, 12.5% 2.2px, 15.0% 2.1px, 17.5% 4.9px, 20.0% 6.1px, 22.5% 4.7px, 25.0% 5.7px, 27.5% 4.4px, 30.0% 7.2px, 32.5% 8.2px, 35.0% 3.7px, 37.5% 3.6px, 40.0% 2.8px, 42.5% 3.5px, 45.0% 2.3px, 47.5% 5.8px, 50.0% 2.2px, 52.5% 2.8px, 55.0% 3.7px, 57.5% 3.9px, 60.0% 6.9px, 62.5% 3.6px, 65.0% 5.0px, 67.5% 2.6px, 70.0% 2.9px, 72.5% 3.8px, 75.0% 2.5px, 77.5% 5.6px, 80.0% 4.2px, 82.5% 2.5px, 85.0% 3.0px, 87.5% 2.1px, 90.0% 3.2px, 92.5% 3.9px, 95.0% 5.6px, 97.5% 5.4px, 100.0% 2.7px, 100.0% calc(100% - 3.4px), 97.5% calc(100% - 5.6px), 95.0% calc(100% - 2.8px), 92.5% calc(100% - 5.9px), 90.0% calc(100% - 3.8px), 87.5% calc(100% - 4.1px), 85.0% calc(100% - 6.7px), 82.5% calc(100% - 4.5px), 80.0% calc(100% - 7.1px), 77.5% calc(100% - 5.4px), 75.0% calc(100% - 7.3px), 72.5% calc(100% - 8.3px), 70.0% calc(100% - 6.0px), 67.5% calc(100% - 2.4px), 65.0% calc(100% - 4.8px), 62.5% calc(100% - 5.8px), 60.0% calc(100% - 3.1px), 57.5% calc(100% - 5.0px), 55.0% calc(100% - 4.3px), 52.5% calc(100% - 2.4px), 50.0% calc(100% - 6.1px), 47.5% calc(100% - 3.4px), 45.0% calc(100% - 4.1px), 42.5% calc(100% - 2.5px), 40.0% calc(100% - 5.2px), 37.5% calc(100% - 6.8px), 35.0% calc(100% - 6.2px), 32.5% calc(100% - 2.2px), 30.0% calc(100% - 4.5px), 27.5% calc(100% - 2.7px), 25.0% calc(100% - 2.7px), 22.5% calc(100% - 2.6px), 20.0% calc(100% - 2.0px), 17.5% calc(100% - 5.5px), 15.0% calc(100% - 7.5px), 12.5% calc(100% - 7.4px), 10.0% calc(100% - 3.5px), 7.5% calc(100% - 3.4px), 5.0% calc(100% - 4.3px), 2.5% calc(100% - 2.6px), 0.0% calc(100% - 2.7px));
  --radius-kid: 30px;
}

:root { --container: 1240px; }
body { background: var(--grain), var(--fibre), var(--color-paper); font-weight: 500; font-size: 1.0625rem; }
a { color: var(--color-accent-2); }
a:hover { text-decoration-thickness: 2px; }
mark { background: color-mix(in oklab, var(--color-accent) 55%, transparent); color: inherit; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.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 that presses down ---------- */
.btn { --edge: 5px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 54px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-stock); font: 600 var(--text-md)/1 var(--font-body); color: var(--color-ink); text-decoration: none; white-space: nowrap; cursor: pointer; 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--primary { min-height: 60px; padding: 0 var(--space-xl); font-size: var(--text-lg); 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: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; transition: none; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; translate: none; }
.btn[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { translate: none; transition: none; } }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 76px; }
.wordmark { font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__link { color: var(--color-ink-2); text-decoration: none; padding: var(--space-xs) 0; }
.nav__link:hover { color: var(--color-ink); text-decoration: underline; }
.nav__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.nav .btn { min-height: 46px; padding: 0 var(--space-md); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; min-height: calc(100dvh - 76px); max-height: 900px; padding-block: var(--space-xl) var(--space-2xl); }
.hero h1 { font-size: clamp(2.75rem, 4.4vw + 0.6rem, 4.75rem); line-height: 1.02; max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); }
.hero__note { font-size: var(--text-sm); color: var(--color-muted); }

/* A screen of the real product, set as a cut sheet of paper. */
.sheet { position: relative; margin: 0; filter: var(--shadow-paper); }
.sheet__paper { padding: var(--space-sm) var(--space-sm) var(--space-lg); border-radius: var(--radius-kid) var(--radius-kid) 0 0; background: var(--grain), var(--fibre), var(--color-card); clip-path: var(--torn-bottom); }
.sheet img { width: 100%; height: auto; border-radius: calc(var(--radius-kid) - 10px); }
.sheet--tilt { rotate: -1.2deg; }
.sheet--tilt-r { rotate: 1deg; }
.sheet__cap { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); filter: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap-s); }
.section__head { display: grid; gap: var(--space-md); max-width: 46rem; margin-bottom: var(--space-xl); }
.section__head p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }

/* Question types: a switcher of real screens */
.types { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.tabs { display: grid; gap: var(--space-sm); }
.tab { --edge: 5px; display: grid; gap: var(--space-2xs); width: 100%; text-align: left; padding: var(--space-md) var(--space-lg); border: 0; border-radius: var(--radius-stock); background: var(--grain), var(--fibre), var(--color-card); color: var(--color-ink); cursor: pointer; 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), background-color var(--dur-short) var(--ease-snap); }
.tab b { font: 600 var(--text-title)/1.15 var(--font-display); letter-spacing: var(--tracking-display); }
.tab span { color: var(--color-muted); }
.tab:hover { --edge: 7px; translate: 0 -2px; }
.tab:active { --edge: 1px; translate: 0 4px; }
.tab:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.tab[aria-selected="true"] { background: var(--grain), var(--fibre), var(--color-ink); color: var(--color-paper); box-shadow: 0 var(--edge) 0 0 var(--color-ink-2); }
.tab[aria-selected="true"] span { color: color-mix(in oklab, var(--color-paper) 78%, transparent); }
.panels { padding: var(--space-xl); border-radius: var(--radius-kid); background: var(--grain), var(--fibre), var(--color-sugar); }
.panel .sheet { max-width: 640px; margin-inline: auto; }
.panel .sheet img { max-height: 620px; width: auto; margin-inline: auto; }
.js .tabs-static { display: none; }
@media (prefers-reduced-motion: reduce) { .tab, .tab:hover, .tab:active { translate: none; transition: none; } }

/* Figures on the pear field */
.pear { position: relative; padding-block: var(--section-gap-s); background: var(--grain), var(--fibre), var(--color-accent); clip-path: var(--torn-both); }
.pear h2 { max-width: 18ch; }
.pear__lead { margin-top: var(--space-md); max-width: 44ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; }
.figures div { padding-top: var(--space-md); border-top: 2px solid color-mix(in oklab, var(--color-ink) 70%, transparent); }
.figures dt { font: 600 clamp(3.5rem, 6vw, 5.5rem)/1 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.figures dd { margin: var(--space-sm) 0 0; font-size: var(--text-lg); max-width: 22ch; }

/* For grown-ups */
.grown { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.grown h2 { position: sticky; top: var(--space-2xl); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.facts li:last-child { border-bottom: 1px solid var(--color-rule); }
.facts b { font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.facts span { color: var(--color-ink-2); max-width: 56ch; }

/* Where it runs: card-stock steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: var(--space-sm); min-height: 220px; padding: var(--space-xl) 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), 0 5px 0 0 var(--color-edge); }
.steps li::before { content: counter(step); font: 600 var(--text-3xl)/1 var(--font-display); color: var(--color-mint-deep); }
.steps b { font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.steps span { color: var(--color-ink-2); }

/* Close */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.close p { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 34ch; }
.close .btn { margin-top: var(--space-xl); }
.close .sheet { max-width: 560px; justify-self: end; }
.close .sheet img { max-height: 560px; width: auto; margin-inline: auto; }

/* Footer: a colophon block */
.footer { margin-top: var(--section-gap-s); padding-block: var(--space-3xl) var(--space-2xl); background: var(--grain), var(--fibre), var(--color-ink); color: var(--color-paper); clip-path: var(--torn-top); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); }
.footer .wordmark { color: var(--color-paper); font-size: var(--text-2xl); }
.footer p { margin-top: var(--space-md); max-width: 60ch; color: color-mix(in oklab, var(--color-paper) 82%, transparent); }
.footer a { color: var(--color-paper); }
.footer a:focus-visible { outline-color: var(--color-accent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); align-content: start; }
.footer small { display: block; margin-top: var(--space-2xl); font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 66%, transparent); }

/* ---------- Narrow screens ---------- */
@media (max-width: 60rem) {
  .hero, .types, .grown, .close, .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; max-height: none; padding-block: var(--space-lg) var(--space-xl); }
  .grown h2 { position: static; }
  .figures, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { min-height: 0; }
  .close .sheet { justify-self: center; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab { padding: var(--space-sm) var(--space-md); }
  .panels { padding: var(--space-md); }
  .tab span { display: none; }
  .tab b { font-size: var(--text-md); }
}
@media (max-width: 40rem) {
  .nav__link { display: none; }
  .tab b { font-size: var(--text-sm); }
}
