/* INLO pages. Same tokens as the app (Shared/VialTheme.swift): near-black, a warm amber
   glow that seems to fall through dark glass, fine grain, gold only as an accent.
   The app is always dark, so these pages are too. Muted (#666B75) is too dark for text
   on black, so small text uses metalMid (#8A8F98), which clears WCAG AA. */

:root {
  --black: #08090b;
  --surface: #17191e;
  --border: #292c33;
  --primary: #f7f7f8;
  --secondary: #a0a3ad;
  --muted: #8a8f98;
  --gold: #d8ae5a;
  --gold-bright: #e7ce92;
  --gold-deep: #b38232;
  --glass-top: rgba(255, 255, 255, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--black); }

body {
  margin: 0;
  overflow-x: clip; /* safety net for classic desktop scrollbars, where 100vw is a bit too wide */
  /* Fine grain against banding in the glow, as in the app. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--black);
  color: var(--primary);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

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

.wrap { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 13px;
}
.brand:hover { color: var(--primary); }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border), 0 0 22px rgba(216, 174, 90, 0.18);
}
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--secondary); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--primary); }
/* Language switch: set apart from the pages with a hairline. */
.top nav .lang {
  padding-left: 18px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  align-self: center;
}
.top { gap: 12px; }
/* Small iPhones: brand, two pages and the language switch on one line. */
@media (max-width: 380px) {
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .lang { padding-left: 12px; }
}
@media (max-width: 340px) {
  :root { --gutter: 20px; }
}

/* Type */
main { position: relative; }
/* Amber light behind the headline, wider than tall, never wider than the screen. */
main::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: min(1000px, 100vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(216, 174, 90, 0.11), transparent);
  z-index: -1;
  pointer-events: none;
}
.eyebrow {
  margin: 28px 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--gold); }
h2 {
  font-family: var(--display);
  font-size: clamp(23px, 3.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 52px 0 12px;
}
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
p { text-wrap: pretty; }
.lead { font-size: 19px; color: var(--secondary); margin: 0 0 28px; }
.small { font-size: 14px; color: var(--muted); }

/* Cards: the app's surface with a light edge along the top, like its glass. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-top);
  padding: 22px 24px;
}
.card p { margin: 0; color: var(--secondary); }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-top);
  padding: 18px 22px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p, details ol, details ul { color: var(--secondary); margin: 12px 0 0; }
details li { margin: 4px 0; }

/* Legal text. :where keeps this weak, so the eyebrow and the date keep their own colour. */
:where(.legal) :is(p, li) { color: var(--secondary); }
.legal h2 { font-size: 23px; margin-top: 40px; }
.legal strong { color: var(--primary); font-weight: 600; }

/* Footer */
footer {
  margin-top: 72px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--primary); }
footer nav { display: flex; gap: 18px; }
.disclaimer { margin: 0 0 16px; flex-basis: 100%; }

/* Landing page */
.wide { max-width: 1040px; }
.hero { text-align: center; padding: 36px 0 8px; }
.hero .wordmark {
  display: block;
  width: min(440px, 86%);
  height: auto;
  margin: 0 auto 30px;
}
.hero .eyebrow { margin-top: 0; }
.hero h1 { font-size: clamp(42px, 8vw, 72px); }
.hero .lead { max-width: 600px; margin-inline: auto; }
.actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* The gold button, as in the app. Ready for the App Store link. */
.pill {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(216, 174, 90, 0.28);
}
.pill:hover { color: var(--black); filter: brightness(1.05); }
.pill.quiet {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--glass-top);
}
.pill.quiet:hover { color: var(--primary); }
/* Not a button: there is nothing to tap until the app is live. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--secondary);
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Screens: real screenshots, cut to the iPhone's own corner radius. */
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 8px;
}
.screens img {
  width: 100%;
  height: auto;
  border-radius: 13.6% / 6.3%;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(216, 174, 90, 0.06);
  background: var(--surface);
}
@media (max-width: 760px) {
  .screens {
    grid-template-columns: repeat(4, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 24px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens img { scroll-snap-align: center; }
}

/* Feature cards */
.cards { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 700px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.cards .card p { margin-top: 2px; }
.pro { margin-top: 12px; }
.pro h3 { display: flex; align-items: center; gap: 8px; }
/* The gold badge from the app ("Actief"), here for Pro. */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.closing { margin: 36px 0 0; }
.closing .small { margin: 14px 0 0; }
