/* ==========================================================
   MyFitBuddi – website
   Kleuren, rondingen en schaduw komen uit de app (All-in-one-app/src/theme.ts),
   het lettertype (Nunito) uit het logo.
   ========================================================== */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Uit de app */
  --blue: #1289c3;
  --green: #99cc29;
  --navy: #1c395b;
  --blue-soft: #e4f2fa;
  --green-soft: #f0f8df;
  --navy-soft: #e6ebf1;
  --warm-soft: #fdf1e0;
  --bg: #f6f9fb;
  --card: #ffffff;
  --border: #e3eaf0;
  --danger: #c22b31;
  /* Voor de website: iets donkerder dan in de app, zodat kleine tekst op een groot scherm goed leesbaar blijft */
  --muted: #52667c;
  --blue-text: #0b6fa0;
  --field: #7e90a5;
  --frame: #0f2238;

  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;
  --shadow: 0 4px 12px rgba(28, 57, 91, 0.06);
  --shadow-lg: 0 18px 44px rgba(28, 57, 91, 0.14);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); }
.section { padding: 44px 0; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); }

/* Alleen voor schermlezers */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--pill); background: var(--navy); color: #fff; font-weight: 800; }
.skip:focus { top: 16px; }

/* Iconen (Ionicons, zoals in de app) */
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Kaart en knoppen ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: 0; border-radius: var(--pill);
  font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-green { background: var(--green); color: var(--navy); box-shadow: 0 6px 16px rgba(153, 204, 41, 0.35); }
