/* Mobile first. Framer breakpoints are kept: tablet from 810px, desktop from 1200px. */

:root {
  --bosgroen: #165240;
  --limoen: #cae96f;
  --havermout: #f7f0e3;
  --havermout-diep: #f4eee0;
  --zand: #e1d6bd;
  --kiezel: #6f6a64;
  --cacao: #3b281b;
  --wit: #fff;

  --font-head: ui-rounded, Nunito, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: Rubik, Nunito, system-ui, sans-serif;

  --ease: cubic-bezier(0.12, 0.23, 0.17, 0.99);
  --gut: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --section-y: 72px;
  --max: 1250px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--havermout);
  color: var(--kiezel);
  font: 400 16px/24px var(--font-body);
  letter-spacing: -0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--bosgroen);
}

:focus-visible { outline: 3px solid var(--bosgroen); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px;
  background: var(--bosgroen); color: var(--havermout); border-radius: 8px;
  font-weight: 500; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 22px; border: 0; border-radius: 8px;
  background: var(--bosgroen); color: var(--havermout);
  font: 500 15px/18px var(--font-body); letter-spacing: 0; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: #0f3d30; }
.btn:active { transform: scale(0.98); }
.btn-nav { min-height: 44px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; }
.nav {
  background: var(--havermout);
  border-bottom: 1px solid var(--zand);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-text { font: 700 24px/29px var(--font-brand); letter-spacing: -0.01em; color: var(--bosgroen); }

.menu-toggle {
  position: relative; width: 60px; height: 60px; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer; color: #000;
}
.bar {
  position: absolute; left: 18px; width: 24px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.bar-top { top: 24px; }
.bar-bottom { top: 34px; }
.menu-open .bar-top { transform: translateY(5px) rotate(45deg); }
.menu-open .bar-bottom { transform: translateY(-5px) rotate(-45deg); }

/* Menu panel: closed on small screens, full-screen when open. */
.nav-links {
  display: none; flex-direction: column; align-items: stretch; gap: 24px;
  padding: 24px max(16px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom));
}
.menu-open .nav {
  position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .nav-links { display: flex; }
.nav-list { display: flex; flex-direction: column; gap: 24px; }
.nav-link {
  display: block; padding: 5px 0; min-height: 44px; display: flex; align-items: center;
  font: 500 15px/18px var(--font-body); letter-spacing: 0; color: var(--kiezel); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--bosgroen); }
.menu-open .nav-links .btn { align-self: stretch; }

/* Hero */
.hero { padding: 40px var(--gut) 0; }
.hero-inner { display: flex; flex-direction: column; gap: 32px; max-width: var(--max); margin-inline: auto; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 20px; }
h1 {
  font-size: clamp(2.25rem, 11.3vw, 2.75rem); line-height: 1.04; letter-spacing: -0.035em;
}
.lead { max-width: 460px; }
.hero-photo { width: 100%; aspect-ratio: 778 / 683; min-height: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }

/* Sign-up form (hidden text label, field, button, status). */
.form-wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.signup { width: 100%; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
.signup-field {
  display: block; flex: 1 1 auto; min-width: 0; height: 46px;
  background: var(--havermout); border: 1px solid var(--zand); border-radius: 8px;
  transition: border-color 0.2s;
}
.signup-field:focus-within { border-color: var(--bosgroen); }
.signup-field input {
  width: 100%; height: 100%; padding: 0 16px; border: 0; background: none; border-radius: 8px;
  font: 400 16px/22px var(--font-body); letter-spacing: 0; color: var(--bosgroen); outline: none;
}
.signup-field:focus-within { outline: 3px solid var(--bosgroen); outline-offset: 2px; }
.signup-field input::placeholder { color: var(--kiezel); opacity: 1; }
.signup .btn { flex: none; }
.form-note { margin-top: 12px; font-size: 13px; line-height: 18px; letter-spacing: 0; text-align: center; }
.form-note a { display: inline-block; padding: 14px 0; margin: -14px 0; text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 8px; min-height: 0; font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--bosgroen); text-align: center; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #894d40; }
.waitlist-count { text-align: center; }

/* Sections */
.section { padding: var(--section-y) var(--gut); display: flex; flex-direction: column; align-items: center; gap: 40px; }
.section > * { width: 100%; max-width: var(--max); }
.section-header { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 640px; text-align: center; }
.section-header p { max-width: 460px; }
h2 { font-size: 2.125rem; line-height: 1.08; letter-spacing: -0.03em; }
#features, #apps, #meer, #join { scroll-margin-top: 0; }

/* Bento cards */
.bento { display: flex; flex-direction: column; gap: 16px; }
.bento-row { display: flex; flex-direction: column; gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px;
  overflow: clip; border-radius: 24px; text-align: center;
  background: linear-gradient(var(--wit) 40%, var(--havermout-diep) 100%);
  height: 520px; padding: 40px 24px 0;
}
.card-wide-top { height: 540px; background: linear-gradient(var(--wit) 38%, var(--havermout-diep) 100%); }
.card-phone-top { background: linear-gradient(var(--havermout-diep) 0%, var(--wit) 60%); padding: 0 24px 40px; justify-content: flex-end; }
.card-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 480px; }
.card-title { font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }

.phone {
  flex: none; width: 300px; height: 626px; border-radius: 47px; overflow: hidden;
  box-shadow: 0 26px 44px -16px rgba(59, 40, 27, 0.26), 0 10px 18px -8px rgba(59, 40, 27, 0.14);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.js-motion .phone[data-parallax] { transition: transform 0.45s cubic-bezier(0.44, 0, 0.56, 1); }

/* Wide cards: copy above the phone on small screens. */
.card-wide { height: 520px; justify-content: flex-start; }
.card-wide-phone-left { flex-direction: column-reverse; justify-content: flex-end; gap: 36px; background: linear-gradient(var(--wit) 40%, var(--havermout-diep) 100%); }
.card-wide-phone-left .phone-col, .card-wide-phone-right .phone-col { display: flex; justify-content: center; }
.card-wide .card-copy { max-width: 302px; }

/* Apps */
.apps-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.apps-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; min-width: 0; }
.apps-copy h2 { text-align: left; }
.apps-phone { display: none; }
.chips { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow-x: clip; }
.chip-row { display: flex; flex-wrap: wrap; gap: 16px; overflow-x: clip; }
.chip {
  display: flex; flex: none; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--wit); border-radius: 12px; color: var(--bosgroen);
  font: 500 15px/18px var(--font-body); letter-spacing: 0; white-space: nowrap;
}
.chip svg { width: 20px; height: 20px; }
.chip-row.is-ticker { flex-wrap: nowrap; width: max-content; }
.chips.has-ticker { overflow-x: clip; }
.is-ticker { animation: tick var(--tick-dur, 60s) linear infinite; }
.is-ticker[data-ticker="right"] { animation-direction: reverse; }
@keyframes tick { to { transform: translateX(calc(var(--tick-shift) * -1)); } }

/* More grid */
.more-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.more-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px 28px 32px; background: var(--wit); border-radius: 20px;
}
.more-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(202, 233, 111, 0.45); color: var(--bosgroen); }
.more-icon svg { width: 26px; height: 26px; }
.more-item h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }

