/* getsapere.com v2 — dark-only brand. Teal = merk (#14B8A6). Amber bewust NIET
   (in de app betekent amber "let op"). Mobiel-first; progressive enhancement.
   Geen build-stap. Visuele states via CSS-classes (geen inline styles → CSP-safe).
   docs/59 — antwoord-eerst, diepte één laag eronder via <details>. */
:root {
  --bg: #0b0f0e;
  --surface: #11201d;
  --surface-2: #0f1b19;
  --hairline: #1f2b28;
  --teal: #14b8a6;
  --teal-soft: #5dcaa5;
  --teal-deep: #0f2a25;
  --text-hi: #e7eeec;
  --text-mid: #9fb0ac;
  --text-lo: #6b7b77;
  /* ease/rest = gedempt grijs, NOOIT amber (merkregel) */
  --ease: #b9c4c0;
  --rest: #8b9a96;
  --maxw: 960px;
  --maxw-text: 40rem;
  --gap: 16px;
  --sec: 44px;
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-hi);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--teal); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ───────────────────────── Sticky top-nav ───────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  height: var(--nav-h);
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topnav .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-hi); text-decoration: none; font-weight: 700; }
.topnav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.topnav .brand b { color: var(--teal); font-weight: 700; }

/* Pure-CSS mobiel-menu via <details>. Desktop: open inline, summary verborgen. */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--text-hi); font-size: 0.95rem;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: "▾"; color: var(--text-mid); font-size: 0.8em; }
.nav-menu[open] > summary::after { content: "▴"; }
.nav-menu .menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 190px; padding: 8px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.nav-menu .menu a { color: var(--text-hi); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: 0.98rem; }
.nav-menu .menu a:hover { background: var(--surface-2); }
.nav-menu .menu .btn { margin-top: 4px; text-align: center; }

@media (min-width: 760px) {
  .nav-menu > summary { display: none; }
  .nav-menu[open] .menu, .nav-menu .menu {
    position: static; flex-direction: row; align-items: center; gap: 6px;
    min-width: 0; padding: 0; background: none; border: none; box-shadow: none;
  }
  .nav-menu .menu a { padding: 7px 10px; }
  .nav-menu .menu a:hover { background: none; color: var(--teal); }
  .nav-menu .menu .btn { margin-top: 0; }
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #04100e; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text-hi); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { padding: 8px 16px; font-size: 0.92rem; }

/* ───────────────────────── Sections / shared ───────────────────────── */
section { padding: var(--sec) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 600; color: var(--teal); margin: 0 0 10px; }
.section-title { font-size: 1.4rem; line-height: 1.3; margin: 0 0 10px; }
.section-lede { color: var(--text-mid); margin: 0 auto 8px; max-width: var(--maxw-text); font-size: 1.05rem; }

.breadcrumb { font-size: 0.88rem; color: var(--text-lo); padding-top: 18px; }
.breadcrumb a { color: var(--text-mid); }

/* ───────────────────────── Hero ───────────────────────── */
.hero { text-align: center; padding: 22px 0 8px; }
.hero .logo { width: 180px; max-width: 60%; height: auto; border-radius: 18px; margin: 4px auto 6px; display: block; }
.hero h1 { font-size: 1.7rem; line-height: 1.22; margin: 8px auto 12px; max-width: 30rem; }
.hero .lede { color: var(--text-mid); font-size: 1.1rem; margin: 0 auto; max-width: var(--maxw-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 8px; }
.cta-sub { color: var(--text-lo); font-size: 0.92rem; margin: 6px 0 0; }

/* App screenshots */
.hero-shot { margin-top: 28px; }
.hero-shot img { width: 232px; max-width: 70%; height: auto; border-radius: 30px; border: 1px solid var(--hairline); }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 24px; }
.shots figure { margin: 0; max-width: 196px; }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--hairline); }
.shots figcaption { color: var(--text-mid); font-size: 0.92rem; margin-top: 10px; }

/* ───────────────────────── <details> disclosure (de spil van "diepte eronder") ───────────────────────── */
.disclose { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); margin: 10px 0; }
.disclose > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; color: var(--teal); font-weight: 600; font-size: 0.96rem;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: "+"; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border: 1px solid var(--teal); border-radius: 6px; font-weight: 700; flex: 0 0 auto; }
.disclose[open] > summary::before { content: "–"; }
.disclose .body { padding: 0 14px 14px; color: var(--text-mid); font-size: 0.97rem; }
.disclose .body p:first-child { margin-top: 0; }
.disclose .src { display: block; margin-top: 8px; color: var(--text-lo); font-size: 0.86rem; }

