/* ExactCijfers, statische salespagina */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --text: #1d1f1c;
  --muted: #5b6059;
  --line: #ddd8cc;
  --accent: #0e6b55;
  --accent-strong: #0a5444;
  --accent-ink: #ffffff;
  --accent-soft: #dcede6;
  --bar-old: #c9d9d2;
  --warn: #a8501f;
  --shadow: 0 1px 2px rgba(29, 31, 28, .06), 0 12px 32px rgba(29, 31, 28, .08);

  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --bg-alt: #161a17;
    --surface: #1b201c;
    --surface-2: #222823;
    --text: #ebe9e3;
    --muted: #a4a99f;
    --line: #2f3630;
    --accent: #5cc3a3;
    --accent-strong: #7dd4b8;
    --accent-ink: #0b1a14;
    --accent-soft: #1a3329;
    --bar-old: #33473f;
    --warn: #e8935f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 780px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

/* Knoppen */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--accent);
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--muted); }
.btn-small { padding: 8px 16px; font-size: .95rem; white-space: nowrap; }
.btn-block { display: block; text-align: center; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b, .footer-brand b { font-weight: 600; }
.brand { font-weight: 400; }
.nav { display: flex; gap: 22px; margin-left: auto; margin-right: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .95rem; color: var(--muted); }

/* Gestileerd dashboard */
.dash {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-title { font-weight: 600; }
.dash-sync { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.kpi-value { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.kpi-value.warn { color: var(--warn); }
.kpi-delta { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.kpi-delta.up { color: var(--accent); }
.chart { margin-top: 14px; background: var(--surface-2); border-radius: 10px; padding: 12px 12px 8px; }
.chart-label { font-size: .76rem; color: var(--muted); display: block; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .bar-old { fill: var(--bar-old); }
.chart .bar-new { fill: var(--accent); }
.chart .bar-now { fill: var(--accent); opacity: .45; }
.dash figcaption, .chat figcaption { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: right; }

/* Secties */
.section { padding-block: 88px; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin-bottom: 36px; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.section.alt .card { background: var(--surface); }

.bridge {
  margin-top: 36px; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500; max-width: 32em;
}

/* Stappen */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-nr {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Ook mogelijk */
.also {
  margin-top: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.also h3 { margin-bottom: 10px; }
.also ul { margin: 0 0 10px; padding-left: 1.2em; color: var(--muted); }
.also li + li { margin-top: 6px; }
.also p { color: var(--muted); font-size: .95rem; }

/* AI-agent */
.ai-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.ai-text p + p { margin-top: 14px; }
.ai-text p { color: var(--muted); }
.ai-text h2 { margin-bottom: 24px; }
.examples-label { margin-top: 24px !important; font-weight: 600; color: var(--text) !important; }
.examples { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.examples li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: .97rem;
}

.chat {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.chat-title { font-weight: 600; }
.chat-mode {
  font-size: .76rem; color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px;
}
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { border-radius: 14px; padding: 12px 16px; font-size: .97rem; max-width: 92%; }
.msg p + p, .msg .table-wrap + p { margin-top: 10px; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; max-width: 100%; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.msg table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.msg th, .msg td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.msg th { font-weight: 600; color: var(--muted); font-size: .78rem; }
.msg td:nth-child(n+2), .msg th:nth-child(n+2) { white-space: nowrap; }
.msg tbody tr:last-child td { border-bottom: 0; }
.chat figcaption { padding: 0 18px 14px; margin-top: 0; }

/* Prijs */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.price-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.price-card h3 { font-size: 1.15rem; }
.price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.amount { font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.per { color: var(--muted); font-size: 1.05rem; }
.price-sub { margin-top: 8px; color: var(--muted); font-size: .93rem; }
.price-card h4 { margin-top: 26px; margin-bottom: 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-foot { margin-top: 14px; text-align: center; color: var(--muted); font-size: .9rem; }
.price-side { display: flex; flex-direction: column; gap: 16px; }
.side-block { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-block h3 { margin-bottom: 8px; }
.side-block p { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* Slot */
.closing { text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing h2 { margin-bottom: 0; max-width: 24ch; }
.closing p { color: var(--muted); max-width: 34em; }
.closing .btn { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: .93rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.footer-brand { font-weight: 400; color: var(--text); }
.disclaimer { grid-column: 1 / -1; font-size: .84rem; padding-top: 16px; border-top: 1px solid var(--line); }

/* Responsief */
@media (max-width: 960px) {
  .hero-grid, .ai-grid, .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { max-width: 560px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner .btn-ghost { margin-left: auto; }
  .cards.three, .cards.four, .cards.features, .steps { grid-template-columns: 1fr; }
  .section { padding-block: 60px; }
  .hero { padding-block: 44px 60px; }
  .section h2 { margin-bottom: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .lead { font-size: 1.08rem; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .dash { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: 1 / -1; }
  .kpi-value { font-size: 1.15rem; }
  .card, .step, .also { padding: 20px; }
  .price-card { padding: 24px 20px; }
  .chat-body { padding: 14px; }
  .msg { padding: 11px 13px; }
  .msg th, .msg td { padding: 6px 5px; }
  .brand span { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Inloggen */
button.btn { font-family: inherit; line-height: inherit; cursor: pointer; }
.login {
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  background: var(--surface); color: var(--text);
  width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow);
}
.login::backdrop { background: rgb(0 0 0 / .4); }
.login h2 { font-size: 1.7rem; margin-bottom: 8px; }
.login p { color: var(--muted); margin-bottom: 18px; }
.login label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.login-field {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); overflow: hidden;
}
.login-field:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; padding: 12px 2px 12px 14px; outline: none; text-align: right;
}
.login-field span { padding: 12px 14px 12px 0; color: var(--muted); white-space: nowrap; }
.login .login-error { color: var(--warn); font-size: .9rem; min-height: 1.4em; margin: 8px 0 0; }
.login .btn-block { margin-top: 12px; width: 100%; }
.login-close {
  display: block; width: 100%; margin-top: 10px; padding: 8px;
  background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer;
}
.login-close:hover { color: var(--text); }
@media (max-width: 760px) {
  .header-inner .btn-ghost { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-demo { display: none; }
  .login { padding: 22px 18px; }
}
