@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --surfaceMuted: #FBF3F1;
  --textPrimary: #28282E;
  --textSecondary: #55555E;
  --brand: #F68067;
  --onBrand: #28282E;
  --accentText: #A33322;
  --action: #28282E;
  --onAction: #FFFFFF;
  --actionPressed: #45454D;
  --secondary: #E2C5FC;
  --onSecondary: #28282E;
  --lilac: #EDD8FD;
  --onLilac: #4B2F73;
  --butter: #FDDF81;
  --onButter: #5A4300;
  --border: #ECE3E1;
  --controlBorder: #75707A;
  --focus: #A33322;
  --success: #256246;
  --successSurface: #E3F0E5;
  --warning: #765018;
  --warningSurface: #FFF0C2;
  --error: #A12F3D;
  --errorSurface: #FCE5E8;
  --disabled: #EEEAEA;
  --onDisabled: #62606A;
  --progressTrack: #F1E6E4;
  --mint: #FFF1C2;
  --onMint: #5A4300;
  --backgroundTop: #FFFFFF;
  --backgroundBottom: #FFF7F5;
  --backgroundGlow: #F7EFFE;
  --hero: #28282E;
  --onHero: #FFFFFF;
  --cream: #FBEDE4;
  --onCream: #28282E;
  /* Five sizes, far apart: display, heading, subheading, lead, body. */
  --display: clamp(3.4rem, 10vw, 6rem);
  --heading: clamp(2.2rem, 5vw, 3.5rem);
  --subheading: clamp(1.75rem, 3.2vw, 2.4rem);
  --lead: 1.25rem;
  --body: 1.0625rem;
  --field: 40px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1C1C21;
    --surface: #26262C;
    --surfaceMuted: #2F2F36;
    --textPrimary: #F7F3F2;
    --textSecondary: #C9C3C6;
    --brand: #E9705A;
    --onBrand: #1C1C21;
    --accentText: #FF9C86;
    --action: #F7F3F2;
    --onAction: #1C1C21;
    --actionPressed: #DDD6D4;
    --secondary: #3E3050;
    --onSecondary: #EEDDFD;
    --lilac: #3A2F4A;
    --onLilac: #EBDDFC;
    --butter: #463A1C;
    --onButter: #FFE59A;
    --border: #3E3B42;
    --controlBorder: #8E8893;
    --focus: #FF9C86;
    --success: #A3D6B1;
    --successSurface: #243E30;
    --warning: #F0CC80;
    --warningSurface: #45371F;
    --error: #FFB2BB;
    --errorSurface: #4A2933;
    --disabled: #34333A;
    --onDisabled: #C1BEC6;
    --progressTrack: #3E3B42;
    --mint: #463A1C;
    --onMint: #FFE59A;
    --backgroundTop: #1F1D24;
    --backgroundBottom: #241D20;
    --backgroundGlow: #2A2236;
    --hero: #2F2F36;
    --onHero: #F7F3F2;
    --cream: #332C2A;
    --onCream: #F7F3F2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--textPrimary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: var(--onBrand); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
