/* FeeSense — design tokens */
:root {
  --ink: #0f2521;
  --signal: #14b87e;
  --signal-dark: #0e8c60;
  --paper: #eef1ec;
  --amber: #ffb800;
  --dark-text: #12211f;
  --muted: #5b6b67;
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--paper);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus outline */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* Sections with scroll-margin so header never covers the top */
section[id],
main #inhoud {
  scroll-margin-top: 84px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--signal);
}

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

/* Ripple mark (used in header/footer, small) */
.ripple-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}
.ripple-mark .ripple-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--signal);
}
.ripple-mark .ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  transform: translate(-50%, -50%);
}
.ripple-mark .ripple-ring--1 {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.ripple-mark .ripple-ring--2 {
  width: 22px;
  height: 22px;
  opacity: 0.4;
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero-ripple {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
}

.hero-ripple .ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--signal);
  transform: translate(-50%, -50%);
}
.ripple-ring--big-1 {
  width: 200px;
  height: 200px;
  opacity: 0.35;
}
.ripple-ring--big-2 {
  width: 360px;
  height: 360px;
  opacity: 0.22;
}
.ripple-ring--big-3 {
  width: 540px;
  height: 540px;
  opacity: 0.12;
}
.ripple-dot--big {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(238, 241, 236, 0.85);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover {
  background: #12a370;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(238, 241, 236, 0.4);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.btn-block {
  width: 100%;
  margin-top: 24px;
}

.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 16px;
}

/* Calculator */
.calculator-section {
  background: var(--paper);
}

.calc-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .calc-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-field label {
  font-weight: 600;
  font-size: 15px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
}

.slider-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #dfe6de;
  outline-offset: 6px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 37, 33, 0.15);
  cursor: pointer;
  margin-top: -1px;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid #ffffff;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: #dfe6de;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.slider-help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* Results */
.calc-results {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.result-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 37, 33, 0.08);
  flex-wrap: wrap;
}

.result-label {
  flex: 1 1 auto;
  font-size: 14px;
}

.result-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
}

.result-unit {
  font-size: 12px;
  color: var(--muted);
}

.result-row--muted .result-label,
.result-row--muted .result-value {
  color: var(--muted);
}

.result-row--green .result-value {
  color: var(--signal);
}

.savings-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.savings-item {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.savings-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.savings-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--signal-dark);
  line-height: 1.1;
  transition: transform 200ms ease;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 400px) {
  .savings-value {
    font-size: clamp(22px, 7vw, 30px);
  }
}

.savings-value.pulse {
  transform: scale(1.06);
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 0;
}

/* Upload section */
.upload-section {
  background: #ffffff;
}

.dropzone {
  margin-top: 24px;
  border: 2px dashed rgba(15, 37, 33, 0.25);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  background: var(--paper);
  transition: border-color 120ms ease, background 120ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--signal);
  background: #e4f6ee;
}

.dropzone-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.dropzone-hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.badge-optional {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 37, 33, 0.08);
  color: var(--muted);
}

.upload-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.upload-status.success {
  color: var(--signal);
}

.upload-status.error {
  color: #c0392b;
}

.trust-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* How it works */
.how-section {
  background: var(--paper);
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 16px;
}

.step p {
  margin: 0;
  font-weight: 500;
}

/* USP grid */
.usp-section {
  background: var(--ink);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

.usp-card {
  background: rgba(238, 241, 236, 0.06);
  border: 1px solid rgba(238, 241, 236, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.usp-card p {
  color: var(--paper);
  font-weight: 600;
  font-size: 17px;
  margin: 0;
}

/* Contract section */
.contract-section {
  background: #ffffff;
}

.contract-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contract-text {
  max-width: 520px;
}

.contract-field {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-field label {
  font-weight: 600;
  font-size: 14px;
}

select,
input[type="text"],
input[type="tel"] {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15, 37, 33, 0.2);
  background: #ffffff;
  color: var(--dark-text);
  width: 100%;
}

select:focus,
input:focus {
  border-color: var(--signal);
}

/* Sectors */
.sectors-section {
  background: var(--paper);
}

.pill-row {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: #ffffff;
  border: 1px solid rgba(15, 37, 33, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--dark-text);
}

/* Form */
.form-section {
  background: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 14px;
}

.field-error {
  color: #c0392b;
  font-size: 12px;
  margin: 0;
  min-height: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--signal);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.link-btn:hover {
  color: var(--signal);
}

.form-confirmation {
  margin-top: 16px;
  font-weight: 600;
  color: var(--signal);
  min-height: 20px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 96px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: rgba(238, 241, 236, 0.7);
  font-size: 14px;
  margin-top: 12px;
}

.wordmark--footer {
  color: var(--paper);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(238, 241, 236, 0.5);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  color: rgba(238, 241, 236, 0.85);
  margin: 0 0 8px;
}

.footer-col .link-btn {
  color: var(--paper);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col .link-btn:hover {
  color: var(--signal);
}

.placeholder-tag {
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 33, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  flex: 1 1 320px;
}

.cookie-banner .link-btn {
  color: var(--signal);
  margin-left: 6px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Keep footer content clear of a showing cookie banner */
body.cookie-visible .site-footer {
  padding-bottom: 160px;
}
