/* ── Phone mockup styles (gedeeld door alle pagina's) ── */
.phone-frame { position:relative; background:#1c1c1e; border-radius:26px; padding:6px 4px 5px; box-shadow:0 0 0 1.5px #3a3a3c, 0 14px 36px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.14); }
.phone-frame-center { border-radius:30px; padding:7px 5px 6px; box-shadow:0 0 0 2px #2e2e30, 0 22px 50px rgba(0,0,0,0.32), 0 8px 18px rgba(0,0,0,0.16); }
.phone-notch { position:absolute; top:0; left:50%; transform:translateX(-50%); width:56px; height:15px; background:#1c1c1e; border-radius:0 0 11px 11px; z-index:5; }
.phone-screen { width:clamp(90px,15vw,118px); height:auto; aspect-ratio:164/354; object-fit:cover; object-position:top; border-radius:17px; display:block; }
.phone-screen-center { width:clamp(120px,21vw,158px); height:auto; aspect-ratio:220/476; border-radius:20px; }
.stacked-phones { position:relative; width:400px; height:780px; margin:-40px auto 0; }
.stacked-phones .sp-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:3; }
.stacked-phones .sp-img { width:200px; height:auto; aspect-ratio:164/354; object-fit:cover; object-position:top; border-radius:24px; display:block; }
.stacked-phones .sp-img-center { width:375px; aspect-ratio:220/476; border-radius:28px; }
@media(max-width:768px) {
  .stacked-phones { width:220px; height:380px; }
  .stacked-phones .sp-img { width:140px; border-radius:18px; }
  .stacked-phones .sp-img-center { width:176px; border-radius:22px; }
}

/* ── Hide on mobile ── */
@media(max-width:768px) {
  .hide-mobile { display:none !important; }
  [style*="margin-top:-250px"] { transform:scale(0.6);transform-origin:top center;margin-top:-100px !important; }
}

/* ── Page transitions ── */
body {
  animation: pageFadeIn 0.35s ease forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body.page-leaving {
  animation: pageFadeOut 0.22s ease forwards;
  pointer-events: none;
}
@keyframes pageFadeOut {
  to { opacity: 0; transform: translateY(-6px); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Accessibility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #1A1A1A;
  background: white;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 130% 50% at 50% -5%, rgba(0,144,204,0.28) 0%, transparent 45%),
    radial-gradient(ellipse 90% 40% at 15% 5%, rgba(0,180,255,0.20) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 85% 25%, rgba(255,107,53,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 80% 70% at 50% 85%, rgba(76,175,125,0.12) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 5% 65%, rgba(130,85,194,0.08) 0%, transparent 45%);
  animation: bgShift 25s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
@keyframes bgShift {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.9; }
  25%  { transform: scale(1.06) translate(-3%, 2%); opacity: 1; }
  50%  { transform: scale(1.03) translate(2%, -1%); opacity: 0.95; }
  75%  { transform: scale(1.08) translate(-1%, 3%); opacity: 1; }
  100% { transform: scale(1) translate(1%, -2%); opacity: 0.9; }
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--besparen); outline-offset: 2px; }

/* ── Design tokens ── */
:root {
  --besparen:     #0090CC;
  --besparen-g:   linear-gradient(135deg, #00B4FF, #0090CC);
  --aanbieding:   #FF6B35;
  --aanbieding-g: linear-gradient(135deg, #FF8C5A, #E04A1A);
  --boodschap:    #FF9F43;
  --boodschap-g:  linear-gradient(135deg, #FF9F43, #E67E22);
  --voorkeur:     #0090CC;
  --voorkeur-g:   linear-gradient(135deg, #00B4FF, #005EA6);
  --winkelassistent:   #0090CC;
  --winkelassistent-g: linear-gradient(135deg, #00B4FF, #0090CC);
  --bestelassistent:   #FF6B35;
  --bestelassistent-g: linear-gradient(135deg, #FF8A60, #FF6B35);
  --parkeren:     #4A90D9;
  --parkeren-g:   linear-gradient(135deg, #5AA0E8, #4A90D9);
  --route:        #5A2F8A;
  --route-g:      linear-gradient(135deg, #8255C2, #5A2F8A);
  --notities:     #F5A623;
  --notities-g:   linear-gradient(135deg, #F5C842, #F5A623);
  --green:        #4CAF7D;
  --gray:         #888;
  --light-bg:     #F5F5F5;
  --shadow-card:  0 2px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.09);
  --radius-card:  20px;
  --radius-btn:   12px;
  --radius-pill:  20px;
}

/* ── Layout helpers ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px !important; }
  .section { padding: 48px 0; }

  /* Modules: carousel boven tekst op mobiel */
  .feature-section .grid-2 {
    display: flex !important;
    flex-direction: column !important;
  }
  .feature-section .grid-2 > div:has(.stacked-phones) {
    order: -1 !important;
  }

  /* Stacked phones + desktop mockup kleiner op mobiel */
  .stacked-phones { width: 220px !important; height: 340px !important; }
  .stacked-phones .sp-img { width: 130px !important; border-radius: 16px !important; }
  .stacked-phones .sp-img-center { width: 160px !important; border-radius: 20px !important; }

  /* Module desktop mockups kleiner op mobiel */
  div[style*="max-width:288px"] { max-width: 220px !important; margin-top: -80px !important; }

  /* USP kaarten kleiner op mobiel */
  .grid-4 > div {
    padding: 16px 10px !important;
    border-radius: 14px !important;
  }
  .grid-4 > div > div:first-child {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }
  .grid-4 .usp-title {
    font-size: 13px !important;
  }
  .grid-4 .subtext {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-top: 4px !important;
  }

  /* Desktop mockup bij modules verbergen op mobiel (alleen hero) */
  .desktop-car-wrap,
  .desktop-badge {
    display: none !important;
  }

  /* Winkel & Mandje carousel kleiner op mobiel */
  .mandje-phones {
    width: 260px !important;
    height: 360px !important;
    margin: 0 auto !important;
  }
  .mandje-phones .mandje-side img {
    width: 140px !important;
    border-radius: 16px !important;
  }
  .mandje-phones .mandje-side div {
    border-radius: 20px !important;
    padding: 5px 4px !important;
  }
  .mandje-phones .mandje-left {
    transform: translate(-50%,-50%) translateX(-60px) scale(0.78) !important;
  }
  .mandje-phones .mandje-right {
    transform: translate(-50%,-50%) translateX(60px) scale(0.78) !important;
  }
  .mandje-phones .mandje-center img {
    width: 180px !important;
    border-radius: 18px !important;
  }
  .mandje-phones .mandje-center > div {
    border-radius: 22px !important;
    padding: 6px 5px !important;
  }

  /* Winkelmandje sectie: tekst + layout responsive */
  .mandje-phones + div,
  .mandje-phones {
    order: 0;
  }

  /* Winkelmandje sectie grid → column op mobiel */
  section:has(.mandje-phones) .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Winkelmandje sectie padding kleiner */
  section:has(.mandje-phones) div[style*="padding:clamp"] {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  /* Winkelmandje sectie tekst kleiner */
  section:has(.mandje-phones) .section-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  section:has(.mandje-phones) p {
    font-size: 14px !important;
  }

  /* Icoon rijen: icoon op zelfde regel als header */
  .mandje-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .mandje-feature-row {
    display: grid !important;
    grid-template-columns: 28px 1fr !important;
    gap: 8px !important;
    align-items: start !important;
    text-align: left !important;
  }
  .mandje-feature-row > span {
    font-size: 18px !important;
    line-height: 1.2 !important;
    padding-top: 1px !important;
  }
  .mandje-feature-row > div > div {
    font-size: 13px !important;
  }
  .mandje-feature-row > div > p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  section:has(.mandje-phones) .btn {
    font-size: 13px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ── Typography ── */
.hero-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.15;
  color: #1A1A1A;
  text-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
  letter-spacing: -0.8px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #FF8C5A 0%, #FF6B35 40%, #E04A1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(255,107,53,0.35)) drop-shadow(0 0 4px rgba(255,107,53,0.15));
  position: relative;
}
.hero-title .accent-blue {
  color: #1A1A1A;
  -webkit-text-fill-color: #1A1A1A;
  position: relative;
}
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.card-title { font-size: 18px; font-weight: 800; }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.subtext { color: #444; font-size: 15px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-btn);
  font-weight: 800; font-size: 15px; cursor: pointer; border: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: var(--besparen-g); color: white; box-shadow: 0 4px 16px rgba(0,144,204,0.35); }
.btn-outline { background: white; border: 1.5px solid var(--besparen); color: var(--besparen); }
.btn-gray { background: var(--light-bg); color: #555; }
.btn-disabled { background: #ddd; color: #888; cursor: not-allowed; opacity: 0.7; pointer-events: none; }

/* ── Cards ── */
.card {
  background: white; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }

/* ── Badge/pill ── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
}
.badge-green { background: rgba(76,175,125,0.12); color: var(--green); }
.badge-blue  { background: rgba(0,144,204,0.12);  color: var(--besparen); }
.badge-dark  { background: #1A1A1A; color: white; }

/* ── Navbar ── */
#navbar-placeholder {
  position: sticky; top: 0; z-index: 1000;
}
.navbar {
  background: var(--besparen-g); box-shadow: 0 2px 16px rgba(0,144,204,0.3);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; color: white; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a,
.navbar-links .dropdown-trigger { font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.92); }
.navbar-links a:visited,
.navbar-links a:active { color: rgba(255,255,255,0.92); }
.navbar-links a:hover,
.navbar-links .dropdown-trigger:hover { color: white; opacity: 1; }
#investor-btn, #investor-btn:visited, #investor-btn:active, #investor-btn:hover { color: white !important; }
.dropdown-trigger {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; line-height: inherit;
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: linear-gradient(135deg, #00A0E2, #0080B8); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,100,180,0.3);
  padding: 8px 0; min-width: 220px; z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.92);
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.15); color: white; }
.lang-dropdown { position: relative; }
.lang-drop-btn {
  cursor: pointer; padding: 6px 12px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.18); color: white; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: background 0.2s; font-family: inherit;
}
.lang-drop-btn:hover { background: rgba(255,255,255,0.3); }
.lang-drop-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 6px; min-width: 160px; z-index: 200;
}
.lang-dropdown.open .lang-drop-menu { display: block; }
.lang-drop-menu button {
  display: block; width: 100%; padding: 10px 14px; text-align: left;
  background: none; border: none; cursor: pointer; font-size: 14px;
  font-weight: 600; border-radius: 8px; color: #1A1A1A; font-family: inherit;
  transition: background 0.15s;
}
.lang-drop-menu button:hover { background: var(--light-bg); color: var(--besparen); }
.dropdown-sep { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 4px 8px; }
/* ── Hamburger button ── */
.hamburger {
  display: none; cursor: pointer; background: none; border: none; color: white;
  width: 44px; height: 44px; position: relative; z-index: 1001;
  padding: 0; margin-right: -10px;
}
.hamburger-lines { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 5px; }
.hamburger-line {
  display: block; width: 22px; height: 2px; background: white; border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.77,0.2,0.05,1), opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay menu ── */
@media (max-width: 768px) {
  .navbar { position: relative; z-index: 1000; }
  .hamburger { display: flex; }

  /* Backdrop */
  .mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; z-index: 998;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  }
  .mobile-overlay.active { opacity: 1; visibility: visible; }

  /* Full-screen menu panel */
  .navbar-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw); z-index: 999;
    background: linear-gradient(180deg, #0090CC 0%, #007AB8 100%);
    display: flex; flex-direction: column; gap: 0;
    padding: 80px 28px 32px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.25);
  }
  .navbar-links.open {
    transform: translateX(0);
  }

  /* Menu links */
  .navbar-links a,
  .navbar-links .dropdown-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 0; width: 100%;
    font-size: 16px; font-weight: 700; color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease;
  }
  .navbar-links.open a,
  .navbar-links.open .dropdown-trigger {
    opacity: 1; transform: translateX(0);
  }
  /* Stagger: elk item 40ms later */
  .navbar-links.open > *:nth-child(1) { transition-delay: 0.08s; }
  .navbar-links.open > *:nth-child(2) { transition-delay: 0.12s; }
  .navbar-links.open > *:nth-child(3) { transition-delay: 0.16s; }
  .navbar-links.open > *:nth-child(4) { transition-delay: 0.20s; }
  .navbar-links.open > *:nth-child(5) { transition-delay: 0.24s; }
  .navbar-links.open > *:nth-child(6) { transition-delay: 0.28s; }
  .navbar-links.open > *:nth-child(7) { transition-delay: 0.32s; }
  .navbar-links.open > *:nth-child(8) { transition-delay: 0.36s; }
  .navbar-links.open > *:nth-child(9) { transition-delay: 0.40s; }
  .navbar-links.open > *:nth-child(10) { transition-delay: 0.44s; }

  /* Stagger children inside open items */
  .navbar-links.open > *:nth-child(1) a,
  .navbar-links.open > *:nth-child(1) .dropdown-trigger { transition-delay: 0.08s; }
  .navbar-links.open > *:nth-child(2) a,
  .navbar-links.open > *:nth-child(2) .dropdown-trigger { transition-delay: 0.12s; }

  .navbar-links a:last-child { border-bottom: none; }

  /* Active/tap state */
  .navbar-links a:active { background: rgba(255,255,255,0.1); border-radius: 8px; margin: 0 -8px; padding: 14px 8px; }

  /* CTA knoppen prominent */
  .navbar-links .navbar-cta,
  .navbar-links #investor-btn {
    margin-top: 8px; border-bottom: none;
    border-radius: 12px !important; padding: 14px 16px !important;
    justify-content: center;
  }

  /* Social icons in menu */
  .navbar-social {
    margin-top: auto !important; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: center !important;
  }

  /* Taal dropdown in menu */
  .lang-dropdown { width: 100%; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .lang-drop-btn { width: 100%; justify-content: space-between; background: rgba(255,255,255,0.08); border-radius: 10px; }

  /* Body scroll lock */
  body.menu-open { overflow: hidden; }
}

/* ── Hero ── */
.hero {
  background: white;
  padding: 32px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,144,204,0.10) 0%, rgba(0,180,255,0.04) 50%, transparent 70%);
  top: -80px;
  right: -60px;
  animation: floatBlob1 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,160,226,0.08) 0%, rgba(0,144,204,0.03) 50%, transparent 70%);
  bottom: -60px;
  left: -40px;
  animation: floatBlob2 26s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20px, 15px) scale(1.05); }
  50% { transform: translate(10px, -10px) scale(0.97); }
  75% { transform: translate(15px, 8px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(18px, -12px) scale(1.04); }
  50% { transform: translate(-10px, 10px) scale(0.96); }
  75% { transform: translate(-15px, -5px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-flags { display: flex; gap: 8px; margin: 16px 0; font-size: 14px; font-weight: 600; flex-wrap: wrap; align-items: center; }
.hero-flags > span { flex-shrink: 0; flex-grow: 0; width: auto !important; }
.countdown {
  display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap;
}
.countdown-box {
  background: rgba(0,144,204,0.08); border-radius: 12px;
  padding: 12px 18px; text-align: center; min-width: 72px;
}
.countdown-box span { display: block; font-size: 34px; font-weight: 900; color: var(--besparen); }
.countdown-box small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.waitlist-form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 200px; padding: 13px 16px;
  border: 1.5px solid #ddd; border-radius: var(--radius-btn);
  font-size: 15px; outline: none; font-family: inherit;
}
.waitlist-form input:focus { border-color: var(--besparen); }
.store-badges-disabled { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.store-badge-btn { opacity: 0.5; cursor: not-allowed; }
.waitlist-msg { margin-top: 8px; font-weight: 700; font-size: 14px; }

/* ── USP bar ── */
.usp-bar { background: var(--light-bg); padding: 32px 0; }
.usp-item { text-align: center; padding: 16px; }
.usp-icon { font-size: 32px; margin-bottom: 8px; }
.usp-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }

/* ── Logo scroll ── */
.logo-scroll-wrap {
  overflow: hidden; padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: logoScroll 38s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.logo-track img {
  height: 64px; width: auto; object-fit: contain;
  background: white; padding: 12px 19px; border-radius: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); flex-shrink: 0;
}
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes logoScrollReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.logo-track-brands { animation: logoScrollReverse 44s linear infinite; }
.logo-track-brands img { height: 72px; padding: 14px 22px; border-radius: 18px; }

/* ── Feature sections ── */
.feature-section { padding: 72px 0; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px; }
.feature-bullets { list-style: none; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 7px; }
.feature-bullets li {
  padding: 11px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.9); border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); line-height: 1.45; font-weight: 500; color: #222;
}
.feature-bullets li::before { display: none; }
.feature-bullets .bi {
  font-size: 18px; flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05); border-radius: 10px;
}
.logo-flag-sep {
  flex-shrink: 0; padding: 8px 16px; border-radius: 24px;
  background: rgba(0,0,0,0.06); font-size: 14px; font-weight: 800;
  color: #333; white-space: nowrap; display: flex; align-items: center; gap: 8px;
  align-self: center; height: fit-content;
}
.flag { display: inline-block; width: 24px; height: 16px; border-radius: 3px; object-fit: cover; vertical-align: middle; box-shadow: 0 1px 3px rgba(0,0,0,0.2); flex-shrink: 0; }
.flag-sm { width: 18px; height: 12px; border-radius: 2px; }
.flag-lg { width: 32px; height: 21px; border-radius: 4px; }
.feature-bullets-2col li { align-items: flex-start; }
.feature-bullets-2col li > div { display: flex; flex-direction: column; gap: 2px; }
.feature-bullets-2col strong { font-size: 15px; color: #1a1a1a; display: block; }
.bi-sub { font-size: 13px; color: #666; font-weight: 400; line-height: 1.4; }

/* ── Dark CTA block (Winkelmandje) ── */
.dark-block {
  background: linear-gradient(135deg, #1A1A2E, #16213E);
  color: white; border-radius: var(--radius-card);
  padding: 48px; margin: 40px 0;
}
@media (max-width: 768px) { .dark-block { padding: 24px; } }
.dark-block .card-title { color: white; }
.dark-block .subtext { color: rgba(255,255,255,0.7); }

/* ── Pricing cards ── */
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border: 2px solid var(--besparen); }
.pricing-price { font-size: 40px; font-weight: 900; margin: 16px 0 4px; }
.pricing-period { color: #888; font-size: 14px; margin-bottom: 16px; }
.pricing-features { list-style: none; text-align: left; margin: 20px 0; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.pricing-features li.yes::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.pricing-features li.no::before  { content: "—"; color: #ccc; flex-shrink: 0; }

/* ── FAQ accordion ── */
.faq-section details { border-bottom: 1px solid #eee; }
.faq-section details summary {
  padding: 18px 0; font-weight: 700; font-size: 16px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-section details summary::-webkit-details-marker { display: none; }
.faq-section details summary::after { content: "⌄"; font-size: 18px; color: #aaa; transition: transform 0.22s; flex-shrink: 0; }
.faq-section details[open] summary::after { transform: rotate(180deg); }
.faq-section .answer { padding: 0 0 16px; color: #555; font-size: 15px; line-height: 1.7; }
.faq-section details[open] .answer { animation: faqFadeIn 0.2s ease; }
@keyframes faqFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ── */
.footer { background: #1A1A1A; color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-weight: 900; font-size: 18px; color: white; margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; display: block; margin-bottom: 8px; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Investor login ── */
.investor-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--light-bg);
}
.login-card { max-width: 380px; width: 100%; }
.login-card input[type=password] {
  width: 100%; padding: 14px 16px; border: 1.5px solid #ddd;
  border-radius: var(--radius-btn); font-size: 16px; margin: 12px 0;
  font-family: inherit; outline: none;
}
.login-card input[type=password]:focus { border-color: var(--besparen); }

/* ── Mockup components ── */
.phone-mockup {
  width: 200px; background: #1A1A1A; border-radius: 32px;
  padding: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  margin: 0 auto;
}
.phone-screen { background: white; border-radius: 22px; overflow: hidden; }
.product-card-mock {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.product-price-mock { font-weight: 900; font-size: 15px; color: #1A1A1A; }

/* ── Step indicators ── */
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--besparen-g); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; flex-shrink: 0; margin-bottom: 12px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — Volledig mobielvriendelijk
   ══════════════════════════════════════════════════════════════════ */

/* ── Reduced motion (toegankelijkheid) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  body { animation: none !important; }
  body.page-leaving { animation: none !important; opacity: 0; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .logo-track, .logo-track-brands { animation-play-state: paused; }
}

/* ── Module hero class (vervangt inline padding:80px 0) ── */
.hero-module { padding: 80px 0; }

/* ── Tablet (481–768px): 3/4-kolomsgrids → 2 kolommen ── */
@media (min-width: 481px) and (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-module { padding: 56px 0; }
}

/* ── Mobiel ≤480px: alles 1 kolom, compactere spacing ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .hero { padding: 16px 0 8px; }
  /* Carousel wrapper: geen ruimte op mobiel */
  #carousel-section {
    padding-top: 0 !important;
    margin-top: -20px !important;
  }
  .hero .grid-2 {
    gap: 8px !important;
  }
  .hero-module { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .card-title { font-size: 16px; }
  .countdown { gap: 8px; }
  .countdown-box { min-width: 54px; padding: 8px 10px; }
  .countdown-box span { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .feature-bullets li { padding: 9px 12px; font-size: 14px; }
  .feature-bullets .bi { width: 30px; height: 30px; font-size: 16px; }
  .dark-block { padding: 20px; margin: 20px 0; }
  .pricing-price { font-size: 34px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
}

/* ── Navbar mobiel: accordion & dropdown overrides ── */
@media (max-width: 768px) {
  /* Dropdown-menu: inline accordion */
  .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: none;
    padding: 4px 0;
    min-width: unset;
    width: 100%;
    margin-top: 4px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1), padding 0.35s ease;
    padding-top: 0; padding-bottom: 0;
    display: block;
  }
  .dropdown.open .dropdown-menu {
    max-height: 400px;
    padding-top: 4px; padding-bottom: 4px;
  }
  .dropdown:hover .dropdown-menu { display: block; max-height: 0; }
  .dropdown.open:hover .dropdown-menu { max-height: 400px; }
  .dropdown-menu a {
    color: rgba(255,255,255,0.88);
    font-size: 14px;
    padding: 10px 16px;
    border-bottom: none;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus { background: rgba(255,255,255,0.12); color: white; border-radius: 8px; }
  .dropdown-sep { border-color: rgba(255,255,255,0.1); margin: 4px 12px; }

  /* Dropdown trigger arrow rotation */
  .dropdown-trigger { transition: color 0.2s; }
  .dropdown.open .dropdown-trigger { color: white !important; }

  /* Taal dropdown: inline in drawer */
  .lang-drop-menu {
    position: static;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: none;
    padding: 4px 0;
    min-width: unset;
    width: 100%;
    margin-top: 4px;
  }
  .lang-drop-menu button { color: rgba(255,255,255,0.88); }
  .lang-drop-menu button:hover { background: rgba(255,255,255,0.12); color: white; }
}

/* ── Logo scroll: kleinere icoontjes op mobiel ── */
@media (max-width: 768px) {
  .logo-track img {
    height: 48px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
  }
  .logo-track-brands img {
    height: 56px !important;
    padding: 10px 16px !important;
  }
}

/* ── Waitlist-formulier: gestapeld op mobiel ── */
@media (max-width: 600px) {
  .waitlist-form { flex-direction: column; gap: 10px; }
  .waitlist-form input { min-width: unset; width: 100%; }
  .waitlist-form .btn { width: 100%; justify-content: center; }

  /* Nederland lancering knop: zo breed als de tekst */
  .hero-flags { align-self: flex-start; }

  /* Store badges: samen het scherm vullen */
  .store-badges-disabled {
    width: 100%;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: stretch;
  }
  .store-badges-disabled .store-badge-btn {
    flex: 1;
    height: 48px;
    width: auto;
    object-fit: contain;
  }
  .store-badges-disabled .webapp-cta-btn {
    flex: 1;
  }

  /* Countdown timer: volle breedte */
  .countdown {
    width: 100%;
    justify-content: space-between;
  }
  .countdown-box {
    flex: 1;
    min-width: 0;
  }

  /* Desktop carousel + badge verbergen op mobiel */
  .desktop-car-wrap,
  .desktop-badge {
    display: none !important;
  }

  /* Hero pijltjes weg op mobiel (module pijltjes blijven) */
  .hero-arrow {
    display: none !important;
  }

  /* Carousel section: centreren + past op scherm */
  #carousel-section {
    max-width: 100vw !important;
    width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
    align-items: center !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 auto !important;
  }

  /* Telefoon carousel centreren */
  #mc-wrap {
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Carousel chip + dots centreren */
  #carousel-chip-wrap,
  #carousel-dots-wrap {
    text-align: center !important;
    width: 100% !important;
  }

  /* Hero grid: alles centreren op mobiel */
  .hero .container.grid-2 {
    justify-items: center !important;
    text-align: center !important;
  }

  /* Hero subtitle: laat wrappen op mobiel */
  .hero p[style*="white-space:nowrap"] {
    white-space: normal !important;
  }

  /* Desktop badge ("Ook als desktop webapp") verbergen op mobiel */
  #carousel-section > div:has(> span:only-child) {
    display: none !important;
  }

  /* Video wrap: hogere aspect ratio op mobiel */
  #hero-video-wrap {
    aspect-ratio: 16/9 !important;
    border-radius: 16px !important;
  }
}

/* ── Abonnementen vergelijkingstabel: sticky eerste kolom ── */
@media (max-width: 640px) {
  .abonnementen-table { font-size: 13px; }
  .abonnementen-table th,
  .abonnementen-table td { padding: 10px 10px; min-width: 72px; }
  .abonnementen-table th:first-child,
  .abonnementen-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 130px;
    font-weight: 600;
  }
  .abonnementen-table thead th:first-child { background: var(--light-bg); }
  .abonnementen-table tbody td:first-child { background: white; }
  .abonnementen-table tbody tr:nth-child(even) td:first-child { background: #fafafa; }
}

/* ── FAQ: grotere touch target op mobiel ── */
@media (max-width: 768px) {
  .faq-section details summary { padding: 16px 0; font-size: 15px; }
}

/* ── Hero carousel: kleiner op mobiel ── */
@media (max-width: 768px) {
  .phone-mockup { width: auto; max-width: 200px; }
  .phone-mockup img { max-width: 100%; height: auto; }
}
@media (max-width: 480px) {
  #mc-center img { width: 180px !important; height: 320px !important; }
  #mc-left img, #mc-right img { width: 130px !important; height: 232px !important; }
}
@media (max-width: 380px) {
  #mc-center img { width: 158px !important; height: 280px !important; }
  #mc-left img, #mc-right img { width: 126px !important; height: 224px !important; }
}

/* ── Op mobiel: mockup/carousel BOVEN de tekst (meer visuele impact) ── */
@media (max-width: 768px) {
  .hero .grid-2 > div:last-child,
  .hero-module .grid-2 > div:last-child { order: -1; }
  /* Zorg dat screenshot-kolom gecentreerd staat */
  .hero-module .grid-2 > div:last-child { display: flex; justify-content: center; }
}

/* ── Hero abonnementen ── */
.hero-abo { padding: 60px 0; }
@media (max-width: 480px) { .hero-abo { padding: 36px 0; } }

/* ── Pricing cards: niet te breed gestapeld op mobiel ── */
@media (max-width: 480px) {
  .pricing-card { max-width: 420px; margin: 0 auto; }
}

/* ── Grid-2 gap op mobiel kleiner ── */
@media (max-width: 768px) {
  .grid-2 { gap: 28px; }
  /* Hero: carousel dichter bij header */
  .hero { padding: 40px 0 16px !important; }
  .hero .grid-2 { gap: 16px !important; }
  #carousel-section {
    padding-top: 0 !important;
    margin-top: 10px !important;
  }
  #carousel-chip-wrap {
    margin-bottom: -30px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Fixes inline style issues that don't respond to media queries
   ══════════════════════════════════════════════════════════════════ */

/* ─── 1. Override ALL inline grid styles at mobile breakpoints ─── */
@media (max-width: 768px) {
  /* Force all inline 2+ column grids to single column */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr auto auto auto"],
  [style*="grid-template-columns:1fr auto auto auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Force inline flex rows to wrap/stack (exclude carousel dots & badge) */
  [style*="display:flex"][style*="gap"]:not(#carousel-dots):not(#carousel-chip):not([id^="mc-"]),
  [style*="display: flex"][style*="gap"]:not(#carousel-dots):not(#carousel-chip):not([id^="mc-"]) {
    flex-wrap: wrap !important;
  }

  /* Inline flex with row direction: allow stacking (exclude carousel) */
  [style*="display:flex"][style*="align-items"]:not(#carousel-dots):not(#carousel-chip):not([id^="mc-"]),
  [style*="display: flex"][style*="align-items"]:not(#carousel-dots):not(#carousel-chip):not([id^="mc-"]) {
    flex-wrap: wrap !important;
  }

  /* Carousel dots: altijd op één rij, normale bolletjes */
  #carousel-dots {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    display: flex !important;
    justify-content: center !important;
  }
  #carousel-dots span {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    max-width: 18px !important;
    height: 4px !important;
    border-radius: 2px !important;
  }
}

/* Tablet: 5-column grids → 2-3 columns */
@media (min-width: 481px) and (max-width: 768px) {
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  [style*="grid-template-columns: 1fr auto auto auto"],
  [style*="grid-template-columns:1fr auto auto auto"] {
    grid-template-columns: 1fr auto auto auto !important;
  }
}

/* ─── 2. Mobile typography & spacing improvements ─── */
@media (max-width: 768px) {
  /* Reduce padding on cards and sections */
  .card { padding: 20px; }
  .section-title {
    font-size: clamp(20px, 5vw, 28px);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Feature bullets: full width, no 2-column layout */
  .feature-bullets-2col {
    columns: 1 !important;
    -moz-columns: 1 !important;
    -webkit-columns: 1 !important;
  }
}

@media (max-width: 480px) {
  /* Further reduce padding */
  .card { padding: 16px; }
  .section-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  /* Smaller hero badge text */
  .badge { font-size: 11px; padding: 3px 10px; }
}

/* ─── 3. Phone mockup responsive ─── */
@media (max-width: 768px) {
  .phone-mockup {
    width: 160px !important;
    padding: 8px !important;
    border-radius: 24px !important;
  }
  .phone-mockup img {
    width: 144px !important;
  }

  /* Carousel phones */
  .phone-screen-center {
    width: 180px !important;
    height: 320px !important;
  }
  .phone-screen {
    width: 130px !important;
    height: 232px !important;
  }
  #mc-wrap {
    height: 400px !important;
  }

  /* Carousel badge: niet overlappen op mobiel */
  #carousel-chip-wrap {
    margin-bottom: -50px !important;
  }
  #carousel-dots-wrap {
    margin-top: -40px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    width: 140px !important;
    padding: 6px !important;
  }
  .phone-mockup img {
    width: 128px !important;
  }
  .phone-screen-center {
    width: 160px !important;
    height: 346px !important;
  }
  .phone-screen {
    width: 114px !important;
    height: 246px !important;
  }
  #mc-wrap {
    height: 380px !important;
  }

  /* Carousel badge: niet overlappen op mobiel */
  #carousel-chip {
    font-size: 11px !important;
    padding: 7px 14px !important;
  }
  /* Badge wrapper: minder negatieve margin op mobiel */
  #carousel-chip-wrap {
    margin-bottom: -40px !important;
  }
  /* Dots wrapper: minder negatieve margin op mobiel */
  #carousel-dots-wrap {
    margin-top: -10px !important;
    margin-bottom: 32px !important;
  }
}

