/* VoiceMap homepage styles, shared by nl/index.html and en/index.html. */
/* Layout: field notebook on a map — text column beside a phone, then bands that follow the
   brandsheet rhythm (papier → wit → lavendel → navy → papier → blauw). */
:root {
  --paper: #FAF8F5;      /* Papier */
  --surface: #FFFFFF;    /* Wit */
  --ink: #0D1167;        /* Navy */
  --muted: #565A85;      /* Gedempt */
  --line: #D5DAF5;       /* Lijn */
  --blue: #242EE0;       /* Blauw — accent, links, primary button */
  --on-blue: #FFFFFF;
  --tint: #E7EBFF;       /* Lavendel */
  --live: #FA3C96;       /* Roze — only "the microphone is open" */
  --on-live: #070723;
  --success: #0F7B4F;    /* the app's "done" tick */
  --label: #7911F8;      /* Violet — section labels */
  --marker: #0D1167;
  --on-marker: #FFFFFF;
  --band: #0D1167;       /* navy band */
  --on-band: #FFFFFF;
  --on-band-muted: #C9D1FF;
  --map: #EEF0F8;
  --road: #FFFFFF;
  --water: #D7DFFA;
  --block: #E3E6F3;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-data: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #070723; --surface: #0D1167; --ink: #FFFFFF; --muted: #C9D1FF; --line: #2B3096;
    --blue: #6E9BFF; --on-blue: #070723; --tint: #161B85; --label: #6E9BFF;
    --marker: #C9D1FF; --on-marker: #0D1167; --band: #161B85; --on-band: #FFFFFF; --on-band-muted: #C9D1FF;
    --map: #10154F; --road: #1E2470; --water: #161B85; --block: #141A5E; --success: #4FC98A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #070723; --surface: #0D1167; --ink: #FFFFFF; --muted: #C9D1FF; --line: #2B3096;
  --blue: #6E9BFF; --on-blue: #070723; --tint: #161B85; --label: #6E9BFF;
  --marker: #C9D1FF; --on-marker: #0D1167; --band: #161B85; --on-band: #FFFFFF; --on-band-muted: #C9D1FF;
  --map: #10154F; --road: #1E2470; --water: #161B85; --block: #141A5E; --success: #4FC98A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.band { padding-block: clamp(56px, 9vw, 104px); }
.band--white { background: var(--surface); }
.band--tint { background: var(--tint); }
.band--navy { background: var(--band); color: var(--on-band); }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
.label {
  font: 600 14px/1.2 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--label);
}
.band--navy .label { color: var(--on-band-muted); }
.lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--muted); }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.top nav { display: flex; gap: 20px; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--blue); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 17px/1 var(--font-body); text-decoration: none;
  border: 2px solid transparent;
}
.button--primary { background: var(--blue); color: var(--on-blue); }
.button--primary:hover { filter: brightness(1.08); }
.button--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.button--ghost:hover { border-color: var(--blue); }
.button small { font-weight: 500; opacity: 0.8; font-size: 14px; }
.button svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy .lead { max-width: 30ch; }
.hero-note { font-size: 15px; color: var(--muted); }
.coords { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.coords span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 1px; }

/* Phone demo: four scenes that follow the app's own screens (RecordView, the "Saved" sheet
   with its processing checklist, the map). data-scene on .phone picks the scene; the script
   at the bottom advances it. Without the script the page shows scene 4, the end state. */
/* Phone and step bar fit the first screen on a laptop: the phone scales with the height. */
.demo { justify-self: center; width: min(100%, clamp(270px, calc((100svh - 290px) * 9 / 19), 340px)); min-width: 0; display: grid; gap: 18px; }
.phone {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(13, 17, 103, 0.45);
  position: relative;
}
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--map); container-type: inline-size; }
.screen > svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.island { position: absolute; z-index: 7; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; border-radius: 20px; background: #000; }
.statusbar {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 46px; padding: 0 22px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); font: 600 14px/1 var(--font-body); letter-spacing: -0.01em; pointer-events: none;
}
.statusbar .sb-time { font-variant-numeric: tabular-nums; }
.statusbar .sb-icons { display: flex; align-items: center; gap: 5px; }
.statusbar svg { height: 11px; width: auto; fill: currentColor; }

