/* Hallmark · shape: Stage · genre: playful · theme: Hum (by request; LeadLab DESIGN.md is the locked system) · job: try · draw: manual (fast mode)
 * hero: Stage, head left, the puzzle sheet right · nav: edge-aligned, a large logo and wordmark, one action · footer: a mast, wordmark beside the links and the e-mail · imagery: the product (a real Learn puzzle built in HTML, five app screenshots) · signature: a real study deal with its real results
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (two screenshot rows), the Learn row is two screens beside its text, not a repeat of the first */
/* Hallmark · waive 85 · three app screens in one row · the category's own proof is the product's screens, shown large, not icon tiles */
@import url("./tokens.css");
@import url("./base.css");

/* LeadLab: Chillax, de kaartkleuren, de zandkleur van de app en de papierkorrel, als tokens */
@font-face { font-family: "Chillax"; font-weight: 500; font-display: swap; src: url("fonts/Chillax-Medium.woff2") format("woff2"); }
@font-face { font-family: "Chillax"; font-weight: 600; font-display: swap; src: url("fonts/Chillax-Semibold.woff2") format("woff2"); }
:root {
  --suit-s: oklch(20% 0.014 255); --suit-h: oklch(56% 0.2 24); --suit-d: oklch(55% 0.165 48); --suit-c: oklch(48% 0.12 155);
  --color-seat: oklch(89% 0.045 82); --color-seat-edge: oklch(84% 0.065 74);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body { margin: 0; background: var(--grain), var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 1.5; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.04; margin: 0; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); margin: var(--space-md) 0 0; max-width: 32ch; }
.section-sub { color: var(--color-muted); margin: var(--space-xs) 0 0; max-width: 60ch; }
a { color: var(--color-accent-2); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus-visible { left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); background: var(--color-card); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Kaartsymbolen: eigen SVG's (geen emoji), in de vier kaartkleuren */
.suit { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.08em; vertical-align: -0.06em; fill: currentColor; }
.s { color: var(--suit-s); } .h { color: var(--suit-h); } .d { color: var(--suit-d); } .c { color: var(--suit-c); }

/* Knoppen: karton dat je indrukt; zand (de daily-knop van de app) is de actie */
.btn { --edge: 5px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-stock); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--color-ink); transition: translate var(--dur-short) var(--ease-snap), box-shadow var(--dur-short) var(--ease-snap); }
.btn-cta { background: var(--grain), var(--color-seat); box-shadow: 0 var(--edge) 0 0 var(--color-seat-edge); }
.btn:hover { --edge: 7px; translate: 0 -2px; }
.btn:active { --edge: 1px; translate: 0 4px; }
.text-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-xs); color: var(--color-accent-2); font-weight: 600; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { translate: none; } }

/* Navigatie: een groot logo met de naam (Bart, 2026-11-25); blijft bovenin staan (Bart, 2026-11-28) */
html { scroll-padding-top: 112px; }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding: var(--space-sm) 0; background: var(--grain), var(--color-paper); box-shadow: 0 1px 0 var(--color-rule); }
.nav-row { display: flex; align-items: center; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; color: var(--color-ink); text-decoration: none; }
.brand img { width: 60px; height: 60px; }
.nav nav { display: flex; gap: var(--space-md); margin-left: auto; }
.nav nav a, .foot nav a { color: var(--color-ink-2); text-decoration: none; font-size: 16px; }
.nav nav a:hover, .foot nav a:hover { color: var(--color-accent-2); }
.nav nav a[aria-current="page"] { color: var(--color-ink); font-weight: 600; }
.nav-cta { min-height: 44px; font-size: 15px; padding: 0 var(--space-md); }
@media (max-width: 860px) { .nav nav { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 420px) { .brand { font-size: 28px; } .brand img { width: 48px; height: 48px; } }

/* Hero: kop links, de puzzel als vel papier rechts */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--space-2xl); align-items: center; padding: var(--space-xl) 0 var(--section-gap); }
/* Kop op één regel (Bart, 2026-11-28): de lettergrootte volgt de breedte van de tekstkolom */
.hero-text { container-type: inline-size; }
.hero h1 { font-size: min(var(--text-display), 10.5cqi); white-space: nowrap; }
.hero .lead { max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-top: var(--space-md); } }

