/* carAlibi website – kleuren en lettertypen volgen de app ("Oranje, lichte versie"). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito_var.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand_var.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #F6F5F1;
  --panel: #FFFFFF;
  --card: #ECEAE4;
  --line: #DEDBD3;
  --orange: #FF7A1A;
  --orange-text: #C2540A;
  --ink: #161B22;
  --ink-soft: #5E6673;
  --green: #22A559;
  --blue: #3B82F6;
  --red: #E11D48;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Taalwissel: alleen de gekozen taal is zichtbaar. */
html[data-lang="nl"] [lang="en"],
html[data-lang="en"] [lang="nl"] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--orange-text); }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0; }

.accent-bar {
  width: 72px;
  height: 5px;
  border-radius: 3px;
  background: var(--orange);
  margin: 14px 0 22px;
}

.soft { color: var(--ink-soft); }

/* ---------- Kop ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-family: "Quicksand", "Nunito", sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
}
.wordmark svg {
  width: 0.629em;
  height: 0.571em;
  margin: 0 0.036em;
  transform: translateY(0.048em);
  overflow: visible;
}
.site-header .wordmark { font-size: 1.7rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--orange-text); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 3px;
}
.lang-toggle button {
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
html[data-lang="nl"] .lang-toggle button[data-set-lang="nl"],
html[data-lang="en"] .lang-toggle button[data-set-lang="en"] {
  background: var(--ink);
  color: var(--bg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
}
a.btn:hover { background: #ff8c38; color: var(--ink); }
.btn.quiet { background: var(--card); }
a.btn.quiet:hover { background: var(--line); }
.btn[aria-disabled="true"] { background: var(--card); color: var(--ink-soft); cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }

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

.hero { padding: 64px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero .wordmark { font-size: clamp(2.8rem, 9vw, 4.2rem); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
}
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* Telefoon-illustratie */
.phone {
  width: min(280px, 72vw);
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  border-radius: 38px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px -25px rgba(22, 27, 34, 0.45);
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .scan { flex: 1; display: grid; place-items: center; padding: 18px 0 6px; min-height: 0; }
.phone .scan svg { height: 100%; max-width: 70%; }
.phone .legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c9d1d9;
  padding: 0 8px;
}
.phone .legend i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  margin-right: 4px;
}
.phone .pill {
  margin: 12px 14px 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

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

section { padding: 64px 0; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }

.steps, .features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.features { grid-template-columns: repeat(2, 1fr); }

.steps li, .features li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
}
section.alt .steps li, section.alt .features li { background: var(--bg); }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--orange);
  font-weight: 800;
  margin-bottom: 14px;
}
.steps p, .features p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 6px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 2px; }

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.shots figure { margin: 0; text-align: center; }
.shots .phone { width: min(230px, 100%); }
.shots .screen { background: var(--card); }
.shots .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px dashed var(--line);
  border-radius: 29px;
}
.shots .screen.has-image .placeholder { display: none; }
.shots .screen:not(.has-image) img { display: none; }
.shots figcaption { margin-top: 14px; font-weight: 700; font-size: 0.95rem; }

/* Verhaal */
.story { max-width: 720px; }
.story blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Download + contact */
.cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 44px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.cta .app-icon { width: 88px; height: 88px; border-radius: 20px; display: block; }
.cta p { color: #b6bcc6; margin-top: 8px; }
.cta .btn[aria-disabled="true"] { background: #2a313b; color: #b6bcc6; }

.support {
  margin-top: 16px;
  background: var(--card);
  border-radius: 24px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.support .cup { width: 48px; height: 48px; color: var(--orange-text); }
.support p { color: var(--ink-soft); margin-top: 4px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.contact { max-width: 720px; }
.contact p + p { margin-top: 10px; }

/* Voet */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer a { color: var(--ink-soft); }

/* Privacypagina */
.doc { max-width: 720px; padding: 56px 24px 72px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; }
.doc h2 { font-size: 1.3rem; margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }

/* ---------- Smal scherm ---------- */

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 36px 26px; }
  .support { grid-template-columns: 1fr; padding: 28px 26px; gap: 16px; }
  .nav a.hide-small { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  section { padding: 48px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .shots {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    gap: 16px;
  }
  .shots figure { scroll-snap-align: center; }
  .hero .actions .btn { width: 100%; }
}

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