/* Map layer: the new memo drops where you spoke; the blue dot walks on. */
.newpin, .halo, .me { transform-box: fill-box; transform-origin: 50% 50%; }
.newpin { opacity: 0; }
.halo { opacity: 0; }
.me { transition: transform 1.4s ease-in-out; }
.phone[data-scene="4"] .newpin { animation: drop .6s cubic-bezier(.2, .9, .3, 1.35) .35s both; }
.phone[data-scene="4"] .halo { animation: halo 1s ease-out .8s both; }
.phone[data-scene="4"] .me { transform: translateY(-66px); transition-delay: 1.4s; }
@keyframes drop { from { opacity: 0; transform: translateY(-34px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

/* Memo card on the map (scene 4) */
.sheet {
  position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 112px;
  background: var(--surface); border-radius: 22px; padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(7, 7, 35, 0.18);
  display: grid; gap: 4px;
  opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s;
}
.phone[data-scene="4"] .sheet { opacity: 1; transform: none; transition-delay: 1.1s; }
.sheet strong { font: 700 15px/1.25 var(--font-display); color: var(--ink); }
.sheet span { font-size: 12px; color: var(--muted); }
.sheet .sum { font-size: 12.5px; line-height: 1.4; color: var(--ink); }

/* Record button and the tap that presses it */
.recbtn {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center;
  border: 3px solid var(--map);
  box-shadow: 0 6px 18px rgba(7, 7, 35, 0.3);
}
.recbtn svg { width: 30px; height: 30px; }
.recbtn::before, .stopbtn::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(13, 17, 103, .3);
  opacity: 0;
}
.phone[data-scene="1"] .recbtn::before { animation: press .8s ease-out 1.5s both; }
.phone[data-scene="1"] .recbtn { animation: squish .3s ease-out 1.6s; }
.phone[data-scene="2"] .stopbtn::before { animation: press .8s ease-out 3.75s both; }
.phone[data-scene="2"] .stopbtn { animation: squish .3s ease-out 3.85s; }
@keyframes press { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes squish { 50% { scale: .9; } }

/* Scene 2: the recording screen slides up */
.rec {
  position: absolute; z-index: 5; inset: 0; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; padding: 60px 20px 20px;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.phone[data-scene="2"] .rec { transform: none; }
.rec-head { display: flex; align-items: center; gap: 8px; font: 600 16px/1 var(--font-body); color: var(--ink); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--live); }
.phone[data-scene="2"] .live-dot { animation: blink .9s ease-in-out infinite alternate; }
@keyframes blink { from { opacity: .35; } to { opacity: 1; } }
.rec-time {
  margin-top: auto; color: var(--ink);
  font: 600 clamp(44px, 15cqw, 58px)/1 ui-rounded, "SF Pro Rounded", var(--font-body);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.rec-wave { width: 84%; height: 46px; margin: 18px 0 auto; display: flex; align-items: center; gap: 3px; }
.rec-wave i { flex: 1; min-width: 2px; height: 14%; border-radius: 2px; background: var(--ink); opacity: .8; }
.phone[data-scene="2"] .rec-wave i { animation: talk .46s ease-in-out infinite alternate; }
@keyframes talk { from { height: 12%; } to { height: var(--h, 70%); } }
.stopbtn {
  position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--live);
  display: grid; place-items: center;
}
.stopbtn i { width: 26px; height: 26px; border-radius: 7px; background: var(--on-live); }
.rec-cancel { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Scene 3: the "Saved" sheet with the processing checklist */
.scrim { position: absolute; z-index: 2; inset: 0; background: rgba(7, 7, 35, .3); opacity: 0; transition: opacity .35s; }
.phone[data-scene="3"] .scrim { opacity: 1; }
.saved {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 22px 36px;
  display: grid; gap: 16px; box-shadow: 0 -8px 24px rgba(7, 7, 35, .18);
  transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.phone[data-scene="3"] .saved { transform: none; }
.saved-head { display: flex; align-items: flex-start; gap: 10px; }
.saved-head > svg { width: 28px; height: 28px; flex: none; color: var(--success); }
.saved-head strong { display: block; font: 700 19px/1.2 var(--font-display); color: var(--ink); }
.saved-head span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.chk li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.chk .ic { position: relative; width: 19px; height: 19px; flex: none; }
.chk .ic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chk .todo { color: var(--muted); }
.chk .done { color: var(--success); opacity: 0; transform: scale(.4); }
.phone[data-scene="3"] .chk .todo { animation: spin 2.4s linear infinite; }
.phone[data-scene="3"] .chk .done, .phone[data-scene="4"] .chk .done { animation: tick .32s cubic-bezier(.2, .9, .3, 1.4) var(--t, 0s) both; }
/* Audio and place are there at once; the transcript and then the summary take a moment. */
.chk li:nth-child(1) { --t: .5s; }
.chk li:nth-child(2) { --t: 1s; }
.chk li:nth-child(3) { --t: 2s; }
.chk li:nth-child(4) { --t: 3.1s; }
@keyframes tick { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(1turn); } }

/* Step bar under the phone */
.tour { display: grid; gap: 12px; }
.tour-row { display: flex; align-items: flex-start; gap: 10px; }
.tour-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tour-steps button {
  width: 100%; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; gap: 7px; align-content: start; text-align: left;
  color: var(--muted); font: 600 13px/1.2 var(--font-body);
}
.tour-steps button[aria-current="step"] { color: var(--ink); }
.tour-steps button:focus-visible, .tour-pause:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; border-radius: 6px; }
.tour-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.tour-steps li.past .tour-bar i { width: 100%; }
.tour-steps button[aria-current="step"] .tour-bar i { animation: fill var(--d, 4s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.tour-pause {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center;
}
.tour-pause:hover { border-color: var(--blue); }
.tour-pause svg { width: 14px; height: 14px; fill: currentColor; }
.tour-pause .i-play, .tour-pause[aria-pressed="true"] .i-pause { display: none; }
.tour-pause[aria-pressed="true"] .i-play { display: block; }
.tour-text { min-height: calc(3 * 1.45em); font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Paused: freeze mid-scene. Static (reduced motion, or a step picked while paused): show
   each scene's end state at once, without movement. */
.demo.is-paused:not(.is-static) .phone *,
.demo.is-paused:not(.is-static) .phone *::before,
.demo.is-paused .tour-bar i { animation-play-state: paused; }
.demo.is-static .phone *, .demo.is-static .phone *::before {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  animation-fill-mode: both !important; transition-duration: 1ms !important; transition-delay: 0s !important;
}
.demo.is-static [aria-current="step"] .tour-bar i { animation: none; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .demo .phone *, .demo .phone *::before {
    animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    animation-fill-mode: both !important; transition-duration: 1ms !important; transition-delay: 0s !important;
  }
}

/* Steps — a real sequence, so numbered */
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); font: 800 44px/1 var(--font-display); color: var(--blue); letter-spacing: -0.03em; }
.steps p { color: var(--muted); font-size: 16px; }
.steps .data { color: var(--ink); font-size: 14px; }

/* Outdoors band */
.outdoors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.outdoors .lead { color: var(--on-band-muted); }
.facts { display: grid; gap: 28px; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.fact-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.1); display: grid; place-items: center; }
.fact-icon svg { width: 22px; height: 22px; }
.fact h3 { font-size: 21px; margin-bottom: 4px; }
.fact p { color: var(--on-band-muted); font-size: 16px; }

/* Example memo */
.example { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.memo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; min-width: 0;
}
.memo-head { display: grid; gap: 6px; }
.memo-head h3 { font-size: clamp(22px, 2.4vw, 28px); }
.memo-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.player { display: flex; align-items: center; gap: 14px; }
.player-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.player-btn svg { width: 16px; height: 16px; }
.wave { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line); }
.wave i.on { background: var(--blue); }
.memo section { display: grid; gap: 6px; }
.memo .summary { font-weight: 500; font-size: 18px; line-height: 1.45; }
.memo .transcript { color: var(--muted); font-size: 16px; }
.memo .where { font-size: 15px; display: grid; gap: 2px; }
.memo .where .data { font-size: 13.5px; color: var(--muted); }
.tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); justify-self: start; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; list-style: none; padding: 0; margin: 0; }
.privacy li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); min-width: 0; }
.privacy strong { font: 700 19px/1.25 var(--font-display); }
.privacy span { color: var(--muted); font-size: 16px; }
.privacy-more { margin-top: 24px; font-weight: 600; }

