:root {
  --primary: #0d7a5f;
  --primary-dark: #0a5f4a;
  --bg: #f7faf9;
  --surface: #ffffff;
  --text: #1a2e2a;
  --text-muted: #5b716c;
  --border: #dbe7e3;
  --error: #c0392b;
  --success: #0d7a5f;
  --warn-bg: #fdf6ec;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
nav a { margin-left: 1.5rem; color: var(--text-muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--primary); }

/* Hero */
.hero { text-align: center; padding: 4rem 0 3.5rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.badge {
  background: #e6f2ee; color: var(--primary-dark);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block; border: none; border-radius: 8px; cursor: pointer;
  font-size: 1rem; font-weight: 600; padding: 0.65rem 1.4rem;
  text-decoration: none; transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #e6f2ee; color: var(--primary-dark); }
.btn-secondary:hover { background: #d4e8e1; }
.btn-lg { font-size: 1.1rem; padding: 0.8rem 2rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sections */
section { padding: 2.5rem 0; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: #f0f7f5; }
.drop-title { font-size: 1.15rem; font-weight: 600; }
.drop-sub { color: var(--text-muted); margin-top: 0.25rem; }
.file-label { color: var(--primary); text-decoration: underline; cursor: pointer; }
.drop-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

.paste-fallback { margin-top: 1rem; }
.paste-fallback summary { cursor: pointer; color: var(--text-muted); font-size: 0.95rem; }
.paste-fallback textarea {
  width: 100%; margin: 0.75rem 0; padding: 0.6rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem;
}

/* Summary */
.summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.25rem;
}
.summary-item { background: #f0f7f5; border-radius: 8px; padding: 0.75rem 1rem; }
.summary-item .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.summary-item .value { font-weight: 700; font-size: 1.05rem; }
.summary-item.check-ok .value { color: var(--success); }
.summary-item.check-fail .value { color: var(--error); }

/* Table */
.table-wrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tx-table th, .tx-table td {
  text-align: left; padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tx-table td.amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tx-table td.amount.negative { color: var(--error); }
.tx-table td.comm { white-space: normal; min-width: 220px; }
.table-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Export */
.export-card { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.export-card .result-msg { flex-basis: 100%; }

.result-msg { font-weight: 500; margin-top: 0.5rem; }
.result-msg.success { color: var(--success); }
.result-msg.error { color: var(--error); }
.result-msg.warn { background: var(--warn-bg); padding: 0.5rem 0.9rem; border-radius: 8px; }

.pro-tag {
  background: var(--primary); color: #fff; font-size: 0.7rem;
  padding: 0.1rem 0.5rem; border-radius: 999px; vertical-align: middle; font-weight: 700;
}

/* Pricing */
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 680px) { .pro-grid { grid-template-columns: 1fr; } }
.card-highlight { border: 2px solid var(--primary); }
.price { font-size: 2.4rem; font-weight: 800; margin: 0.5rem 0 0; }
.price-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.pro-grid ul { list-style: none; margin: 1rem 0 1.25rem; }
.pro-grid li { padding: 0.25rem 0; }

/* FAQ */
.faq-section details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1.2rem; margin-bottom: 0.75rem;
}
.faq-section summary { cursor: pointer; font-weight: 600; }
.faq-section p { margin-top: 0.6rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
.site-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  margin: 0 0.4rem;
}
.site-footer p { margin: 0.3rem 0; }

/* Herroepingsrecht-checkbox bij Pro-aankoop */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
  cursor: pointer;
}
.consent-check input { margin-top: 0.2rem; }

/* Legal pages (privacy/cookies/voorwaarden) */
.legal-content {
  max-width: 720px;
  line-height: 1.6;
}
.legal-content h1 { margin-top: 0; }
.legal-content h2 { margin-top: 2rem; }

.hidden { display: none; }
