/* ==========================================================================
   EstateAI.nl — design system
   Calm, premium real-estate research tool. Paper background, notaris-green
   accent, Fraunces display serif + IBM Plex Sans UI. No gradients.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plexsans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --ink-soft: #52524e;
  --ink-faint: #8a8a84;
  --line: #e7e4dc;
  --stone: #f1efe9;
  --green: #2e5d4f;
  --green-deep: #234a3f;
  --green-soft: #eaf0ed;
  --flag-red: #a8402e;
  --flag-red-soft: #f7ece9;
  --flag-amber: #9a6b1f;
  --flag-amber-soft: #f7f0e2;
  --ok: #3e7a52;
  --teal: #2f6a72;
  --slate: #4a5a74;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(28, 28, 26, 0.04), 0 8px 24px rgba(28, 28, 26, 0.05);
  --wrap: 1100px;
  --wrap-wide: 1240px;
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  font-variation-settings: "opsz" 80;
}
h2 {
  font-size: clamp(1.55rem, 3vw, 1.9rem);
}
h3 {
  font-size: 1.125rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0;
}
p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.num,
.fact-value,
.pricebar-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-wide {
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: 24px;
}
section {
  padding-block: 96px;
}
.kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-intro {
  max-width: 620px;
  font-size: 1.0625rem;
}
.caption {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
::selection {
  background: var(--green-soft);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font-ui);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-deep);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink-faint);
}
.btn-lg {
  height: 56px;
  padding-inline: 28px;
  font-size: 1rem;
}
.btn-sm {
  height: 36px;
  padding-inline: 14px;
  font-size: 0.8125rem;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
}
.logo em {
  font-style: normal;
  color: var(--green);
}
.logo small {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-block: 88px 72px;
  text-align: center;
  overflow: hidden;
}
/* faint cadastral parcel-map motif, drawn in CSS-readable SVG */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' fill='none' stroke='%231c1c1a' stroke-width='1'%3E%3Cpath d='M40 80 L210 40 L260 170 L120 220 Z'/%3E%3Cpath d='M260 170 L430 130 L470 250 L300 300 Z'/%3E%3Cpath d='M120 220 L300 300 L250 430 L70 380 Z'/%3E%3Cpath d='M640 90 L820 60 L860 200 L690 240 Z'/%3E%3Cpath d='M690 240 L860 200 L830 360 L660 380 Z'/%3E%3Cpath d='M470 250 L660 380 L600 520 L420 470 Z'/%3E%3Ccircle cx='210' cy='40' r='3'/%3E%3Ccircle cx='430' cy='130' r='3'/%3E%3Ccircle cx='860' cy='200' r='3'/%3E%3Ccircle cx='300' cy='300' r='3'/%3E%3Ccircle cx='660' cy='380' r='3'/%3E%3C/svg%3E");
  background-size: 900px 600px;
  background-position: center -60px;
  background-repeat: no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
}
.hero h1 {
  max-width: 720px;
  margin-inline: auto;
}
.hero-sub {
  max-width: 640px;
  margin: 20px auto 36px;
  font-size: 1.0625rem;
}

/* URL form */
.url-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-inline: auto;
}
.url-input {
  flex: 1;
  height: 56px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: 400 1rem var(--font-ui);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease;
  min-width: 0;
}
.url-input::placeholder {
  color: var(--ink-faint);
}
.url-input:focus {
  border-color: var(--green);
  outline: none;
}
.url-error {
  display: none;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--flag-red);
}
.url-error.visible {
  display: block;
}

