/* Supersetting website
   Kleuren uit de app (Sources/PrODUI/Theme.swift). Oranje is "nog te doen" en acties,
   groen is "gehaald". Koppen en cijfers smal en zwaar, zoals in de app. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F2F0EB;
  --surface: #FFFFFF;
  --inset: #ECE9E3;
  --ink: #17181B;
  --muted: #66635D;
  --track: #DDD9D1;
  --line: #DDD9D1;
  --accent: #C93A14;
  --on-accent: #FFFFFF;
  --accent-soft: rgb(201 58 20 / 0.10);
  --done: #1B7F45;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11;
    --surface: #1A1C1F;
    --inset: #2A2D32;
    --ink: #F2F0EB;
    --muted: #A3A09A;
    --track: #34373C;
    --line: #2A2D32;
    --accent: #FF7A4D;
    --on-accent: #1D0C05;
    --accent-soft: rgb(255 122 77 / 0.12);
    --done: #45D483;
  }
}

@media (max-width: 25rem) {
  :root { --gutter: 1rem; }
}

/* Basis */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5.25rem);
  font-weight: 850;
  font-stretch: 62%;
  line-height: 0.95;
}

h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }

h3 {
  font-size: 1.5rem;
  font-stretch: 76%;
  line-height: 1.1;
}

p, ul, ol { margin: 0; }
p + p, p + ul, ul + p, h3 + p, h3 + ul { margin-top: 0.875rem; }
p + h3, ul + h3 { margin-top: 2rem; }
h2 + p, h2 + ul, h1 + p { margin-top: 1.25rem; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Kop en voet */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 72%;
  text-decoration: none;
}
.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 22.5%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration-line: underline; }

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1rem;
  padding-block: 2rem 2.5rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
}
@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Knop: zoals "Start training" in de app */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.5rem 1.75rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }

/* Secties */

.section { padding-block: clamp(3rem, 6vw, 5rem); }

.prose { max-width: var(--measure); }

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Hero */

.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.lead {
  max-width: 32rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}
h1 + .lead { margin-top: 1.5rem; }

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.hero-action .note { max-width: 18rem; }

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    align-items: center;
  }
}

/* Weekstand: tien spiergroepen, elk blokje is een set */

.ledger {
  margin: 0;
  padding: clamp(1.125rem, 3vw, 1.625rem);
  border-radius: 1.5rem;
  background: var(--surface);
}

.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.875rem;
}
.ledger-week {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 72%;
}
.ledger-sum {
  color: var(--muted);
  font-size: 0.875rem;
}

.ledger-rows {
  padding: 0;
  list-style: none;
}

.row {
  --fill: var(--accent);
  padding-block: 0.5rem 0.625rem;
  border-top: 1px solid var(--line);
}
.row.is-met { --fill: var(--done); }

.row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.row-name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 70%;
  line-height: 1.2;
}

