/* ============================================================
   tweedeuren, twee deuren en één huis
   NATURE vzw prototype, richting 4. Prototype round 1, 2026-09-01.
   One house: one grid, one type system, one logo.
   Two registers, switched by route: [data-door="werk"] and [data-door="avontuur"].
   ============================================================ */

/* ---------- 1. reset + base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

@view-transition { navigation: auto; }

/* ---------- 2. tokens: the house ---------- */

:root {
  --max: 1240px;
  --gut: clamp(1.15rem, 4vw, 3rem);

  --ff-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --ff-text: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 7.4vw, 5.6rem);
  --fs-h2: clamp(1.7rem, 3.6vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .7vw, 1.6rem);
  --fs-body: clamp(1rem, .96rem + .25vw, 1.13rem);
  --fs-sm: .9rem;
  --fs-xs: .78rem;

  --sp-section: clamp(3.5rem, 8vw, 7.5rem);

  /* brand strands */
  --cyan: #44B4D4;
  --olive: #B3B200;
  --red: #C31428;
  --magenta: #BD0BB1;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-door: cubic-bezier(.65, .02, .18, 1);
}

/* ---------- 2b. the two registers ---------- */
/* Paper register: professioneel, document-geleid, prijs en bewijs vooraan.
   Red passes AA on this ground; cyan and olive are graphics only. */
.reg-paper,
html[data-door="huis"] body,
html[data-door="werk"] body {
  --ground: #F4F3EE;
  --ground-2: #EBE9E0;
  --ground-3: #FFFFFF;
  --ink: #17211B;
  --ink-2: #4C574F;
  --accent: #C31428;
  --accent-ink: #FFFFFF;
  --line: rgba(23, 33, 27, .16);
  --line-strong: rgba(23, 33, 27, .34);
  --ok: #1F6B3A;
  --radius: 5px;
  --radius-lg: 8px;
  --card-pad: clamp(1.05rem, 2.4vw, 1.6rem);
  --display-track: -.02em;
  --display-weight: 700;
  --label-case: uppercase;
  --label-track: .12em;
  --shadow: 0 1px 0 rgba(23,33,27,.05);
}

/* Forest register: jongeren, hoog contrast, korte regels.
   Cyan and olive pass AA on this ground; red does not, so it never carries text. */