.btn-green:hover { background: #a6d63a; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--pill);
  background: #fff; color: var(--navy); font-size: 0.875rem; font-weight: 800; line-height: 1.3;
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.chip-dark { background: #37516f; color: #fff; } /* op het donkerblauw van "Voor trainers" */

/* ==========================================================
   Bovenbalk: een zwevende witte balk
   ========================================================== */
.top { position: fixed; z-index: 50; inset: 10px 0 auto; pointer-events: none; }
.top-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  width: min(1120px, 100% - 20px); margin-inline: auto; padding: 7px 7px 7px 16px;
  background: rgba(255, 255, 255, 0.94); border-radius: var(--pill);
  box-shadow: 0 6px 24px rgba(28, 57, 91, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.top-logo { flex: none; border-radius: 8px; }
.top-logo img { width: 128px; }
.top-nav { display: none; }

/* Taalkeuze: zelfde vorm als de schakelaar Workouts / Oefeningen in de app */
.lang { margin-left: auto; display: flex; padding: 3px; border-radius: var(--pill); background: var(--navy-soft); }
.lang a { padding: 8px 9px; border-radius: var(--pill); font-size: 0.8125rem; font-weight: 800; line-height: 1; text-decoration: none; }
.lang a[aria-current] { background: var(--navy); color: #fff; }
.lang a:not([aria-current]):hover { background: #fff; }

@media (max-width: 359px) { /* heel smalle telefoons */
  .top-bar { gap: 8px; padding-left: 12px; }
  .top-logo img { width: 104px; }
  .lang a { padding: 8px 7px; }
}

.top-cta { display: none; padding: 12px 20px; font-size: 0.9375rem; box-shadow: none; }
.top-bell { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green); }
.top-bell .ic { width: 20px; height: 20px; }

/* ==========================================================
   Hero: blauw vlak met ronde onderkant en de witte kaart eroverheen,
   zoals het scherm Vandaag in de app
   ========================================================== */
.hero { overflow-x: hidden; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { position: relative; z-index: 1; }

.hero-band {
  z-index: 0; grid-area: 1 / 1 / 2 / -1;
  margin-inline: calc(50% - 50vw); margin-bottom: -84px; /* loopt door tot achter de witte kaart */
  overflow: hidden; background: var(--blue); border-radius: 0 0 36px 36px;
}
.hero-band img { position: absolute; top: 76px; right: -150px; width: 360px; opacity: 0.07; }

.hero-text { grid-area: 1 / 1; padding: 100px 0 26px; color: #fff; }
.hero h1 { margin-top: 16px; font-size: clamp(2.2rem, 1.1rem + 5vw, 3.75rem); line-height: 1.05; }
/* Vet en groot genoeg om op het blauw goed leesbaar te zijn */
.hero-lead { margin-top: 14px; max-width: 34em; font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.3125rem); font-weight: 700; line-height: 1.45; }

.hero-form { grid-row: 2; padding: 16px; }
.hero-phone { grid-row: 3; padding-top: 40px; }
.hero-phone::before { /* zachte cirkel achter de telefoon */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 96px; translate: -50% 0;
  width: min(340px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--blue-soft);
}

/* Kerncijfers: dezelfde gekleurde tegels als bij "Mijn voortgang" in de app */
.stats { grid-row: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; padding: 14px 14px 12px; border-radius: var(--r-md); }
.stat strong { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 900; line-height: 1.1; }
.stat span { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.stat-green { background: var(--green-soft); }
.stat-blue { background: var(--blue-soft); }
.stat-navy { background: var(--navy-soft); }

/* ---------- Aanmelden ---------- */
.signup-row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  width: 100%; min-width: 0; padding: 13px 20px;
  border: 1.5px solid var(--field); border-radius: var(--pill); background: var(--bg);
  font: inherit; font-weight: 600; color: var(--navy);
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.signup input[type="email"]:focus-visible { outline-offset: 2px; }

.check { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  display: grid; place-content: center; width: 22px; height: 22px; margin: 0;
  border: 2px solid var(--field); border-radius: 7px; background: #fff; cursor: pointer;
}
.check input:checked { border-color: var(--green); background: var(--green); }
.check input:checked::after { content: ""; width: 11px; height: 6px; margin-top: -2px; border: solid var(--navy); border-width: 0 0 3px 3px; rotate: -45deg; }

.signup-note { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); text-wrap: balance; }
.signup-note.is-ok { color: var(--navy); font-weight: 800; }
.signup-note.is-err { color: var(--danger); font-weight: 700; }
.signup-note a { color: inherit; }
.hp { position: absolute; left: -9999px; } /* spamval: dit veld vullen alleen robots in */

/* ---------- Telefoon ---------- */
.phone {
  --phone-w: 256px;
  width: var(--phone-w); margin: 0 auto; padding: 10px;
  border-radius: calc(var(--phone-w) * 0.16); background: var(--frame);
  box-shadow: 0 28px 56px rgba(15, 34, 56, 0.28);
}
.phone-screen { position: relative; overflow: hidden; padding-top: 7.5%; border-radius: calc(var(--phone-w) * 0.125); background: var(--top, var(--bg)); }
.phone-screen::before { /* camera */
  content: ""; position: absolute; top: calc(var(--phone-w) * 0.022); left: 50%; translate: -50% 0;
  width: 27%; height: calc(var(--phone-w) * 0.036); border-radius: var(--pill); background: var(--frame);
}
.phone-screen img { width: 100%; }

/* ==========================================================
   Rondkijken
   ========================================================== */
.tabs {
  display: flex; gap: 8px; margin: 18px -16px 0; padding: 4px 16px 14px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--pill); background: #fff;
  font-size: 0.9375rem; font-weight: 800; line-height: 1.2; text-decoration: none; scroll-snap-align: start;
}
.tab:hover { border-color: var(--field); }
.tab .ic { width: 18px; height: 18px; color: var(--blue); }
.tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.tab[aria-selected="true"] .ic { color: #fff; }

/* Eén gekleurde kaart per onderdeel: tekst erin, de telefoon steekt onder de rand uit */
.panel { display: grid; gap: 24px; margin-top: 4px; padding: 24px 20px 0; overflow: hidden; border-radius: 28px; }
.panel + .panel { margin-top: 16px; }
.panel[hidden] { display: none; }
.panel-blue { background: var(--blue-soft); }
.panel-green { background: var(--green-soft); }
.panel-navy { background: var(--navy-soft); }
.panel-warm { background: var(--warm-soft); }
.panel h3 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
.panel-text > p { margin-top: 10px; max-width: 30em; color: var(--muted); }

/* Icoon met één korte zin, zoals in de app */
.points { display: grid; gap: 10px; margin-top: 20px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.3; }
.points .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #fff; color: var(--blue); }

.panel-stage { --phone-w: 256px; height: calc((var(--phone-w) - 20px) * 1.62); } /* lager dan de telefoon: de kaart knipt de onderkant af */
.panel-stage .phone { box-shadow: 0 18px 40px rgba(15, 34, 56, 0.2); }

/* ==========================================================
   Meer dan tellen
   ========================================================== */
.trio { display: grid; gap: 12px; margin-top: 22px; }
/* Op een telefoon het icoon links en de tekst ernaast; vanaf een breder scherm onder elkaar */
.tile { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 20px; border-radius: var(--r-lg); }
.tile > * { grid-column: 2; }
.tile-icon { grid-area: 1 / 1 / span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.tile-icon .ic { width: 24px; height: 24px; }
.tile h3 { font-size: 1.3125rem; line-height: 1.2; }
.tile p { margin-top: 6px; }
.tile .tile-note { font-size: 0.9375rem; color: var(--muted); }
.tile-blue { background: var(--blue-soft); }
.tile-blue .tile-icon { background: var(--blue); color: #fff; }
.tile-green { background: var(--green-soft); }
.tile-green .tile-icon { background: var(--green); color: var(--navy); }
.tile-navy { background: var(--navy-soft); }
.tile-navy .tile-icon { background: var(--navy); color: #fff; }

/* ==========================================================
   Voor trainers
   ========================================================== */
.pro {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  padding: 32px 22px; border-radius: var(--r-xl); background: var(--navy); color: #fff;
}
.pro > * { position: relative; }
.pro .pro-mark { position: absolute; top: -130px; right: -150px; width: 400px; opacity: 0.06; }
.pro h2 { margin-top: 16px; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); }
.pro-text > p:not(.chip) { margin-top: 12px; max-width: 32em; color: #d5dee8; }
.pro .btn { margin-top: 22px; }
.pro-text > .pro-note { margin-top: 12px; font-size: 0.9375rem; color: #c3cfdb; }
.pro-points { display: grid; gap: 10px; align-content: center; }
.pro-points li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); font-weight: 700; line-height: 1.3; }
.pro-points .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--green); color: var(--navy); }
.pro :focus-visible { outline-color: #fff; }

/* ==========================================================
   Vragen
   ========================================================== */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: 20px; font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--blue); transition: rotate 0.2s ease; }
.faq details[open] summary .ic { rotate: 180deg; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ==========================================================
   Wachtlijst
   ========================================================== */
.closing { position: relative; overflow: hidden; padding: 36px 22px; border-radius: var(--r-xl); background: var(--blue); color: #fff; }
.closing > * { position: relative; }
.closing .closing-mark { position: absolute; top: -40px; right: -100px; width: 340px; opacity: 0.08; }
.closing h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); }
.closing-lead { margin-top: 10px; font-size: 1.1875rem; font-weight: 700; line-height: 1.45; }
.closing-form { max-width: 560px; margin-top: 24px; padding: 16px; color: var(--navy); }

/* ==========================================================
   Voettekst
   ========================================================== */
.foot { padding: 24px 0 36px; font-size: 0.9375rem; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand img { width: 150px; }
.foot-brand p { margin-top: 12px; max-width: 24em; }
.foot-nav, .foot-contact { display: grid; gap: 10px; justify-items: start; align-content: start; }
.foot-nav a, .foot-contact a { font-weight: 700; color: var(--navy); text-decoration: none; }
.foot-nav a:hover, .foot-contact a:hover, .foot-lang a:hover { text-decoration: underline; }
.foot-contact strong { color: var(--navy); font-weight: 900; }
.foot-lang { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.foot-lang a[aria-current] { color: var(--blue-text); }
.foot-legal { display: grid; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ==========================================================
   Vanaf een breder scherm
   ========================================================== */
@media (min-width: 520px) {
  .signup-row { flex-direction: row; }
  .signup-row input[type="email"] { flex: 1; }
  .phone { --phone-w: 280px; }
  .panel-stage { --phone-w: 280px; }
}

@media (min-width: 720px) {
  .section { padding: 64px 0; }
  .top-bell { display: none; }
  .top-cta { display: inline-flex; }
  .top-logo img { width: 150px; }
  .lang a { padding: 9px 11px; }
  .hero-form, .closing-form { padding: 20px; }
  .pro, .closing { padding: 48px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .foot-legal { grid-template-columns: auto auto; justify-content: space-between; }
}

@media (min-width: 880px) {
  .trio { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tile { display: block; padding: 26px; }
  .tile h3 { margin-top: 16px; }
  .tile p { margin-top: 8px; }
}

@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .top { top: 16px; }
  .top-bar { padding: 8px 8px 8px 22px; }
  .top-nav { display: flex; gap: 2px; margin-left: 18px; }
  .top-nav a { padding: 10px 14px; border-radius: var(--pill); font-size: 0.9375rem; font-weight: 800; text-decoration: none; }
  .top-nav a:hover { background: var(--navy-soft); }

  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 64px; }
  .hero-band { border-radius: 0 0 56px 56px; }
  .hero-band img { top: 60px; right: 2%; width: 600px; opacity: 0.08; }
  .hero-text { padding: 150px 0 44px; }
  .hero-form { grid-area: 2 / 1; max-width: 540px; }
  .stats { grid-area: 3 / 1; align-self: start; max-width: 540px; margin-top: 24px; gap: 14px; }
  .stat { padding: 16px 18px 14px; }
  .hero-phone { grid-area: 1 / 2 / 4 / 3; padding-top: 128px; }
  .hero-phone::before { display: none; }
  .hero-phone .phone { --phone-w: 320px; box-shadow: 0 36px 70px rgba(15, 34, 56, 0.34); }

  .tabs { margin-top: 24px; }
  .panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 56px 72px 0 64px; border-radius: 40px; }
  .panel + .panel { margin-top: 24px; }
  .panel-text { padding-bottom: 56px; }
  .panel-stage { --phone-w: 300px; align-self: end; height: calc((var(--phone-w) - 20px) * 1.74); }
  .points { gap: 12px; margin-top: 26px; }
  .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 64px; }
  .faq-grid .faq { margin-top: 0; }

  .pro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding: 64px; }
  .closing { padding: 64px; }
  .closing .closing-mark { top: -60px; right: 3%; width: 460px; }
}

/* ==========================================================
   Beweging (alleen als de bezoeker dat niet heeft uitgezet)
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-form, .hero-phone, .stats { animation: op 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.06s; }
  .hero-text > :nth-child(3) { animation-delay: 0.12s; }
  .hero-form { animation-delay: 0.2s; }
  .hero-phone { animation-delay: 0.26s; }
  .stats { animation-delay: 0.34s; }
  .panel:not([hidden]) { animation: op 0.4s ease both; }

  /* script.js zet .wacht op wat nog onder het scherm staat, en .in zodra het in beeld komt */
  .wacht { opacity: 0; translate: 0 18px; }
  .wacht.in { opacity: 1; translate: 0 0; transition: opacity 0.6s ease, translate 0.6s ease; }
}
@keyframes op {
  from { opacity: 0; translate: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