.tag {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.row-num {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
.row-num b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 72%;
  font-variant-numeric: tabular-nums;
}

.pips {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.0625rem;
  margin-top: 0.375rem;
}
.pips i {
  position: relative;
  flex: 1 1 0;
  height: 0.5625rem;
  overflow: hidden;
  border-radius: 2.5px;
  background: var(--track);
}
.pips i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--fill);
}
.pips .h::after { width: 50%; }
.pips .f::after { width: 100%; }
.pips .x {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 60%, transparent);
}
.pips .m {
  flex: 0 0 2.5px;
  height: 1.0625rem;
  margin-inline: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.ledger figcaption {
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Het ene moment van beweging: de balken lopen bij het laden van links naar rechts vol. */
@media (prefers-reduced-motion: no-preference) {
  .pips { animation: draw 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .row:nth-child(2) .pips { animation-delay: 0.05s; }
  .row:nth-child(3) .pips { animation-delay: 0.1s; }
  .row:nth-child(4) .pips { animation-delay: 0.15s; }
  .row:nth-child(5) .pips { animation-delay: 0.2s; }
  .row:nth-child(6) .pips { animation-delay: 0.25s; }
  .row:nth-child(7) .pips { animation-delay: 0.3s; }
  .row:nth-child(8) .pips { animation-delay: 0.35s; }
  .row:nth-child(9) .pips { animation-delay: 0.4s; }
  .row:nth-child(10) .pips { animation-delay: 0.45s; }
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Het probleem: drie vragen */

.problem .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.questions {
  padding: 0;
  list-style: none;
}
.questions li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 1.05;
}
.questions li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 56rem) {
  .problem .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* Functies met schermen uit de app */

.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.shots {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
}
.shots img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 16.5rem;
  aspect-ratio: 414 / 900;
  border: 1px solid var(--line);
  border-radius: 14% / 6.45%;
  background: #000;
}
.shots.single img {
  flex: 0 1 auto;
  width: min(62%, 16.5rem);
}

@media (min-width: 56rem) {
  .feature .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .feature.flip .shots { order: -1; }
  .shots img + img { margin-top: 3rem; }
}

/* Verder in de app: een lijst, geen kaarten */

.more-list {
  display: grid;
  gap: 0 3rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}
.more-list li {
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}
.more-list h3 { font-size: 1.375rem; }
.more-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Meer lezen: links naar de uitleg, de vragen en de vergelijking */

.read { padding-top: 0; }
.read-list {
  display: grid;
  gap: 0 3rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.read-list li { border-top: 1px solid var(--line); }
.read-list a {
  display: block;
  padding-block: 1.25rem 1.5rem;
  text-decoration: none;
}
.read-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1.1;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
.read-list a:hover strong { text-decoration-thickness: 0.16em; }
.read-list span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}
@media (min-width: 48rem) {
  .read-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Privacy */

.privacy-band {
  background: var(--surface);
}
.privacy-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 4rem;
}
.facts {
  padding: 0;
  list-style: none;
}
.facts li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.5rem;
  border-top: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.125rem;
  width: 0.625rem;
  height: 0.5625rem;
  border-radius: 2.5px;
  background: var(--done);
}

@media (min-width: 56rem) {
  .privacy-band .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Tester worden */

.tester .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.signup {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--surface);
}
.signup h3 { font-size: 1.75rem; }
.steps {
  margin-top: 1rem;
  padding-left: 1.5rem;
}
.steps li { padding-block: 0.25rem; }
.steps li::marker {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent);
}
.signup .button {
  width: 100%;
  margin-top: 1.5rem;
}
.signup .note { margin-top: 0.75rem; }
.signup .text-link { display: inline-block; margin-top: 0.25rem; font-weight: 700; color: var(--accent); text-underline-offset: 0.2em; }

.plain-list {
  padding-left: 1.25rem;
}
.plain-list li + li { margin-top: 0.375rem; }

.section.tester { padding-bottom: 0; }

@media (min-width: 56rem) {
  .tester .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: start;
  }
  .signup {
    position: sticky;
    top: 1.5rem;
  }
}

/* Tekstpagina's: privacy, support, voorwaarden */

.doc {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 0;
}
.doc .wrap { max-width: 42rem; }
.doc h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); }
.doc .meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.doc h2 + p, .doc h2 + ul { margin-top: 0.875rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc li > ul { margin-top: 0.5rem; }

.summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
}
.summary h2 {
  margin-top: 0;
  font-size: 1.375rem;
}

.doc h3 {
  margin-top: 2rem;
  font-size: 1.375rem;
}
.doc h3 + p, .doc h3 + ul, .doc h3 + ol { margin-top: 0.625rem; }
.doc ol { padding-left: 1.5rem; }
.doc p + table, .doc table + p, .doc ul + table { margin-top: 1.25rem; }
.doc .table-scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.doc caption {
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}
.doc th, .doc td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc thead th {
  border-bottom-color: var(--ink);
  font-weight: 700;
}
.doc tbody th { font-weight: 600; }
.doc td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc table.wide { min-width: 44rem; }

.sources {
  font-size: 0.9375rem;
  color: var(--muted);
}
.sources li + li { margin-top: 0.625rem; }
.sources a { color: var(--ink); overflow-wrap: anywhere; }

.faq h2 { scroll-margin-top: 1rem; }

.contact {
  margin-top: 2.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
}
.contact h2 { margin-top: 0; }

/* 404 */

.lost {
  padding-block: clamp(3rem, 10vw, 7rem) 0;
}
.lost .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  max-width: 42rem;
}
.lost h1,
.lost h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.lost p { margin-top: 1rem; }
