/* HouseSwipes legal and support site. One stylesheet, system font, no JavaScript.
   Brand: navy #123A52, orange #E9702B. The logo's left triangle is always navy,
   so the mark always sits on its own white tile and never on a navy background. */

:root {
  color-scheme: light dark;
  --navy: #123A52;
  --orange: #E9702B;

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF2F5;
  --text: #1B2733;
  --muted: #4B5B69;
  --heading: #123A52;
  --line: #DCE3E9;
  --link: #123A52;
  --link-line: #E9702B;
  --focus: #E9702B;
  --accent: #E9702B;
  --accent-text: #A84A14;

  --btn-bg: #123A52;
  --btn-text: #FFFFFF;

  --draft-bg: #FFF1E6;
  --draft-line: #E9702B;
  --draft-text: #5A2A0C;

  --review-bg: #FFF6CC;
  --review-line: #C9A600;
  --review-text: #5A4700;

  --radius: 14px;
  --gutter: 16px;
  --max: 960px;
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111518;
    --surface: #1A2026;
    --surface-2: #222A31;
    --text: #E8EDF1;
    --muted: #A9B4BE;
    --heading: #F2F5F7;
    --line: #2E3841;
    --link: #F4A672;
    --link-line: #F4A672;
    --focus: #F4A672;
    --accent-text: #F4A672;

    --btn-bg: #E9702B;
    --btn-text: #111518;

    --draft-bg: #2B1D14;
    --draft-line: #E9702B;
    --draft-text: #FFD9C2;

    --review-bg: #36300F;
    --review-line: #C9A600;
    --review-text: #FFE9A3;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.35rem, 4vw, 1.6rem); margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.125rem; margin: 1.75rem 0 0.4rem; scroll-margin-top: 1rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 650; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  display: inline-block;
}
.site-nav a:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--link-line); }
.site-nav a[aria-current="page"] {
  font-weight: 650;
  color: var(--heading);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.site-nav .lang a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.92rem;
}

/* ---- Main -------------------------------------------------------------- */

main { padding: 2rem 0 3rem; }
main:focus { outline: none; }

.doc { max-width: var(--measure); }
.doc > header { margin-bottom: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0; }

/* The draft note: obvious on purpose. */
.draft-note {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1rem 0.9rem 1rem;
  background: var(--draft-bg);
  color: var(--draft-text);
  border: 2px solid var(--draft-line);
  border-left-width: 8px;
  border-radius: 10px;
}
.draft-note p { margin: 0; }
.draft-note p + p { margin-top: 0.35rem; font-size: 0.95rem; }
.draft-note strong { font-size: 1.05rem; }

/* Points that still need a decision or a check (remove after the legal review). */
.review {
  display: block;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--review-bg);
  color: var(--review-text);
  border: 1px dashed var(--review-line);
  border-radius: 8px;
  font-size: 0.93rem;
}
.review::before {
  content: "Te controleren: ";
  font-weight: 700;
}
:lang(en) .review::before { content: "To check: "; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.4rem;
  margin: 0 0 1.5rem;
}
.summary h2 { margin-top: 0; font-size: 1.15rem; }

.toc {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem 0.5rem;
  margin: 0 0 1.5rem;
}
.toc h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.toc ol { margin: 0 0 0.5rem; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { margin-bottom: 0.25rem; break-inside: avoid; }

.basis {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  color: var(--muted);
}
.basis strong { color: var(--text); }

/* Tables become stacked rows on phones (labels from data-label). */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.97rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.table th { background: var(--surface-2); color: var(--heading); font-weight: 650; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 0.2rem 0.8rem; }
  .table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

.placeholder-list code,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

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

.faq { margin: 0 0 1.5rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  font-weight: 650;
  color: var(--heading);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 1rem 0.4rem; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  .steps li::before { background: var(--orange); color: #111518; }
}

/* ---- Cards and buttons -------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.6rem;
}
.card h2, .card h3 { margin-top: 0.6rem; font-size: 1.1rem; }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--draft-bg);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon svg { width: 24px; height: 24px; }

.contact-card p:last-child { margin-bottom: 0.6rem; }

.button {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 650;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pills li {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}
.pills li .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4rem;
  vertical-align: 0.05rem;
}

/* ---- Landing ------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0 0.5rem;
}
.hero .mark-xl {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(18, 58, 82, 0.14), 0 0 0 1px var(--line);
}
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 52ch; margin-bottom: 0; }
@media (min-width: 760px) {
  .hero { grid-template-columns: auto 1fr; gap: 2rem; padding-top: 2rem; }
  .hero .mark-xl { width: 128px; height: 128px; border-radius: 28px; }
}

.band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 0.4rem;
  margin: 1.5rem 0;
}
.band h2 { margin-top: 0; }
.band p { max-width: var(--measure); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.site-footer nav li { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0 0 0.35rem; }

/* ---- 404 ----------------------------------------------------------------- */

.notfound { text-align: left; max-width: 40rem; padding: 1rem 0 2rem; }
.notfound .code { font-size: 0.95rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.08em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header nav, .site-footer nav, .skip { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