.reg-forest,
html[data-door="avontuur"] body {
  --ground: #141C17;
  --ground-2: #1E2A23;
  --ground-3: #26332B;
  --ink: #F2F5EF;
  --ink-2: #B9C4BB;
  --accent: #44B4D4;
  --accent-ink: #0E1511;
  --line: rgba(242, 245, 239, .18);
  --line-strong: rgba(242, 245, 239, .42);
  --ok: #86D6A2;
  --radius: 16px;
  --radius-lg: 26px;
  --card-pad: clamp(1.15rem, 2.6vw, 1.75rem);
  --display-track: -.035em;
  --display-weight: 800;
  --label-case: none;
  --label-track: .02em;
  --shadow: none;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  hyphens: auto;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, .display {
  font-family: var(--ff-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sp-section); }
.lede { font-size: clamp(1.06rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 46ch; line-height: 1.45; }
.measure { max-width: 62ch; }

.label {
  font-size: var(--fs-xs);
  text-transform: var(--label-case);
  letter-spacing: var(--label-track);
  font-weight: 600;
  color: var(--ink-2);
}

/* the bracket device */
.br { color: var(--accent); font-weight: inherit; }
html[data-door="huis"] .br, html[data-door="werk"] .br { color: var(--red); }

/* ---------- 3. accessibility furniture ---------- */

.skip {
  position: absolute; left: var(--gut); top: -100px; z-index: 200;
  background: var(--ink); color: var(--ground);
  padding: .7rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: .6rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
html[data-door="avontuur"] :focus-visible { outline-color: var(--olive); }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. het intro-moment: de deuren gaan open ---------- */

.intro { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.intro[hidden] { display: none; }
.intro__leaf { position: absolute; top: 0; bottom: 0; width: 51%; will-change: transform; }
.intro__leaf--l { left: 0; background: #F4F3EE; }
.intro__leaf--r { right: 0; background: #141C17; }
.intro__leaf--l::after,
.intro__leaf--r::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--olive), transparent);
  opacity: .8;
}
.intro__leaf--l::after { right: 0; }
.intro__leaf--r::after { left: 0; }
.intro__mark {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(190px, 42vw);
}
.intro__mark img { width: 100%; height: auto; }
.intro-lock { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .intro__mark { opacity: 0; scale: .82; }
  .intro--run .intro__mark { animation: markIn .5s var(--ease) forwards; }
  .intro--run .intro__leaf--l { animation: leafL .62s .62s var(--ease-door) forwards; }
  .intro--run .intro__leaf--r { animation: leafR .62s .62s var(--ease-door) forwards; }
  .intro--run .intro__mark { animation: markIn .5s var(--ease) forwards, markOut .35s .62s var(--ease) forwards; }
  @keyframes markIn { to { opacity: 1; scale: 1; } }
  @keyframes markOut { to { opacity: 0; scale: 1.06; } }
  @keyframes leafL { to { transform: translateX(-101%); } }
  @keyframes leafR { to { transform: translateX(101%); } }
}

/* ---------- 5. header, nav, hub chip ---------- */

.hub {
  position: fixed; left: .55rem; top: .55rem; z-index: 90;
  font-size: var(--fs-xs); text-decoration: none;
  background: var(--ground-3); color: var(--ink);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .38rem .7rem; line-height: 1.2;
  box-shadow: var(--shadow); opacity: .75;
}
.hub:hover, .hub:focus-visible { opacity: 1; }

.site-header {
  z-index: 80;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
  view-transition-name: huis-header;
}
.site-header__in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding-block: .55rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
@media (min-width: 46rem) {
  .brand { margin-inline-start: 8.2rem; }
  .site-header { position: sticky; top: 0; }
}
@media (max-width: 45.99rem) {
  .site-header__in { padding-top: 2.6rem; }
  .brand__logo { width: 86px; height: 38px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { font-size: .82rem; padding-block: .45rem; }
  .nav ul { gap: .35rem .9rem; }
}
.brand__logo {
  display: block; width: 104px; height: 46px;
  background: url("../shared/Nature%20Logo.svg") left center / contain no-repeat;
  view-transition-name: huis-logo;
}
html[data-door="avontuur"] .brand__logo {
  background: var(--ink);
  -webkit-mask: url("../shared/Nature%20Logo.svg") left center / contain no-repeat;
  mask: url("../shared/Nature%20Logo.svg") left center / contain no-repeat;
}
.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 2vw, 1.6rem); align-items: center; }
.nav a {
  position: relative; text-decoration: none; font-size: var(--fs-sm);
  padding: .55rem .1rem; display: inline-block; line-height: 1.3;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .28rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) {
  .nav a::after { transition: transform .32s var(--ease); }
}

/* de deurbalk: waar je binnenkwam, en hoe je wisselt */
.doorbar {
  border-bottom: 1px solid var(--line);
  background: var(--ground-2);
  font-size: var(--fs-xs);
}
.doorbar__in { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; padding-block: .5rem; }
.doorbar strong { font-weight: 600; }
.doorbar a { text-decoration: underline; text-underline-offset: 3px; }
html[data-door="huis"] .doorbar { display: none; }

/* ---------- 6. knoppen ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.15rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  cursor: pointer; background: var(--accent); color: var(--accent-ink);
  line-height: 1.25;
}
.btn .ic { flex: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--big { min-height: 56px; font-size: 1rem; padding: .85rem 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .25s var(--ease), background-color .25s var(--ease), translate .18s ease-out; }
  .btn:hover { transform: translateY(-2px); }
  .btn .ic { transition: transform .3s var(--ease); }
  .btn:hover .ic { transform: translateX(3px); }
}

.txtlink {
  text-decoration: none; font-weight: 600; color: var(--accent);
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}

/* ---------- 7. hero ---------- */

.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { font-size: var(--fs-display); max-width: 15ch; }
.hero__sub { margin-top: 1.4rem; }
.hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ground-2); aspect-ratio: 16 / 9;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media video { position: absolute; inset: 0; opacity: 0; }
.hero__media video.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media video { transition: opacity .6s var(--ease); }
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem .8rem; color: #fff; font-size: var(--fs-xs);
  background: linear-gradient(to top, rgba(10,16,12,.72), transparent);
}

