/* ─────────────────────────────────────────────────────────────────────
   Flame to Success — investeerderswebsite
   Huisstijl in lijn met de andere sites (paars/goud), met een warme
   vlam-accentkleur die bij de naam hoort. Nooit zwart: de donkerste
   tekstkleur is diep paars.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --purple:        #7b4fa6;
  --purple-dark:   #3d1f5a;
  --purple-deep:   #5a2d82;
  --gold:          #b8943f;
  --gold-light:    #d4ad5a;
  --ember:         #d0561f;
  --flame:         #ec8b3c;
  --light-purple:  #f3eefb;
  --warm:          #fdf3e8;
  --off-white:     #faf8f5;
  --muted:         #7a5f96;
  --line:          rgba(123, 79, 166, 0.18);
  --ok:            #2f7d51;
  --warn:          #a8451c;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--off-white);
  color: var(--purple-dark);
  line-height: 1.8;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  /* Zo blijft de footer onderaan staan op korte pagina's (bevestigen/bedankt). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > footer { margin-top: auto; }

img { max-width: 100%; }

/* ── TYPOGRAFIE ── */
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--purple-deep); margin-bottom: 8px; }
h3 { font-size: 1.2rem; color: var(--purple-deep); margin-bottom: 6px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
em { color: var(--purple); }
strong { color: var(--purple-deep); font-weight: 600; }
a { color: var(--purple); }

.lede { font-size: 1.08rem; color: var(--muted); }
.small { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── LAYOUT ── */
section { padding: 60px 24px; }
.inner { max-width: 780px; margin: 0 auto; }
.inner-wide { max-width: 1000px; margin: 0 auto; }
.band-light { background: var(--light-purple); }
.band-warm  { background: var(--warm); }

.divider {
  width: 64px; height: 2px; margin: 14px 0 26px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--flame) 100%);
  border-radius: 2px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 78px;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, #6a3894 0%, #8b4a86 45%, #c25a30 100%);
}
.hero::before,
.hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  top: -14%; right: 2%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,220,150,0.30) 0%, rgba(236,139,60,0.14) 45%, transparent 70%);
}
.hero::after {
  bottom: -18%; left: 4%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(184,148,63,0.08) 50%, transparent 72%);
}
.hero .hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 30px; padding: 7px 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-style: italic; font-weight: 600;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(61,31,90,0.22);
}
.hero p { font-size: clamp(1rem, 2vw, 1.16rem); opacity: 0.95; margin: 0 auto 32px; max-width: 620px; }
/* Nadruk in de hero mag niet het donkerpaars van de body-tekst krijgen:
   dat verdwijnt in de gradient. Een warme lichte tint leest wel. */
.hero strong { color: #ffdfae; font-weight: 600; }
.hero em { color: inherit; font-style: italic; }

/* ── KNOPPEN ── */
.btn {
  display: inline-block; cursor: pointer;
  border: none; text-decoration: none;
  font-family: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0.4px;
  padding: 16px 40px; border-radius: 50px;
  color: #fff;
  background: linear-gradient(120deg, var(--gold) 0%, var(--flame) 100%);
  box-shadow: 0 4px 16px rgba(208,86,31,0.30);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(208,86,31,0.38); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-quiet {
  background: transparent; color: var(--purple);
  border: 1px solid var(--line); box-shadow: none; padding: 12px 26px; font-size: 0.92rem;
}
.btn-quiet:hover { background: var(--light-purple); transform: none; box-shadow: none; }

/* ── TAALKEUZE ── */
.lang-switch {
  position: fixed; top: 16px; right: 16px; z-index: 1000;
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(6px);
  padding: 5px; border-radius: 30px;
  box-shadow: 0 2px 12px rgba(123,79,166,0.22);
}
.lang-switch button {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: transparent; color: var(--purple);
  font-family: inherit; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 22px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button:hover { background: var(--light-purple); }
.lang-switch button.is-active { background: var(--purple); color: #fff; }
.lang-switch button svg {
  width: 20px; height: 14px; display: block; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(61,31,90,0.15);
}
@media (max-width: 600px) {
  .lang-switch { top: 10px; right: 10px; }
  .lang-switch button { padding: 6px 10px; }
}

/* ── VERTAALMELDING ── */
/* Alleen zichtbaar in de Engelse versie: i18n.js zet <html lang="en">.
   Staat in de hero-gradient, halverwege de bovenrand en het eyebrow-kader. */
.hero .translated-note {
  display: none;
  position: absolute;
  top: 42px; left: 0; right: 0; z-index: 2;
  padding: 0 96px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}
html[lang="en"] .hero .translated-note { display: block; }
@media (max-width: 600px) {
  /* Extra ruimte boven het eyebrow-kader, zodat de melding vrij staat van
     zowel de taalkeuze (rechtsboven) als het kader eronder. */
  html[lang="en"] .hero { padding-top: 132px; }
  .hero .translated-note { top: 62px; padding: 0 74px; font-size: 0.68rem; letter-spacing: 0.14em; }
}

/* ── KAARTEN & LIJSTEN ── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: 0 2px 14px rgba(61,31,90,0.06);
}
.card + .card { margin-top: 20px; }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
}
.tile .tile-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile .tile-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; color: var(--purple-deep); line-height: 1.2; }
.tile .tile-note { font-size: 0.86rem; color: var(--muted); }

ul.checks { list-style: none; margin: 0 0 8px; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; }
ul.checks li::before {
  content: '✦'; position: absolute; left: 4px; top: 0; color: var(--flame); font-size: 0.95rem;
}

/* ── STAPPEN ── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px;
  background: linear-gradient(120deg, var(--gold) 0%, var(--flame) 100%);
  color: #fff; font-weight: 600; font-size: 0.95rem;
}

/* ── VOORTGANG ── */
.progress {
  height: 12px; border-radius: 10px; overflow: hidden;
  background: var(--light-purple); border: 1px solid var(--line);
}
.progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold) 0%, var(--flame) 100%);
  transition: width 0.5s ease;
}
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.88rem; color: var(--muted); }

