/* Public-page layout; shared foundations are in shell/tokens.css and shell/components.css. */
:root {
  --wrap: 1200px;
  --gutter: clamp(var(--space-4), 4vw, var(--space-12));
  --section: clamp(var(--space-16), 9vw, 112px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.band > .wrap { padding-block: var(--section); }
.tint { background: var(--surface-muted); }

/* ---------- Type: the design system's scale ---------- */

.rm-eyebrow {
  margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-muted);
}
.rm-headline { margin: 0; color: var(--ink); }
.rm-headline-line { display: block; }
.rm-headline-hl { color: var(--primary); }
/* title is 64/64 in the system; on a phone it steps down to h1 size so "nieuwe wegen." keeps to one line */
.rm-headline-title { font-size: clamp(40px, 8.4vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.rm-headline-h1 { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.015em; }
.rm-headline-h2 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.subheading { font-size: 18px; line-height: 26px; font-weight: 500; }
.heading { display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Buttons ---------- */

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}

/* ---------- The wordmark: "roadmarker" in ink, ".cc" in orange, ExtraBold; the slogan after it ---------- */

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: var(--radius-sm); display: block; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; }
.wordmark { font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.wordmark .tld { color: var(--primary); }
.slogan {
  display: flex; align-items: baseline; gap: var(--space-3);
  font-style: normal; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
}
.slogan::before { content: ""; width: 10px; height: 1.5px; background: currentColor; align-self: center; }

/* ---------- Menu: stays on top while scrolling ---------- */

.menu {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.menu-in {
  max-width: var(--wrap); margin: 0 auto; padding: var(--space-3) var(--gutter);
  display: flex; align-items: center; gap: var(--space-6);
}
/* The day/night switch is shell/theme.css; here only its place */
.menu .switch { margin-left: auto; }
.menu-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-1);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap;
}
.menu-login:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) { .slogan { display: none; } }
@media (max-width: 640px) {
  .menu-in { gap: var(--space-3); }
  .wordmark { font-size: 20px; }
  .brand img { width: 28px; height: 28px; }
}
/* On a phone the wordmark stays; the button to the form gives way, the hero has it right below */
@media (max-width: 520px) { .menu-login ~ .menu-cta { display: none; } }

/* ---------- Header image: one per theme, fading into the page ---------- */

/* The image is 2048 × 768; a fixed height, not aspect-ratio with a min-height, which would widen the box on a phone */
.hero-image { position: relative; width: 100%; height: max(140px, 24.5vw); overflow: hidden; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }
[data-theme="night"] .hero-image .day, [data-theme="day"] .hero-image .night { display: none; }
.hero-image::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(transparent, var(--surface)); }

/* ---------- 1. Hero ---------- */

.hero { padding-top: var(--space-6); padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--space-6); }
.hero > * { max-width: 720px; }
.hero .subtitle { margin-top: calc(-1 * var(--space-2)); }
.hero .lead { color: var(--ink-muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-2); }

/* ---------- 2. The app ---------- */

.intro { max-width: 40em; color: var(--ink-muted); }
.shots { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-8); align-items: flex-start; margin-top: var(--space-12); }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.shots figcaption { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.shot-large { flex: 999 1 560px; min-width: 0; }
/* The map on the web, in day mode at night too: it stands out on the dark page */
.shot-large img {
  display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1300; object-fit: cover; object-position: top;
  border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card);
}
.phones { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-6); justify-content: center; }
.phones figure { flex: 1 1 160px; max-width: 220px; }
/* Existing screenshot-frame decoration stays unchanged with the public page. */
.phone { padding: 7px; border-radius: 36px; background: var(--secondary); box-shadow: var(--shadow-card); }
[data-theme="night"] .phone { box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1125 / 2436; object-fit: cover; border-radius: 29px; }
button.phone { display: block; width: 100%; border: 0; font: inherit; cursor: zoom-in; transition: transform .2s ease; }
button.phone:hover { transform: translateY(-3px); }
.note { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); max-width: 46em; color: var(--ink-muted); }

/* Lightbox for the phone screenshots */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgb(20 25 31 / .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img {
  display: block; height: min(92vh, 1949px); width: auto; max-width: calc(100vw - 32px); object-fit: contain;
  border-radius: 28px; box-shadow: 0 0 0 7px var(--secondary), 0 30px 80px rgb(0 0 0 / .5); cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: var(--space-4); right: var(--space-4); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--secondary); color: var(--on-secondary); display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- 3. The maker and the beta ---------- */

.story { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-16); align-items: flex-start; }
.story .prose { flex: 1 1 520px; max-width: 720px; min-width: 0; }
.maker { flex: 1 1 340px; max-width: 460px; margin: 0; position: sticky; top: 96px; }
.maker img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.maker figcaption { margin-top: var(--space-3); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.prose { display: flex; flex-direction: column; gap: var(--space-4); }
.prose .heading { margin-bottom: var(--space-4); }
.facts {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); max-width: 560px;
}
.facts li {
  display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--surface-muted); font-size: 14px; line-height: 20px; color: var(--ink-muted);
}
.facts b { color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 700; }
@media (max-width: 900px) { .maker { position: static; } }

