/* ── CloudFactuur.nl — SEO landing pages ──────────────────────────
   Self-contained, no web fonts, mobile-first. Optimised for Core Web
   Vitals: system font stack (no CLS from font swap), no JS required. */
:root {
  --brand:       #1a56a4;
  --brand-dark:  #12417d;
  --brand-light: #e8f0fb;
  --accent:      #16a34a;
  --text:        #1a1a2e;
  --muted:       #545b6b;
  --border:      #dbe0ea;
  --bg:          #f5f7fb;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(26,86,164,.08);
  --maxw:        1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Top bar */
.lp-topbar {
  background: var(--brand);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.lp-topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.lp-logo { color: #fff; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.lp-logo span { font-weight: 400; }
.lp-logo:hover { text-decoration: none; opacity: .92; }
.lp-nav a { color: #fff; margin-left: 18px; font-size: .95rem; opacity: .92; }
.lp-nav a:hover { opacity: 1; }
.lp-cta-top {
  background: #fff; color: var(--brand) !important; padding: 8px 16px;
  border-radius: 6px; font-weight: 600;
}
.lp-cta-top:hover { text-decoration: none; background: var(--brand-light); }

/* Hero */
.hero { background: linear-gradient(160deg, #fff 0%, var(--brand-light) 100%); padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.4em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6em; }
.badge {
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 5px 14px; font-size: .85rem; font-weight: 600; color: var(--brand-dark);
}
.badge::before { content: "✓ "; color: var(--accent); }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700;
  font-size: 1.05rem; text-align: center; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Invoice preview card */
.inv-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; font-size: .82rem; color: #333;
}
.inv-card .ic-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.inv-card .ic-brand { font-weight: 700; color: var(--brand); font-size: 1.1rem; }
.inv-card .ic-title { text-align: right; }
.inv-card .ic-title strong { display: block; font-size: 1.05rem; }
.inv-card .ic-meta { color: var(--muted); }
.inv-card table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.inv-card th, .inv-card td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #eef1f6; }
.inv-card th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.inv-card td.num, .inv-card th.num { text-align: right; }
.inv-card .ic-totals { margin-top: 10px; margin-left: auto; width: 60%; }
.inv-card .ic-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.inv-card .ic-totals .grand { font-weight: 700; color: var(--text); border-top: 2px solid var(--brand); margin-top: 4px; padding-top: 6px; }

/* Sections */
section.block { padding: 20px 0 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 1.2em 0; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
/* a11y (ASPA-182): de kaart in de hero volgt direct op de <h1>, dus moet die kop
   een <h2> zijn — een <h3> slaat een niveau over (heading-order). Semantiek is
   nu correct; deze regel houdt de weergave gelijk aan de oude <h3>, net zoals
   .calc-card h2 dat verderop doet. */
.hero .card h2 { margin-top: 0; font-size: 1.15rem; }

/* HowTo steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1em 0; }
.steps li { position: relative; padding: 0 0 18px 54px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps li strong { display: block; }

/* Template hub grid */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 1.4em 0; }
.tpl-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); color: var(--text);
}
.tpl-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); transition: .15s; }
.tpl-card h3 { color: var(--brand-dark); margin-top: 0; }
.tpl-card .tpl-arrow { color: var(--brand); font-weight: 700; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding-top: 12px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; margin: 2.4em 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--brand-light); }

/* Asperion promo */
.asperion-band {
  background: var(--brand-light); border: 1px solid #cddffb; border-radius: var(--radius);
  padding: 24px; margin: 2em 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.asperion-band p { margin: 0; flex: 1 1 320px; }
/* a11y (ASPA-182): een link in een lopende tekstregel haalt de 3:1 met de
   omringende tekst niet (2,36:1), dus mag hij niet alleen aan zijn kleur te
   herkennen zijn. Onderstrepen lost dat op voor alle tekstblokken tegelijk:
   .asperion-band p, .block p en .lp-footer p zitten allemaal in .wrap.
   Bewust alleen <a> binnen een <p> — linkrijen zoals .foot-links zijn geen
   tekstblok en vallen dus buiten deze regel. .btn is uitgezonderd zodat een
   als knop opgemaakte link geen streep krijgt. */
.wrap p a:not(.btn) { text-decoration: underline; }

/* Download cards (docx/xlsx templates — ASPA-108) */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 1.4em 0; }
.dl-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--white); display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.dl-card .dl-ico { font-size: 2rem; line-height: 1; }
.dl-card h3 { margin: 0; }
.dl-card p { margin: 0; color: var(--muted); flex: 1; }
.dl-card .dl-meta { font-size: .82rem; color: var(--muted); }
.dl-card .btn { align-self: flex-start; }
@media (max-width: 620px) { .dl-grid { grid-template-columns: 1fr; } }

/* Footer */
.lp-footer { background: #101a2b; color: #aab4c5; padding: 34px 0; margin-top: 40px; font-size: .9rem; }
.lp-footer a { color: #dbe4f2; }
.lp-footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--muted); }

/* ── Rekentools (ASPA-125): BTW- & uurtarief-calculator ── */
.calc-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; font-size: .95rem;
}
.calc-card h2 { margin: 0 0 14px; font-size: 1.2rem; }
.calc-field { margin-bottom: 14px; }
.calc-field label, .calc-field .calc-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.calc-field input[type="text"], .calc-field input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.calc-field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.calc-field .calc-hint { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.calc-seg { display: flex; gap: 6px; }
.calc-seg label { position: relative; flex: 1; margin: 0; cursor: pointer; }
.calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-seg span {
  display: block; text-align: center; padding: 9px 6px; border: 1px solid var(--border);
  border-radius: 8px; font-weight: 600; font-size: .9rem; background: #fff; color: var(--text);
}
.calc-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.calc-seg input:focus-visible + span { outline: 2px solid var(--brand-dark); outline-offset: 1px; }
.calc-results { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.calc-results .calc-row { display: flex; justify-content: space-between; padding: 4px 0; }
.calc-results .calc-row span:last-child { font-variant-numeric: tabular-nums; }
.calc-results .calc-grand {
  font-weight: 700; font-size: 1.15rem; color: var(--brand-dark);
  border-top: 2px solid var(--brand); margin-top: 6px; padding-top: 8px;
}
.calc-cta { margin-top: 14px; }
.calc-cta .btn { width: 100%; text-align: center; }
.calc-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.ex-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ex-table th, .ex-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #eef1f6; font-size: .95rem; }
.ex-table th { background: var(--brand-light); color: var(--brand-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.ex-table td.num, .ex-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ex-table tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .lp-nav { display: none; }
  body { font-size: 16px; }
}