.puzzle { margin: 0; display: grid; gap: var(--space-sm); }
.sheet { border-radius: var(--radius-card); padding: var(--space-md); background: var(--grain), var(--color-card); box-shadow: var(--shadow-card); rotate: -1.2deg; }
.contract { display: flex; align-items: baseline; gap: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.contract b { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.contract span { color: var(--color-muted); font-size: 15px; }

/* Tabellen zoals in de app: zandkop, dunne lijnen, ronde hoeken */
.bids, .results { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--color-rule); border-radius: 12px; font-variant-numeric: tabular-nums; }
.bids { margin-top: var(--space-xs); table-layout: fixed; text-align: center; }
.bids th, .bids td, .results th, .results td { padding: var(--space-xs); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.bids tr > :last-child, .results tr > :last-child { border-right: 0; }
.bids tbody tr:last-child > *, .results tbody tr:last-child > * { border-bottom: 0; }
.bids th, .results th { background: var(--grain), var(--color-seat); font-weight: 500; font-size: 14px; }
.bids th:first-child, .results th:first-child { border-top-left-radius: 11px; }
.bids th:last-child, .results th:last-child { border-top-right-radius: 11px; }
.bids tbody tr:last-child td:first-child, .results tbody tr:last-child td:first-child { border-bottom-left-radius: 11px; }
.bids tbody tr:last-child td:last-child, .results tbody tr:last-child td:last-child { border-bottom-right-radius: 11px; }
.bids th.you { font-weight: 600; }
.bids td { font-weight: 600; }
.hand { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2xs) var(--space-md); margin: var(--space-sm) 0 0; font-size: 20px; font-weight: 600; }
.results { background: var(--grain), var(--color-card); box-shadow: var(--shadow-card); font-size: 15px; }
.results caption { caption-side: top; text-align: left; padding: 0 var(--space-3xs) var(--space-xs); font-size: 15px; color: var(--color-muted); }
.results td:first-child, .results th:first-child { text-align: left; }
.results td, .results th { text-align: right; }
.results tr.best td { background: color-mix(in oklab, var(--color-mint) 32%, var(--color-card)); font-weight: 600; }

/* Schermen van de app */
/* Om en om licht en iets donkerder zand (Bart, 2026-11-28): hero licht, deze band donker, Practice licht, Learn donker */
.how { padding: var(--section-gap) 0; background: var(--grain), var(--color-paper-2); }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: space-between; gap: var(--gap-columns); margin-top: var(--space-xl); }
.screens figure, .learn-shots figure { margin: 0; }
/* De uitleg als kartonnen kaartje op het scherm, iets scheef. Plek, breedte en draaiing door Bart gekozen met
   site/tools/caption_editor.js (2026-11-28): left/top/width in % van het screenshot, rotate in graden. */
.screens figure { position: relative; }
.screens figcaption { position: absolute; z-index: var(--z-base); left: var(--x); top: var(--y); width: var(--w); box-sizing: border-box; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--grain), color-mix(in oklab, var(--color-mint) 22%, var(--color-card)); box-shadow: 0 4px 0 0 color-mix(in oklab, var(--color-mint) 70%, var(--color-card)), var(--shadow-card); rotate: var(--r); }
.screens figure:nth-child(1) figcaption { --x: 36.5%; --y: 53.9%; --w: 73%; --r: -6deg; }
.screens figure:nth-child(2) figcaption { --x: 3.8%; --y: 59.4%; --w: 93.8%; --r: 1.5deg; }
.screens figure:nth-child(3) figcaption { --x: -0.7%; --y: 69.2%; --w: 93.8%; --r: -1deg; }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--color-rule), var(--shadow-card); background: var(--color-paper-2); }
figcaption { color: var(--color-ink-2); font-size: 16px; }
figcaption b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--color-ink); }
@media (max-width: 860px) { .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .screens { grid-template-columns: minmax(0, 260px); justify-content: center; } }