/* source badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.chip.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.trust-line {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* report strip under hero */
.report-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 56px auto 0;
}
.strip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 16px;
  text-align: left;
}
.strip-card .caption {
  display: block;
  margin-bottom: 6px;
}
.strip-card .bar {
  height: 5px;
  border-radius: 3px;
  background: var(--stone);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.strip-card .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: var(--green);
  opacity: 0.55;
}
.strip-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Analysis card (loader) ---- */
.analysis {
  display: none;
  max-width: 680px;
  margin-inline: auto;
  text-align: left;
}
.analysis.visible {
  display: block;
}
.analysis-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.analysis-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.analysis-url {
  flex: 1;
  font-size: 0.875rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analysis-cancel {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.analysis-cancel:hover {
  color: var(--flag-red);
}
.progress-track {
  height: 3px;
  background: var(--stone);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.4s ease;
}
.stages {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
}
.stages li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  padding-block: 9px;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.stages li .dot {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
}
.stages li.active {
  color: var(--ink);
  font-weight: 500;
}
.stages li.active .dot {
  border-color: var(--green);
}
.stages li.active .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease-in-out infinite;
}
.stages li.done {
  color: var(--ink-soft);
}
.stages li.done .dot {
  border-color: var(--green);
  background: var(--green);
}
.stages li.done .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5 L5.5 10.5 L11.5 4'/%3E%3C/svg%3E") center/10px no-repeat;
}
.stage-note {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  display: none;
  font-weight: 400;
}
.stages li.active .stage-note {
  display: block;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.analysis-done {
  display: none;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.analysis-done.visible {
  display: block;
}
.new-analysis-link {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.stages li.failed {
  color: var(--flag-red);
}
.stages li.failed .dot {
  border-color: var(--flag-red);
  background: var(--flag-red);
}
.stages li.failed .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 4l6 6M10 4l-6 6'/%3E%3C/svg%3E") center/9px no-repeat;
}
.analysis-notice {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--green-soft);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.analysis-error {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.analysis-error p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--flag-red);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stages li.active .dot::after {
    animation: none;
  }
  .progress-fill {
    transition: none;
  }
}

/* ---- Paste fallback (calm, not an error) ---- */
.paste-card {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.paste-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.paste-card > p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.paste-card textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: 400 0.9375rem/1.55 var(--font-ui);
  color: var(--ink);
  resize: vertical;
}
.paste-card textarea:focus {
  border-color: var(--green);
  outline: none;
}
.paste-error {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--flag-red);
}

/* ---- Context panel ---- */
.ctx-panel {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ctx-panel.revealed {
  opacity: 1;
  transform: none;
}
.ctx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ctx-toggle h3 {
  margin: 0;
  font-size: 1rem;
}
.ctx-toggle .caption {
  display: block;
  margin-top: 2px;
}
.ctx-chevron {
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}
.ctx-panel.open .ctx-chevron {
  transform: rotate(180deg);
}
.ctx-body {
  display: none;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--line);
}
.ctx-panel.open .ctx-body {
  display: block;
}
.field {
  margin-top: 16px;
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: 400 0.9375rem/1.55 var(--font-ui);
  color: var(--ink);
  resize: vertical;
}
.field textarea:focus {
  border-color: var(--green);
  outline: none;
}
.field textarea::placeholder {
  color: var(--ink-faint);
}
.goal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.goal-chips .chip {
  cursor: pointer;
  height: 34px;
  font-size: 0.8125rem;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: border-color 0.18s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green);
}
.dropzone input {
  display: none;
}
.file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.file-list li {
  padding: 3px 0;
}
.ctx-privacy {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.ctx-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ctx-saved {
  display: none;
  font-size: 0.875rem;
  color: var(--ok);
  font-weight: 500;
}
.ctx-saved.visible {
  display: inline;
}

/* ---- Check cards grid ---- */
.section-stone {
  background: var(--stone);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.check-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.check-card .glyph {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 16px;
}
.check-card h3 {
  margin-bottom: 6px;
}
.check-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
}
.step h3 {
  margin: 14px 0 6px;
}
.step p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Preview frame ---- */
.preview-frame {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.preview-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.preview-chrome .preview-addr {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.preview-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background: var(--paper);
}
.preview-cta {
  margin-top: 28px;
  text-align: center;
}

/* ---- Source labels (core primitive) ---- */
.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.src::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.src-listing::before {
  background: var(--ok);
}
.src-user::before {
  background: var(--slate);
}
.src-public::before {
  background: var(--teal);
}
.src-ai::before {
  background: var(--flag-amber);
}
.src-verify {
  border-color: var(--flag-amber);
  color: var(--flag-amber);
  font-weight: 600;
}
.src-verify::before {
  background: var(--flag-amber);
}
.src-na {
  font-style: italic;
}
.src-na::before {
  background: var(--line);
}
/* confidence chips (report rendering) */
.src.conf-confirmed::before {
  background: var(--ok);
}
.src.conf-likely::before {
  background: var(--flag-amber);
}
.src.conf-uncertain::before {
  background: var(--ink-faint);
}
/* red-flag severity (data-driven report) */
.flag-row.sev-high {
  border-left-color: var(--flag-red);
}
.flag-row.sev-medium,
.flag-row.sev-low {
  border-left-color: var(--flag-amber);
}
/* development banner for mock reports */
.mock-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px dashed var(--flag-amber);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--flag-amber);
  background: var(--flag-amber-soft);
}
/* report page loading / error states */
.report-loading {
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-faint);
}

