/* ===========================================================================
   The Ride for You — platform-walkthrough
   Huisstijl 1:1 uit de app (src/index.css): Plus Jakarta Sans,
   primair #0097a7 (cyaan), accent #f57c00 (oranje).
   =========================================================================== */

:root {
  --primary: #0097a7;
  --primary-dark: #00838f;
  --primary-soft: #ecfeff;
  --cyan-50: #e0f7fa;
  --cyan-100: #b2ebf2;
  --accent: #f57c00;
  --accent-light: #ff9800;
  --accent-dark: #e65100;
  --surface: #f8fdff;
  --card: #ffffff;
  --text: #263238;
  --muted: #78909c;
  --border: #eaf1f3;
  --success: #2e7d32;
  --success-soft: #e7f5e9;
  --shadow-sm: 0 1px 3px rgba(38, 50, 56, 0.06), 0 1px 2px rgba(38, 50, 56, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(0, 131, 143, 0.25);
  --shadow-lg: 0 30px 70px -25px rgba(0, 131, 143, 0.40);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(248, 253, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, #4dd0e1, var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: var(--shadow-sm); font-style: italic;
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 11px; transition: .2s; box-shadow: var(--shadow-sm);
}
.topbar-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
@media (max-width: 640px) { .topbar-cta { display: none; } }

/* ---------- Progress rail ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; z-index: 101; transition: width .1s linear; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(110px, 16vh, 180px) clamp(16px, 4vw, 40px) 60px;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--cyan-50), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, #fff4e8, transparent 55%),
    var(--surface);
}
.hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--primary-dark);
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.5; transform:scale(.8);} }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: clamp(16px, 2.3vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 13px; cursor: pointer; border: none; transition: .2s; font-family: var(--font);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--cyan-100); transform: translateY(-2px); }

/* countdown */
.countdown { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.cd-cell { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; min-width: 78px; box-shadow: var(--shadow-sm); }
.cd-num { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.cd-cap { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Flywheel ---------- */
.wheel-section { padding: 40px 16px 90px; text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 18px; }
.section-head .kicker { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: clamp(15px, 2vw, 18px); }

.wheel-wrap { position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin: 30px auto 0; container-type: size; }
.wheel-rot { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.wheel-section:hover .wheel-rot { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.wheel-ring { position: absolute; inset: 8%; border: 2px dashed var(--cyan-100); border-radius: 50%; }
.hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4dd0e1, var(--primary) 55%, var(--primary-dark));
  color: #fff; display: grid; place-content: center; text-align: center; padding: 10px;
  box-shadow: 0 20px 50px -15px rgba(0,131,143,.6), inset 0 2px 10px rgba(255,255,255,.25); z-index: 3;
}
.hub-icon { font-size: clamp(22px, 4vw, 34px); }
.hub b { display: block; font-size: clamp(13px, 2vw, 17px); font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.hub span { font-size: clamp(10px, 1.4vw, 12px); opacity: .9; font-weight: 500; }

.node {
  position: absolute; top: 50%; left: 50%; width: 116px; margin: -34px 0 0 -58px;
  --r: 40cqmin;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.node-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 8px 11px;
  box-shadow: var(--shadow-md); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  /* tegen-rotatie zodat de tekst rechtop blijft tijdens het draaien */
  animation: spin-rev 60s linear infinite;
}
.wheel-section:hover .node-inner { animation-play-state: paused; }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.node-inner:hover { transform: scale(1.12); box-shadow: var(--shadow-lg); border-color: var(--cyan-100); }
.node-emoji { font-size: 24px; line-height: 1; }
.node-label { font-size: 12.5px; font-weight: 700; margin-top: 6px; color: var(--text); letter-spacing: -0.01em; }
.node-step { font-size: 10px; color: var(--accent); font-weight: 800; }
@media (max-width: 560px){ .node{ width: 92px; margin: -28px 0 0 -46px; } .node-label{ font-size: 11px; } }

.wheel-hint { margin-top: 26px; font-size: 14px; color: var(--muted); }
.wheel-hint b { color: var(--primary-dark); }

/* ---------- Story sections ---------- */
.story { max-width: var(--maxw); margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story:nth-of-type(even) .story-row { direction: rtl; }
.story:nth-of-type(even) .story-row > * { direction: ltr; }
@media (max-width: 880px){ .story-row{ grid-template-columns: 1fr; } .story:nth-of-type(even) .story-row{ direction: ltr; } }

.story-copy .step-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px;
  color: var(--primary-dark); background: var(--primary-soft); border: 1px solid var(--cyan-100);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.story-copy h3 { font-size: clamp(23px, 3.4vw, 33px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px; }
.story-copy > p { color: #4b5a61; font-size: 16.5px; margin-bottom: 18px; }
.feat-list { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: #3c4a51; }
.feat-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--success-soft); color: var(--success);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px;
}
.changes {
  background: linear-gradient(180deg, #fff8f1, #fff); border: 1px solid #ffe2c4; border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 14px 16px; font-size: 14.5px;
}
.changes b { color: var(--accent-dark); display: block; margin-bottom: 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.changes span { color: #6b4a2a; }

/* browser frame */
.frame {
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); transform: perspective(1600px) rotateY(0deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.frame:hover { transform: perspective(1600px) translateY(-4px); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f4fafb; border-bottom: 1px solid var(--border); }
.frame-dot { width: 11px; height: 11px; border-radius: 50%; }
.frame-url {
  margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 7px;
  font-size: 12px; color: var(--muted); padding: 4px 12px; text-align: center; font-weight: 500;
}
.frame img { width: 100%; display: block; }

/* reveal animation — alleen verbergen als JS actief is (.js op <html>),
   anders blijft alles zichtbaar als fallback */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wheel-rot, .node-inner { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Closing ---------- */
.closing { position: relative; margin-top: 40px; padding: clamp(60px, 9vw, 100px) clamp(16px, 4vw, 40px); text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--primary), var(--primary-dark)); }
.closing::after { content:''; position: absolute; inset: 0; background: radial-gradient(700px 320px at 80% 0%, rgba(255,152,0,.25), transparent 60%); }
.closing-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.closing h2 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 16px; }
.closing p { font-size: clamp(16px, 2.2vw, 19px); opacity: .92; margin-bottom: 14px; }
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 8px; text-align: left; }
@media (max-width: 720px){ .expect{ grid-template-columns: 1fr; } }
.expect-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 18px; backdrop-filter: blur(4px); }
.expect-card .ic { font-size: 24px; }
.expect-card b { display: block; margin: 8px 0 5px; font-size: 16px; }
.expect-card span { font-size: 14px; opacity: .9; }

/* ---------- Footer ---------- */
.footer { padding: 34px 16px 46px; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface); }
.footer img { height: 38px; margin: 0 auto 12px; opacity: .95; }
.footer .made { margin-top: 8px; font-size: 12px; }

/* scroll-to-top */
.totop { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 20px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--primary-dark); transform: translateY(-2px); }