/* ── AANKOOPFORMULIER ── */
.buy-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.field label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font-family: inherit; font-size: 1rem; color: var(--purple-dark);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--flame); outline-offset: 1px; }

/* ── WACHTWOORDVELD MET OOGJE ── */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1 1 auto; width: 100%; padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer;
  font-size: 1.05rem; line-height: 1; padding: 7px 8px; border-radius: 8px;
}
.pw-toggle:hover { background: var(--light-purple); }
.pw-toggle:focus-visible { outline: 2px solid var(--flame); outline-offset: 1px; }

/* Alleen voor schermlezers: de knop toont een pictogram, de tekst zit hier. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* De wachtwoordeisen komen uit databasesettings; groen zodra eraan voldaan is. */
.pw-rules { margin-top: 10px; }
.pw-rules.is-ok { color: var(--ok); }

.summary { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.summary-line.total { font-weight: 600; color: var(--purple-deep); border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: 0.94rem; margin-bottom: 18px; }
.notice.info    { background: var(--light-purple); color: var(--purple-deep); }
.notice.error   { background: #fdecea; color: var(--warn); }
.notice.success { background: #eaf6ee; color: var(--ok); }
[hidden] { display: none !important; }

/* ── AUTH-PANEEL ── */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button {
  flex: 1; cursor: pointer; font-family: inherit; font-size: 0.92rem;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--purple);
}
.tabs button.is-active { background: var(--purple); color: #fff; border-color: var(--purple); }
.auth-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.who { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: var(--muted); }
.who strong { color: var(--purple-deep); }

/* ── AFBEELDINGEN ── */
/* Het portret is vierkant aangeleverd, dus een ronde uitsnede zonder vervorming. */
.portrait { margin: 32px auto 0; text-align: center; max-width: 260px; }
.portrait img {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 22px rgba(61,31,90,0.18);
}
.portrait figcaption { margin-top: 12px; letter-spacing: 0.06em; }

/* De AFM-vrijstellingsvermelding is een strook van 1025x55; nooit oprekken. */
.afm { margin-top: 28px; }
.afm img { display: block; width: 100%; max-width: 1025px; height: auto; border-radius: 4px; }

/* ── TABEL ── */
table.plain { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* ── FOOTER ── */
footer {
  background: var(--purple-dark); color: rgba(255,255,255,0.82);
  padding: 44px 24px; text-align: center; font-size: 0.9rem;
}
footer a { color: var(--gold-light); }
footer .version { display: block; margin-top: 10px; font-size: 0.76rem; opacity: 0.55; }

/* ── LOSSE PAGINA'S (bevestigen / bedankt) ── */
.page-narrow { max-width: 640px; margin: 0 auto; padding: 90px 24px 60px; }

/* ─────────────────────────────────────────────────────────────────────
   TIJDELIJK — taalwissel verborgen tot de vertalingen geseed zijn.

   De site gaat eerst in het Nederlands live; zolang websitetranslation
   nog leeg is levert /api/translations niets op en zou de EN-knop dus
   niets doen. De knoppen staan nog wél in de HTML van index.html,
   pages/thankyou.html en pages/confirm.html en i18n.js blijft gewoon
   werken (?lang=en doet het nog steeds) — alleen de balk is onzichtbaar.

   WEER AANZETTEN: verwijder dit blok. Verder is er niets voor nodig.
   ───────────────────────────────────────────────────────────────────── 
.lang-switch { display: none; } */
