/* Dreve website: shared look. Dreef-green, framboos red (the dot in "Dreve." is always red),
   light green, ink, paper. Light only. Fonts are the app's own (OFL, see fonts/). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('fonts/BricolageGrotesque-latin.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-display: swap; src: url('fonts/JetBrainsMono-latin.woff2') format('woff2'); }

:root {
  --green: #1e9a68; --green-2: #17845a; --green-deep: #146f4c; --light: #9fe3b9; --soft: #e2f5ea;
  --red: #e0285a; --ink: #21403a; --muted: #6c8279; --line: #dfe8e1; --paper: #f3f7f2; --land: #fbfcf7;
  --sun: #ffc857; --shadow: rgba(16, 38, 31, 0.18);
  --head: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* from tab to tab: the pages fade into each other and the bar stays where it is (browsers that know
   view transitions between pages; the others just load the page) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
.nav { view-transition-name: dreve-nav; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.wordmark { font-family: var(--head); font-weight: 800; letter-spacing: -0.035em; }
.wordmark b { color: var(--red); }
.kicker { font: 700 0.75rem/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 0.6em; }
.kicker::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--red); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 0 max(16px, 3vw); transition: background 0.3s, box-shadow 0.3s, color 0.3s; color: var(--ink); }
.nav.on-green { color: #fff; }
.nav.solid { background: rgba(251, 252, 247, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav .brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .brand .wordmark { font-size: 1.6rem; }
.nav .tabs { display: flex; gap: 4px; margin: 0 auto; }
.nav .tabs a { text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 8px 13px; border-radius: 999px; opacity: 0.85; white-space: nowrap; }
.nav .tabs a:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.nav .tabs a[aria-current='page'] { opacity: 1; background: var(--soft); color: var(--green-deep); }
.nav.on-green:not(.solid) .tabs a[aria-current='page'] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 800 0.95rem/1 var(--body);
  padding: 12px 18px; border-radius: 999px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 22px -10px rgba(30, 154, 104, 0.8); }
.btn-green:hover { background: var(--green-2); }
.btn-white { background: #fff; color: var(--green-deep); box-shadow: 0 8px 22px -12px var(--shadow); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(224, 40, 90, 0.7); }
.nav .app { margin-left: 0; }
.nav .app { box-shadow: 0 8px 22px -10px rgba(224, 40, 90, 0.7); }
.menu-btn { display: none; }
/* not signed in: "Inloggen" next to "Plan je route" */
.nav .login { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 800; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px; margin-right: -12px; }
.nav .login:hover { background: rgba(127, 127, 127, 0.12); }
.nav.on-green:not(.solid) .login { background: rgba(20, 111, 76, 0.86); backdrop-filter: blur(10px); margin-right: 0; box-shadow: 0 8px 22px -12px var(--shadow); }
/* signed in: initials and first name top right, as in the chat */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.9); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; font: 700 0.9rem var(--body); cursor: pointer; }
.acct-btn:hover { border-color: var(--green); }
.acct-ini { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; overflow: hidden; }
.acct-ini img { width: 100%; height: 100%; object-fit: cover; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 14px 40px -10px var(--shadow); display: flex; flex-direction: column; }
.acct-menu[hidden] { display: none; }
.acct-menu strong { padding: 8px 10px 6px; font: 700 0.95rem var(--body); }
.acct-menu a { text-decoration: none; color: var(--ink); font: 700 0.95rem var(--body); padding: 8px 10px; border-radius: 8px; }
.acct-menu a:hover { background: var(--soft); }
.acct-menu { width: 270px; }
/* the app's waiting list: apart from the menu, and standing out */
.acct-app { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.acct-join, .acct-on { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 12px; border: 0; border-radius: 12px; text-align: left; font: 700 0.9rem var(--body); }
.acct-join { background: var(--green); color: #fff; cursor: pointer; box-shadow: 0 8px 20px -10px var(--green); }
.acct-join:hover { background: var(--green-deep); }
.acct-join span { display: flex; flex-direction: column; gap: 2px; }
.acct-join b { font-weight: 800; line-height: 1.25; }
.acct-join small { font-weight: 500; font-size: 0.78rem; opacity: 0.9; }
.acct-on { cursor: default; background: var(--soft); color: var(--green-deep); font-weight: 700; }
.acct-join svg, .acct-on svg { flex: none; }
/* on the home page the bar floats over the map: the tabs and the menu button get their own green glass */
.nav.on-green:not(.solid) .tabs { background: rgba(20, 111, 76, 0.86); backdrop-filter: blur(10px); border-radius: 999px; padding: 4px; box-shadow: 0 8px 22px -12px var(--shadow); }
.nav.on-green:not(.solid) .tabs a:hover { background: rgba(255, 255, 255, 0.14); }
/* the language switch: NL · FR · EN, small, the current one marked; in the bar on a wide screen,
   at the bottom of the menu on a phone */
.langs { display: flex; align-items: center; gap: 2px; font: 800 0.74rem/1 var(--body); letter-spacing: 0.04em; }
.langs a { text-decoration: none; color: inherit; opacity: 0.7; padding: 6px 7px; border-radius: 999px; }
.langs a:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.langs a[aria-current='true'] { opacity: 1; background: var(--soft); color: var(--green-deep); }
.langs a + a::before { content: none; }
.nav.on-green:not(.solid) .langs-bar { background: rgba(20, 111, 76, 0.86); backdrop-filter: blur(10px); border-radius: 999px; padding: 3px; box-shadow: 0 8px 22px -12px var(--shadow); }
.nav.on-green:not(.solid) .langs-bar a[aria-current='true'] { background: rgba(255, 255, 255, 0.2); color: #fff; }
.nav .tabs .langs-menu { display: none; }
.nav .tabs .langs-menu a { padding: 10px 14px; font-size: 0.85rem; opacity: 0.75; }
.nav .tabs .langs-menu a[aria-current='true'] { opacity: 1; background: var(--soft); color: var(--green-deep); }
/* five tabs and the longer French words: a little tighter before the menu button takes over */
.nav .login, .nav .app { white-space: nowrap; }
@media (max-width: 1440px) {
  .nav .tabs a { padding: 8px 10px; font-size: 0.88rem; }
  .nav { gap: 12px; }
}
@media (max-width: 1200px) {
  .langs-bar { display: none; }
  .nav .tabs .langs-menu { display: flex; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav { gap: 10px; }
  .nav .tabs { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; background: #fff; color: var(--ink); padding: 10px 16px 16px;
    box-shadow: 0 20px 40px -20px var(--shadow); display: none; margin: 0; }
  .nav .tabs.open { display: flex; }
  .nav .tabs a { padding: 12px 14px; }
  .nav .tabs a[aria-current='page'] { background: var(--soft); color: var(--green-deep) !important; }
  .menu-btn { display: inline-flex; margin-left: auto; background: transparent; border: 0; color: inherit; padding: 8px; cursor: pointer; }
  .nav.on-green:not(.solid) .tabs { background: #fff; backdrop-filter: none; border-radius: 0; padding: 10px 16px 16px; }
  .nav.on-green:not(.solid) .menu-btn { background: rgba(20, 111, 76, 0.86); border-radius: 999px; }
  .nav .app { padding: 10px 14px; font-size: 0.85rem; }
  .acct-name, .acct-btn svg { display: none; }
  .acct-btn { padding: 3px; }
  .nav .login { font-size: 0; gap: 0; padding: 9px; margin-right: 0; }
}
/* a phone: logo, menu, "Plan je route" and account must fit next to each other */
@media (max-width: 440px) {
  .nav { gap: 8px; }
  .nav .app { padding: 10px 12px; }
  .menu-btn { padding: 6px; }
}
@media (max-width: 380px) { .nav .brand .wordmark { display: none; } }

/* ---------- green with rising dots (the film's opening) ---------- */
.green { background: radial-gradient(120% 90% at 30% 35%, #22a873 0%, #1e9a68 45%, #16835a 100%); color: #fff; }
.dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dots i { position: absolute; top: 0; border-radius: 50%; background: rgba(159, 227, 185, 0.24); animation: rise linear infinite; }
@keyframes rise { from { transform: translateY(calc(100vh + 2rem)); } to { transform: translateY(-2rem); } }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- kinetic words ---------- */
.kin .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.kin .w > span { display: inline-block; transform: translateY(110%); }
.kin.go .w > span { animation: word-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes word-in { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-up.in { opacity: 1; transform: none; }
/* what is in view when the page opens is simply there (no words that arrive late) */
.fade-up.now { transition: none; }
/* a map comes in softly once it is drawn, on the colour of the land (never a grey box that jumps in) */
.map-fade { opacity: 0; transition: opacity 0.7s ease; }
.map-fade.on { opacity: 1; }

/* ---------- the first part of a light page (Waarom Dreve, Contact): as on Home and Hoe het werkt ---------- */
/* a part of its own: soft green from edge to edge, the words left and something to look at right (as the
   map on Home and Hoe het werkt); what follows has another ground (white, then Dreve green) */
.page-top { padding: calc(var(--nav-h) + clamp(32px, 5vw, 72px)) 0 clamp(44px, 6vw, 84px); background: #e4f4ea; box-shadow: inset 0 -1px 0 #cfe6d8; overflow: hidden; }
.page-top .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-top h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; margin-top: 18px; }
.page-top h1 .acc { color: var(--green); }
.page-top h1 .acc b { color: var(--red); }
.page-top .sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink); opacity: 0.78; max-width: 32rem; margin: 22px 0 0; }
.white { background: #fff; }
@media (max-width: 900px) { .page-top .cols { grid-template-columns: 1fr; } }
.hl { color: var(--red); }
/* a green band lower on a page (the dots rise through it) */
.band { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0; }
.band .wrap { position: relative; }

/* ---------- follow Dreve: LinkedIn, Facebook, Instagram ---------- */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, 0.12); transition: background 0.2s, transform 0.15s; }
.social a:hover { background: var(--red); transform: translateY(-1px); }
.social.big a { width: auto; height: auto; gap: 9px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16);
  font: 800 0.95rem/1 var(--body); text-decoration: none; }
.social.big a:hover { background: #fff; color: var(--green-deep); }
.foot-social { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

/* ---------- sections, footer ---------- */
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46rem; }
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 56px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer .wordmark { font-size: 2rem; color: #fff; }
.footer a { color: #fff; font-weight: 700; }
.footer small { display: block; margin-top: 28px; width: 100%; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }

/* the footer's strip: where Dreve works, and the app that is coming (waiting list) */
.foot-strip { width: 100%; margin: 4px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.foot-region { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }

/* the app is coming: the same quiet band on every page, with the drawing of a phone */
.app-band { padding: clamp(44px, 6vw, 80px) 0; background: var(--soft); }
.app-grid { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'phone head' 'phone text'; column-gap: clamp(22px, 5vw, 64px); row-gap: 0; align-items: center; }
.app-grid > .phone { grid-area: phone; }
.app-grid > .app-head { grid-area: head; align-self: end; }
.app-grid > .app-text { grid-area: text; align-self: start; }
.app-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); margin: 12px 0 12px; }
.app-band .lead { margin: 0 0 22px; }
.app-band .wl { max-width: 520px; }
.phone { position: relative; width: 168px; height: 300px; border-radius: 30px; background: var(--ink); padding: 9px; box-shadow: 0 30px 60px -30px rgba(16,38,31,.6); transform: rotate(-4deg); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--land); }
.phone .screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .notch { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 54px; height: 14px; border-radius: 0 0 10px 10px; background: var(--ink); z-index: 2; }
.phone .soon { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--red); color: #fff; border-radius: 999px; padding: 4px 12px; font: 800 .72rem var(--body); white-space: nowrap; }
@media (max-width: 760px) {
  /* a phone: the drawing small beside the title, the rest under them */
  .app-grid { grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: 'phone head' 'text text'; column-gap: 18px; row-gap: 16px; }
  .app-grid > .phone { width: 88px; height: 158px; border-radius: 18px; padding: 5px; }
  .phone .screen { border-radius: 14px; }
  .phone .notch { top: 5px; width: 30px; height: 8px; }
  .phone .soon { bottom: 8px; padding: 2px 8px; font-size: .58rem; }
  .app-grid > .app-head { align-self: center; }
  .app-band h2 { margin: 8px 0 0; }
}

/* a phone: everything a size smaller, so one part of a page fits in one screen */
@media (max-width: 760px) {
  section.block { padding: 44px 0; }
  .lead { font-size: 1rem; }
  .btn { padding: 11px 18px; font-size: .92rem; }
  .page-top h1 { font-size: 2.3rem; }
  .page-top .sub { font-size: 1rem; margin-top: 14px; }
}

/* the waiting list form (site.js D.waitlistForm) */
.wl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wl-btn svg { flex: none; }
.wl form.wl-form { display: flex; flex-wrap: wrap; gap: 8px; width: min(100%, 520px); background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; position: static; }
.wl form.wl-form input { flex: 1 1 220px; width: auto; min-width: 0; font: 500 0.95rem var(--body); padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.wl form.wl-form .btn { margin: 0; width: auto; padding: 12px 18px; }
.wl-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--soft); }
.wl-form input[aria-invalid='true'] { border-color: var(--red); }
.wl-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.wl-note a { color: inherit; }
.wl-ok { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.wl-check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-8'/></svg>") center/14px no-repeat; }
.wl-leave { align-self: flex-start; background: none; border: 0; padding: 0; font: 600 0.8rem var(--body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-dark .wl-note, .wl-dark .wl-leave { color: rgba(255, 255, 255, 0.6); }
.wl-dark .wl-ok { color: #fff; }
.wl-dark .wl-form input { border-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .dots i { animation: none; }
  .kin .w > span { transform: none; }
  .kin.go .w > span { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .map-fade { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
