/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --blue: #06458F;
  --blue-hover: #053A78;
  --blue-ink: #04306A;
  --sky: #EAF1FA;
  --orange: #FF591B;
  --orange-hover: #E84D12;
  --background: #FAF7F2;
  --white: #FFFFFF;
  --ink: #172B4D;
  --slate: #64748B;
  /* Leisteen haalt op de crèmekleurige achtergrond maar 4,45:1; voor lopende tekst die daarop kan staan
     deze donkerdere tint (5,07:1 op #FAF7F2, 5,42:1 op wit). */
  --slate-text: #5B6B83;
  --detail: #A8BDD9;
  --line: #E3DDD2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --green: #16A34A;
  --amber: #D97706;
  /* Groen en oranje als kleine tekst op wit halen geen 4,5:1; voor tekst deze donkere tinten. */
  --green-text: #15803D;
  --orange-text: #C2410C;
  --radius: 2px;
  --header-height: 68px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  /* Ankers landen onder de vaste kop (68 px plus de lijn). */
  scroll-padding-top: calc(var(--header-height) + 1px);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.muted {
  color: var(--slate-text);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

/* Wit op oranje haalt 3,1:1; daarom grote tekst (19 px, 700), waarvoor 3:1 de norm is. */
.btn-orange {
  padding: 12px 24px;
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
}

.btn-orange:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
}

.btn-secondary:hover {
  background: rgba(6, 69, 143, 0.06);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-height);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 20px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul a {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav ul a.btn {
  padding: 8px 10px;
  color: var(--white);
  font-weight: 600;
}

.nav .only-wide {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: var(--blue);
  color: var(--white);
}

.hero-grid {
  display: grid;
  /* minmax(0, …): de adresbalk van het dashboard (nowrap) mag de kolom niet breder maken. */
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.hero h1 {
  color: var(--white);
}

.hero .lead {
  max-width: 32em;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero .small {
  margin-top: 20px;
  color: var(--detail);
  font-size: 0.9rem;
}

.hero-shot {
  position: relative;
  padding-bottom: 72px;
}

/* ---------- Rebuilt screens ---------- */
/* Nagebouwde schermen van de app: <figure class="shot" role="img"> met de inhoud aria-hidden.
   Binnen een scherm geen header, footer, section, h1-h3 of button (de kale selectors hierboven). */

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  background: #F1EDE6;
  border-bottom: 1px solid var(--line);
}

.shot-bar i {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D9D2C6;
}

.shot-bar span {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-left: 8px;
  padding: 4px 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--slate);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Smal: alleen de werkruimte; de zijbalk komt erbij vanaf 900 px. */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
  font-size: 13px;
}

.app aside {
  display: none;
  padding: 16px 0;
  background: var(--ink);
  color: var(--white);
}

.app aside .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 14px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.app aside .brand b {
  color: var(--orange);
  font-weight: 800;
}

.app aside .brand em {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 14px;
  border: 2px solid var(--white);
  border-radius: 3px;
}

.app aside .brand em::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 3px;
  border-radius: 1px;
  background: var(--orange);
}

.app aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app aside li {
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.72);
}

.app aside li.on {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--orange);
  color: var(--white);
}

.app aside .site {
  margin: 14px 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  color: var(--detail);
  font-size: 11px;
}

/* De werkruimte; een div, want de pagina heeft al een <main>. */
.app .main {
  min-width: 0;
  padding: 18px 20px;
  background: var(--background);
}

/* Smal zijn de tegels twee rijen hoog; extra ruimte onderin zodat de levende kaart niet op de grafiek valt. */
.hero-shot .app .main {
  padding-bottom: 72px;
}