/* ─── 4. Feature sections mobile ─── */
@media (max-width: 768px) {
  .feature-section {
    padding: 40px 0 !important;
  }
  .feature-section .container.grid-2 {
    gap: 24px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Screenshot/phone-mockup altijd bovenaan op mobiel */
  .feature-section .container.grid-2 > div:has(.phone-mockup) {
    order: -1 !important;
  }
  .feature-bullets-2col {
    columns: 1 !important;
  }
}

@media (max-width: 480px) {
  .feature-section {
    padding: 28px 0 !important;
  }
  .feature-section .container.grid-2 {
    gap: 16px !important;
  }
}

/* ─── 5. Investor page specific ─── */

/* Scenario grid already handled in investor.html inline <style>,
   but enhance the inline grid overrides */
@media (max-width: 768px) {
  /* 5-column grids (inkomstenmodel, credits tiers) → 2 columns tablet */
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Tables: add horizontal scroll */
  [style*="overflow-x"],
  table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Make tables scrollable within their containers */
  .investor-table-wrap,
  .abonnementen-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .scenario-grid {
    grid-template-columns: 1fr !important;
  }

  /* Cost rows and other 2-col inline grids → single column
     (already handled by section 1, but reinforce for specificity) */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* 3-col inline grids */
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Table-like grids (1fr auto auto auto) → stack */
  [style*="grid-template-columns: 1fr auto auto auto"],
  [style*="grid-template-columns:1fr auto auto auto"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    font-size: 12px !important;
  }
}

/* ─── 6. Store badges & buttons ─── */
@media (max-width: 768px) {
  .store-badges-disabled {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .hero-badges-row {
    display: grid !important;
    grid-template-columns: repeat(3, auto) !important;
    gap: 6px !important;
    justify-content: center !important;
  }

  /* Buttons: prevent overflow */
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .store-badges-disabled {
    gap: 8px !important;
  }
  .store-badges-disabled img,
  .store-badge-btn img {
    height: 38px !important;
  }
  .hero-badges-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
}

/* ─── 7. Dark/colored blocks: reduce inline padding ─── */
@media (max-width: 768px) {
  [style*="padding:48px"],
  [style*="padding: 48px"] {
    padding: 24px !important;
  }
  [style*="padding:40px"],
  [style*="padding: 40px"] {
    padding: 20px !important;
  }
  [style*="padding:32px"],
  [style*="padding: 32px"] {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  [style*="padding:48px"],
  [style*="padding: 48px"] {
    padding: 16px !important;
  }
  [style*="padding:40px"],
  [style*="padding: 40px"] {
    padding: 16px !important;
  }
  [style*="padding:32px"],
  [style*="padding: 32px"] {
    padding: 12px !important;
  }
  [style*="padding:24px"],
  [style*="padding: 24px"] {
    padding: 14px !important;
  }
}

/* ─── 8. Pricing cards: 3-col → stack ─── */
@media (max-width: 768px) {
  .grid-3.pricing-grid,
  .grid-3:has(.pricing-card) {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card {
    max-width: 100%;
  }
}

/* ─── 9. Smooth mobile animations ─── */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
  }
  /* Smoother scrolling on mobile */
  html {
    -webkit-overflow-scrolling: touch;
  }
  /* Reduce animation intensity on mobile */
  .reveal {
    transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1),
                transform 0.4s cubic-bezier(0.22,1,0.36,1);
  }
}

/* ─── 10. Waitlist form (already handled, reinforced) ─── */
@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .waitlist-form input {
    min-width: unset !important;
    width: 100% !important;
  }
  .waitlist-form .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ─── 11. Country flags/cards: 3 column to 1 column ─── */
@media (max-width: 768px) {
  .grid-3:has(.flag),
  .grid-3:has([style*="flag"]) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Country card items within flex/grid containers */
  [style*="display:flex"] > [style*="border-radius"] {
    min-width: unset !important;
    width: 100% !important;
  }
}

/* ─── 12. "Voor wie" cards: 3 column to 1 column ─── */
/* grid-3 already collapses to 1fr at 768px (line 87),
   but reinforce for inline style overrides */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}