/* The accent ring is too faint on the ink fields. */
.hero :focus-visible, .launch :focus-visible { outline-color: var(--onHero); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, .logo, .vakken li, .question, .faq summary {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 800; text-wrap: balance; margin: 0; }
h1 { font-size: var(--display); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: var(--heading); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-weight: 700; font-size: var(--subheading); line-height: 1.1; letter-spacing: -.03em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 76rem; margin-left: auto; margin-right: auto; padding: 0 max(20px, 5vw); }
.logo { font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; }
.logo b { color: var(--brand); }

/* Primary button: a pill with ›, like the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 28px; border-radius: 99px;
  background: var(--action); color: var(--onAction);
  font-size: var(--body); font-weight: 750; cursor: pointer;
  transition: transform .4s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); background: var(--actionPressed); }
.btn.brand { background: var(--brand); color: var(--onBrand); }
.btn.brand:active { background: var(--brand); filter: brightness(.94); }

/* Hero: the ink field from the app's Vandaag screen; the illustration spills over its edge. */
.hero { background: var(--hero); color: var(--onHero); border-radius: 0 0 var(--field) var(--field); overflow-x: clip; }
/* clip, not hidden: the illustration may still spill downwards. */
nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.navlinks { display: flex; gap: 32px; font-weight: 700; }
.navlinks a { padding: 10px 0; transition: color .2s; }
.navlinks a:hover { color: var(--brand); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 0 32px; min-height: min(78svh, 760px); padding-top: 8px; }
.hero-copy { padding-bottom: 120px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.6rem, 8.4vw, 7rem); line-height: .92; letter-spacing: -.045em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--brand); }
.lead { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.45; max-width: 26ch; margin: 32px 0 40px; opacity: .9; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
/* The friend link page: one short message on the hero field. */
.invite { padding-top: 24px; padding-bottom: 96px; }
.invite .lead { max-width: 36ch; margin: 24px 0 0; }
.invite .btn { margin-top: 40px; }
.hero-note { font-size: .9375rem; font-weight: 600; opacity: .7; }
/* The illustration is the hero: it bleeds past the column and over the field's lower edge. */
.hero-art { width: 122%; max-width: none; justify-self: start; margin: -40px -14% -180px -4%; position: relative; }

main { padding-top: 120px; }
section { margin-bottom: 140px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 96px; }
.intro { font-size: var(--lead); line-height: 1.55; color: var(--textSecondary); max-width: 40ch; }

/* Flat colour fields with an illustration bigger than its box. */
.band {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px;
  padding: 0 64px; border-radius: var(--field); margin-bottom: 120px; min-height: 420px;
}
.band-copy { padding: 64px 0; max-width: 30rem; }
.band-copy p { margin-top: 18px; font-size: var(--lead); line-height: 1.55; }
.band-art { width: 100%; max-width: 560px; margin: -80px auto; }
.band.lilac { background: var(--secondary); }
.band.lilac p { color: var(--onSecondary); }
.band.butter { background: var(--butter); }
.band.butter p { color: var(--onButter); }

.band.shelf { grid-template-columns: 1fr; gap: 0; padding-bottom: 56px; }
.vakken { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vakken li {
  background: var(--surface); border-radius: 28px; padding: 8px 20px 22px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
}
.vakken img { width: 100%; margin: -36px 0 4px; transition: transform .5s var(--ease); }
.vakken li:hover img { transform: translateY(-8px) rotate(-3deg); }

/* App screens in an iPhone drawn in CSS: dark body, rounded screen, Dynamic Island. */
.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.screens h3 { font-size: 1.5rem; margin-top: 32px; }
.screens p { margin-top: 10px; color: var(--textSecondary); }
.phone {
  position: relative; max-width: 280px; padding: 9px; border-radius: 50px;
  background: var(--hero); box-shadow: 0 0 0 1px var(--border), 0 30px 60px -30px rgba(40, 40, 46, .45);
}
.phone::before {
  content: ""; position: absolute; z-index: 1; top: 19px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 99px; background: #000;
}
.phone img { width: 100%; border-radius: 41px; }

/* For parents: the learner illustration beside the promise, then the four reasons. */
.parents { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 24px 64px; background: var(--lilac); color: var(--onLilac); border-radius: var(--field); padding: 0 64px; }
.parents > div { padding: 64px 0; }
.parents .intro { color: var(--onLilac); margin-top: 20px; }
.parents-art { width: 100%; margin: -40px auto; max-width: 420px; }
.proof { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proof li { background: var(--surfaceMuted); border-radius: 28px; padding: 28px; }
.proof h3 { font-size: 1.35rem; }
.proof p { margin-top: 10px; color: var(--textSecondary); }
.sources { margin-top: 24px; font-size: .9375rem; color: var(--textSecondary); max-width: 70ch; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--accentText); }

/* Practice is coral, like the app's flashcards. */
.try { background: var(--brand); color: var(--onBrand); padding: 120px 0; }
.try .intro { color: var(--onBrand); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.try-grid h2 { margin-bottom: 24px; }
.stack { position: relative; perspective: 1400px; }
.stack::before, .stack::after {
  content: ""; position: absolute; inset: 0; border-radius: 32px; background: var(--cream);
}
.stack::before { transform: rotate(-6deg) translateY(10px); opacity: .55; }
.stack::after { transform: rotate(3deg) translateY(4px); opacity: .8; }
.flash {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px;
  min-height: 400px; padding: 40px 32px 32px; border-radius: 32px; text-align: center;
  background: var(--cream); color: var(--onCream);
}
.badge { background: var(--butter); color: var(--onButter); font-weight: 750; padding: 6px 16px; border-radius: 99px; }
.question { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; flex: 1; display: flex; align-items: center; }
.flash details { width: 100%; }
.flash summary.btn { width: 100%; list-style: none; }
.flash summary::-webkit-details-marker { display: none; }
.flash .answer { margin-top: 20px; font-size: var(--lead); font-weight: 400; }
.flash details[open] .show, .flash details:not([open]) .hide { display: none; }

/* FAQ: filled rows instead of hairlines. */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surfaceMuted); border-radius: 24px; padding: 0 28px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; font-size: 1.2rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 500; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--textSecondary); padding-bottom: 26px; max-width: 60ch; }

