/* heyommy.com - gedeelde stijl voor home.html + home_en.html.
   Letters en kleuren zijn die van de app: Instrument Serif + Manrope (res/font,
   SIL OFL, hier gesubset naar Latijn - licenties in fonts/), palet uit
   android/.../ui/theme/Theme.kt. Zelf gehost: geen Google Fonts, geen
   verzoeken naar derden. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #FBF6EE; --bg-2: #F6EEE1; --surface: #FFFDFA; --border: #E7DDCA;
  --ink: #241C13; --muted: #6B5D4E;
  --accent: #14514F; --accent-ink: #FFFDFA; --accent-soft: #DCE7E5;
  --amber: #E8A33D; --amber-soft: #F7E5C7;
  --wordmark: #14514F;
  --shadow: 0 1px 2px rgba(36, 28, 19, .06), 0 12px 32px -12px rgba(36, 28, 19, .18);
  /* De telefoon is altijd het nachtthema van de app - zo ziet een rit eruit. */
  --n-bg: #101E1D; --n-top: #16302D; --n-surface: #1A2E2C; --n-card: #16413E;
  --n-card-2: #24403D; --n-ink: #F3EEE3; --n-muted: #A9C2BF; --n-amber: #F2C572;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101E1D; --bg-2: #152624; --surface: #1A2E2C; --border: #2C4643;
    --ink: #F3EEE3; --muted: #A9C2BF;
    --accent: #F2C572; --accent-ink: #241C13; --accent-soft: #16413E;
    --amber: #E8A33D; --amber-soft: #4A3618;
    --wordmark: #F2C572;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { 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(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 999px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 999px; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---- kop ---- */
.top { padding: 1.1rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: .5rem; }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--wordmark); }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top .lang { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* ---- hero ---- */
/* overflow-x: clip - de route-SVG steekt bewust buiten de telefoonkolom uit,
   maar mag op smalle schermen geen horizontale scroll geven (axe-run: 45 px op 360 px). */
.hero { position: relative; padding: 2rem 0 4rem; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700;
  padding: .3rem .8rem .3rem .6rem; border-radius: 999px; background: var(--amber-soft); color: var(--ink);
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(232, 163, 61, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, .55); } 70%, 100% { box-shadow: 0 0 0 .55rem rgba(232, 163, 61, 0); } }
h1, h2, .story-title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5rem); line-height: 1.02; margin: 1.1rem 0 1.25rem; }
h1 em { font-style: italic; color: var(--wordmark); }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 3.25rem; padding: .8rem 1.5rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--shadow); }
button.btn { font: inherit; font-weight: 700; background: transparent; color: inherit; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.fineprint { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }

/* De route achter de telefoon: kronkelweg die zich tekent, pins die oplichten. */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; }
figure.phone { margin: 0; }
.route { position: absolute; inset: -6% -20% -6% -20%; width: 140%; height: 112%; pointer-events: none; }
/* Gestapeld (mobiel): route niet boven de telefoon uit, anders loopt hij door de tekst erboven. */
@media (max-width: 900px) { .route { inset: 2% -20% -4% -20%; height: 102%; } }
.route .road { fill: none; stroke: var(--accent-soft); stroke-width: 22; stroke-linecap: round; }
.route .lane { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 10 14; stroke-linecap: round; opacity: .75; animation: drive 2.8s linear infinite; }
@keyframes drive { to { stroke-dashoffset: -48; } }
.route .pin { fill: var(--amber); transform-box: fill-box; transform-origin: 50% 100%; animation: pop 6s ease-in-out infinite; }
.route .p2 { animation-delay: 2s; }
.route .p3 { animation-delay: 4s; }
@keyframes pop { 0%, 60%, 100% { transform: scale(.75); opacity: .55; } 12%, 30% { transform: scale(1.15); opacity: 1; } }

