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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --text: #1f2933;
  --muted: #52616b;
  --primary: #1aa37a;
  --primary-dark: #0f7f5f;
  --border: #e2e8ee;
  --shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  --radius: 20px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: #f3f4f6;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: #e5e7eb;
  border-color: #cbd5e1;
}

.btn-secondary {
  background: #eef7f3;
  color: var(--primary-dark);
}

.btn-danger {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.btn-danger:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.hero-toggle {
  display: none;
  margin-bottom: 20px;
}

.hero-copy.is-collapsed .hero-text-more {
  display: none;
}

.hero-text-more {
  display: inline;
}

.hero-meta .label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid #eaf1ee;
}

.hero-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.hero-brand {
  font-weight: 600;
  margin: 0 0 16px;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 32px;
  max-width: 680px;
}

.comparison-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.comparison-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  display: grid;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.comparison-card.best {
  border: 2px solid var(--primary);
  box-shadow: 0 18px 40px rgba(26, 163, 122, 0.18);
}

.comparison-card.warning {
  border: 2px solid #d1fae5;
  box-shadow: 0 18px 40px rgba(26, 163, 122, 0.08);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.origin {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.origin img {
  width: 28px;
  height: auto;
  aspect-ratio: 3 / 2;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--muted);
}

.fact-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.fact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.calculator {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.calculator-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.calculator-input input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.helper {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.calculator-results {
  display: grid;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  column-gap: 12px;
}

.result-row.best {
  background: #f0fbf6;
  border-left: 3px solid var(--primary);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row .diff {
  color: #c02626;
  font-size: 0.85rem;
  font-weight: 600;
  justify-self: end;
}

.result-row .diff-placeholder {
  visibility: hidden;
}

.savings {
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.savings-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.savings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fbf6;
  font-size: 0.95rem;
}

.savings-item strong {
  color: var(--primary-dark);
}

.bar-chart {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.bar {
  display: grid;
  gap: 6px;
}

.bar-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.bar-fill {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, #5ad0ab 100%);
  width: calc(var(--value) * 2%);
}

/* Comparison Table in Hero (mobile only) */
.hero-comparison-table {
  margin-top: 24px;
  margin-bottom: 24px;
  display: block;
}

@media (max-width: 768px) {
  .hero-comparison-table {
    order: 3;
    width: 100%;
  }
  
  .hero-meta {
    order: 4;
  }
  
  /* Hide desktop section on mobile */
  .desktop-only {
    display: none;
  }
}

@media (min-width: 769px) {
  /* Hide hero table on desktop */
  .hero-comparison-table {
    display: none;
  }
  
  /* Show desktop section */
  .desktop-only {
    display: block;
  }
}

/* Comparison Table */
.section-compact {
  padding: 30px 0 50px;
}

.hero + .section-compact {
  padding-top: 40px;
}

.comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead {
  background: var(--bg-alt);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .row-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.comparison-table .value-best {
  color: #0f7f5f;
  font-weight: 600;
  background: #ecfdf5;
}

.comparison-table .value-bad {
  color: #dc2626;
  font-weight: 600;
  background: #fef2f2;
}

.comparison-table .indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 1.1rem;
  line-height: 1;
}

.comparison-table .flag-mini {
  display: inline-block;
  width: 20px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    padding-left: 12px;
  }
  
  .comparison-table .row-label {
    font-size: 0.8rem;
    min-width: 90px;
    font-weight: 700;
  }
  
  /* Productie kolom: vlag op regel 1, land + check/kruis op regel 2 */
  .comparison-table td:nth-child(3) {
    line-height: 1.4;
  }
  
  .comparison-table td:nth-child(3) .flag-mini {
    display: block;
    width: 20px;
    margin: 0 auto 4px;
  }
}

@media (max-width: 480px) {
  .comparison-table th,
  .comparison-table td {
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  
  .comparison-table th {
    font-size: 0.85rem;
  }
  
  .comparison-table .row-label {
    font-size: 0.75rem;
    min-width: 80px;
  }
}

.content-block {
  max-width: 820px;
  color: var(--muted);
  display: grid;
  gap: 16px;
}

.content-block h3 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.content-block h3:first-child {
  margin-top: 0;
}

.content-block p {
  line-height: 1.7;
}

.content-block strong {
  color: var(--text);
  font-weight: 600;
}

.content-block ol.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.content-block ol.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
  line-height: 1.6;
}

.content-block ol.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.content-block ul.benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.content-block ul.benefits-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.6;
}

.content-block ul.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: #e8f8f2;
  color: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.origin-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.origin-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: left;
}

.origin-card img {
  width: 48px;
  margin: 0 0 16px;
}

.origin-card p {
  color: var(--muted);
}

.origin-card p + p {
  margin-top: 12px;
}

.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 2px solid var(--primary);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.16);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  z-index: 50;
}

.floating-cta.hidden {
  display: none;
}

.floating-cta-inner {
  display: grid;
  gap: 4px;
  padding-right: 20px;
}

.floating-badge {
  align-self: start;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.floating-close:hover {
  color: var(--text);
}

.floating-cta .btn {
  width: 100%;
}

.cta {
  background: #0f2f27;
  color: #f5fffb;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta .btn-ghost {
  color: #f5fffb;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-disclosure {
  background: #f6f8f9;
  border-radius: 12px;
  padding: 12px 16px;
  color: #3b4a53;
  max-width: 720px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 20px 0 30px;
  }

  .hero-copy.is-collapsed .hero-text-more {
    display: none;
  }

  .hero-toggle {
    display: inline-flex;
    width: fit-content;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-meta > div {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .floating-cta {
    display: flex;
  }

  .result-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    font-size: 0.9rem;
  }

  .result-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calculator-input label {
    font-size: 0.95rem;
  }

  .calculator-input input {
    font-size: 1rem;
  }

  .savings-item {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .savings-item .icon {
    font-size: 1.1rem;
  }

  .bar-label {
    font-size: 0.8rem;
  }
}
