/* Costa Blanca Confidence — warm editorial, eerlijke cijfers */
:root {
  --paper: #faf5ec;
  --sand: #f1e8d8;
  --line: #e0d5c0;
  --ink: #182430;
  --ink-soft: #4d5763;
  --terra: #bc5215;
  --terra-deep: #9a430f;
  --sea: #2f6e75;
  --ok: #2e7d4f;
  --warn: #b3541e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
/* korrel over alles, heel subtiel */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.01em; }
a { color: var(--terra); }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.overline {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 20px; height: 64px; }
.wordmark { font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; color: var(--ink); }
.wordmark em { font-style: italic; color: var(--terra); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang-switch { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 4px 14px rgba(188, 82, 21, .28); }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero::after { /* zon-cirkel */
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(188,82,21,.14), rgba(188,82,21,0) 65%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 54ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.hero-note strong { color: var(--ink); }

/* teaser-afrekening */
.ledger-card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(24, 36, 48, .12);
  padding: 26px 26px 20px; transform: rotate(1.4deg);
}
.ledger-card h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; color: var(--sea); margin-bottom: 14px; }
.ledger-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.ledger-row .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.ledger-row.total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.ledger-row.total .num { color: var(--terra); font-size: 20px; }
.neg { color: var(--warn); }

/* ---------- statstrip ---------- */
.stats { background: var(--ink); color: var(--paper); padding: 46px 0; }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.stat .big { font-family: var(--serif); font-size: 46px; line-height: 1; color: #e9b98a; }
.stat p { font-size: 15px; margin-top: 10px; color: #c8cdd3; max-width: 30ch; }
.stat p strong { color: var(--paper); }

/* ---------- pijn / belofte ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin-top: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--sand); border-radius: 14px; padding: 28px 26px;
  border: 1px solid var(--line);
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .k { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--terra); display: block; margin-bottom: 12px; }

/* ---------- wizard ---------- */
.tool { background: linear-gradient(180deg, var(--sand), var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wizard {
  max-width: 720px; margin: 0 auto; background: #fffdf8; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(24,36,48,.10); padding: 38px 40px 34px;
}
.progress { display: flex; gap: 6px; margin-bottom: 30px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.progress span.done { background: var(--terra); }
.step { display: none; }
.step.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: 26px; margin-bottom: 6px; }
.step .hint { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.cols3 { grid-template-columns: repeat(3, 1fr); }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 15px; font-weight: 700; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice input:checked + span { border-color: var(--terra); background: #fbeadd; color: var(--terra-deep); }
.choice input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 1px; }

.checkline { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; cursor: pointer; }
.checkline input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--terra); flex: none; }
.checkline .t { font-weight: 700; font-size: 15px; }
.checkline .d { font-size: 13.5px; color: var(--ink-soft); }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 14px; }
.err { color: #a3261e; font-size: 14px; font-weight: 700; margin-top: 10px; min-height: 20px; }

/* ---------- resultaat ---------- */
.result { display: none; }
.result.show { display: block; animation: fadeUp .4s ease; }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; margin-top: 30px; align-items: start; }
.panel { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel h3 { font-size: 22px; margin-bottom: 16px; }
.subnote { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.flow-note { background: #eef4f4; border: 1px solid #cfe0e1; border-radius: 12px; padding: 16px 18px; font-size: 14.5px; margin-top: 16px; }
.flow-note strong { color: var(--sea); }

.score-ring { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.score-num { font-family: var(--serif); font-size: 44px; color: var(--sea); line-height: 1; }
.actions li { margin: 10px 0 10px 20px; font-size: 15px; }
.actions .cost { color: var(--ink-soft); font-size: 13.5px; }

.market-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.verdict.ok { background: #e5f2ea; color: var(--ok); }
.verdict.high { background: #fbeadd; color: var(--terra-deep); }

.result-cta { margin-top: 30px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 34px 36px; display: flex; gap: 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.result-cta h3 { font-size: 24px; color: var(--paper); }
.result-cta p { color: #c8cdd3; font-size: 15px; max-width: 52ch; }

/* ---------- beloftes / faq / footer ---------- */
.promises { counter-reset: p; }
.promise { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.promise:last-child { border-bottom: 1px solid var(--line); }
.promise::before {
  counter-increment: p; content: "0" counter(p);
  font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--terra); line-height: 1;
}
.promise h3 { font-size: 22px; margin-bottom: 6px; }
.promise p { color: var(--ink-soft); max-width: 68ch; }

details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 20px;
  padding: 20px 40px 20px 0; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; color: var(--terra); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }
details.faq .a p + p { margin-top: 10px; }

footer { background: var(--ink); color: #c8cdd3; padding: 54px 0 40px; margin-top: 20px; }
footer .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
footer .wordmark { color: var(--paper); font-size: 21px; }
footer p { font-size: 14px; margin-top: 12px; max-width: 52ch; }
footer .fine { font-size: 12.5px; color: #8b939c; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .topbar .btn { display: none; }
}
@media (max-width: 900px) {
  .hero .container, .result-grid, footer .container { grid-template-columns: 1fr; }
  .stats .container, .cards3 { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 56px 0 40px; }
  .wizard { padding: 28px 22px; }
  .grid2, .choices, .choices.cols3 { grid-template-columns: 1fr; }
  .ledger-card { transform: none; }
  .section { padding: 60px 0; }
}
