/* PocketTrip — website styles (Boarding Pass-identiteit, afgeleid van de app) */

/* ---- Tokens (adaptief light/dark, exact de app-kleuren) ---- */
:root {
  --paper: #F5F2EB;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-secondary: #55514A;
  --ink-muted: #6B665E;
  --mono: #9A948A;
  --label: #8A857B;
  --danger: #C23A57;
  --accent: #0E6FB8;
  --accent-soft: rgba(14, 111, 184, 0.10);
  --hairline: rgba(26, 26, 26, 0.10);
  --shadow: 0 8px 24px rgba(60, 50, 30, 0.10);
  --shadow-hero: 0 18px 48px rgba(60, 50, 30, 0.16);
  --radius-card: 16px;
  --radius-control: 14px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171E;
    --surface: #1E212B;
    --ink: #F2F3F5;
    --ink-secondary: #C3C7D0;
    --ink-muted: #9AA0AC;
    --mono: #6E7480;
    --label: #7C828E;
    --danger: #E0637C;
    --accent: #3B93D6;
    --accent-soft: rgba(59, 147, 214, 0.14);
    --hairline: rgba(242, 243, 245, 0.12);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hero: 0 18px 48px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
@media (max-width: 640px) { .section { padding: 48px 0; } }

/* ---- Typografie ---- */
.mono-label {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mono);
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 18px; }
p { color: var(--ink-secondary); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  display: block; object-fit: cover;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .nav-links a.hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: var(--radius-control);
  border: none; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Official Apple "Download on the App Store" badge */
.app-badge { display: inline-flex; transition: transform 0.12s ease; }
.app-badge:hover { text-decoration: none; transform: translateY(-1px); }
.app-badge img { height: 52px; width: auto; display: block; }
/* The badge artwork is black-on-transparent (for light backgrounds); flip it
   on dark backgrounds so the lockup stays legible. */
@media (prefers-color-scheme: dark) { .app-badge img { filter: invert(1); } }

/* ---- Cards & ticket ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}
.dashed { border: none; border-top: 2px dashed var(--hairline); margin: 20px 0; }

/* Boarding pass hero-ticket */
.ticket {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  position: relative;
}
.ticket-top { padding: 32px; }
.ticket-accent { background: var(--accent); color: #fff; padding: 22px 32px; }
.ticket-accent .mono-label { color: rgba(255,255,255,0.8); }
.perforation {
  position: relative; height: 0;
  border-top: 2px dashed var(--hairline);
  margin: 0 20px;
}
.perforation::before, .perforation::after {
  content: ""; position: absolute; top: -13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper);
}
.perforation::before { left: -33px; }
.perforation::after { right: -33px; }

.route { display: flex; align-items: center; gap: 16px; }
.route .code { font-family: "Space Mono", monospace; font-weight: 700; font-size: 30px; color: var(--ink); }
.route .line { flex: 1; border-top: 2px dashed var(--hairline); position: relative; }
.route .line::after { content: "✈"; position: absolute; right: -4px; top: -13px; color: var(--accent); font-size: 18px; }

.amount { font-family: "Space Mono", monospace; font-weight: 700; font-size: 40px; color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero p.lead { font-size: 18px; margin: 18px 0 28px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feature .tile {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 15px; }

/* ---- Prose (terms/privacy) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-secondary); margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose strong { color: var(--ink); }
.updated { color: var(--mono); font-family: "Space Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Form ---- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: "Space Grotesk", sans-serif; font-size: 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-control);
  padding: 13px 15px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-secondary); font-size: 14px; margin-right: 18px; }
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer .footer-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer .copy { font-family: "Space Mono", monospace; font-size: 12px; color: var(--mono); }
.footer .lang-switch { font-family: "Space Mono", monospace; font-size: 12px; color: var(--mono); }
.footer .lang-switch a { font-size: 12px; margin: 0 2px; }
.footer .lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Section helpers ---- */
.section-alt { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 18px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan .tag {
  align-self: flex-start; font-family: "Space Mono", monospace; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.plan .price { font-family: "Space Mono", monospace; font-weight: 700; font-size: 32px; color: var(--ink); margin: 6px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--mono); }
.plan .price-sub { color: var(--mono); font-family: "Space Mono", monospace; font-size: 12px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 22px; }
.plan li { color: var(--ink-secondary); font-size: 15px; padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn, .plan .app-badge { margin-top: auto; }
.plan .app-badge { align-self: flex-start; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--hairline); padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: "Space Mono", monospace; font-size: 22px; color: var(--accent); transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; margin: 0; }

/* ---- Blog ---- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform 0.12s ease; }
.post-card .kicker { color: var(--accent); font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.post-card h3 { color: var(--ink); margin-bottom: 8px; }
.post-card p { font-size: 15px; margin-bottom: 12px; }
.post-card .read { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: auto; }
.post-meta { color: var(--mono); font-family: "Space Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.breadcrumb { font-size: 13px; color: var(--mono); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-secondary); }
.cta-inline {
  background: var(--accent-soft); border-radius: var(--radius-card);
  padding: 24px; margin: 32px 0; text-align: center;
}
.cta-inline .badge-row { margin-top: 16px; }