/* staggered heading reveal */
.stag > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .stag > span { opacity: 0; translate: 0 .5em; }
  html.js .stag.is-in > span { animation: stagIn .7s var(--ease) forwards; }
  @keyframes stagIn { to { opacity: 1; translate: none; } }
}

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; }
}

/* ---------- 8. de twee deuren ---------- */

.doors { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
@media (min-width: 54rem) {
  .doors { grid-template-columns: 1fr 1fr; }
}

.door {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: clamp(24rem, 46vw, 32rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--ground); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.door--werk { view-transition-name: deur-werk; }
.door--avontuur { view-transition-name: deur-avontuur; }

/* the flood panel: the door opening */
.door::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ground-2);
  clip-path: inset(100% 0 0 0);
}
.door--avontuur::before { background: var(--ground-3); }
.door__num { display: flex; align-items: center; gap: .6rem; }
.door__strands { display: flex; gap: 3px; }
.door__strands i { display: block; width: 15px; height: 3px; border-radius: 2px; transform-origin: left; }
.door__strands i:nth-child(1) { background: var(--cyan); }
.door__strands i:nth-child(2) { background: var(--olive); }
.door__strands i:nth-child(3) { background: var(--red); }
.door__strands i:nth-child(4) { background: var(--magenta); }
.door h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-block: .2rem .1rem; }
.door p { color: var(--ink-2); max-width: 34ch; }
.door__list { margin-top: auto; display: grid; gap: .45rem; font-size: var(--fs-sm); }
.door__list li { display: flex; gap: .5rem; align-items: flex-start; }
.door__list .ic { flex: none; margin-top: .18rem; color: var(--accent); }
.door__cta { margin-top: 1.1rem; }
.door__title-link { text-decoration: none; }
.door__title-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .door { transition: border-color .4s var(--ease), transform .4s var(--ease); }
  .door::before { transition: clip-path .55s var(--ease-door); }
  .door__strands i { transition: transform .4s var(--ease); transition-delay: calc(var(--i) * 60ms); }
  .doors:has(.door:hover) .door:not(:hover),
  .doors:has(.door:focus-within) .door:not(:focus-within) { opacity: .62; }
  .doors .door { transition: opacity .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
  .door:hover, .door:focus-within { transform: translateY(-4px); border-color: var(--line-strong); }
  .door:hover::before, .door:focus-within::before { clip-path: inset(0 0 0 0); }
  .door:hover .door__strands i, .door:focus-within .door__strands i { transform: scaleX(1.9); }
}

/* zijdeuren */
.sidedoors { display: grid; gap: 1rem; margin-top: clamp(1rem, 2.4vw, 1.6rem); }
@media (min-width: 54rem) { .sidedoors { grid-template-columns: 1fr 1fr; } }
.sidedoor {
  position: relative; display: grid; gap: .4rem;
  padding: var(--card-pad);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground-3);
}
.sidedoor h3 a { text-decoration: none; }
.sidedoor h3 a::after { content: ""; position: absolute; inset: 0; }
.sidedoor p { color: var(--ink-2); font-size: var(--fs-sm); }
.sidedoor .ic { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .sidedoor { transition: transform .3s var(--ease), border-color .3s var(--ease); }
  .sidedoor:hover, .sidedoor:focus-within { transform: translateY(-3px); border-color: var(--line-strong); }
}

/* ---------- 9. de kaart (het contract) ---------- */

