/* Lantaarnpaal Melder: website
   Colours follow the app (android/.../ui/Theme.kt). */

:root {
  --navy: #14336B;
  --navy-ink: #0B1E42;
  --night: #0E1C3D;
  --night-2: #132A55;
  --amber: #F2A900;
  --lamp: #FFC940;
  --paper: #F5F6F8;
  --tint: #EBEFF5;
  --white: #FFFFFF;
  --ink: #1A1F29;
  --muted: #4A5363;
  --line: #D5DBE5;
  --green: #2EAD5B;
  --orange: #F08A24;
  --red: #E5484D;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --font: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* Focus ring: dark blue on light sections, lamp yellow on the dark ones (3:1+ either way) */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .foot :focus-visible { outline-color: var(--lamp); }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.012em; overflow-wrap: break-word; }
.kicker { overflow-wrap: anywhere; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-toggle { display: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.kicker {
  margin: 0 0 .9rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--amber); border-radius: 2px; }

.mono { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.small { font-size: .9375rem; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: 12px;
  background: var(--lamp);
  color: var(--navy-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.2), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: background .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: #FFD45F; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .5rem .95rem; font-size: .9375rem; border-radius: 10px; }
.btn-dark { background: var(--navy); color: var(--white); box-shadow: none; }
.btn-dark:hover { background: #1B418A; }

.link-light { color: #DCE6FA; font-weight: 700; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  padding-bottom: clamp(190px, 25vw, 330px);
}
.hero::before { /* faint sky, darker at the top */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#0A1531 0%, var(--night) 45%, #142A57 100%);
}
.hero > * { position: relative; }
/* the street is the lowest layer; text, buttons and the phone always sit on top of it */
.hero .top { z-index: 3; }
.hero .hero-body { z-index: 2; }

.top {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.0625rem; margin: 0; }
.brand small { display: block; font-weight: 400; font-size: .8125rem; color: #AEBBD3; line-height: 1; margin-top: 2px; }
.brand span { line-height: 1.1; }
.brand-mark { width: 34px; height: 34px; color: var(--white); flex: none; }
.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { color: #DCE6FA; text-decoration: none; font-size: .9375rem; }
.menu a:hover { color: var(--white); text-decoration: underline; }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 3rem;
  align-items: start;
  padding-top: clamp(28px, 6vw, 72px);
}
.hero-text .kicker { color: var(--lamp); }
.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  max-width: 13ch;
  margin-bottom: 1.4rem;
}
.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: #CCD6E8; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.hero-meta { margin-top: 1.1rem; font-size: .9375rem; color: #93A3C0; }

.hero-street {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: clamp(250px, 32vw, 430px);
  object-fit: cover; object-position: center bottom;
  pointer-events: none; z-index: 0;
}

/* ---------------------------------------------------------------- phone frames */

.phone {
  margin: 0;
  background: #0A0F1A;
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -20px rgba(4,10,25,.55);
}
.phone-screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 9 / 19.5;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-map { position: absolute; inset: 0; }

.hero-phone {
  width: min(300px, 100%);
  justify-self: center;
  margin-bottom: calc(-1 * clamp(110px, 14vw, 190px));
  z-index: 2;
  transform: rotate(2deg);
}

.map-card {
  position: absolute; left: 10px; right: 10px; bottom: 14px;
  display: flex; align-items: center; gap: .55rem;
  background: var(--white); color: var(--ink);
  border-radius: 16px; padding: 12px 12px 12px 12px;
  box-shadow: 0 6px 18px rgba(20,35,60,.18);
  font-size: .8125rem;
}
.map-card svg { width: 22px; height: 22px; flex: none; }
.map-card strong { display: block; font-size: .9375rem; white-space: nowrap; }
.map-card div span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card > div { min-width: 0; flex: 1; line-height: 1.25; }
.map-card-btn {
  background: var(--navy); color: var(--white) !important;
  border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .8125rem;
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.125rem; margin: 0; }

/* steps: phones standing behind a ledge */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 36px);
}
/* text on top, screenshot below; subgrid keeps the phones level across columns */
.step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.step-shot {
  height: 330px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  padding: 0 8%;
  margin-top: 1.4rem;
}
.phone-cut { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.phone-cut .phone-screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.step:nth-child(2) .step-shot .phone { margin-top: 26px; }
.step:nth-child(3) .step-shot .phone { margin-top: 12px; }
.step:nth-child(4) .step-shot .phone { margin-top: 38px; }
.map-card-sm { padding: 10px; font-size: .75rem; }
.map-card-sm strong { font-size: .8125rem; }
.map-card-sm .map-card-btn { padding: 6px 9px; font-size: .75rem; }
.phone-cut .map-card { bottom: auto; top: 58%; }

.step-no {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: .9375rem;
  margin-bottom: .7rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

/* split: art + text */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-art { margin: 0; }
.split-art img { width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
.split-text h2 { margin-bottom: 1.2rem; }
.split-text > p { color: #2F3746; }
.legend { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.legend li { display: flex; align-items: center; gap: .75rem; }
.legend strong { min-width: 4.6rem; }
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--white); }
.dot-green { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-red { background: var(--red); }

/* fault types */
.faults {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.faults li {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.4rem .8rem 1.2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white);
  text-align: center; font-weight: 700; font-size: .9375rem; line-height: 1.25;
}
.faults img { width: 76px; height: 76px; }

.warning {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 2rem; padding: 1.1rem 1.25rem;
  background: #FFF6DC; border-radius: var(--radius);
  max-width: 46rem;
}
.warning svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.warning p { margin: 0; }
.warning a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* after reporting */
.route { margin: 0 0 clamp(48px, 7vw, 80px); }
.route img { width: 100%; height: auto; }
.route-labels {
  list-style: none; margin: .6rem 0 0; padding: 0;
  display: grid; grid-template-columns: 30% 34% 1fr;
  counter-reset: r;
}
.route-labels li { display: flex; flex-direction: column; padding-right: 1rem; }
.route-labels li:nth-child(2) { padding-left: 4%; }
.route-labels li:nth-child(3) { text-align: right; align-items: flex-end; padding-right: 0; }
.route-labels strong { font-size: 1.125rem; }
.route-labels span { color: var(--muted); font-size: .9375rem; }

.duo { display: grid; grid-template-columns: 230px 230px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.duo .phone:nth-child(2) { transform: translateY(40px); }
.phone-flat { box-shadow: 0 24px 50px -24px rgba(11,30,66,.45); }
.duo-text { padding-left: clamp(0px, 2vw, 24px); }
.duo-text h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.duo-text p { color: #2F3746; }
.duo-one { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); max-width: 900px; }
.duo-text .small { color: var(--muted); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.faq { border-top: 1px solid #C9D1DD; }
.faq details { border-bottom: 1px solid #C9D1DD; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 1.3rem; color: #2F3746; max-width: 40rem; }

/* footer */
.foot { background: var(--tint); }
.foot-skyline { width: 100%; height: clamp(80px, 10vw, 150px); object-fit: cover; object-position: center bottom; margin-bottom: -1px; }
.foot-body { background: var(--navy-ink); color: #C2CDE0; padding: 40px 0 48px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem 3rem; }
.brand-foot { color: var(--white); margin-bottom: .6rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot a { color: #DCE6FA; }
.foot-small { grid-column: 1 / -1; font-size: .875rem; color: #8797B5; border-top: 1px solid #22355E; padding-top: 1.4rem; margin: .4rem 0 0; max-width: 60rem; }

/* ---------------------------------------------------------------- motion
   Only for people who did not ask for less motion. Everything has a visible resting state:
   the hidden "before" state of the scroll reveals only applies once the script has run. */
.spot { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text h1 { animation-delay: .1s; }
  .hero-text .lede { animation-delay: .28s; }
  .hero-text .hero-actions { animation-delay: .46s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }

  .hero-phone { animation: phoneIn 1.1s cubic-bezier(.2, .7, .2, 1) .35s both, float 7s ease-in-out 1.5s infinite; }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(7deg); } to { transform: rotate(2deg); } }
  @keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
  .hero-phone .map-card { animation: cardUp .7s cubic-bezier(.2, 1.4, .4, 1) 1.5s both; }
  @keyframes cardUp { from { opacity: 0; transform: translateY(36px) scale(.96); } }
  /* a finger tap on the chosen post */
  .tap { position: absolute; left: 41%; top: 35.3%; width: 0; height: 0; z-index: 1; }
  .tap::before, .tap::after {
    content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
    border: 2.5px solid var(--navy); opacity: 0; animation: tap 3.2s ease-out 1.2s infinite;
  }
  .tap::after { animation-delay: 1.45s; }
  @keyframes tap { 0% { transform: scale(.4); opacity: .9; } 45%, 100% { transform: scale(2.6); opacity: 0; } }

  /* lamp light following the mouse over the night street */
  .hero .spot {
    display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 120, .16), rgba(255, 201, 64, .05) 45%, transparent 70%);
    mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease;
  }
  .hero.has-spot .spot { opacity: 1; }

  /* scroll reveals */
  .js [data-reveal] {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .section-head .kicker::before { width: 0; transition: width .7s ease .35s; }
  .js .section-head.is-in .kicker::before { width: 22px; }
  /* the step phones rise up out of their ledge */
  .js .step .step-shot .phone { transform: translateY(75%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 140ms + 250ms); }
  .js .step.is-in .step-shot .phone { transform: none; }
  .js .faults li[data-reveal] { transform: translateY(18px) scale(.96); }
  .js .faults li.is-in { transform: none; }

  /* hover life */
  .faults li { transition: box-shadow .25s ease, background .25s ease; position: relative; }
  .faults li img { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
  .faults li:hover { box-shadow: 0 14px 30px -16px rgba(11, 30, 66, .45); z-index: 1; }
  .faults li:hover img { transform: translateY(-5px) rotate(-5deg) scale(1.06); }
  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s ease;
  }
  .btn:hover::after { transform: translateX(120%); }
  .hero .btn:hover, .top .btn:hover { box-shadow: 0 0 0 6px rgba(255, 201, 64, .16), 0 10px 34px rgba(255, 201, 64, .45); }
  .faq details[open] p { animation: rise .45s ease both; }
  .split-art img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .split-art:hover img { transform: rotate(-1.5deg) scale(1.02); }
}
.route-labels li { transition: color .3s ease; }
.route-labels li strong { position: relative; }
.route-labels li strong { align-self: flex-start; }
.route-labels li:nth-child(3) strong { align-self: flex-end; }
.route-labels li.is-now strong { color: var(--navy); }
.route-labels li.is-now strong::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--amber);
}
@media print { .js [data-reveal], .js .step .step-shot .phone { opacity: 1 !important; transform: none !important; } }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1020px) {
  .top { flex-wrap: wrap; gap: .8rem; position: relative; }
  .brand { min-width: 0; }
  .top .btn-small { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center; order: 3;
    width: 44px; height: 44px; border-radius: 10px;
    background: transparent; color: var(--white); border: 1.5px solid #3A5488; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu {
    display: none; order: 4; width: 100%; margin: 0;
    flex-direction: column; gap: 0;
    background: var(--night-2); border-radius: 12px; padding: .4rem;
  }
  .menu.is-open { display: flex; }
  .menu a { display: block; padding: .8rem .9rem; border-radius: 8px; font-size: 1.0625rem; }
  .menu a:hover { background: #1C3A70; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-shot { margin-bottom: 3.5rem; }
  .faults { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo-one { grid-template-columns: 220px minmax(0, 1fr); }
  .duo .phone { max-width: 260px; justify-self: center; width: 100%; }
  .duo-text { grid-column: 1 / -1; padding: 2.4rem 0 0; max-width: 40rem; }
  .duo-one .duo-text { grid-column: auto; padding: 0; }
}

@media (max-width: 760px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-phone .map-card { font-size: .75rem; padding: 10px; }
  .hero-phone .map-card strong { font-size: .8125rem; }
  .hero-phone .map-card svg { display: none; }
  .hero-phone { width: 240px; margin-bottom: calc(-1 * clamp(100px, 30vw, 150px)); }
  .split, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .split-art img { max-width: 300px; }
  .route-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .9rem; }
  .route-labels li:nth-child(2) { padding-left: 0; }
  .route-labels strong { font-size: 1rem; }
  .route-labels span { font-size: .8125rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .duo-one { grid-template-columns: minmax(0, 1fr); }
  .duo-one .phone { max-width: 240px; }
  /* the big "Nu melden" button is right below; keep the bar to logo + menu */
  .top .btn-small { display: none; }
  .menu-toggle { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .step-shot { height: 300px; padding: 0 16%; }
  .faults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-labels span { display: none; }
}