/* CTA */
.cta-card { display: flex; flex-direction: column; overflow: clip; border-radius: 20px; background: var(--wit); }
.cta-copy { display: flex; flex-direction: column; gap: 24px; padding: 40px 24px; }
.cta-text { display: flex; flex-direction: column; gap: 16px; }
.cta-copy .form-wrap { align-items: stretch; max-width: none; }
.cta-copy .form-note, .cta-copy .form-status, .cta-copy .waitlist-count { text-align: left; }
.brand-panel { display: flex; align-items: center; justify-content: center; min-height: 233px; background: var(--bosgroen); }
.brand-panel img { width: 140px; height: 140px; }

/* Footer */
.site-footer { border-top: 1px solid var(--zand); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; padding: 32px max(12px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom)); }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-brand { font: 700 20px/24px var(--font-brand); letter-spacing: -0.01em; color: var(--bosgroen); text-decoration: none; padding: 10px 0; }
.footer-link { padding: 10px 0; text-decoration: none; }
.footer-link:hover { color: var(--bosgroen); text-decoration: underline; }
.footer-copy { padding: 10px 0; }

/* Reveal: scroll-in fade and slide. Hidden state only exists when JS runs and motion is allowed. */
.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
.js-motion [data-reveal] { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-motion [data-reveal="late"] { transition-delay: 0.15s; }
.js-motion [data-reveal].is-in { transition-delay: 0s; }
.js-motion [data-reveal="late"].is-in { transition-delay: 0.15s; }

/* Hero entrance on load (copy 0.15s, photo 0.3s, count slides in after 0.7s). */
.js-motion [data-hero]:not(.is-in) { opacity: 0.001; }
.js-motion [data-hero="copy"]:not(.is-in), .js-motion [data-hero="photo"]:not(.is-in) { transform: translateY(40px); }
.js-motion [data-hero="count"]:not(.is-in) { transform: translateX(-10px); }
.js-motion [data-hero="copy"] { transition: opacity 0.7s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s; }
.js-motion [data-hero="photo"] { transition: opacity 0.7s var(--ease) 0.3s, transform 0.7s var(--ease) 0.3s; }
.js-motion [data-hero="count"] { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Tablet: 810px and up ---- */
@media (min-width: 810px) {
  :root { --gut: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); --section-y: 80px; }
  .hero { padding-top: 32px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 32px; }
  .hero-copy { flex: 1 1 400px; max-width: 400px; align-items: flex-start; text-align: left; padding-bottom: 48px; }
  .hero-text { align-items: flex-start; }
  .hero-photo { flex: 1 1 389px; max-width: 389px; margin-top: 40px; }
  .form-wrap { align-items: flex-start; }
  .signup-row { flex-direction: row; }
  .signup-field { flex: 0 1 233px; }
  .form-note, .form-status, .waitlist-count { text-align: left; }
  h1 { font-size: 3.625rem; }
  h2 { font-size: 2.625rem; }
  .section { gap: 48px; }
  .card-title { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; }
  .bento { gap: 24px; }
  .bento-row { flex-direction: row; gap: 32px; }
  .bento-row > .card { flex: 1 1 0; min-width: 0; }
  .card { height: 540px; padding-top: 48px; }
  .card-wide-top { height: 560px; padding-inline: 32px; }
  .card-phone-top { padding: 0 24px 48px; }
  .card-wide { flex-direction: row; align-items: flex-start; justify-content: center; gap: 0; height: 440px; padding: 0; text-align: left; }
  .card-wide-phone-left { flex-direction: row; background: linear-gradient(90deg, var(--havermout-diep) 0%, var(--wit) 62%); }
  .card-wide-phone-right { background: linear-gradient(270deg, var(--havermout-diep) 0%, var(--wit) 62%); }
  .card-wide .phone-col { flex: 0 0 372px; height: 100%; display: flex; justify-content: center; padding: 48px 48px 0 24px; }
  .card-wide-phone-right .phone-col { padding: 48px 24px 0 48px; }
  .card-wide .card-copy { flex: 0 1 464px; max-width: none; height: 100%; justify-content: center; align-items: flex-start; padding: 32px 24px 32px 48px; }
  .card-wide-phone-right .card-copy { padding: 32px 48px 32px 24px; }
  .apps-inner { flex-direction: row; justify-content: space-between; }
  .apps-copy { flex: 0 1 380px; width: auto; }
  .apps-phone { display: flex; flex: 0 0 324px; justify-content: center; padding-left: 24px; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cta-card { flex-direction: row; justify-content: space-between; align-items: flex-end; height: 560px; border-radius: 24px; }
  .cta-copy { flex: 0 1 556px; height: 100%; justify-content: center; padding: 40px 24px 40px 48px; }
  .brand-panel { flex: 0 0 280px; align-self: stretch; min-height: 0; }
  .brand-panel img { width: 200px; height: 200px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; padding-inline: max(56px, env(safe-area-inset-left)); }
  .footer-links { flex-direction: row; align-items: center; gap: 32px; }

  /* Menu: still a toggle on tablet. Links stay in the panel. */
}

/* ---- Desktop: 1200px and up ---- */
@media (min-width: 1200px) {
  :root { --gut: 56px; --section-y: 100px; }
  .nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h);
    padding-inline: 24px;
  }
  .nav-bar { display: contents; }
  .brand { justify-self: start; }
  .menu-toggle { display: none; }
  .nav-links { display: contents; }
  .nav-list { flex-direction: row; gap: 32px; justify-self: center; }
  .nav .btn-nav { justify-self: end; }
  .nav-link { padding: 13px 0; }
  .menu-open .nav { position: static; height: var(--header-h); overflow: visible; }

  .hero { min-height: max(100svh, 760px); display: flex; align-items: center; padding: 48px 56px 0; }
  .hero-inner { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-copy { grid-area: 1 / 1; max-width: 720px; flex: none; }
  .hero-photo { grid-area: 1 / 1; justify-self: end; width: min(778px, 100%); max-width: none; pointer-events: none; }
  h1 { font-size: clamp(4.5rem, 6.67vw, 6rem); line-height: 1.04; letter-spacing: -0.035em; }
  h2 { font-size: 3rem; }
  .section { gap: 60px; }
  .bento { gap: 32px; }
  .card-title { font-size: 1.75rem; }
  .card { height: 580px; padding-top: 56px; padding-inline: 40px; }
  .card-wide-top { height: 620px; }
  .card-phone-top { padding: 0 40px 56px; }
  .card-wide { height: 460px; padding: 0; }
  .card-wide .phone-col { flex: 0 0 440px; padding: 56px 100px 0 40px; }
  .card-wide-phone-right .phone-col { padding: 56px 40px 0 100px; }
  .card-wide .card-copy { flex: 0 0 560px; padding: 0 40px 0 80px; }
  .card-wide-phone-right .card-copy { padding: 0 80px 0 40px; }
  .apps-copy { flex: 0 0 560px; }
  .apps-phone { flex: 0 0 380px; padding: 0 40px; }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-copy { flex: 0 0 660px; padding: 40px 40px 40px 80px; }
  .cta-text { max-width: 540px; }
  .cta-text p { max-width: 440px; }
  .brand-panel { flex: 0 0 399px; }
}
