:root {
  --bg: #f3f6f4;
  --ink: #10231c;
  --surface: #ffffff;
  --surface-muted: #f4faf7;
  --surface-neutral: #f2f2f0;
  --surface-dark: #10201a;
  --surface-dark-2: #163026;
  --accent: #28d19c;
  --accent-dark: #1d9673;
  --accent-soft: #d6f5ed;
  --line: #dce7e1;
  --line-strong: #bdd4c9;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(13, 34, 27, 0.09);
  --shadow-strong: 0 28px 65px rgba(7, 20, 16, 0.26);
  --color-background-secondary: var(--surface-muted);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 120% at 0% 0%, #fbfefd 0%, #f3f6f4 45%, #eef3f0 100%);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  display: grid;
  gap: 0;
  padding-bottom: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  margin: 1.1rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(220, 231, 225, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 12px;
  z-index: 30;
  box-shadow: 0 10px 22px rgba(12, 28, 23, 0.1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: #224437;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.25rem 0.2rem;
}

.site-nav a:hover {
  color: #145940;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #c5e7d8;
  border-radius: 999px;
  background: #eff8f4;
  color: #176247;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #176247;
}

.site-header.menu-open .menu-toggle {
  background: #1f7a4f;
  border-color: #1f7a4f;
}

.site-header.menu-open .menu-toggle-bar {
  background: #ffffff;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  transform: translate(0.1em, -0.3rem);
}

.brand-e {
  color: var(--accent);
}

.brand-dot {
  background-color: var(--accent);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-left: 3px;
  align-self: baseline;
  display: inline-block;
  animation: heartbeat 2.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.18);
  }
  50% {
    transform: scale(1);
    opacity: 0.9;
  }
  75% {
    transform: scale(1.08);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 3.4rem;
  background-image:
    linear-gradient(115deg, rgba(10, 28, 22, 0.4), rgba(16, 44, 33, 0.18)),
    url("images/hero-main.webp");
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(10, 22, 18, 0.14));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.5;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 7%;
  background: rgba(44, 194, 143, 0.18);
}

