/* VerpakCheck — "kraft & label" design language.
   Warm paper, ink, one confident green accent. Hairlines and full-bordered
   tinted panels instead of side stripes. Type: system sans throughout
   (no third-party webfonts) · ui-monospace for data and citations. */

:root {
  --paper: #FBF9F4;
  --paper-deep: #F1ECE1;
  --card: #FFFFFF;
  --ink: #1D211B;
  --ink-soft: #5C6257;      /* darkened a touch from #656B5F for AA on tinted panels */
  --hairline: #E4DFD2;
  --hairline-strong: #D6D0C0;
  --accent: #0F7A52;
  --accent-deep: #0B5C3E;
  --accent-wash: #E8F1EC;
  --accent-line: #C4DDCE;   /* full border for accent-wash panels */
  --ok-ink: #0F7A52;
  --ok-paper: #E8F1EC;
  --warn-ink: #8A5A1F;
  --warn-paper: #F7EFE0;
  --warn-line: #E6D3AC;     /* full border for warn panels */
  --display: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --header-h: 84px;
  /* semantic z-index scale */
  --z-sticky: 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Visible keyboard focus everywhere — this brand sells compliance credibility. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline-offset: 3px; }

.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); font-weight: 600; line-height: 1.07; margin: 0.3em 0 0.4em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; line-height: 1.16; margin: 0.2em 0 0.5em; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 0 0 0.35em; }
.page-title { font-size: clamp(2rem, 4.4vw, 2.85rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7em;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; opacity: 0.6;
}
.tiny { font-size: 0.82rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--paper); position: sticky; top: 0; z-index: var(--z-sticky); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand-mark { transform: translateY(-1px); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-size: 0.9rem; text-decoration: none; color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-cta { color: #fff; background: var(--ink); padding: 8px 16px; border-radius: var(--r-sm); transition: background 0.18s ease; }
.site-nav a.nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* Hero */
.hero { padding: clamp(60px, 9vw, 104px) 0 clamp(52px, 7vw, 84px); }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 38ch; margin: 0; }
.hero .lede { max-width: 56ch; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.assurances {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 0.9rem; color: var(--ink-soft);
}
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-wash);
  /* checkmark drawn with a conic-free inline mask-safe approach: use a small SVG data-uri */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.4 2.4L12 5' fill='none' stroke='%230F7A52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.hero-note {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hairline);
  max-width: 48ch; font-size: 0.9rem; color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 13px 26px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600;
  text-decoration: none; border: none; border-radius: var(--r-sm); cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { background: transparent; color: var(--accent); }
.text-link { font-size: 0.96rem; color: var(--ink-soft); text-decoration: none; }
.text-link:hover { color: var(--accent); }

/* Sections */
.section { padding: clamp(56px, 8vw, 84px) 0; border-top: 1px solid var(--hairline); }
.section.flush { border-top: none; }
.section-lede { color: var(--ink-soft); max-width: 60ch; margin: 0 0 2.2em; font-size: 1.05rem; }
.section.tint { background: var(--paper-deep); }

/* Feature list (numbered editorial — a real set of four obligations) */
.reasons { list-style: none; counter-reset: reason; margin: 0; padding: 0; }
.reasons li {
  counter-increment: reason; position: relative;
  padding: 28px 0 28px 66px; border-top: 1px solid var(--hairline);
}
.reasons li::before {
  content: "0" counter(reason); position: absolute; left: 0; top: 30px;
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  font-weight: 600; letter-spacing: 0.02em;
}
.reasons li p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 60ch; }

/* FAQ */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 0.98rem; padding: 18px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  font-family: var(--mono); font-size: 1.1rem; color: var(--accent);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

/* ---------- Rolwijzer wizard ---------- */
.wizard { max-width: 680px; margin: 0 auto; }
.wizard-progress {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px;
}
.wizard-bar { height: 6px; background: var(--paper-deep); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; margin-bottom: 32px; }
.wizard-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.step { display: none; }
.step.active { display: block; }
.step h2 { margin-top: 0; }
.step h3 { margin-top: 1.5em; font-size: 0.82rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.step h3:first-of-type { margin-top: 0; }
.step .hint { color: var(--ink-soft); font-size: 0.95rem; max-width: 56ch; margin: 0 0 1.4em; }

.options { display: grid; gap: 12px; margin: 0 0 8px; }
.option {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--card); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.option:hover { border-color: var(--accent); }
.option:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 122, 82, 0.15); }
.option input { margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.option.selected { border-color: var(--accent); background: var(--accent-wash); }
.option .opt-title { font-weight: 600; display: block; }
.option .opt-sub { color: var(--ink-soft); font-size: 0.9rem; display: block; margin-top: 2px; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 16px; }
.wizard-nav .spacer { flex: 1; }
.step-warn { color: var(--warn-ink); margin-top: 14px; }

/* Invalid-advance nudge */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.step.shake { animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

/* Verdict — the authoritative money moment */
.verdict { display: none; }
.verdict.active { display: block; animation: verdict-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes verdict-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.verdict-head {
  display: flex; align-items: center; gap: 18px;
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  padding: 24px 26px; border-radius: var(--r-lg); margin-bottom: 8px;
}
.verdict-head::before {
  content: ""; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.verdict-head-text { min-width: 0; }
.verdict-head .role-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.verdict-head h2 { margin: 4px 0 0; line-height: 1.1; }
.verdict-roles { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
.verdict-head--error { background: var(--warn-paper); border-color: var(--warn-line); }
.verdict-head--error::before { background: var(--warn-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='19' r='1.4' fill='%23fff'/%3E%3C/svg%3E") center / 24px no-repeat; }
.verdict-head--error .role-label { color: var(--warn-ink); }

.verdict-intro { margin: 28px 0 0; font-weight: 600; color: var(--ink); }
.duty-list { list-style: none; margin: 14px 0 0; padding: 0; }
.duty-list li { padding: 20px 0 20px 42px; border-top: 1px solid var(--hairline); position: relative; }
.duty-list li:first-child { border-top: none; }
.duty-list li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8.5' fill='none' stroke='%230F7A52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 16px;
}
.duty-list .duty-text { margin: 0; }
.duty-list .cite {
  display: inline-flex; align-items: center; gap: 0.45em; margin-top: 10px;
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft);
  background: var(--paper-deep); border: 1px solid var(--hairline);
  padding: 3px 10px; border-radius: 999px;
}
.duty-list .cite::before { content: "§"; color: var(--accent); font-weight: 700; }
.duty-list .cite a { color: var(--ink-soft); text-decoration-color: var(--hairline-strong); }
.duty-list .cite a:hover { color: var(--accent); }

.verdict-notes { margin: 28px 0 0; }
.verdict-note {
  background: var(--warn-paper); border: 1px solid var(--warn-line);
  padding: 15px 18px 15px 44px; border-radius: var(--r-md); font-size: 0.92rem;
  color: var(--warn-ink); margin: 0 0 12px; position: relative;
}
.verdict-note::before {
  content: "!"; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--warn-ink); color: var(--warn-paper);
  font-weight: 700; font-size: 0.72rem; display: grid; place-items: center; line-height: 1;
}
.disclaimer {
  margin-top: 32px; padding: 16px 18px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-md);
  font-size: 0.86rem; color: var(--ink-soft); background: var(--paper-deep);
}

/* Lead / waitlist forms */
.lead-form { margin-top: 24px; }
.lead-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-fields input {
  flex: 1; min-width: 220px; padding: 12px 16px;
  font-family: var(--sans); font-size: 0.97rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-fields input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 122, 82, 0.15); }
.lead-done { margin-top: 18px; color: var(--ok-ink); font-weight: 600; }
.lead-error { margin-top: 18px; color: var(--warn-ink); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.waitlist-card {
  margin-top: 40px; padding: 28px; background: var(--paper-deep);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
}
.waitlist-card h3 { margin-top: 0; }

/* Prose (SEO pages) */
.prose { max-width: 680px; }
.prose h2 {
  margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--hairline);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.05rem; }
.prose p { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ink); max-width: 66ch; }
.prose li { margin: 0.4em 0; }
.prose .answer {
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  padding: 20px 24px; border-radius: var(--r-lg); margin: 0 0 1.8em;
}
.prose .answer p { max-width: none; }
.prose .answer p:last-child { margin-bottom: 0; }
.prose sup { font-family: var(--mono); font-size: 0.7em; color: var(--accent); font-weight: 600; padding-left: 1px; }
.prose .footnotes { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--hairline); font-size: 0.86rem; color: var(--ink-soft); }
.prose .footnotes p strong { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.prose .footnotes ol { padding-left: 1.4em; }
.prose .footnotes li { margin: 0.5em 0; }
.prose .footnotes a { color: var(--ink-soft); }
.cta-band {
  margin: 2.8em 0 0; padding: 26px; background: var(--paper-deep);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
}
.cta-band h3 { margin-top: 0; }
.related { margin-top: 2.8em; padding-top: 1.4em; border-top: 1px solid var(--hairline); }
.related h3 { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0; border-top: 1px solid var(--hairline); }
.related li:first-child { border-top: none; }
.related li a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); transition: color 0.15s ease, padding 0.15s ease; }
.related li a:hover { color: var(--accent); padding-left: 6px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 1.4em; }
.breadcrumb a { color: var(--ink-soft); }

/* Data table (privacy) */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0 0 1.4em; }
.prose thead th { text-align: left; border-bottom: 1px solid var(--hairline-strong); padding: 10px 12px 10px 0; font-family: var(--sans); }
.prose tbody td { border-bottom: 1px solid var(--hairline); vertical-align: top; padding: 12px 12px 12px 0; }
.prose tbody td:last-child, .prose thead th:last-child { padding-right: 0; }

/* ---------- Footer (gold standard, light rendition) ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--paper-deep); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding: 56px 0 40px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--hairline); padding: 26px 0 40px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
.footer-statement { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 0; }
.footer-meta { font-size: 0.82rem; color: var(--ink-soft); margin: 0; text-align: right; }
.footer-meta a { color: var(--ink-soft); }

@media (max-width: 760px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .reasons li { padding-left: 48px; }
  .verdict-head { gap: 14px; padding: 20px; }
  .verdict-head::before { width: 40px; height: 40px; background-size: 22px; }
  .footer-bottom { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .verdict.active, .step.shake { animation: none; }
}