/* ---------- 4. Sign up: the mailing list, then the beta form as four numbered steps in one card ---------- */

/* One centred column for the head, the mailing list and the form. Calm by few lines: one card, answers and
   fields as soft fills rather than outlines, and space instead of rules between questions. */
.signup-wrap { display: flex; flex-direction: column; gap: var(--space-12); max-width: calc(760px + 2 * var(--gutter)); }
.signup-head p { max-width: 36em; }
.card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(var(--space-6), 5vw, var(--space-12)); }

/* Fields and answer tiles: a fill one step off their background, a line only on hover, focus and when picked */
.signup-wrap { --field: var(--surface-raised); --field-line: var(--line); }
#signup { --field: var(--surface-muted); --field-line: transparent; }

.waitlist form { display: flex; flex-direction: column; gap: var(--space-4); }
.waitlist .h3 + .muted { margin-top: calc(-1 * var(--space-2)); }
.wl-row { display: flex; flex-flow: row wrap; gap: var(--space-3); align-items: flex-end; margin-top: var(--space-2); }
.wl-row .field { flex: 1 1 260px; }
.wl-row .error { flex-basis: 100%; }
.wl-done { display: flex; gap: var(--space-4); align-items: flex-start; }
.wl-done > div { display: flex; flex-direction: column; gap: var(--space-2); }
.wl-done svg {
  flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--secondary);
  fill: none; stroke: var(--on-secondary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.or { display: flex; align-items: center; gap: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The four steps are told apart by space and one hairline; the questions within a step by space only */
form#signup { display: flex; flex-direction: column; gap: var(--space-12); }
.group { display: flex; flex-direction: column; gap: var(--space-8); }
.group + .group, .finish { border-top: 1px solid var(--line); padding-top: var(--space-12); }
.group-head { display: flex; gap: var(--space-4); align-items: flex-start; }
.group-head p { margin-top: var(--space-1); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.step {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--secondary); color: var(--on-secondary);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
/* "Optioneel" and "Meerdere kan": quiet words after the question, no pill */
.tag { margin-left: var(--space-2); color: var(--ink-muted); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.tag + .tag::before { content: "· "; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-6) var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
label { font-size: 14px; line-height: 20px; font-weight: 600; }
legend { font-size: 16px; line-height: 24px; font-weight: 700; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--field-line);
  background: var(--field); color: var(--ink); font-size: 16px; line-height: 24px;
  transition: border-color .15s;
}
input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: var(--ink-muted); }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--ink); }
textarea { padding: var(--space-3) var(--space-4); resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2); }
.choice .other { margin-top: var(--space-1); }

/* Answers as tiles of one width: a round mark for one answer, a square one with a tick for several (app.js adds
   the mark). Picked is orange, like a road you rode; the words stay ink. */
.opts { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.opts.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.opts button {
  display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--field-line); background: var(--field); color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent; font-size: 15px; line-height: 20px; font-weight: 500; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opts button:hover { border-color: var(--ink-muted); }
.opts button[aria-pressed="true"] {
  border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-raised));
}
.mark {
  flex: none; width: 20px; height: 20px; border: 1.5px solid var(--ink-muted); background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.mark svg { width: 14px; height: 14px; fill: none; stroke: var(--on-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
[data-multiple] [aria-pressed="true"] .mark { background: var(--primary); border-color: var(--primary); }
[data-multiple] [aria-pressed="true"] .mark svg { opacity: 1; }
.choice:not([data-multiple]) .mark { border-radius: 50%; }
.choice:not([data-multiple]) .mark svg { display: none; }
.choice:not([data-multiple]) [aria-pressed="true"] .mark { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px var(--surface-raised); }

.error { display: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--error); }
.invalid .error, form.tried .summary.show, .send-error.show { display: block; }
.invalid .opts button, .invalid input[type="text"], .invalid input[type="email"] { border-color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.finish { display: flex; flex-direction: column; gap: var(--space-8); }
.consents { display: flex; flex-direction: column; gap: var(--space-4); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 22px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
/* On a phone the button takes the card's width and may wrap, rather than stick out of the card */
@media (max-width: 520px) { .submit .rm-btn { width: 100%; white-space: normal; text-align: center; } }
.done { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.done p { max-width: 36em; }

/* ---------- Privacy page ---------- */

.policy { max-width: 760px; }
.policy h2 { margin-top: var(--space-6); font-size: 20px; line-height: 28px; font-weight: 700; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); }
.footer { padding-block: var(--space-8) var(--space-12) !important; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); font-size: 14px; line-height: 22px; }
.footer .wordmark { font-size: 20px; }
.footer .brand img { width: 28px; height: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button.phone, .rm-btn { transition: none; }
}
