/* ---------------------------------------------------------------------------
   Design tokens, matching the in-app SPA so the public site and the app read
   as one product. The light palette is the default; dark mode only swaps values.
   --------------------------------------------------------------------------- */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-alt: #f4f2ea;
  --border: #e8e4d8;
  --text: #1f1e1b;
  --text-muted: #6f6b60;
  --accent: #c15f3c;
  --accent-soft: #f6e5dc;
  --danger: #b5413a;
  --danger-soft: #f8e1de;
  --shadow: 0 1px 2px rgb(31 30 27 / 4%);
  --radius: 14px;
  --font-serif: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262624;
    --surface: #30302e;
    --surface-alt: #3a3a37;
    --border: #44433f;
    --text: #f0eee6;
    --text-muted: #a9a59a;
    --accent: #e08a68;
    --accent-soft: #4a3329;
    --danger: #e58a82;
    --danger-soft: #4a2a27;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
}

/* Header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.site-logo img {
  flex: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex: 1;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

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

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-user-link svg {
  flex: none;
}

.site-user-link span {
  overflow-wrap: anywhere;
}

.inline-form {
  display: contents;
}

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button--text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 4px;
}

.button--large {
  padding: 14px 26px;
  font-size: 1.05rem;
}

.button--full {
  width: 100%;
  text-align: center;
}

/* Main / marketing sections ---------------------------------------------- */

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  padding: 40px 0 64px;
  text-align: center;
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card h2 {
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-muted);
  margin-top: 24px;
}

.callout p {
  margin: 0;
}

.page-header {
  margin-bottom: 32px;
}

.page-header__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 680px;
}

.prose p {
  margin: 0 0 1em;
}

/* Legal pages -------------------------------------------------------------- */

.legal-document {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.legal-document__notice {
  margin: 0 0 24px;
}

.legal-document__contents {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-document__contents h2 {
  font-size: 1.1rem;
}

.legal-document ol,
.legal-document ul {
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document section {
  margin-top: 36px;
  scroll-margin-top: 24px;
}

.legal-document section h2 {
  font-size: 1.35rem;
}

.legal-document__details dt {
  font-weight: 600;
}

.legal-document__details dd {
  margin: 0 0 12px;
  color: var(--text-muted);
}

/* Contact ------------------------------------------------------------------ */

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgb(61 47 40 / 0.98), rgb(92 62 48 / 0.94)),
    linear-gradient(180deg, #3d2f28, #5c3e30);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  min-height: 640px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 18%);
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.contact-hero::before {
  left: -120px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  background: linear-gradient(180deg, rgb(31 20 15 / 0.55), rgb(31 20 15 / 0));
  transform: rotate(18deg);
}

.contact-hero::after {
  right: -100px;
  top: -120px;
  width: 520px;
  height: 220px;
  background: linear-gradient(135deg, rgb(224 138 104 / 0.18), rgb(224 138 104 / 0));
  transform: rotate(-18deg);
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: start;
}

.contact-hero__intro {
  max-width: 520px;
  padding-top: 56px;
}

.contact-hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(246 229 220 / 0.92);
}

.contact-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin-bottom: 24px;
}

.contact-hero__lead,
.contact-hero__intro p {
  color: rgb(250 246 240 / 0.96);
  font-size: 1.06rem;
  line-height: 1.7;
}

.contact-hero__lead {
  margin-bottom: 20px;
}

.contact-hero__highlights {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.contact-highlight {
  padding: 18px 20px;
  border: 1px solid rgb(246 229 220 / 0.18);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(10px);
}

.contact-highlight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-highlight p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-card {
  background: rgb(255 255 255 / 0.98);
  border-radius: 0;
  padding: 32px;
  box-shadow: 0 20px 50px rgb(15 23 42 / 18%);
}

.contact-form .form-field {
  margin-bottom: 22px;
}

.contact-form .form-field label {
  color: #5c3e30;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #d9d2c0;
  border-radius: 0;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  min-height: 44px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 228px;
  resize: vertical;
  padding: 12px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-phone-field {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.contact-phone-field select {
  border-right: none;
}

.contact-form .button {
  min-width: 132px;
  border-radius: 4px;
  padding-inline: 20px;
}

/* FAQ ---------------------------------------------------------------------- */

.faq-hero {
  max-width: 760px;
  padding: 32px 0 48px;
}

.faq-hero__eyebrow,
.faq-section__label,
.faq-contact__label {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-hero h1 {
  max-width: 680px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.faq-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.faq-section__heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  color: var(--text-muted);
  margin: -2px 54px 22px 22px;
}

.faq-item__body {
  margin: -2px 54px 22px 22px;
  color: var(--text-muted);
}

.faq-item__body p {
  margin: 0 0 10px;
}

.faq-item__body ul,
.faq-item__body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.faq-item__body li + li {
  margin-top: 6px;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
}

.faq-contact h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.faq-contact p:not(.faq-contact__label) {
  margin: 0;
  color: var(--text-muted);
}

/* Auth forms --------------------------------------------------------------- */

.auth-page {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-card--wide {
  max-width: 640px;
}

.auth-card__lead {
  color: var(--text-muted);
  margin-top: -8px;
}

.auth-card__footer {
  margin-top: 20px;
  color: var(--text-muted);
  text-align: center;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.form-section legend {
  font-weight: 600;
  padding: 0 0 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input:not([type]) {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.form-field--checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.form-field--checkbox input {
  width: auto;
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
}

.field-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Een adres dat vastligt in een uitnodiging: tonen, niet laten wijzigen. */
.form-field input:disabled {
  background: var(--surface-muted, rgba(0, 0, 0, 0.04));
  color: var(--text-muted);
}

/* Melding die geen fout is, dus ook niet rood hoort te zijn. */
.form-note {
  background: var(--surface-muted, rgba(0, 0, 0, 0.04));
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Dezelfde kleur als de knoppen (Gratis starten): een melding bij het
   aanmelden of registreren mag niet als een alarm overkomen. */
.form-errors {
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}
.form-errors:empty {
  display: none;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.site-footer__email svg {
  flex: none;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer__brand .site-logo {
  color: var(--text);
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .contact-hero {
    padding: 28px 20px;
    min-height: auto;
    border-radius: 20px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-phone-field {
    grid-template-columns: 1fr;
  }

  .contact-phone-field select {
    border-right: 1px solid #d9d2c0;
    border-bottom: none;
  }

  .faq-hero {
    padding: 12px 0 36px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .faq-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .contact-hero__content {
    grid-template-columns: 1fr;
  }

  .contact-hero__intro {
    max-width: none;
    padding-top: 0;
  }
}
