/* Praktijkbalie: shared stylesheet */

:root {
  --paper: #f5f1e8;
  --paper-2: #ede6d8;
  --paper-3: #e4dccb;
  --ink: #1c2420;
  --ink-2: #3a4540;
  --muted: #56615b;
  --rule: #d6cdbb;
  --accent: #2c5a4e;
  --accent-ink: #224a40;
  --accent-soft: #dfe7df;
  --band: #1f3a33;
  --band-text: #f3efe5;
  --band-muted: #c4cfc6;
  --band-rule: #3b574f;

  --serif: "Gambetta", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Switzer", "Segoe UI", system-ui, sans-serif;

  --max: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--paper); }

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

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

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.lang button {
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  min-width: 2.6rem;
  min-height: 2rem;
  padding: 0 0.6rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ---------- Sections ---------- */

.section {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  border-top: 1px solid var(--rule);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 2.5rem;
}
.grid > * { min-width: 0; }

.section__head { grid-column: 1 / span 4; }
.section__body { grid-column: 5 / span 8; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  max-width: 14ch;
}
.section__intro {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}
.hero .grid { align-items: center; row-gap: 3.5rem; }
.hero__text { grid-column: 1 / span 7; }
.hero__aside { grid-column: 9 / span 4; }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero h1 .line { display: block; }
.hero__lede {
  margin-top: 1.75rem;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__rule {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.3;
  color: var(--accent);
  max-width: 30ch;
}
.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hero__note {
  font-size: 0.92rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fbf8f1;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease);
}
.button:hover { background: var(--ink); color: #fbf8f1; }
.button span[aria-hidden] { margin-left: 0.6rem; }

/* ---------- Approval card ---------- */

.approval { margin: 0; }
.approval__chat {
  background: var(--paper-3);
  border-radius: 1.25rem;
  padding: 0.85rem 0.85rem 1.1rem;
  box-shadow: 0 1px 0 rgba(28, 36, 32, 0.04), 0 18px 40px -24px rgba(28, 36, 32, 0.35);
}
.approval__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.35rem 0.9rem;
  border-bottom: 1px solid rgba(28, 36, 32, 0.1);
  margin-bottom: 1rem;
}
.approval__avatar {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fbf8f1;
  font-family: var(--serif);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
.approval__who { display: flex; flex-direction: column; line-height: 1.25; }
.approval__who strong { font-weight: 600; font-size: 0.95rem; }
.approval__who span { font-size: 0.78rem; color: var(--muted); }

.bubble {
  position: relative;
  background: #fffdf9;
  border-radius: 0.35rem 1rem 1rem 1rem;
  padding: 1rem 1rem 0.75rem;
  margin-left: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0;
  width: 0.6rem;
  height: 0.75rem;
  background: #fffdf9;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.bubble__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.tag--label {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
}
.bubble__from {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.initials {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
}
.bubble__from p { color: var(--ink); padding-top: 0.2rem; }
.bubble__draft {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule);
  color: var(--ink-2);
}
.bubble__kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.bubble__draft p + p { margin-top: 0.5rem; }
.bubble__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
.act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid var(--rule);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.act--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbf8f1;
}
.bubble__time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.55rem;
}
.approval figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 0.35rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li > * { min-width: 0; }
.steps__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}
.steps h3 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
}
.steps p { color: var(--ink-2); max-width: 58ch; }

.aside-note {
  margin-top: 0.5rem;
  margin-left: 4.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper-2);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------- Never band ---------- */

.band {
  background: var(--band);
  color: var(--band-text);
  border-top: 0;
}
.band .eyebrow { color: var(--band-muted); }
.band .section__intro { color: var(--band-muted); }
.band a { color: var(--band-text); }

.never {
  list-style: none;
  margin: 0;
  padding: 0;
}
.never li {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid var(--band-rule);
}
.never li:first-child { border-top: 0; padding-top: 0; }
.never li:last-child { padding-bottom: 0; }
.never h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  color: var(--band-text);
  margin-bottom: 0.5rem;
}
.never p { color: var(--band-muted); max-width: 60ch; }

/* ---------- Data ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 2.5rem;
}
.facts > div { min-width: 0; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.facts dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.facts dd { margin: 0; color: var(--ink-2); }
.data__foot {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
}
.data__foot p { color: var(--muted); max-width: 46ch; }
.textlink {
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Pilot ---------- */

.pilot { background: var(--paper-2); }
.fit {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fit li {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 1.1rem;
}
.fit li:last-child { border-bottom: 1px solid var(--rule); }
.pilot__text {
  margin-top: 2.25rem;
  color: var(--ink-2);
  max-width: 58ch;
}
.pilot .hero__cta { margin-top: 2rem; }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.footer__company { max-width: 52ch; }
.footer__copy { margin-top: 0.4rem; }

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

.legal {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.legal__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 2.5rem;
  align-items: start;
}
.legal__grid > * { min-width: 0; }
.legal__head {
  grid-column: 1 / span 4;
  position: sticky;
  top: 2.5rem;
}
.legal__inner {
  grid-column: 5 / span 8;
  max-width: var(--measure);
}
.legal__inner > h2:first-child { margin-top: 0; }
.backlink {
  display: inline-block;
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}
.legal h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.legal__back {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.legal .meta {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.legal .jump {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}
.legal h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 0.9rem;
}
.legal p + p { margin-top: 1rem; }
.legal p,
.legal li { color: var(--ink-2); }
.legal .lead { margin-top: 2rem; }
.legal ul,
.legal ol {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  padding-left: 1.3rem;
}
.legal li + li { margin-top: 0.55rem; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul + p,
.legal ol + p,
.legal table + p { margin-top: 1rem; }

.legal__en {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink);
}
.legal__en h2.legal__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  margin-top: 0;
  margin-bottom: 0;
}

.basis {
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.basis th,
.basis td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1rem 0.9rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.basis thead th {
  border-top: 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0;
}
.basis tbody tr:first-child td { border-top: 0; }
.basis td:first-child { width: 36%; color: var(--ink); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .motion .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  }
  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .motion .reveal--late { transition-delay: 0.25s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__text { grid-column: 1 / span 7; }
  .hero__aside { grid-column: 8 / span 5; }
}

@media (max-width: 759px) {
  body { font-size: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .section__head,
  .section__body,
  .hero__text,
  .hero__aside { grid-column: 1 / -1; }

  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding-top: 1rem;
    padding-bottom: 0.6rem;
  }
  .header-right { display: contents; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; }
  .nav ul { gap: 1.4rem; }
  .nav a { font-size: 0.92rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }

  .hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 10.5vw, 2.6rem); }
  .hero .grid { row-gap: 3rem; }
  .section h2 { max-width: 16ch; }
  .section__intro { max-width: 46ch; }

  .steps li { grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.9rem; }
  .steps__num { font-size: 1.9rem; }
  .steps h3 { font-size: 1.35rem; }
  .aside-note { margin-left: 0; }

  .facts { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }

  .legal__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.75rem; }
  .legal__head,
  .legal__inner { grid-column: 1 / -1; }
  .legal__head { position: static; }
  .backlink { margin-bottom: 1.75rem; }
  .hero__cta .button { width: 100%; }
}

@media (max-width: 699px) {
  .basis thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .basis,
  .basis tbody,
  .basis tr,
  .basis td { display: block; width: 100%; }
  .basis tr {
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .basis tbody tr:first-child { border-top: 1px solid var(--ink); }
  .basis td,
  .basis tbody tr:first-child td {
    border-top: 0;
    padding: 0;
  }
  .basis td:first-child { width: 100%; margin-bottom: 0.6rem; }
  .basis td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }
}
