:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --highlight-bg: #eff6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 1rem;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.badge {
  background: var(--highlight-bg);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: #cbd5e1; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sections */
section { padding: 2.5rem 0; }
.tool-section h2, .pro-section h2, .faq-section h2 {
  margin-top: 0;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.35rem;
}
.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
input, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
input.invalid {
  border-color: var(--error);
  background: #fef2f2;
}

/* Transaction table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.tx-table th {
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.tx-table td {
  padding: 0.3rem 0.4rem;
}
.tx-table input { width: 100%; min-width: 80px; }
.tx-table .amount-input { max-width: 100px; }
.remove-row {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
}
.tx-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.limit-msg {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.limit-msg.warn { color: var(--error); font-weight: 600; }

/* CSV import */
.csv-import {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.csv-import summary {
  cursor: pointer;
  font-weight: 600;
}
.csv-import textarea { width: 100%; margin: 0.5rem 0; }
.hint { color: var(--text-muted); font-size: 0.85rem; }
.pro-tag {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* Result message */
.result-msg { margin-top: 1rem; font-weight: 600; }
.result-msg.success { color: var(--success); }
.result-msg.error { color: var(--error); white-space: pre-line; }

/* Pricing */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--highlight-bg);
}
.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0 1rem;
}
.price-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pro-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.pro-section li { padding: 0.25rem 0; }

/* FAQ */
.faq-section details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.faq-section summary { cursor: pointer; font-weight: 600; }
.faq-section p { color: var(--text-muted); margin: 0.6rem 0 0; }

/* Footer */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 0;
}
.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; }