/* ---- telefoon (nagebouwd ritscherm, nachtthema) ---- */
.phone {
  /* overflow: hidden houdt de 9:19-vorm vast; anders laat aspect-ratio de
     telefoon meegroeien met de verhaaltekst (die moet juist scrollen). */
  position: relative; width: min(20.5rem, 86vw); aspect-ratio: 9 / 19; overflow: hidden; border-radius: 2.6rem;
  padding: .7rem; background: #0A1413; box-shadow: 0 0 0 1.5px #2C4643, 0 40px 80px -30px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .45);
}
.screen {
  height: 100%; border-radius: 2rem; overflow: hidden; padding: 1.1rem .95rem;
  background: linear-gradient(180deg, var(--n-top) 0%, var(--n-bg) 55%);
  color: var(--n-ink); font-size: .8rem; line-height: 1.45; display: flex; flex-direction: column; gap: .7rem;
}
.app-top { display: flex; justify-content: space-between; align-items: center; padding: .35rem .2rem 0; }
.app-top .wordmark { font-size: 1.55rem; color: var(--n-amber); }
.app-top svg { width: 1.25rem; height: 1.25rem; fill: var(--n-muted); }
.trip { display: flex; align-items: center; gap: .55rem; border: 1px solid #2C4643; border-radius: 999px; padding: .35rem .4rem .35rem .8rem; }
.trip .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); flex: none; }
.trip div { flex: 1; line-height: 1.2; }
.trip b { display: block; font-weight: 600; font-size: .82rem; }
.trip small { color: var(--n-muted); font-size: .7rem; }
.trip .stop { background: var(--n-card-2); border-radius: 999px; padding: .4rem .75rem; font-size: .72rem; display: inline-flex; align-items: center; gap: .35rem; }
.trip .stop::before { content: ""; width: .5rem; height: .5rem; background: var(--n-ink); border-radius: 1px; }
.story { background: var(--n-card); border-radius: 1.4rem; padding: 1rem .95rem 1.05rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; min-height: 0; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; background: var(--n-bg); border-radius: 999px; padding: .28rem .65rem .28rem .45rem; font-size: .7rem; }
.chip svg { width: .9rem; height: .9rem; fill: var(--amber); }
.story-title { font-size: 2.05rem; line-height: 1; margin: .1rem 0 0; }
.dist { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; background: var(--n-bg); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; font-size: .8rem; }
.dist i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #0C1817; display: grid; place-items: center; }
.dist svg { width: .85rem; height: .85rem; fill: var(--amber); }
.dist em { font-style: normal; color: var(--n-amber); }
.listen { display: flex; align-items: center; gap: .75rem; }
.listen .play {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--n-ink); color: #16302D; border: 0; cursor: pointer;
  border-radius: 999px; padding: .55rem .95rem; font: inherit; font-weight: 700; font-size: .8rem; min-height: 2.25rem;
}
.listen .play:hover { background: #fff; }
.listen .play:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.listen .play svg { width: .95rem; height: .95rem; fill: currentColor; }
.listen .time { margin-left: auto; color: var(--n-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 1.4rem; }
/* Golfje beweegt alleen terwijl het verhaal echt speelt. */
.wave span { width: 3px; border-radius: 2px; background: var(--n-amber); height: 30%; animation: wave 1.1s ease-in-out infinite paused; }
.phone.playing .wave span { animation-play-state: running; }
.wave span:nth-child(2) { animation-delay: -.9s; } .wave span:nth-child(3) { animation-delay: -.7s; }
.wave span:nth-child(4) { animation-delay: -.5s; } .wave span:nth-child(5) { animation-delay: -.3s; }
.wave span:nth-child(6) { animation-delay: -.8s; } .wave span:nth-child(7) { animation-delay: -.4s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
/* De hele tekst staat erin; tijdens het luisteren schuift hij mee (script in home*.html). */
.story-text {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; font-size: .92rem; line-height: 1.5;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.story-text::-webkit-scrollbar { display: none; }
.story-text p { margin: 0 0 .7rem; }
.story-text:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: .5rem; }
.sample-note { position: relative; margin: 1.25rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; max-width: 22rem; }
.more { margin-top: auto; display: flex; align-items: center; gap: .6rem; background: rgba(243, 238, 227, .1); border-radius: 1rem; padding: .5rem .6rem; }
.more .plus { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(243, 238, 227, .14); display: grid; place-items: center; font-size: 1rem; }
.more span:nth-child(2) { flex: 1; }
.more .pro { background: var(--n-amber); color: #241C13; font-weight: 700; font-size: .68rem; border-radius: 999px; padding: .15rem .5rem; }

/* ---- secties ---- */
section { padding: 4.5rem 0; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 .6rem; }
@media (prefers-color-scheme: light) { .eyebrow { color: #855610; } } /* ≥ 4,5:1 op --bg én --bg-2 (axe) */
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; margin: 0 0 1rem; max-width: 22ch; }
.intro { color: var(--muted); max-width: 38rem; margin: 0 0 2.5rem; font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.steps .icon { width: 3rem; height: 3rem; border-radius: 1rem; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 1.1rem; }
.steps .icon svg { width: 1.5rem; height: 1.5rem; fill: var(--wordmark); }
.steps h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.steps p { margin: 0; color: var(--muted); }

.band { background: var(--bg-2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 2rem 2.5rem; }
.features div { border-top: 2px solid var(--amber); padding-top: 1rem; }
.features h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.features p { margin: 0; color: var(--muted); }

.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2; margin: 0; max-width: 30ch; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.trust article { background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.75rem 1.6rem; }
.trust h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin: 0 0 .75rem; }
.trust p { margin: 0; color: var(--muted); }
.trust p + p { margin-top: .75rem; }

.cta { padding: 0 0 4.5rem; }
.cta .box {
  border-radius: 2rem; padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #4A3618 0%, #16302D 55%, #101E1D 100%); color: #F3EEE3;
}
.cta h2 { margin: 0 auto .75rem; color: #F3EEE3; }
.cta p { color: #A9C2BF; max-width: 34rem; margin: 0 auto 1.75rem; }
.cta .btn.primary { background: #F2C572; color: #241C13; border-color: #F2C572; }
.cta .btn.ghost { color: #F3EEE3; border-color: rgba(243, 238, 227, .45); }
.join { text-align: left; max-width: 30rem; margin: 0 auto 1.75rem; padding-left: 1.4rem; color: #CFE0DD; }
.join li + li { margin-top: .5rem; }
.join b { color: #F3EEE3; }
.cta .actions { justify-content: center; }

/* ---- voet ---- */
.foot { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem; }
.foot h2 { font-family: var(--sans); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 .6rem; }
.foot p { margin: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li + li { margin-top: .3rem; }

@media (prefers-reduced-motion: reduce) {
  .route .lane, .route .pin, .wave span, .badge::before { animation: none; }
  .wave span { height: 60%; }
  .btn { transition: none; }
}