.app h4 {
  margin: 0 0 12px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.app .sub {
  margin: -8px 0 14px;
  color: var(--slate-text);
  font-size: 12px;
}

.step .app {
  min-height: 300px;
  font-size: 12px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tile {
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.tile small {
  display: block;
  color: var(--slate);
  font-size: 11px;
}

.tile strong {
  display: block;
  margin-top: 2px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.tile .up {
  color: var(--green-text);
  font-size: 11px;
  font-weight: 500;
}

.tile .att {
  color: var(--orange-text);
  font-size: 11px;
  font-weight: 500;
}

/* Container voor de kolomregels van .mini (zie .hide-s). */
.card {
  container-type: inline-size;
  overflow: hidden;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.card h5 {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

/* De grafiek schaalt mee met zijn breedte; smal is de tekst groter in SVG-eenheden. */
.chart text {
  font-family: "Inter", sans-serif;
  font-size: 18px;
}

.mini {
  width: 100%;
  border-collapse: collapse;
}

.mini th {
  padding: 0 8px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
}

.mini td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mini tr:last-child td {
  border-bottom: 0;
}

.mini td.pg {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
}

.mini tr.hot td:first-child {
  box-shadow: inset 3px 0 0 var(--orange);
}

/* Kolommen die wegvallen als de kaart smal is, zodat niets in een scherm horizontaal hoeft te scrollen.
   Op de breedte van de kaart, niet van het venster: naast de tekst (vanaf 900 px) is een scherm smaller
   dan op een tablet. .hide-s valt weg onder 490 px, .hide-xs ook onder 340 px (kaartinhoud). */
@container (max-width: 489px) {
  .mini .hide-s {
    display: none;
  }
}

@container (max-width: 339px) {
  .mini .hide-xs {
    display: none;
  }

  .mini th,
  .mini td {
    padding-right: 6px;
    padding-left: 6px;
  }

  .mini .bar {
    width: 64px;
  }
}

/* Statuspunt: standaard detail, .o oranje, .g groen, .a amber. */
.d {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--detail);
  vertical-align: 1px;
}

.d.o {
  background: var(--orange);
}

.d.g {
  background: var(--green);
}

.d.a {
  background: var(--amber);
}

/* Scorebalk; de breedte van de vulling komt uit een klasse, niet uit een inline stijl. */
.bar {
  display: inline-block;
  position: relative;
  width: 90px;
  height: 6px;
  background: var(--sky);
  vertical-align: middle;
}

.bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--blue);
}

.bar .w100 { width: 100%; }
.bar .w72 { width: 72%; }
.bar .w55 { width: 55%; }
.bar .w40 { width: 40%; }
.bar .w28 { width: 28%; }

/* Nepknoppen: een <span>, want in een scherm doet niets iets. */
.mbtn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.mbtn.fill {
  background: var(--blue);
  color: var(--white);
}

/* Voorstelkaart op het scherm Approve. */
.prop {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.prop .ph {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 12px;
}

.prop .lbl {
  margin-top: 10px;
  color: var(--slate);
  font-size: 11px;
}

.prop .val {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.prop .val.old {
  color: var(--slate);
  font-weight: 500;
}

.prop .cnt {
  margin-left: 6px;
  color: var(--green-text);
  font-size: 11px;
  font-weight: 500;
}

.prop .why {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 12px;
}

.prop .acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Nagebootst Google-resultaat. */
.serp {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.serp .u {
  color: #1F6E43;
  font-size: 11px;
}

.serp .h {
  margin-top: 2px;
  color: #1A0DAB;
  font-size: 15px;
}

.serp .s {
  margin-top: 2px;
  color: #4D5156;
  font-size: 12px;
}

/* ---------- Live card ---------- */
/* De enige beweging op de pagina: vier toestanden in een lus van 16 s, elk 4 s.
   De toestanden liggen in één rastercel op elkaar, zodat de kaart zo hoog wordt als de hoogste. */

.live {
  position: absolute;
  bottom: 0;
  left: -12px;
  width: min(420px, 92%);
  min-height: 164px;
  margin: 0;
  padding: 16px 18px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.live > div {
  display: grid;
}

.live .state {
  grid-area: 1 / 1;
  opacity: 0;
  animation: cyc 16s infinite;
}

/* Toestand 1 begint op 0 s. */
.live .state:nth-child(2) {
  animation-delay: 4s;
}

.live .state:nth-child(3) {
  animation-delay: 8s;
}

.live .state:nth-child(4) {
  animation-delay: 12s;
}

@keyframes cyc {
  0% { opacity: 0; }
  2% { opacity: 1; }
  24% { opacity: 1; }
  26% { opacity: 0; }
  100% { opacity: 0; }
}

.live .k {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 40px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
}

.live .k::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.live .state:nth-child(4) .k::before {
  background: var(--green);
}

.live .t {
  margin-top: 8px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* Zo breed als de titel, zodat de typcursor op de laatste letter eindigt en niet aan de kaartrand. */
.live .typed {
  display: inline-block;
  max-width: 100%;
}

.live .old {
  display: block;
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}

/* Smal past de nieuwe titel niet op één regel; dan staat hij er gewoon (afgebroken).
   Vanaf 560 px (kaart 420 px breed) wordt hij getypt; zie de media query. */
.live .new {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

/* Typen: 3,2 s in 44 stappen, 4,4 s na de start, elke 16 s opnieuw. De lus is 16 s;
   het typen beslaat de eerste 20 % (3,2 s). Terug naar 0 als toestand 2 al weg is. */
@keyframes typing {
  0% { width: 0; }
  20% { width: 100%; }
  30% { width: 100%; }
  31% { width: 0; }
  100% { width: 0; }
}

.live .m {
  margin-top: 8px;
  color: var(--slate);
  font-size: 12px;
}

.live .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.live .row .m {
  margin: 0 0 0 4px;
}

/* Approve "drukt zichzelf in" aan het eind van toestand 3 (8 tot 12 s): rond 70 % van de lus. */
.live .mbtn.fill {
  animation: press 16s infinite;
}

@keyframes press {
  0%, 68% { background: var(--blue); border-color: var(--blue); }
  70%, 74% { background: var(--blue-ink); border-color: var(--blue-ink); }
  76%, 100% { background: var(--blue); border-color: var(--blue); }
}

.dots {
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
  gap: 5px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  animation: dot 16s infinite;
}

.dots i:nth-child(2) {
  animation-delay: 4s;
}

.dots i:nth-child(3) {
  animation-delay: 8s;
}

.dots i:nth-child(4) {
  animation-delay: 12s;
}

@keyframes dot {
  0% { background: var(--line); }
  1% { background: var(--orange); }
  25% { background: var(--orange); }
  26% { background: var(--line); }
  100% { background: var(--line); }
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro {
  max-width: 38em;
  margin-top: 16px;
  color: var(--slate-text);
  font-size: 1.1rem;
}

/* ---------- How it works ---------- */
/* Vijf stappen: smal staat het scherm onder de tekst; vanaf 900 px naast elkaar, .flip met de tekst rechts. */

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.intro + .step {
  border-top: 0;
}

/* Kleine oranje tekst: --orange-text, want --orange haalt op crème geen 4,5:1. */
.step .num {
  color: var(--orange-text);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step h3 {
  margin-top: 8px;
  font-size: 1.7rem;
}

.step .txt p {
  margin-top: 14px;
  color: var(--slate-text);
}

.step .txt ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.step .txt li {
  margin: 4px 0;
}

/* ---------- Numbers strip ---------- */
/* Smal twee kolommen zonder scheidingslijnen; vanaf 800 px vijf naast elkaar met een lijn ertussen. */

.strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strip .n {
  padding: 24px 16px 4px 0;
}

.strip strong {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

/* Ook groot oranje haalt op wit maar 3,1:1; de donkere tint haalt 4,5:1. */
.strip strong.o {
  color: var(--orange-text);
}

.strip span {
  display: block;
  margin-top: 6px;
  color: var(--slate-text);
  font-size: 0.9rem;
}

.strip .note {
  grid-column: 1 / -1;
  padding: 16px 0;
  color: var(--slate-text);
  font-size: 0.8rem;
}

/* ---------- A week ---------- */

.week {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.day {
  padding-top: 12px;
  border-top: 3px solid var(--detail);
}

.day.k {
  border-top-color: var(--blue);
}

.day.o {
  border-top-color: var(--orange);
}

.day b {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Ook leeg een regel hoog, zodat de teksten van alle dagen op één hoogte beginnen. */
.day small {
  display: block;
  min-height: 1.4em;
  color: var(--slate-text);
  font-size: 0.78rem;
}

.day p {
  margin-top: 8px;
  font-size: 0.9rem;
}

.day .night {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  color: var(--slate-text);
  font-size: 0.78rem;
}

/* ---------- Two ways ---------- */

.ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.way {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.way h3 {
  font-size: 1.5rem;
}

.way p {
  color: var(--slate-text);
}

.way ul {
  margin: 0;
  padding-left: 20px;
}

.way li {
  margin: 6px 0;
}

.way .btn {
  align-self: flex-start;
  margin-top: auto;
}

.way.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.way.blue p {
  color: rgba(255, 255, 255, 0.86);
}

/* Witte knop op het blauwe vlak. */
.way.blue .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.way.blue .btn:hover {
  background: var(--sky);
  border-color: var(--sky);
}

/* ---------- Built to be safe ---------- */
/* Lijniconen inline getekend: 24-raster, lijn 1,8, kleur via currentColor. */

.safe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.safe-item {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.safe-item svg {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.safe-item h3 {
  margin-top: 14px;
  font-size: 1.05rem;
}

.safe-item p {
  margin-top: 8px;
  color: var(--slate-text);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 46em;
  margin-top: 36px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Lege alternatieve tekst: het teken hoort niet bij de toegankelijke naam van de vraag. De regel zonder "/ ''" is de terugval voor oudere browsers. */
.faq summary::after {
  content: "+";
  content: "+" / "";
  color: var(--orange-text);
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq details p {
  max-width: 40em;
  padding: 0 0 20px;
  color: var(--slate-text);
}

/* ---------- Closing ---------- */

.closing {
  background: var(--blue);
  color: var(--white);
}

.closing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.closing h2 {
  color: var(--white);
}

.closing p {
  max-width: 30em;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.closing .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.closing .mail {
  color: var(--white);
  font-weight: 500;
}

.closing .shot {
  transform: rotate(-1.5deg);
}

/* Alleen de werkruimte met één voorstel: geen zijbalk, geen minimumhoogte. */
.closing .app {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

/* ---------- Text pages (privacy, 404) ---------- */

/* Korte pagina's: de voettekst staat onderaan het venster, niet halverwege. */
.text-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.text-page main {
  flex: 1;
}

.page {
  padding: 64px 0 96px;
}

/* Lopende tekst: hoogstens 65 tekens per regel (spec), links uitgelijnd met het logo.
   Niet 65ch: in Inter is "0" breder dan een gemiddelde letter, dat gaf zo'n 80 tekens. Gemeten op /privacy:
   30em (510 px) geeft hoogstens 65 tekens per regel, 32em gaf 69. */
.prose {
  max-width: 30em;
}

.prose h1 {
  font-size: clamp(2.2rem, 4.4vw, 3rem);
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
}

.prose p,
.prose ul {
  margin: 14px 0 0;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  font-weight: 600;
}

.prose .muted {
  margin-top: 12px;
  font-size: 0.95rem;
}

.prose a:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:not(.btn):hover {
  color: var(--blue-hover);
}

.prose .actions {
  margin-top: 28px;
}

/* ---------- Footer ---------- */

footer {
  padding: 32px 0 40px;
  background: var(--ink);
  color: var(--detail);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  color: var(--white);
}

/* ---------- Focus ---------- */

/* Blauw op crème en wit haalt ruim 3:1 (oranje niet); op de blauwe vlakken en de inktkleurige voettekst is de focusrand wit. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero :focus-visible,
.way.blue :focus-visible,
.closing :focus-visible,
footer :focus-visible {
  outline-color: var(--white);
}

/* ---------- Media queries ---------- */

@media (min-width: 560px) {
  .nav {
    gap: 24px;
  }

  .logo img {
    height: 30px;
  }

  .nav ul {
    gap: 24px;
  }

  .nav ul a {
    font-size: 0.95rem;
  }

  .nav ul a.btn {
    padding: 11px 18px;
  }

  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-shot .app .main {
    padding-bottom: 18px;
  }
  .chart text {
    font-size: 10px;
  }

  .way {
    padding: 36px;
  }

  .live .new {
    width: 0;
    overflow: hidden;
    border-right: 2px solid var(--orange);
    white-space: nowrap;
    animation: typing 16s steps(44, end) 4.4s infinite;
  }
}

@media (min-width: 800px) {
  .strip .wrap {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .strip .n {
    padding: 26px 20px 24px;
    border-right: 1px solid var(--line);
  }

  .strip .n:first-child {
    padding-left: 0;
  }

  .strip .n:nth-child(5) {
    border-right: 0;
  }

  .strip .note {
    padding-top: 0;
  }

  .ways,
  .safe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nav ul {
    gap: 18px;
  }

  .nav .only-wide {
    display: block;
  }

  .app {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .app aside {
    display: block;
  }

  .step .app {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }

  .step.flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .step.flip .txt {
    order: 2;
  }

  .week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
  }

  .closing .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }

  /* Het dashboard loopt over de rechterrand; .hero knipt het af. */
  .hero-shot {
    margin-right: -220px;
  }

  .live {
    left: -48px;
  }

  .safe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .nav ul {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* De kaart staat stil op toestand 3, "Waiting for approval". */
  .live .state,
  .live .new,
  .live .mbtn.fill,
  .dots i {
    animation: none;
  }

  .live .state:nth-child(3) {
    opacity: 1;
  }

  .live .new {
    width: auto;
    border-right: 0;
  }

  .dots i:nth-child(3) {
    background: var(--orange);
  }
}