.hero-glow-two {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: -20px;
  background: rgba(84, 189, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy product"
    "cta product";
  gap: 1.2rem 2rem;
  align-items: center;
}

.hero-copy-block {
  grid-area: copy;
  max-width: 38rem;
}

.hero-cta-block {
  grid-area: cta;
  max-width: 38rem;
  display: grid;
  gap: 1rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.hero-heading {
  margin: 0 0 0.7rem;
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.74rem;
  margin-bottom: 0.9rem;
  opacity: 0.92;
}

.hero-copy {
  max-width: 33rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

@media (min-width: 900px) {
  .hero-actions { justify-content: flex-start; }
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-trust li {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 20, 16, 0.22);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 700;
  color: inherit;
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: linear-gradient(135deg, #28b784, #1d8b67);
  border-color: #1d8b67;
  color: #fff;
}

.btn-solid:hover {
  background: linear-gradient(135deg, #21a777, #187655);
}

.btn-ghost,
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(9, 22, 18, 0.28);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 22px rgba(6, 18, 14, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header .btn-ghost {
  background: #eff8f4;
  border-color: #c5e7d8;
  color: #176247;
}

.hero-product {
  grid-area: product;
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.2rem;
}

/* ── Hero Slideshow ── */
.hero-slideshow {
  display: block;
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  /* Telefoonframe als vaste achtergrond: altijd zichtbaar, ook bij crossfade */
  background: center/contain no-repeat url("images/mockups/phone_frame_5.png");
}

@media (max-width: 900px) {
  .hero-slideshow {
    background-image: url("images/mockups/phone_frame_4.png");
  }
}

/* Invisible copy of first image keeps the container the right height */
.hero-slide-spacer {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* Incoming slide sits on top while fading in */
.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

/* Outgoing slide fades out simultaneously with the incoming slide fading in */
.hero-slide.is-leaving {
  z-index: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.35));
}

.hero-floating-badge {
  position: absolute;
  top: -0.1rem;
  left: 1rem;
  right: auto;
  z-index: 4;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #d7fff0;
  color: #0f503a;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-panel {
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(12, 30, 24, 0.74), rgba(8, 20, 16, 0.86));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel-copy {
  display: grid;
  gap: 0.12rem;
}

.hero-panel-label,
.hero-live-label,
.story-dashboard-kicker,
.insight-card-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-panel-top strong {
  font-size: 1.02rem;
}

/* Removed hero/course demo styles (unused after JS cleanup) */

.hero-live-card {
  padding: 0.9rem;
  border-radius: 18px;
  display: grid;
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-live-label {
  color: rgba(255, 255, 255, 0.78);
}

.hero-notification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 6rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(7, 18, 14, 0.52);
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-notification-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  align-content: center;
  gap: 0.16rem;
}

.hero-notification.is-hidden {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.hero-notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 49, 38, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  color: #144736;
}

.hero-notification-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.hero-notification strong {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.98rem;
}

.hero-notification-course {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.hero-notification span:last-child {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.3;
}

.proof-band {
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(220, 231, 225, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.proof-item {
  padding: 0.4rem 0.35rem;
}

.proof-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #0f503a;
  font-size: 1.15rem;
}

.proof-item span {
  color: #476058;
}

.section-shell {
  padding: 2rem 0;
}

.section-shell-light {
  padding-top: 0.8rem;
  background: linear-gradient(160deg, #f3f8f1 0%, #eaf2e5 100%);
}

.section-shell-dark {
  padding: 2.2rem 0;
  background:
    radial-gradient(120% 120% at 90% -10%, rgba(44, 194, 143, 0.2), transparent 48%),
    linear-gradient(180deg, #e8f4ee 0%, #dcefe6 100%);
  color: #12382d;
}

.section-shell-map {
  background: linear-gradient(155deg, #0e2318 0%, #122d1d 70%, #0b1c13 100%);
  padding: 2.4rem 0;
  color: #d6ece2;
}

/* Remove card treatment inside the dark map section */
.section-shell-map .coverage {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.section-shell-map .coverage h2 {
  color: #ffffff;
}

.section-shell-map .coverage-copy > p:not(.coverage-kicker) {
  color: rgba(200, 230, 215, 0.82);
}

.section-shell-map .coverage-kicker {
  color: var(--accent);
  background: rgba(44, 194, 143, 0.12);
}

/* Removed #supported-courses styles — element not present in markup */

.section-shell-map .nl-map-object {
  opacity: 0.82;
  filter: brightness(1.1) saturate(1.4) contrast(0.92);
}

/* ── Early access section ───────────────────────────────────────────────── */
#earlyaccess.section-shell {
  background: #ffffff; /* explicit white background for redesigned section */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 0;
}

@media (min-width: 900px) {
  #earlyaccess.section-shell { padding: 4rem 0; }
}

/* Two-column layout */
.earlyaccess-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  /* Keep the redesigned content spanning full width: force single column layout for this section */
  #earlyaccess .earlyaccess-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Left column */
.earlyaccess-left {
  display: grid;
  gap: 1rem;
}

.earlyaccess-left h2 {
  margin: 0;
}

/* New earlyaccess redesign styles */
.earlyaccess-banner {
  background: #1d9673;
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.earlyaccess-banner-icon {
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  flex-shrink: 0;
}
.earlyaccess-banner-text {
  padding: 1rem 1.25rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center inside the banner */
}
.earlyaccess-banner-text strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}
.earlyaccess-banner-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}
.banner-inner { display:flex; gap:0.75rem; align-items:center; }
.banner-icon-circle { width:36px; height:36px; border-radius:50%; background:#1D9E75; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.banner-icon-circle svg { display:block; }
.banner-title { color:#0F6E56; font-size: 1rem; font-weight:500; margin:0; }
.banner-sub { color:#4a8a72; font-size:0.95rem; margin-top:0.125rem; }

.plans-row {
  display:flex; gap:1rem; flex-direction:column;
}
@media (min-width: 720px) {
  .plans-row { flex-direction:row; }
}

.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.plan-card--free { background: var(--surface-neutral); }
.plan-card--premium { border: 2px solid #1D9E75; position:relative; }
.plan-badge { position:absolute; right:12px; top:12px; background:var(--accent-soft); color:#175842; font-weight:700; padding:0.35rem 0.7rem; border-radius:999px; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.12em; white-space:nowrap; }
.plan-label { color:#8aaa9a; font-size:0.85rem; }
.plan-title { margin:0; font-size:1rem; }
.plan-desc { margin:0; color:var(--muted); font-size:0.95rem; }
.plan-features { list-style:none; padding:0; margin:0; display:grid; gap:0.5rem; color:var(--muted); font-size:0.95rem; }
.plan-features li { display:grid; grid-template-columns: 1.1rem 1fr; gap:0.35rem; align-items:start; border-bottom: 0.5px solid var(--line); padding: 4px 0; }
.plan-features li:last-child { border-bottom: none; padding-bottom: 0; }
.plan-features li.feat-unavailable { color: #9e9e9e; }
.feat-check { color:#1D9E75; font-weight:700; display:inline-block; width:1.1rem; margin:0; align-self:start; }
.feat-dash { color:var(--muted); display:inline-block; width:1.1rem; margin:0; align-self:start; }

.earlyaccess-cta-row { margin-top:0.6rem; display:flex; flex-direction:column; gap:0.5rem; align-items:center; }
.earlyaccess-cta--fullwidth { display:inline-flex; align-items:center; justify-content:center; margin:0 auto; min-width:280px; padding:0.8rem 3rem; border-radius:999px; }
.earlyaccess-layout > h2 { margin-bottom: 0.5rem; }
.earlyaccess-disclaimer { margin:0; text-align:center; color:var(--muted); font-size:0.9rem; }

.earlyaccess-intro {
  margin: 0;
  color: #3e5a51;
  line-height: 1.6;
}

.earlyaccess-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.earlyaccess-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.97rem;
  color: var(--ink);
}

.earlyaccess-checklist li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

/* Right column: self-contained premium card */
.earlyaccess-right {
  background: #eef8f4;
  border: 1px solid #c5e8da;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

/* Card header: icon + label */
.earlyaccess-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.earlyaccess-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.earlyaccess-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.earlyaccess-card-meta strong {
  font-size: 0.97rem;
  color: var(--ink);
}

.earlyaccess-card-meta span {
  font-size: 0.82rem;
  color: #4a8a72;
}

/* White inner price row */
.earlyaccess-price-row {
  background: #fff;
  border: 1px solid #c5e8da;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.earlyaccess-old-price {
  font-size: 0.88rem;
  color: #7a9990;
}

.earlyaccess-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Disclaimer */
.earlyaccess-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: #4a8a72;
  line-height: 1.5;
}

/* CTA button: full-width pill using existing btn-solid */
.earlyaccess-cta {
  display: block;
  width: 100%;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.cta,
.why-gripe,
.coverage {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#features {
  padding-top: 0;
  background: #eef7f2;
}

.why-gripe {
  padding: 2rem;
  background:
    radial-gradient(110% 110% at 0% 0%, #eef9f4 0%, transparent 50%),
    var(--surface);
}

.why-gripe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1.2rem 1.4rem;
  align-items: start;
}

.why-gripe-intro {
  width: 100%;
  max-width: none;
  margin-bottom: 1.15rem;
}

.why-gripe-main {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.why-gripe-intro h2 {
  margin-bottom: 0.5rem;
}

.coverage-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #175842;
  background: var(--accent-soft);
}

.section-shell-dark .coverage-kicker {
  color: #175842;
  background: rgba(44, 194, 143, 0.18);
}

.why-gripe-quote {
  margin: 1.2rem 0 1.3rem;
  padding: 1.05rem 1.15rem 1rem 2.3rem;
  background: #f5fbf8;
  border-radius: 18px;
  color: #3e5a51;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.5;
  font-style: italic;
  position: relative;
}

.why-gripe-quote::before {
  content: "\201C";
  position: absolute;
  left: 0.7rem;
  top: 0.35rem;
  color: var(--accent);
  font-size: 3rem;
  font-family: Georgia, "Times New Roman", serif;
}

.why-gripe-copy {
  display: grid;
  gap: 0.9rem;
}

.why-gripe-copy p,
.coverage-copy > p:not(.coverage-kicker),
.card p,
.story-mode p,
.story-lead {
  margin: 0;
  color: #3b544c;
}

.why-gripe-signoff {
  margin: 1rem 0 0;
  color: #123d2e;
  font-weight: 700;
}

.why-gripe-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.3rem;
}

.insight-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfefd 0%, #f1f8f5 100%);
  border: 1px solid var(--line);
}

.insight-card-accent {
  background: linear-gradient(180deg, #123729 0%, #0f2c21 100%);
  color: #ffffff;
  border-color: rgba(44, 194, 143, 0.24);
}

.insight-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.insight-card li {
  color: inherit;
}

.story-journey {
  color: inherit;
}

.story-journey-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.story-journey-header h2 {
  color: #103729;
  font-size: clamp(2.05rem, 4.2vw, 3.1rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.story-journey-lead {
  margin: 0.55rem auto 0;
  max-width: 54ch;
  color: #36554a;
}

.story-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 1020px;
  margin-inline: auto;
}

.story-path {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 252, 249, 0.94));
  border: 1px solid rgba(184, 211, 199, 0.85);
  box-shadow: 0 12px 24px rgba(10, 31, 24, 0.1);
  overflow: hidden;
}

/* Header strip at the top of each route card.
   To change the colour, edit the two hex values in the gradient below.
   The accent colour used elsewhere is #28d19c. */
.story-path-head {
  margin: 0 -1rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, #22a87a 0%, #28b784 100%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.story-path-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.92;
  color: #fff;
}

.story-path-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}

.story-path-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(250px, 1.1fr) minmax(0, 0.85fr);
  gap: 0 0.2rem;
  align-items: center;
}

.story-path-center {
  display: grid;
  gap: 0.78rem;
}

.story-path-summary {
  margin: 0;
  color: #2f4f44;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.48;
  text-align: center;
  margin-bottom: 30px;
}

.story-path-phone {
  margin: 0;
  min-height: 260px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

/* Pull outer phones toward the card edges to balance whitespace.
   Increase the negative value (e.g. -2rem, -2.5rem) to push them further out. */
.story-path-phone:first-of-type {
  margin-left: -1.5rem;
}

.story-path-phone:last-of-type {
  margin-right: -1.5rem;
}

.story-path-phone img,
.story-path-phone picture {
  display: grid;
  place-items: center;
  width: 100%;
}

.story-path-phone img {
  width: min(100%, 255px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 8px 14px rgba(10, 28, 22, 0.22));
}

/* ── Mobile story slider (hidden on desktop) ── */
.story-mobile-slider {
  display: none;
}

.story-path-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.54rem;
}

.story-path-points li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 0.54rem;
  color: #2e4f44;
  font-size: 0.99rem;
  line-height: 1.45;
}

.story-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(44, 194, 143, 0.14);
  border: 1px solid rgba(30, 133, 98, 0.2);
}

.story-point-icon svg {
  width: 16px;
  height: 16px;
  stroke: #176047;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inline spinner used next to buttons when an async action is loading */
.inline-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.story-notify-flow {
  margin: 1rem auto 0;
  max-width: 720px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(184, 215, 201, 0.8);
}

.story-notify-copy {
  margin: 0;
  color: #3f6054;
  text-align: center;
}

.story-notify-card {
  margin: 1rem 0 0 0;
  width: min(100%, 390px);
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #e2f2ea 0%, #cce8d6 100%);
  border: 1px solid #8fbda8;
  box-shadow: 0 6px 18px rgba(10, 30, 22, 0.22);
}

/* When inside the center column, fill available width */
.story-path-center .story-notify-card {
  width: 100%;
}

.story-notify-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
}

.story-notify-text {
  display: grid;
  gap: 0.1rem;
}

.story-notify-text strong {
  color: #163c30;
  font-size: 0.93rem;
  line-height: 1.25;
}

.story-notify-text span {
  color: #3f5d53;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Descriptive text above the inline notification card */
.story-notify-inline {
  margin: 0;
  font-size: 0.9rem;
  color: #3a5648;
  line-height: 1.5;
}

.story-mini-cta {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.story-mini-cta .btn {
  min-width: 220px;
}

/* App sign-up CTA actions block */
.cta-feature-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  max-width: 26rem;
  margin-inline: auto;
}

.cta-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--ink);
}

.cta-feature-list li::before {
  content: "✓";
  color: var(--accent-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.cta-app-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.cta-app-btn {
  font-size: 1.05rem;
  padding: 0.96rem 2.2rem;
}

.cta-app-note {
  margin: 0;
  font-size: 0.88rem;
  color: #4d6b60;
}

.coverage {
  margin: 0 auto;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem 1.4rem;
  align-items: center;
}

.coverage h2 {
  margin-bottom: 0.65rem;
}

/* Removed #supported-courses styles — element not present in markup */

.coverage-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.nl-map-wrap {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 612.54211 / 723.61865;
  display: grid;
  place-items: center;
}

.nl-map-object {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0.88;
  filter: saturate(0.82) contrast(0.94) brightness(1.02) drop-shadow(0 14px 18px rgba(18, 62, 46, 0.12));
}

/* Removed .coverage-badge decorative badge — not present in current markup */

.coverage-label-inline {
  font-size: 0.31em;
  letter-spacing: 0.03em;
  color: #2f5247;
  font-weight: 700;
}

.faq {
  padding: 1.1rem 0 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbf9;
  box-shadow: 0 10px 24px rgba(14, 34, 27, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: linear-gradient(180deg, #edf6f1 0%, #e4f1ea 100%);
  color: #133127;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: linear-gradient(180deg, #e7f3ed 0%, #ddede5 100%);
}

.faq-question:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(44, 194, 143, 0.7);
}

.faq-item.is-open .faq-question {
  background: linear-gradient(135deg, #18372d 0%, #143127 100%);
  color: #ffffff;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #d7efe4;
  color: #176047;
  font-size: 1rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: #d7fff0;
  color: #0f503a;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  background: #f9fcfa;
  transition: grid-template-rows 220ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0.1rem 1.1rem 1rem;
  color: #425c53;
}

.card {
  padding: 1.2rem;
  text-align: left;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.cta {
  margin: 0 auto 1.5rem;
  padding: 1.8rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

/* .waitlist-form removed from markup; related styles cleaned up. */

/* ── Footer ── */
.site-footer {
  background: linear-gradient(160deg, #0c1f16 0%, #102819 100%);
  color: rgba(210, 235, 220, 0.65);
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
}

.footer-brand-col {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.footer-brand-logo {
  color: #ffffff;
  font-size: 3rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.91rem;
  color: rgba(210, 235, 220, 0.5);
  line-height: 1.5;
  max-width: 24ch;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(210, 235, 220, 0.65);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.footer-social-link:hover {
  background: rgba(44, 194, 143, 0.16);
  border-color: rgba(44, 194, 143, 0.36);
  color: var(--accent);
}

.footer-col {
  display: grid;
  gap: 0.48rem;
  align-content: start;
}

.footer-col-heading {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col a {
  text-decoration: none;
  color: rgba(210, 235, 220, 0.6);
  font-size: 0.91rem;
  line-height: 1.4;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Contact link styles (icon + email) */
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(210, 235, 220, 0.8);
  text-decoration: none;
  font-size: 0.91rem;
}
.footer-contact svg {
  width: 16px; /* 2px smaller */
  height: 16px; /* 2px smaller */
  stroke: currentColor;
  opacity: 0.92; /* slightly lighter look */
}
.footer-contact span {
  font-weight: 500; /* a bit less bold */
}
.footer-contact:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0 1.6rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.81rem;
  color: rgba(210, 235, 220, 0.32);
  text-align: center;
}

.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;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

#top,
#why-gripe,
#story,
#coverage,
#coverage-visual,
#faq,
#earlyaccess {
  scroll-margin-top: 6.2rem;
}

/* User prefers-reduced-motion rules removed by request — site controls motion. */

@media (max-width: 1060px) {
  .hero-product {
    padding-top: 0.2rem;
  }

  .hero-panel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-floating-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    overflow: visible;
  }

  .site-header .btn-ghost {
    margin-left: auto;
    padding: 0.58rem 0.95rem;
    font-size: 0.86rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.6rem 0.8rem;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid #e2e6e4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(20, 30, 24, 0.12);
    backdrop-filter: blur(4px);
    z-index: 30;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    font-size: 0.96rem;
    padding: 0.45rem 0.3rem;
  }

  .hero-grid,
  .why-gripe-layout,
  .coverage,
  .proof-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "product"
      "cta";
    min-height: unset;
  }

  .hero {
    padding-top: 2rem;
    background-image:
      linear-gradient(180deg, rgba(10, 28, 22, 0.26), rgba(10, 22, 18, 0.1)),
      url("images/hero-main.webp");
    background-position: center center;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
  }

  .hero-slideshow {
    background-image: url("images/mockups/phone_frame_4.png");
  }
  .why-gripe-layout {
    gap: 1rem;
  }

  .why-gripe-side {
    padding-top: 0;
  }

  .hero-copy-block,
  .hero-cta-block {
    max-width: 100%;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-trust li {
    text-align: center;
  }

  .hero-product {
    justify-self: stretch;
    width: 100%;
    padding-top: 0.1rem;
  }

  .hero-slideshow {
    max-width: min(90vw, 320px);
  }

  .hero-floating-badge {
    top: 0;
    left: 0.8rem;
  }

  .proof-band {
    margin-top: -2rem;
  }

  .proof-grid,
  .why-gripe,
  .coverage,
  .cta {
    padding: 1.2rem;
  }

  .story-path {
    padding: 0 1.2rem 1.2rem;
  }

  /* Adjust head margin to match 900px card padding */
  .story-path-head {
    margin: 0 -1.2rem;
  }

  .story-paths {
    grid-template-columns: 1fr;
  }

  .story-path-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .story-path-phone:first-of-type {
    margin-left: 0;
  }

  .story-path-phone:last-of-type {
    margin-right: 0;
  }

  .story-path-phone {
    min-height: 210px;
  }

  .story-path-phone img {
    width: min(100%, 215px);
  }

  .story-path-center {
    grid-column: 1 / -1;
    padding: 0.1rem 0.2rem 0;
  }

  .story-notify-flow {
    text-align: center;
  }

  .coverage-visual {
    min-height: 260px;
  }

  /* Removed .coverage-badge override (unused) */

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / 2; /* keep brand in first column so nav/contact can sit beside it on small screens */
  }
}

/* Between 600px and 900px: place Contact under Navigation (same second column) */
@media (min-width: 560px) and (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
    align-items: start;
  }

  .footer-brand-col {
    grid-column: 1 / 2;
  }

  /* first .footer-col (navigation) sits in column 2 row 1 */
  .footer-inner > .footer-col:first-of-type {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  /* contact column goes below navigation in the same column */
  .footer-contact-col {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    gap: 0.5rem;
  }

  .brand {
    font-size: 2.5rem;
  }

  .hero {
    padding-bottom: 2.1rem;
    background-image:
      linear-gradient(180deg, rgba(10, 28, 22, 0.22), rgba(10, 22, 18, 0.08)),
      url("images/hero-main-mobile_1x.webp");
    background-position: right top;
    background-size: cover;
  }

  .hero-heading {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  /* Removed responsive hero/course-card overrides (unused) */

  .hero-panel-top {
    flex-direction: column;
  }

  .hero-floating-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 0.7rem;
  }

  .why-gripe,
  .story-path,
  .coverage,
  .cta {
    padding: 0 0.8rem 0.8rem;
  }

  /* Adjust head margin to match smaller card padding */
  .story-path-head {
    margin: 0 -0.8rem;
  }

  .story-journey-header {
    margin-bottom: 1rem;
  }

  /* Hide desktop phone mockups on mobile; show mobile slider instead */
  .story-path-phone {
    display: none;
  }

  .story-path-title,
  .story-path-summary {
    text-align: left;
  }

  .story-path-summary {
    margin-bottom: 0;
  }

  /* Center column flows naturally (first visible item in grid) */
  .story-path-center {
    order: unset;
    padding: 0;
  }

  /* Mobile slider: override display: none and lay out below the text */
  .story-mobile-slider {
    display: block;
    position: relative;
    margin-top: 0.5rem;
    overflow: hidden;
  }

  .story-mobile-track {
    display: flex;
    transition: transform 0.38s ease;
  }

  .story-mobile-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.25rem 0;
  }

  .story-mobile-slide img {
    width: min(100%, 230px);
    height: auto;
    /* Subtle shadow for mobile mockups (desktop variants have shadows baked in) */
    filter: drop-shadow(0 3px 10px rgba(10, 28, 22, 0.13));
  }

  /* Shared styles for both nav arrow buttons */
  .story-mobile-prev,
  .story-mobile-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(20, 60, 45, 0.18);
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(10, 28, 22, 0.14);
    transition: opacity 0.2s;
  }

  .story-mobile-prev {
    left: 0.6rem;
  }

  .story-mobile-next {
    right: 0.6rem;
  }

  .story-mobile-prev[hidden],
  .story-mobile-next[hidden] {
    display: none;
  }

  .story-mobile-prev svg,
  .story-mobile-next svg {
    width: 18px;
    height: 18px;
    stroke: #163026;
  }

  /* Pagination dots */
  .story-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0 0.1rem;
  }

  .story-mobile-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(20, 60, 45, 0.2);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
  }

  .story-mobile-dot.is-active {
    background: var(--accent);
    transform: scale(1.3);
  }

  .story-notify-flow {
    padding: 0.75rem 0.8rem;
  }

  .story-notify-card {
    width: 100%;
  }

  /* Removed .coverage-badge override (unused) */

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* 2x retina mobile hero */
@media (max-width: 900px) and (-webkit-min-device-pixel-ratio: 2),
       (max-width: 900px) and (min-resolution: 2dppx) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(10, 28, 22, 0.22), rgba(10, 22, 18, 0.08)),
      url("images/hero-main-mobile_2x.webp");
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dot Coverage Section
   ═══════════════════════════════════════════════════════════════════════ */

.dotcov-shell {
  background: #eef7f2;
  padding: 5rem 0;
  color: #12382d;
  /* Ensure this section's stacking context sits above sibling sections so
     the autocomplete dropdown (position:absolute inside) is never clipped
     by the following section's stacking context (created by .reveal's
     opacity/transform transitions). */
  position: relative;
  z-index: 2;
}

.dotcov {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0 3rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  /* On desktop: keep two columns, but stack copy + search in left column and let visual span full height on right */
  .dotcov {
    grid-template-columns: 1fr 1.6fr;
    grid-template-rows: auto auto;
    gap: 0 3rem;
    align-items: stretch;
  }

  .dotcov-copy { grid-column: 1 / 2; grid-row: 1 / 2; }
  .dotcov-search { grid-column: 1 / 2; grid-row: 2 / 3; justify-self: start; width: 100%; }
  .dotcov-search-row { max-width: 100%; }
  .dotcov-search-row input[type="search"] { max-width: 100%; box-sizing: border-box; }
  .dotcov-visual { grid-column: 2 / 3; grid-row: 1 / 3; align-self: stretch; }
}

/* ── Copy column ── */
.dotcov-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  justify-items: start; /* kicker en andere inline elementen nemen inhoudsbreedte aan */
}

.dotcov-copy h2 {
  color: #12382d;
  margin-bottom: 0;
}

.dotcov-count {
  color: var(--accent);
}

.dotcov-lead {
  margin: 0;
  color: #3e5a51;
  font-size: 1rem;
  line-height: 1.6;
}

/* Desktop logo pill badges */
.dotcov-logos-desktop {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dotcov-logos-mobile {
  display: none;
}

.dotcov-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: 999px;
  background: rgba(44, 194, 143, 0.1);
  border: 1px solid rgba(44, 194, 143, 0.25);
  transition: background 0.18s;
}

.dotcov-logo-item:hover {
  background: rgba(44, 194, 143, 0.14);
}

.dotcov-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px;
  flex-shrink: 0;
}

.dotcov-logo-name {
  font-size: 0.79rem;
  color: #3e5a51;
  white-space: nowrap;
}

/* Mobile lone logo (cycled) */
.dotcov-mobile-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem 0.42rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.4s ease;
}

.dotcov-mobile-logo.is-fading {
  opacity: 0;
}

.dotcov-mobile-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
  flex-shrink: 0;
}

.dotcov-mobile-logo-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #12382d;
}

/* ── Visual column ── */
.dotcov-visual {
  position: relative;
  z-index: 1; /* explicit low stacking order so .dotcov-search dropdown paints above */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Stretch to full section height so the map fills the green band */
  align-self: stretch;
  padding: 0;
  margin: -3rem 0; /* bleed into section padding so map reaches the edges */
  overflow: hidden;
}

.dotcov-canvas {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 612.54211 / 723.61865;
  margin: 0 auto;
}

.dotcov-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.07;
  filter: invert(1);
  pointer-events: none;
}

@keyframes dotReveal {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1);   }
}

@keyframes pillIn  { from { opacity: 0; transform: translate(-50%, -50%) scale(0.88); }
                     to   { opacity: 1; transform: translate(-50%, -50%) scale(1);    } }
@keyframes pillOut { from { opacity: 1; } to { opacity: 0; } }

.dotcov-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem 0.22rem 0.28rem;
  min-height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(44, 194, 143, 0.4);
  box-shadow: 0 2px 10px rgba(18, 56, 45, 0.15);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.dotcov-pill-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* When no logo is available, center the name inside the pill */
.dotcov-pill.no-logo {
  justify-content: center;
  gap: 0;
  padding-left: 0.6rem; /* slightly more horizontal padding for balance */
  padding-right: 0.6rem;
}

.dotcov-pill.no-logo .dotcov-pill-name {
  text-align: center;
}

.dotcov-pill-name {
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
  color: #12382d;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(1px);
}

/* SVG circles need fill-box so scale() originates from the circle's own centre */
.dotcov-dot-svg circle {
  transform-box: fill-box;
  transform-origin: center;
}

.dotcov-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  transform: translate(-50%, -50%);
}

/* Inline search UI placed under the dotcov visual on small/medium screens; spans both grid columns */
@media (max-width: 899px) {
  .dotcov-search {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    margin-top: 1rem;
    padding-top: 0.6rem;
    display: block;
  }
}
.dotcov-search-title { margin: 0 0 0.25rem 0; font-size: 1.125rem; color: #12382d; }
.dotcov-search-sub { margin: 0 0 0.75rem 0; color: #3e5a51; font-size: 0.95rem; }
.dotcov-search-row { display: block; max-width: 520px; margin: 0; }
.dotcov-search-row input[type="search"] {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.9rem; /* room for custom clear button (reduced) */
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  transition: box-shadow 160ms ease, border-color 160ms ease;
  outline: none;
}

.dotcov-search-row input[type="search"]:focus,
.dotcov-search-row input[type="search"]:focus-visible {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 10px 30px rgba(21, 118, 86, 0.06), 0 0 0 6px rgba(40, 209, 156, 0.06);
}

/* Autocomplete suggestions: absolutely positioned to avoid pushing content */
.dotcov-search { position: relative; z-index: 10; }
.dotcov-search-row { position: relative; overflow: visible; }
.course-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(10, 28, 22, 0.06);
  display: none; /* shown when populated */
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

/* stronger shadow so dropdown reads above sections */
.course-suggestions {
  box-shadow: 0 20px 50px rgba(8, 28, 20, 0.12), 0 4px 12px rgba(8, 28, 20, 0.06);
}

.course-suggestions .suggestion {
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #12382d;
  background: transparent;
}

/* custom clear button */
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: rgba(29,158,117,0.12);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-clear svg { width: 12px; height: 12px; }

/* Respect the HTML `hidden` attribute even when author styles set display */
.search-clear[hidden] {
  display: none !important;
}

/* Loading spinner inside the search row, same position as the clear button */
.search-spinner {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
}
.search-spinner::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.search-spinner[hidden] {
  display: none !important;
}

/* hide native search cancel in WebKit */
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"]::-ms-clear { display: none; }

/* check icon on the left of each suggestion */
.suggestion .check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}
.suggestion .check svg { display:block; width:100%; height:100%; stroke: currentColor; }

.course-suggestions .suggestion + .suggestion {
  border-top: 1px solid var(--line);
}

.course-suggestions .suggestion:hover,
.course-suggestions .suggestion.is-active {
  background: #f4faf7;
}

.suggestion .meta {
  font-size: 0.92rem;
  color: #2f4f44;
}

.suggestion .sub {
  font-size: 0.86rem;
  color: #6b8a7e;
}

@media (max-width: 560px) {
  .dotcov-search-row { max-width: 100%; }
}

/* "135+" number overlay */
.dotcov-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: none;
  z-index: 5;
}

.dotcov-overlay-num {
  display: block;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 800;
  color: #12382d;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(238, 247, 242, 0.9);
}

.dotcov-overlay-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3e5a51;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .dotcov {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .dotcov-visual {
    order: -1;
    align-self: auto;
    margin: -3rem 0 0; /* bleed into top padding only */
    padding: 0;
  }

  .dotcov-canvas {
    width: min(100%, 85vw);
    max-width: 380px;
  }
}

@media (max-width: 560px) {
  /* Op mobiel: kaart onder de tekst */
  .dotcov-visual {
    order: 1;
    margin: 0;
  }

  .dotcov-canvas {
    width: min(85vw, 320px);
    max-width: none;
  }

  .dotcov-dot {
    width: 6px;
    height: 6px;
  }

  .dotcov-logos-desktop {
    display: none;
  }

  .dotcov-logos-mobile {
    display: block;
  }
}

/* Ensure inline search appears after the visual on mobile (so it's below the map) */
@media (max-width: 560px) {
  .dotcov-search {
    order: 2;
    margin-top: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tablet zone (560px–899px): mobiele layout met wat meer ruimte
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 560px) and (max-width: 899px) {
  /* Why Gripe: 2-koloms op tablet zodat main+side naast elkaar blijven */
  .why-gripe-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem 1.2rem;
    align-items: start;
  }

  /* Proof-band: 3 koloms past prima op tablet */
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Feature-cards: 2 koloms i.p.v. 1 */
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Dot coverage: tekst en kaart naast elkaar, kleinere kaart */
  .dotcov {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .dotcov-visual {
    order: 0;
    align-self: auto;
    margin: -2.2rem 0 -2.2rem; /* compensate for tablet dotcov-shell padding */
    padding: 0;
  }

  .dotcov-canvas {
    width: min(100%, 85vw);
    max-width: 300px;
  }

  /* Footer: 2 koloms */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }


  .dotcov-shell {
    padding: 4rem 0;
  }

  .proof-grid,
  .why-gripe,
  .cta {
    padding: 1.4rem;
  }

  /* Story "Hoe werkt Gripe": gebruik de mobiele slider layout.
     Op 600-900px is het 3-koloms desktop-grid (telefoons + tekst) te smal.
     Telefoons verbergen, slider tonen — zelfde aanpak als ≤560px. */
  .story-path {
    padding: 0 1.2rem 1.2rem;
  }

  .story-path-head {
    margin: 0 -1.2rem;
  }

  .story-path-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-path-phone {
    display: none;
  }

  .story-path-center {
    grid-column: auto;
    padding: 0;
  }

  .story-path-title,
  .story-path-summary {
    text-align: left;
  }

  .story-path-summary {
    margin-bottom: 1rem;
  }

  /* Mobiele slider activeren op tablet */
  .story-mobile-slider {
    display: block;
    position: relative;
    margin-top: 0.6rem;
    overflow: hidden;
  }

  .story-mobile-track {
    display: flex;
    transition: transform 0.38s ease;
  }

  .story-mobile-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.25rem 0;
  }

  .story-mobile-slide img {
    width: min(100%, 280px);
    height: auto;
    filter: drop-shadow(0 3px 10px rgba(10, 28, 22, 0.13));
  }

  .story-mobile-prev,
  .story-mobile-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(20, 60, 45, 0.18);
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(10, 28, 22, 0.14);
    transition: opacity 0.2s;
  }

  .story-mobile-prev { left: 0.6rem; }
  .story-mobile-next { right: 0.6rem; }

  .story-mobile-prev[hidden],
  .story-mobile-next[hidden] {
    display: none;
  }

  .story-mobile-prev svg,
  .story-mobile-next svg {
    width: 18px;
    height: 18px;
    stroke: #163026;
  }

  .story-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0 0.1rem;
  }

  .story-mobile-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(20, 60, 45, 0.2);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
  }

  .story-mobile-dot.is-active {
    background: var(--accent);
    transform: scale(1.3);
  }

  .story-notify-flow {
    text-align: center;
  }

  .story-notify-card {
    width: 100%;
  }
}
