/* ==========================================================================
   Dozo — website
   Tokens volgen src/theme.ts van de app, zodat web en app dezelfde taal spreken.
   ========================================================================== */

:root {
  --primary: #005bff;
  --primary-press: #0047c7;
  --primary-soft: #eaf1ff;
  --ink: #07111f;
  --muted: #55607a;
  --muted-light: #667085;   /* 4.97:1 op wit — WCAG AA voor normale tekst */
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --line: rgba(7, 17, 31, 0.08);
  --dark: #050b16;

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(7, 17, 31, 0.04), 0 12px 32px rgba(7, 17, 31, 0.06);
  --shadow-btn: 0 1px 2px rgba(0, 91, 255, 0.2), 0 10px 24px rgba(0, 91, 255, 0.22);

  --page: 1080px;
  --gutter: 22px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  /* Footer onderaan houden, ook op korte pagina's als /privacy/ en /support/. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-press); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
}

p { margin: 0; }

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

/* Skiplink voor toetsenbord- en screenreadergebruik. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 50;
}
.skip:focus {
  left: 0;
  color: #fff;
}

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1 0 auto; }

.site-header {
  padding: 22px 0 6px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 108px; }

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

.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

/* Zachte gloed achter de hero. Puur decoratief. */
.hero::before {
  content: "";
  position: absolute;
  inset: -220px 0 auto 50%;
  translate: -50% 0;
  width: min(760px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 91, 255, 0.14), rgba(0, 91, 255, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-press);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 8.4vw, 4rem);
  max-width: 15ch;
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(100deg, var(--primary) 0%, #4b8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 3.6vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
}

.hero-art {
  margin-top: 44px;
  display: grid;
  place-items: center;
  padding: 44px 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 50% 0%, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
/* De icon-PNG heeft een witte achtergrond. Als tegel met afgeronde hoeken
   leest dat als een app-icoon in plaats van een los wit vlak. */
.hero-art img {
  width: min(148px, 38vw);
  border-radius: 23%;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(7, 17, 31, 0.06),
    0 22px 44px rgba(0, 91, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Secties
   -------------------------------------------------------------------------- */

.section { padding: 60px 0; }
.section--soft {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 40ch; }
.section-head h2 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-press);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* Slotblok */
.closing {
  padding: 40px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--dark) 0%, #0d1b33 100%);
  color: #fff;
  text-align: center;
}
.closing h2 {
  font-size: clamp(1.5rem, 5.4vw, 2.125rem);
  color: #fff;
}
.closing p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Content-pagina's (privacy, support)
   -------------------------------------------------------------------------- */

.page {
  padding: 44px 0 72px;
  max-width: 68ch;
}
.page h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}
.page .page-lede {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
}

.notice {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 40px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.back::before { content: "\2190"; }

/* --------------------------------------------------------------------------
   Knoppen
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn:hover {
  background: var(--primary-press);
  color: #fff;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.contact-block {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-mail {
  font-size: 1.0625rem;
  color: var(--muted);
}
.contact-mail a {
  font-weight: 600;
  word-break: break-word;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 26px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--primary); }
.footer-note {
  font-size: 0.875rem;
  color: var(--muted-light);
}
.site-footer .brand img { width: 88px; opacity: 0.9; }

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  :root { --gutter: 40px; }

  .site-header { padding-top: 30px; }
  .hero { padding: 76px 0 84px; }
  .hero-art { margin-top: 56px; padding: 64px 24px; }
  .section { padding: 84px 0; }

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

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

/* Ruimere schermen: hero naast elkaar in plaats van onder elkaar. */
@media (min-width: 900px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: 56px;
    align-items: center;
  }
  /* Iets kleiner dan de mobiele piek, zodat "Kijk het later terug." op één
     regel past en de kop niet in drieën breekt. */
  .hero h1 {
    font-size: clamp(2.75rem, 4vw, 3.25rem);
    max-width: none;
  }
  .hero .eyebrow,
  .hero h1,
  .hero .lede {
    grid-column: 1;
    justify-self: start;   /* anders rekt de pill mee met de kolom */
  }

  .hero-art {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    align-self: center;
    padding: 72px 32px;
  }
  .hero-art img { width: 168px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Animatie — subtiel, en volledig uit bij prefers-reduced-motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
  .btn:hover { transform: none; }
}