/* Practice: twee schermen links, de tekst rechts (gespiegeld ten opzichte van Learn) */
.practice { padding: var(--section-gap) 0; }
.practice-row { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.practice .learn-shots { order: -1; }
@media (max-width: 860px) { .practice-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .practice .learn-shots { order: 0; max-width: 560px; } }

/* Learn: tekst naast twee schermen; alleen met een account */
.learn { padding: var(--section-gap) 0; background: var(--grain), var(--color-paper-2); }
.learn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--space-2xl); align-items: center; }
.learn-text p { margin: var(--space-md) 0 0; color: var(--color-ink-2); max-width: 46ch; }
.learn-text ul { margin: var(--space-md) 0 0; padding-left: 1.1em; color: var(--color-ink-2); }
.learn-text li { margin-bottom: var(--space-2xs); }
.learn-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
@media (max-width: 860px) { .learn-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .learn-shots { max-width: 560px; } }

/* Vragen */
.faq { padding: var(--section-gap) 0; }
.faq > * { max-width: 760px; }
.faq h2 { margin-bottom: var(--space-lg); }
details { border-top: 1px solid var(--color-rule); padding: var(--space-sm) 0; }
details:last-of-type { border-bottom: 1px solid var(--color-rule); }
/* Uitklapknop rechts, binnen de rand (Bart, 2026-11-28): een plusje in een mintrondje dat bij openen een kruisje wordt */
summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 20px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: linear-gradient(var(--color-ink), var(--color-ink)) center / 12px 2px no-repeat,
              linear-gradient(var(--color-ink), var(--color-ink)) center / 2px 12px no-repeat,
              color-mix(in oklab, var(--color-mint) 30%, var(--color-card));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-mint) 70%, var(--color-card));
  transition: rotate var(--dur-short) var(--ease-snap); }
summary:hover::after { background-color: color-mix(in oklab, var(--color-mint) 55%, var(--color-card)); }
details[open] > summary::after { rotate: 45deg; }
details p, details li { color: var(--color-ink-2); max-width: 64ch; }
details p { margin: var(--space-xs) 0 0; }
details ul, details ol { margin: var(--space-xs) 0 0; padding-left: 1.2em; }
details li { margin-bottom: var(--space-2xs); }
.more { margin-top: var(--space-lg); }

/* FAQ-pagina: een leespagina */
.page-head { padding: var(--space-xl) 0 var(--space-lg); }
.page-head .lead { max-width: 52ch; }
.faq-page { padding-top: 0; }
/* Groepskop op een zandstrook, zoals de kop van de tabellen in de app: duidelijk iets anders dan een vraag (Bart, 2026-11-28) */
.faq-group { margin-top: var(--space-2xl); }
.faq-group:first-child { margin-top: var(--space-md); }
.faq-group h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: var(--space-xs); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--grain), var(--color-seat); }
.faq-group details:first-of-type { border-top: 0; }

/* Slot: dezelfde actie nog een keer, op een peerveld */
.close { background: var(--grain), var(--color-accent); padding: var(--space-2xl) 0; }
.close-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.close h2 { color: var(--color-accent-ink); }
.close .btn-cta { box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); }

.actions[hidden] { display: none; }

/* Op telefoon en tablet (waar het kopmenu verdwijnt) staat het voettekstmenu vast onderin, het e-mailadres
   erboven in de voettekst (Bart, 2026-11-28). Op desktop staat hetzelfde menu al vast in de kop. */
@media (max-width: 860px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .foot nav.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-nav); display: flex; justify-content: space-around; gap: 0;
    padding: 0 var(--space-2xs) env(safe-area-inset-bottom); background: var(--grain), var(--color-paper); box-shadow: 0 -1px 0 var(--color-rule); }
  .foot nav.dock a { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--space-2xs); font-size: 15px; color: var(--color-ink); font-weight: 600; }
}
.foot { padding: var(--space-xl) 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.foot .brand { font-size: 24px; }
.foot .brand img { width: 40px; height: 40px; }
.foot-mail { color: var(--color-muted); font-size: 16px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin: 0; }