/* ─── 13. UGC details/collapsible on investor page ─── */
@media (max-width: 768px) {
  .ugc-details {
    border-radius: 16px !important;
  }
  .ugc-details summary {
    padding: 16px !important;
    font-size: 14px !important;
  }
  .ugc-details > div {
    padding: 16px !important;
  }
  .ugc-arrow {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .ugc-details summary {
    padding: 12px !important;
    font-size: 13px !important;
    gap: 8px !important;
  }
  .ugc-details > div {
    padding: 12px !important;
  }
}

/* ─── 14. Inline gap overrides for tight mobile spacing ─── */
@media (max-width: 480px) {
  [style*="gap:48px"],
  [style*="gap: 48px"] {
    gap: 20px !important;
  }
  [style*="gap:32px"],
  [style*="gap: 32px"] {
    gap: 16px !important;
  }
  [style*="gap:28px"],
  [style*="gap: 28px"] {
    gap: 14px !important;
  }
  [style*="gap:24px"],
  [style*="gap: 24px"] {
    gap: 12px !important;
  }
}

/* ─── 15. Inline margin overrides for mobile ─── */
@media (max-width: 480px) {
  [style*="margin-bottom:48px"],
  [style*="margin-bottom: 48px"] {
    margin-bottom: 24px !important;
  }
  [style*="margin-bottom:40px"],
  [style*="margin-bottom: 40px"] {
    margin-bottom: 20px !important;
  }
  [style*="margin-bottom:32px"],
  [style*="margin-bottom: 32px"] {
    margin-bottom: 16px !important;
  }
}

/* ─── 16. Inline font-size overrides for large text on mobile ─── */
@media (max-width: 480px) {
  [style*="font-size:48px"],
  [style*="font-size: 48px"] {
    font-size: 32px !important;
  }
  [style*="font-size:40px"],
  [style*="font-size: 40px"] {
    font-size: 28px !important;
  }
  [style*="font-size:36px"],
  [style*="font-size: 36px"] {
    font-size: 26px !important;
  }
  [style*="font-size:32px"],
  [style*="font-size: 32px"] {
    font-size: 24px !important;
  }
  [style*="font-size:28px"],
  [style*="font-size: 28px"] {
    font-size: 22px !important;
  }
}

/* ─── 17. Prevent horizontal overflow globally on mobile ─── */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .container {
    overflow-x: hidden;
  }
  /* Prevent wide inline elements from causing horizontal scroll */
  img, video, iframe, table, pre {
    max-width: 100% !important;
  }
}

