/* Dutch Studio's site: a landing site for the app (docs/roadmap.md, track 2), shaped like hodierna.app.
   Colours come from design/tokens.json (scripts/build-tokens.mjs writes the block below); fonts are self-hosted. */
/* tokens:start — generated from design/tokens.json by scripts/build-tokens.mjs; edit that file, not this block */
:root{
  --bg:#f5f6fb; --surface:#ffffff; --surface2:#eaedf7; --fg:#141a33; --muted:#5a6285; --line:#d9ddec;
  --line-deep:#c4cadf; --accent:#1f3c9e; --accent-fg:#ffffff; --accent-soft:#e3e8fa; --accent-deep:#13286e; --tulip:#cb2856;
  --tulip-fg:#ffffff; --tulip-soft:#feecef; --tulip-deep:#941a3d; --ok:#11784f; --ok-fg:#ffffff; --ok-soft:#d8f2e6;
  --ok-deep:#0a5536; --bad:#bd283a; --bad-fg:#ffffff; --bad-soft:#f9dde0; --bad-deep:#8a1a27; --gold:#ffb81c;
  --gold-fg:#3d2800; --gold-soft:#fff1cf; --gold-deep:#d68f00; --sky:#1679c0; --sky-fg:#ffffff; --sky-soft:#dcecfa;
  --sky-deep:#0e5590; --highlight:rgba(255,255,255,0.3); --scrim:rgba(13,17,36,0.5);
  --display:"Outfit","Lexend",system-ui,sans-serif;
  --body:"Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:14px; --gutter-l:max(16px,env(safe-area-inset-left,0px)); --gutter-r:max(16px,env(safe-area-inset-right,0px));
  color-scheme:light;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#0d1124; --surface:#151a33; --surface2:#1e2442; --fg:#e8ebf7; --muted:#9ba3c4; --line:#2a3156;
  --line-deep:#20264a; --accent:#8ea8ff; --accent-fg:#0c1433; --accent-soft:#1c2754; --accent-deep:#5870cf; --tulip:#ff6b84;
  --tulip-fg:#0c1433; --tulip-soft:#3d1824; --tulip-deep:#c23f5a; --ok:#55cf98; --ok-fg:#0c1433; --ok-soft:#12352a;
  --ok-deep:#2b9165; --bad:#ff7d8a; --bad-fg:#0c1433; --bad-soft:#3d1a20; --bad-deep:#c64c5a; --gold:#ffc94d;
  --gold-fg:#2b1d00; --gold-soft:#3a2e12; --gold-deep:#c49218; --sky:#7cc8f8; --sky-fg:#0c1433; --sky-soft:#11314d;
  --sky-deep:#3b8cc6; --highlight:rgba(255,255,255,0.35); --scrim:rgba(0,0,0,0.6);
  color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#0d1124; --surface:#151a33; --surface2:#1e2442; --fg:#e8ebf7; --muted:#9ba3c4; --line:#2a3156;
  --line-deep:#20264a; --accent:#8ea8ff; --accent-fg:#0c1433; --accent-soft:#1c2754; --accent-deep:#5870cf; --tulip:#ff6b84;
  --tulip-fg:#0c1433; --tulip-soft:#3d1824; --tulip-deep:#c23f5a; --ok:#55cf98; --ok-fg:#0c1433; --ok-soft:#12352a;
  --ok-deep:#2b9165; --bad:#ff7d8a; --bad-fg:#0c1433; --bad-soft:#3d1a20; --bad-deep:#c64c5a; --gold:#ffc94d;
  --gold-fg:#2b1d00; --gold-soft:#3a2e12; --gold-deep:#c49218; --sky:#7cc8f8; --sky-fg:#0c1433; --sky-soft:#11314d;
  --sky-deep:#3b8cc6; --highlight:rgba(255,255,255,0.35); --scrim:rgba(0,0,0,0.6);
  color-scheme:dark }
/* tokens:end */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 20; }

/* fade in as a section scrolls into view (js/site.js adds .in); no motion for those who ask for none */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.card, .plan, .hcard { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease; }
.card:hover, .hcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -16px rgb(20 26 51 / 0.35); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .tulpje { animation: none; }
  .screens img { transition: none; }
  .card:hover, .hcard:hover { transform: none; }
}

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
section { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 600 0.8rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tulip); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--display); color: var(--fg); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--tulip); }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.top nav a:hover { color: var(--accent); }

/* notice for links from the old web app */
.notice { background: var(--accent-soft); color: var(--fg); }
.notice .wrap { padding-block: 12px; font-size: 0.95rem; }