/* legend */
.legend {
  margin-top: 40px;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.legend-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
}
.legend-row + .legend-row {
  border-top: 1px solid var(--line);
}
.legend-row p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---- Wel/Niet + privacy ---- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.duo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}
.duo-card.is-not {
  background: var(--paper);
}
.duo-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.duo-card.is-yes .tag {
  color: var(--ok);
}
.duo-card.is-not .tag {
  color: var(--flag-red);
}
.duo-card p {
  margin: 0;
}
.privacy-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone);
  padding: 28px;
}
.privacy-card h3 {
  margin-bottom: 8px;
}
.privacy-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-list details + details {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9875rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list .faq-a {
  padding: 0 22px 20px;
  max-width: 760px;
}
.faq-list .faq-a p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Final CTA band ---- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 {
  color: var(--paper);
}
.cta-band p {
  color: rgba(250, 249, 246, 0.7);
}
.cta-band .url-input {
  box-shadow: none;
  border-color: transparent;
}
.cta-band .trust-line {
  color: rgba(250, 249, 246, 0.5);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer .caption {
  max-width: 480px;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem;
}
.footer-links a {
  color: var(--ink-soft);
}

/* ==========================================================================
   Report page
   ========================================================================== */
.report-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-block: 36px;
}
.report-header h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 4px;
}
.report-header .report-sub {
  color: var(--ink-faint);
  font-size: 0.875rem;
  margin: 0;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-top: 18px;
}
.report-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.report-price small {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-faint);
}
.report-m2 {
  font-size: 1rem;
  color: var(--ink-soft);
}
.report-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.report-layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 40px;
  align-items: start;
  padding-block: 48px 80px;
}
.report-side {
  position: sticky;
  top: 84px;
}
.report-side nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-side a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.report-side a:hover {
  text-decoration: none;
  color: var(--ink);
}
.report-side a.current {
  border-left-color: var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.report-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.rcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  scroll-margin-top: 84px;
}
.rcard > h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.rcard .rcard-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  margin-top: 20px;
  padding-top: 14px;
}

/* verdict chips in summary */
.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.verdict {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.verdict-red {
  background: var(--flag-red-soft);
  color: var(--flag-red);
}
.verdict-amber {
  background: var(--flag-amber-soft);
  color: var(--flag-amber);
}
.verdict-neutral {
  background: var(--stone);
  color: var(--ink-soft);
}

/* fact grid */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fact {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.fact:nth-child(4n) {
  border-right: 0;
}
.fact:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.fact .caption {
  display: block;
  margin-bottom: 4px;
}
.fact-value {
  font-weight: 600;
  font-size: 1rem;
}
.fact .src {
  margin-top: 8px;
}

/* flags */
.flag-group {
  margin-top: 22px;
}
.flag-group > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.flag-group > h3 .count {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.flag-group.confirmed > h3 .count {
  background: var(--flag-red-soft);
  color: var(--flag-red);
}
.flag-group.possible > h3 .count {
  background: var(--flag-amber-soft);
  color: var(--flag-amber);
}
.flag-row {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--paper);
}
.flag-row + .flag-row {
  margin-top: 10px;
}
.flag-group.confirmed .flag-row {
  border-left-color: var(--flag-red);
}
.flag-group.possible .flag-row {
  border-left-color: var(--flag-amber);
}
.flag-row h4 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.flag-row p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

/* price bars */
.pricebars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.pricebar .pricebar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.pricebar-value {
  font-weight: 600;
}
.pricebar .track {
  height: 10px;
  background: var(--stone);
  border-radius: 5px;
  overflow: hidden;
}
.pricebar .fill {
  height: 100%;
  border-radius: 5px;
  background: var(--ink-faint);
}
.pricebar.this .fill {
  background: var(--green);
}

/* insight rows (buurt, data-check, duurzaamheid) */
.insight-list {
  display: flex;
  flex-direction: column;
}
.insight {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-block: 13px;
}
.insight + .insight {
  border-top: 1px solid var(--line);
}
.insight .ititle {
  font-size: 0.875rem;
  font-weight: 600;
}
.insight p {
  margin: 0;
  font-size: 0.9rem;
}
.insight .src {
  justify-self: end;
}

/* questions */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: q;
}
.q-list li {
  counter-increment: q;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 12px;
}
.q-list li + li {
  border-top: 1px solid var(--line);
}
.q-list li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 600;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.q-list .q-text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--ink);
}
.copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font: 500 0.75rem var(--font-ui);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.copy-btn.copied {
  border-color: var(--ok);
  color: var(--ok);
}