.cardlist { display: grid; gap: .9rem; }
@media (min-width: 46rem) { .cardlist--2 { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative; display: grid; gap: .5rem;
  padding: var(--card-pad);
  background: var(--ground-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__when {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: var(--fs-sm); font-weight: 600;
}
.card__when .ic { color: var(--ink-2); flex: none; }
.chip-dur {
  font-size: var(--fs-xs); font-weight: 600; padding: .12rem .5rem;
  border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink-2);
}
.card__title { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.5rem); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta .ic { flex: none; }
.card__price { font-weight: 600; font-size: var(--fs-sm); }
.card__price--empty { min-height: 1.4em; }
.card__status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-sm); font-weight: 600; min-height: 1.5em;
}
.card__status .shape { width: 12px; height: 12px; flex: none; }
.card__status[data-status="open"] { color: var(--ok); }
.card__status[data-status="open"] .shape { background: var(--ok); border-radius: 50%; }
.card__status[data-status="binnenkort"] .shape {
  border: 2px solid currentColor; border-radius: 50%;
}
.card__status[data-status="voorbij"] { color: var(--ink-2); }
.card__status[data-status="voorbij"] .shape { height: 3px; background: currentColor; border-radius: 2px; }
.card__status[data-status="aanvraag"] .shape {
  border: 2px solid currentColor; border-radius: 2px; rotate: 45deg; width: 10px; height: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .3s var(--ease), border-color .3s var(--ease); }
  .card:hover, .card:focus-within { transform: translateY(-3px); border-color: var(--line-strong); }
}
.card--past { opacity: .78; }

/* ---------- 10. binnenkort-strip ---------- */

.strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 20rem);
  gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 76rem) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- 11. agenda ---------- */

.pagehead { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
html[data-door="werk"] .pagehead { view-transition-name: deur-werk; }
html[data-door="avontuur"] .pagehead { view-transition-name: deur-avontuur; }
.pagehead h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }

.filters {
  background: var(--ground);
  padding-block: .8rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .filters {
    position: sticky; top: 64px; z-index: 40;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(8px);
  }
}
.filters ul { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  position: relative; overflow: hidden;
  min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: transparent; color: var(--ink); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer;
}
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); scale: 0 1; transform-origin: left; border-radius: 100px;
}
.chip { isolation: isolate; }
.chip[aria-pressed="true"] { color: var(--ground); border-color: var(--ink); }
.chip[aria-pressed="true"]::before { scale: 1 1; }
@media (prefers-reduced-motion: no-preference) {
  .chip::before { transition: scale .34s var(--ease-door); }
  .chip { transition: color .2s var(--ease) .06s, border-color .3s var(--ease); }
}
.filters__count { font-size: var(--fs-sm); color: var(--ink-2); margin-top: .6rem; }

.month { position: relative; padding-block: clamp(1.6rem, 3.5vw, 2.6rem) 0; }
.month__head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .8rem;
  padding-block: .5rem;
  background: linear-gradient(to bottom, var(--ground) 76%, transparent);
}
.month__head h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  text-transform: lowercase;
}
.month__head .rule { flex: 1; height: 2px; background: var(--line); }
.month__count { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.month__body { display: grid; gap: .9rem; padding-top: 1rem; }
@media (min-width: 46rem) {
  .month__head { top: calc(64px + 4.35rem); }
  .month__body, .month__head { max-width: 58rem; }
}

.btn[disabled] {
  background: transparent; color: var(--ink-2);
  border: 1px dashed var(--line-strong); cursor: not-allowed;
}
.btn[disabled]:hover { transform: none; }

/* de strengrail: vult mee terwijl je door de maand scrollt */
.month--rail { padding-left: 1.6rem; }
.month--rail::before {
  content: ""; position: absolute; left: .35rem; top: 4rem; bottom: 0; width: 2px;
  background: var(--line);
}
.month--rail::after {
  content: ""; position: absolute; left: .35rem; top: 4rem; width: 2px; height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--olive));
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .month--rail::after {
      height: calc(100% - 4rem);
      transform-origin: top; scale: 1 0;
      animation: railFill linear both;
      animation-timeline: view();
      animation-range: cover 12% cover 92%;
    }
    @keyframes railFill { to { scale: 1 1; } }
  }
}