/* hero: on a computer the whole phone fits the first screen under the header */
.hero { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .stack { gap: 20px; min-width: 0; }
.hero h1 span { color: var(--accent); }
.hero-art { position: relative; justify-self: center; width: clamp(200px, calc((100svh - 170px) / 2.4), 300px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-art .phone { width: 100%; }
.hero-art .tulpje { position: absolute; left: -48px; bottom: 56px; width: 96px; filter: drop-shadow(0 6px 10px rgb(20 26 51 / 0.12)); animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
/* the hero phone shows the app's screens in turn (js/site.js) */
.screens { position: relative; aspect-ratio: 1206 / 2622; border-radius: 28px; overflow: hidden; background: var(--surface2); }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transition: opacity 0.7s ease; }
.screens img.on { opacity: 1; }
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width 0.3s, background 0.3s; }
.dots span.on { width: 20px; background: var(--accent); }
.shown { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; text-align: center; white-space: nowrap; }
.free { color: var(--muted); font-size: 0.95rem; }
.free strong { color: var(--ok); }

/* store buttons: links once the app is in the stores; until then plain badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border-radius: 14px; background: var(--fg); color: var(--bg); text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 0.7rem; line-height: 1.1; opacity: 0.8; }
.store b { display: block; font: 700 1.05rem/1.15 var(--display); }
.store.soon { background: var(--surface2); color: var(--fg); }
.beta { font-size: 0.95rem; color: var(--muted); }

/* phone frame around a screenshot */
.phone { border-radius: 34px; padding: 7px; background: var(--fg); box-shadow: 0 24px 48px -18px rgb(20 26 51 / 0.45); }
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--surface2); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.band .card { background: var(--bg); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
/* the app's own drawings (app/src/components/glyph-paths.ts), not colour emoji (owner, 5 Nov: "a better professional look") */
.hico { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: 0.4em; color: var(--accent); flex: none; }
.card .row { display: flex; align-items: center; gap: 12px; }
.card p { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts span { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface2); color: var(--fg); }

/* the exam strip */
.parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.part { border-radius: var(--r); padding: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.part b { display: block; font: 700 1rem/1.2 var(--display); }
.part span { font-size: 0.85rem; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin-top: 40px; }
.gallery figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--fg); font-weight: 600; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; max-width: 1080px; margin-inline: auto; }
.plan { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.pro { border-color: var(--accent); }
.plan .price { font: 800 2.2rem/1 var(--display); }
.plan .price small { font: 400 0.95rem var(--body); color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.small { font-size: 0.9rem; color: var(--muted); }
.note { margin-top: 20px; }

/* not */
.nots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 32px; }
.nots p { color: var(--muted); }
.nots b { color: var(--fg); }

/* questions */
.faq { max-width: 760px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* closing */
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.closing img { width: 96px; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* text pages: help, support, privacy, terms, delete account */
.page { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 12px; }
.page h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin: 44px 0 12px; }
.page h3 { margin: 28px 0 8px; }
.page p, .page ul, .page ol { margin: 0 0 14px; }
.page ul, .page ol { padding-left: 1.3rem; }
.page li { margin-bottom: 6px; }
.page .meta { color: var(--muted); margin-bottom: 28px; }
.page .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; padding: 0; list-style: none; }
.page .toc a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--surface2); color: var(--fg); text-decoration: none; font-size: 0.9rem; }
.page .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 20px 0; }
.page .shot { float: right; width: 200px; margin: 0 0 16px 24px; }
.path { font-weight: 600; }
.page { overflow-wrap: break-word; }

/* help: a card per part of the app, with its screen */
.page .wrap:has(.hcards), .page .wrap:has(.tiles) { max-width: 1040px; }
.hcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.hcard { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; scroll-margin-top: 80px; }
.hcard.wide { grid-column: 1 / -1; }
.hcard.text { grid-template-columns: minmax(0, 1fr); }
.hcard .phone { padding: 4px; border-radius: 20px; box-shadow: 0 12px 24px -14px rgb(20 26 51 / 0.45); }
.hcard .phone img { border-radius: 16px; }
.page .hcard h2 { margin: 2px 0 10px; font-size: 1.2rem; }
.hcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hcard li { margin: 0; padding-left: 18px; position: relative; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.hcard li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 99px; background: var(--tulip); }
.hcard li b, .hcard li .path { color: var(--fg); }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.hcard li.times::before { display: none; }
.times span { font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface2); color: var(--fg); }
/* support: a tile per problem */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.page .tile h2 { font-size: 1.05rem; margin: 0 0 8px; }
.tile p, .tile ul { color: var(--muted); font-size: 0.95rem; margin: 0; }
.tile ul { padding-left: 1.1rem; }

@media (max-width: 900px) {
  .hcards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art .tulpje { left: -36px; width: 80px; }
  .grid, .prices, .nots { grid-template-columns: 1fr; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav { gap: 14px; }
  .page .shot { float: none; width: 180px; margin: 0 auto 20px; }
  .hcard { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .hero-art { width: min(250px, 66vw); }
}
@media (max-width: 380px) {
  .top nav .opt { display: none; }
}