/* negotiation */
.angle {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding-block: 13px;
}
.angle + .angle {
  border-top: 1px solid var(--line);
}
.angle .a-num {
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 600;
}
.angle h4 {
  margin: 0 0 3px;
  font-size: 0.9375rem;
}
.angle p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

/* checklist */
.checklist-group h3 {
  margin: 22px 0 8px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  padding-block: 4px;
}
.checklist label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checklist input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: translateY(2px);
}
.checklist input:checked + span {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.report-disclaimer {
  border-top: 1px solid var(--line);
  background: var(--stone);
  padding-block: 20px;
}
.report-disclaimer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

/* mini variants for homepage preview */
.preview-body .rcard {
  padding: 18px;
  box-shadow: none;
}
.preview-body .rcard > h2 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.preview-body p {
  font-size: 0.8125rem;
}
.preview-body .flag-row {
  padding: 10px 12px;
}
.preview-body .flag-row h4 {
  font-size: 0.8125rem;
}
.preview-body .flag-row p {
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.preview-body .pricebar .pricebar-label {
  font-size: 0.75rem;
}
.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .preview-body {
    grid-template-columns: 1fr;
  }
  .report-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .report-side {
    position: sticky;
    top: 64px;
    z-index: 10;
    background: var(--paper);
    margin-inline: -24px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
  }
  .report-side nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .report-side nav::-webkit-scrollbar {
    display: none;
  }
  .report-side a {
    white-space: nowrap;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
    background: var(--surface);
  }
  .report-side a.current {
    border-color: var(--green);
    border-radius: 999px;
  }
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact:nth-child(4n) {
    border-right: 1px solid var(--line);
  }
  .fact:nth-child(2n) {
    border-right: 0;
  }
  .fact:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .fact:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  section {
    padding-block: 60px;
  }
  .hero {
    padding-block: 48px 40px;
    text-align: left;
  }
  .hero h1,
  .hero-sub {
    margin-inline: 0;
  }
  .url-form {
    flex-direction: column;
  }
  .url-form .btn {
    width: 100%;
  }
  .badge-row {
    justify-content: flex-start;
  }
  .report-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .duo {
    grid-template-columns: 1fr;
  }
  .legend-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .insight {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .insight .src {
    justify-self: start;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-links.open a:not(.btn) {
    padding: 12px 0;
    font-size: 1rem;
  }
  .nav-links.open .btn {
    margin-top: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .report-meta {
    gap: 8px 20px;
  }
  .report-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Print (report as PDF)
   ========================================================================== */
@media print {
  .nav,
  .report-side,
  .report-actions,
  .copy-btn,
  .footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .report-layout {
    display: block;
    padding-block: 0;
  }
  .rcard {
    border: 0;
    border-top: 1px solid #ddd;
    border-radius: 0;
    padding: 18px 0;
    break-inside: avoid;
  }
  .report-header {
    padding-block: 0 16px;
  }
  a {
    color: inherit;
  }
}

/* legal / info pages */
.wrap-narrow{max-width:760px;margin:0 auto;padding:0 24px}
.legal-page h1{margin:8px 0 20px}
.legal-page h2{margin:28px 0 8px;font-size:1.15rem}
.legal-page p,.legal-page li{color:var(--ink-soft);line-height:1.6}
.legal-page ul{padding-left:20px;margin:8px 0}
.legal-page li{padding:3px 0}