/* ─── 18. Abonnementen page: 5-col grid inline override ─── */
@media (max-width: 768px) {
  .grid-3[style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .grid-3[style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 19. Feature page module hero padding overrides ─── */
@media (max-width: 768px) {
  [style*="padding:80px"],
  [style*="padding: 80px"] {
    padding: 40px 0 !important;
  }
  [style*="padding:72px"],
  [style*="padding: 72px"] {
    padding: 36px 0 !important;
  }
  [style*="padding:60px"],
  [style*="padding: 60px"] {
    padding: 30px 0 !important;
  }
}

@media (max-width: 480px) {
  [style*="padding:80px"],
  [style*="padding: 80px"] {
    padding: 28px 0 !important;
  }
  [style*="padding:72px"],
  [style*="padding: 72px"] {
    padding: 24px 0 !important;
  }
  [style*="padding:60px"],
  [style*="padding: 60px"] {
    padding: 20px 0 !important;
  }
}

/* ─── 20. Responsive utility classes ─── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .text-center-mobile { text-align: center !important; }
  .full-width-mobile { width: 100% !important; max-width: 100% !important; }
  .stack-mobile { flex-direction: column !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}

/* ══════════════════════════════════════════════════════════════════
   INVESTOR PAGE — Responsive grid classes
   Replaces inline grid styles with proper media-query classes
   ══════════════════════════════════════════════════════════════════ */

/* 5-column grid (inkomstenmodel, credits tiers) */
.inv-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .inv-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .inv-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .inv-grid-5 { grid-template-columns: 1fr; } }
.inv-grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 1100px) { .inv-grid-7 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .inv-grid-7 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .inv-grid-7 { grid-template-columns: repeat(2, 1fr); } }

/* 2-column grid — investor variant (various gaps) */
.inv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.inv-grid-2.gap-20 { gap: 20px; }
.inv-grid-2.gap-28 { gap: 28px; }
.inv-grid-2.gap-32 { gap: 32px; }
.inv-grid-2.gap-14 { gap: 14px; }
.inv-grid-2.gap-12 { gap: 12px; }
.inv-grid-2.gap-8  { gap: 8px; }
.inv-grid-2.align-start { align-items: start; }
@media (max-width: 768px) { .inv-grid-2 { grid-template-columns: 1fr; gap: 20px; } }

/* 3-column grid — investor variant */
.inv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .inv-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .inv-grid-3 { grid-template-columns: 1fr; } }

/* 4-column grid — investor KPI boxes */
.inv-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) { .inv-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .inv-grid-4 { grid-template-columns: 1fr; } }

/* Product comparison table grid (1fr auto auto auto) — keep on tablet, stack on phone */
.inv-product-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; }
@media (max-width: 480px) {
  .inv-product-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
}

/* Small inner 2-col (inside colored result boxes) — always 2 col */
.inv-inner-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Scrollable table wrapper */
.inv-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