/* ───────────────────────── Readout cards (product "what you see") ───────────────────────── */
.readouts { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 22px; text-align: left; }
.readout { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.readout h3 { font-size: 1.06rem; margin: 0 0 4px; color: var(--text-hi); }
.readout .lead { margin: 0 0 6px; color: var(--text-mid); font-size: 0.98rem; }
.readout .disclose { margin-bottom: 0; }

/* Card / feature / integration grids (responsive, geen media query nodig) */
.pillars, .feat-grid, .integrations { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); text-align: left; margin-top: 22px; }
.card, .feat, .intg { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 20px; }
.card h3, .feat h3, .intg h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--text-hi); }
.card p, .feat p, .intg p { margin: 0; color: var(--text-mid); font-size: 0.97rem; }

.block { text-align: center; }
.block .section-title, .block .section-lede { margin-left: auto; margin-right: auto; }

/* Availability tags */
.tag { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.tag-now  { background: rgba(20,184,166,.15); color: var(--teal); border: 1px solid var(--teal); }
.tag-soon { background: transparent; color: var(--text-lo); border: 1px solid var(--hairline); }

/* Honesty / disclaimer blocks */
.note { text-align: center; color: var(--text-lo); font-size: 0.92rem; padding: 8px 0 0; margin: 0 auto; max-width: var(--maxw-text); }
.hero-note { padding-top: 14px; }
.note-left { text-align: left; }
.honesty-box { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--teal); border-radius: 12px; padding: 16px 18px; text-align: left; margin-top: 16px; }
.honesty-box p { margin: 0 0 8px; color: var(--text-mid); font-size: 0.97rem; }
.honesty-box p:last-child { margin-bottom: 0; }
.honesty-box .disc { color: var(--text-lo); font-size: 0.9rem; }

/* Banner */
.banner { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 22px; text-align: center; }
.banner h2 { margin: 0 0 6px; font-size: 1.25rem; }
.banner p  { margin: 0 auto; color: var(--text-mid); max-width: var(--maxw-text); }

/* Footer */
footer { border-top: 1px solid var(--hairline); margin-top: 24px; padding: 28px 20px 48px; text-align: center; color: var(--text-lo); font-size: 0.9rem; }
footer a { margin: 0 8px; }
footer .foot-sub { margin-top: 8px; }
footer .foot-analytics { margin-top: 10px; font-size: 0.82rem; color: var(--text-lo); max-width: 38rem; margin-left: auto; margin-right: auto; }

/* Doc / content page (privacy, honesty) */
main.doc { padding: 36px 0 24px; max-width: var(--maxw-text); margin: 0 auto; }
main.doc .back { display: inline-block; margin-bottom: 14px; color: var(--text-mid); font-size: 0.92rem; }
main.doc h1 { font-size: 1.7rem; margin: 0 0 4px; }
main.doc .updated { color: var(--text-lo); font-size: 0.9rem; margin: 0 0 22px; }
main.doc h2 { font-size: 1.18rem; margin: 26px 0 8px; color: var(--text-hi); }
main.doc p, main.doc li { color: var(--text-mid); }
main.doc ul { padding-left: 1.2rem; }
main.doc li { margin: 4px 0; }
main.doc strong { color: var(--text-hi); }

/* Rider-type gallery */
.types { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; }
.types figure { margin: 0; max-width: 150px; }
.types img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--hairline); }
.types figcaption { color: var(--text-mid); font-size: 0.88rem; margin-top: 8px; }

/* Ecosystem diagram */
.ecosystem { display: block; width: 100%; height: auto; max-width: 680px; margin: 22px auto 0; }