.launch {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px;
  background: var(--hero); color: var(--onHero); border-radius: var(--field); padding: 0 64px;
}
.launch > div { padding: 80px 0; }
.launch p { margin-top: 20px; font-size: var(--lead); max-width: 34ch; opacity: .88; }
.launch .note { font-size: var(--body); opacity: .72; }
.launch-art { width: 100%; max-width: 460px; margin: -90px auto -40px; }
/* In dark mode the ink field matches the FAQ rows above it, so the launch turns lilac. */
@media (prefers-color-scheme: dark) {
  .launch { background: var(--secondary); color: var(--onSecondary); }
}

footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 48px; color: var(--textSecondary); }
footer .logo { color: var(--textPrimary); }

@media (max-width: 860px) {
  .hero-grid, .section-head, .band, .try-grid, .faq, .launch, .parents { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parents { padding: 0 28px; gap: 0; }
  .parents-art { margin: -48px auto 0; max-width: 300px; }
  .parents > div { padding: 8px 0 40px; }
  /* Phones side by side, swiped like an App Store gallery. */
  .screens { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(72%, 280px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(-1 * max(20px, 5vw)); padding-left: max(20px, 5vw); padding-right: max(20px, 5vw); scroll-padding: 0 max(20px, 5vw); }
  .screens li { scroll-snap-align: start; }
  .hero-grid { min-height: 0; padding-top: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3rem, 15vw, 6rem); }
  .lead { max-width: 24ch; margin: 24px 0 32px; }
  .hero-art { width: 112%; max-width: 640px; justify-self: center; margin: 8px 0 -72px; }
  main { padding-top: 88px; }
  section { margin-bottom: 96px; }
  .section-head { margin-bottom: 72px; }
  .band { padding: 0 28px; gap: 0; margin-bottom: 96px; min-height: 0; }
  .band-art { margin: -64px auto 0; max-width: 360px; }
  .band-copy { padding: 8px 0 40px; }
  .band.shelf { padding: 40px 28px 32px; }
  .vakken { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 56px; }
  .vakken li { font-size: 1.1rem; padding: 4px 14px 16px; border-radius: 22px; }
  .try { padding: 88px 0; }
  .faq { gap: 32px; }
  .launch { padding: 0 28px; gap: 0; }
  .launch > div { padding: 48px 0 0; }
  .launch-art { margin: 8px auto 0; max-width: 300px; }
}

@media (max-width: 520px) {
  .navlinks a:first-child { display: none; }
  .navlinks { gap: 0; }
  .flash { min-height: 340px; padding: 32px 22px 22px; }
  .faq details { padding: 0 20px; }
  .proof { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .vakken img, .faq summary::after { transition: none; }
}