.is-hidden { display: none !important; }
.empty-note { padding: 2rem 0; color: var(--ink-2); }

/* ---------- 12. detailpagina ---------- */

.detail-hero { position: relative; }
.detail-hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--ground-2);
}
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 45.99rem) { .detail-hero__media { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .clipin { clip-path: inset(0 0 100% 0); }
  html.js .clipin.is-in { animation: clipIn .9s var(--ease-door) forwards; }
  @keyframes clipIn { to { clip-path: inset(0 0 0 0); } }
}

.detail-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 62rem) {
  .detail-grid { grid-template-columns: minmax(0, 1.6fr) minmax(19rem, .9fr); }
}

.facts {
  display: grid; gap: 0; border-top: 1px solid var(--line-strong);
  margin-block: 1.8rem;
}
.facts div {
  display: grid; gap: .1rem 1.5rem; padding-block: .75rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 34rem) { .facts div { grid-template-columns: 11rem 1fr; } }
.facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }

.paybox {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--card-pad); background: var(--ground-2);
}
.paysteps { counter-reset: s; display: grid; gap: .7rem; margin-top: .9rem; }
.paysteps li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.paysteps li::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--ground); font-size: .75rem; font-weight: 700;
}

.book {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--card-pad); background: var(--ground-3);
}
@media (min-width: 62rem) { .book { position: sticky; top: calc(64px + 1.5rem); } }
.book__price { font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.book__price small { display: block; font-family: var(--ff-text); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.book .btn { width: 100%; justify-content: center; margin-top: 1rem; }

details.info {
  border-bottom: 1px solid var(--line); padding-block: .3rem;
}
details.info summary {
  cursor: pointer; padding: .8rem 0; font-weight: 600; min-height: 44px;
  display: flex; align-items: center; gap: .6rem; list-style: none;
}
details.info summary::-webkit-details-marker { display: none; }
details.info summary::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  rotate: -45deg; margin-inline-start: .2rem;
}
details.info[open] summary::before { rotate: 45deg; }
details.info .info__body { padding-bottom: 1rem; color: var(--ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  details.info summary::before { transition: rotate .3s var(--ease); }
}

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ground-3); border-top: 1px solid var(--line-strong);
  padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  display: flex; gap: .8rem; align-items: center; justify-content: space-between;
}
.mobile-cta .btn { flex: 1; justify-content: center; }
.mobile-cta__price { font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
@media (min-width: 62rem) { .mobile-cta { display: none; } }
body.has-mobilecta { padding-bottom: 6rem; }
@media (min-width: 62rem) { body.has-mobilecta { padding-bottom: 0; } }

/* ---------- 13. vertrouwen en geld ---------- */

.trust { background: var(--ground-2); border-block: 1px solid var(--line); }
.trust__grid { display: grid; gap: clamp(1.4rem, 3vw, 2.5rem); }
@media (min-width: 54rem) { .trust__grid { grid-template-columns: 1.1fr 1fr; } }
.proof { display: grid; gap: .8rem; margin-top: 1.4rem; }
.proof li { display: flex; gap: .7rem; align-items: flex-start; }
.proof .ic { flex: none; margin-top: .2rem; color: var(--accent); }

/* ---------- 14. footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer__grid h3 { font-size: 1rem; margin-bottom: .7rem; }
.footer__grid ul { display: grid; gap: .45rem; font-size: var(--fs-sm); }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-2); display: flex; gap: .5rem 1.5rem; flex-wrap: wrap;
}
address { font-style: normal; }

/* ---------- 15. reveals ---------- */

.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; translate: 0 18px; }
  html.js .rv.is-in { animation: rvIn .75s var(--ease) forwards; }
  @keyframes rvIn { to { opacity: 1; translate: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