/* Family logo strip / hub */
.family { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.family a { display: inline-flex; }
.family img { height: 64px; width: auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 14px; }
@media (min-width: 560px) { .family img { height: 76px; } }

/* Family hub spoke cards */
.spokes { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 22px; text-align: left; }
@media (min-width: 620px) { .spokes { grid-template-columns: 1fr 1fr; } }
.spoke { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; }
.spoke:hover { border-color: var(--teal); text-decoration: none; }
.spoke img { width: 92px; height: 77px; flex: 0 0 auto; align-self: flex-start; background: var(--surface-2); border-radius: 10px; }
.spoke .s-body h3 { margin: 0 0 4px; font-size: 1.06rem; color: var(--text-hi); }
.spoke .s-body p { margin: 0 0 6px; color: var(--text-mid); font-size: 0.95rem; }
.spoke .s-more { color: var(--teal); font-size: 0.9rem; font-weight: 600; }

/* :target tabs (mét/zónder vermogensmeter, Sistema-modi) — pure CSS, deep-linkbaar */
.tabset { margin-top: 18px; text-align: left; }
.tabset .tabnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabset .tabnav a { padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--text-mid); text-decoration: none; font-size: 0.92rem; }
.tabset .tabnav a:hover { border-color: var(--teal); color: var(--text-hi); }
.tabpane { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; color: var(--text-mid); }
/* default: eerste pane zichtbaar, rest verborgen tot :target */
.tabpane ~ .tabpane { display: none; }
.tabpane:target { display: block; }
.tabpane:target ~ .tabpane:not(:target) { display: none; }
/* als één pane :target is, verberg de niet-getargete eerste */
.tabset:has(.tabpane:target) .tabpane:not(:target) { display: none; }

/* Rider explorer (JS bovenop :target-fallback) */
.explorer { margin-top: 22px; }
.explorer .picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.explorer .picker a, .explorer .picker button {
  padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px;
  background: none; color: var(--text-mid); font: inherit; font-size: 0.92rem; cursor: pointer; text-decoration: none;
}
.explorer .picker a:hover, .explorer .picker button:hover { border-color: var(--teal); color: var(--text-hi); }
.explorer .picker .is-active { border-color: var(--teal); color: var(--teal); background: rgba(20,184,166,.1); }
.explorer .stage { margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.explorer .stage figure { margin: 0; max-width: 220px; }
.explorer .stage img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--hairline); }
.explorer .stage figcaption { color: var(--text-mid); font-size: 0.95rem; margin-top: 10px; text-align: center; }
/* no-JS fallback: :target panes (each rider) */
.rider-pane { display: none; }
.rider-pane:target { display: flex; }
.explorer:not(:has(.rider-pane:target)) .rider-pane:first-of-type { display: flex; }
/* met JS: de explorer beheert zichtbaarheid via .is-shown */
.js .rider-pane { display: none !important; }
.js .rider-pane.is-shown { display: flex !important; }

/* Scroll-progress (JS, no-JS = onzichtbaar) */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--teal); z-index: 60; transition: width .1s linear; }
@media (prefers-reduced-motion: reduce) { .scrollbar { transition: none; } }

/* Desktop polish */
@media (min-width: 760px) {
  :root { --sec: 56px; }
  .hero h1 { font-size: 2rem; }
  .readouts { grid-template-columns: 1fr 1fr; }
}

/* Family strip — current product marker + product-logo hero */
.family .fam-current { display: inline-flex; }
.family .fam-current img { outline: 2px solid var(--teal); outline-offset: -1px; opacity: .95; }
.hero-logo-shot { margin-top: 24px; }
.prod-logo { width: 240px; max-width: 70%; height: auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px 22px; }

/* Readiness-morph demo (home). ease/rest = gedempt grijs, NOOIT amber. */
.rmorph { max-width: 30rem; margin: 20px auto 0; }
.rmorph-card { border-radius: 16px; border: 1px solid var(--hairline); padding: 22px 20px; text-align: center; transition: border-color .4s ease, background .4s ease; }
.rmorph-card .rmorph-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 8px; background: var(--teal); }
.rmorph-card.is-go { background: var(--teal-deep); border-color: var(--teal); }
.rmorph-card.is-go .rmorph-dot { background: var(--teal); }
.rmorph-card.is-ease { background: #161d1b; border-color: #2a3431; }
.rmorph-card.is-ease .rmorph-dot { background: var(--ease); }
.rmorph-card.is-rest { background: #121615; border-color: #2a3431; }
.rmorph-card.is-rest .rmorph-dot { background: var(--rest); }
.rmorph-verdict { display: block; font-size: 1.3rem; }
.rmorph-sub { display: block; color: var(--text-mid); margin-top: 6px; }
.rmorph-pips { display: none; gap: 8px; justify-content: center; margin-top: 14px; }
.js .rmorph-pips { display: flex; }
.rmorph-pips button { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--hairline); background: none; color: var(--text-mid); font: inherit; font-size: .92rem; cursor: pointer; }
.rmorph-pips button.is-active { border-color: var(--teal); color: var(--teal); }
.rmorph-note { color: var(--text-lo); font-size: .86rem; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .rmorph-card { transition: none; } }