/* Closing CTA */
.closing { background: var(--blue); color: var(--on-blue); }
.closing .wrap { display: grid; gap: 24px; justify-items: start; }
.closing p { color: var(--on-blue); opacity: 0.9; font-size: 19px; }
.closing .button--primary { background: var(--on-blue); color: var(--blue); }
.closing .small { font-size: 15px; opacity: 0.85; }
.signup { display: grid; gap: 12px; width: min(560px, 100%); }
.signup label.field { font-weight: 600; font-size: 17px; }
.signup .row { display: flex; gap: 12px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--on-blue); background: var(--on-blue); color: var(--blue);
  font: 500 18px/1.2 var(--body, inherit);
}
.signup input[type="email"]:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.signup .check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--on-blue); flex: none; }
.signup .hp { position: absolute; left: -9999px; }
.signup-note { font-size: 15px !important; }
.signup-note a, .signup-status a { color: inherit; }
.signup-status { font-weight: 600; }

footer { padding-block: 32px 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; }
footer .tagline { grid-column: 1 / -1; }
footer a { color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
  .hero, .outdoors, .example { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .demo { width: min(300px, 100%); }
}
@media (max-width: 560px) {
  .steps, .privacy, footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .top nav { display: none; }
  .button { width: 100%; justify-content: center; }
}

/* Language switch: a link to the same page in the other language */
.lang {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; color: var(--ink);
  font: 600 15px/1 var(--font-body); letter-spacing: 0.04em; cursor: pointer;
}
.lang:hover { border-color: var(--blue); }
.lang:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }
.top-right { display: flex; align-items: center; gap: 20px; }
