/* ==========================================================================
   pricing.html — de prijzenpagina. Alles hier heeft het voorvoegsel pr-.

   Elke prijs staat al in de HTML, in een element met data-price (de test
   houdt die gelijk aan public/plans.json). JavaScript wisselt alleen tussen
   maand en jaar: het zet body[data-pr-period="jaar"], en CSS laat dan in elke
   .pr-roll de andere variant zien. Zonder JavaScript staan de maandprijzen er,
   met de jaarprijs eronder.

   Opbouw: schakelaar en rollende prijzen → hero → plannen → vergelijking
   (tabel, op een telefoon kaarten per plan) → wat een model kost → vragen →
   aanvraagformulier → tekstballonnen → beweging.
   ========================================================================== */

:root {
  /* de tabelkop plakt net onder de balk bovenin (10px + 54px + wat lucht) */
  --pr-stick: 72px;
  --pr-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.1 6.3l2.5 2.5 5.3-5.6' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pr-lila-ink: #4a2fd0;
  --pr-lila-deep: #6a4cff;
}

/* ---------- maand of jaar: twee varianten op één plek ---------- */

/* Beide varianten staan in dezelfde cel, dus de breedte springt niet. De
   variant die weg is, is ook voor een schermlezer weg (visibility). */
.pr-roll { display: inline-grid; justify-items: start; }
.pr-roll > .pr-m,
.pr-roll > .pr-y {
  grid-area: 1 / 1;
  transition: opacity .26s ease, transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s ease, visibility 0s linear 0s;
}
.pr-roll > .pr-y {
  opacity: 0;
  visibility: hidden;
  transform: translateY(.55em);
  filter: blur(3px);
  transition-delay: 0s, 0s, 0s, .5s;
}
body[data-pr-period="jaar"] .pr-roll > .pr-y {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition-delay: 0s;
}
body[data-pr-period="jaar"] .pr-roll > .pr-m {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.55em);
  filter: blur(3px);
  transition-delay: 0s, 0s, 0s, .5s;
}

/* de schakelaar zelf is een .seg; "2 months free" zit in de jaarknop */
.pr-period button { white-space: nowrap; }
.pr-save {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 8px 4px;
  border-radius: 999px;
  background: #ece7ff;
  color: var(--pr-lila-ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.1;
  vertical-align: .05em;
  transition: background-color .3s ease, color .3s ease;
}
.pr-period button[aria-pressed="true"] .pr-save { background: var(--pr-lila-deep); color: #fff; }
@media (max-width: 400px) {
  .pr-period button { padding: 8px 10px; }
  .pr-save { margin-left: 3px; padding: 3px 6px 4px; }
}

/* ---------- hero: de schakelaar en de prijzen in één oogopslag ---------- */

.pr-hero-bill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(20px, 2.6vw, 30px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--line);
}
.pr-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(15px, 1.25vw, 17px);
  color: var(--ink-2);
}
.pr-glance a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: .22em;
}
.pr-glance .dot { align-self: center; }
.pr-glance strong { color: var(--ink); font-weight: 600; }
.pr-glance a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- de plannen ---------- */

.pr-plans-bar {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.pr-plans-bar .seg { background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px var(--line); }

.pr-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
/* een plan is een tegel: getint blok, witte kaart erop, eronder een gloed met
   ogen (pro: een levend karakter) */
.pr-plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--tint);
  box-shadow: 0 0 0 1px rgba(12, 19, 48, .04);
}
.js .pr-plan.reveal {
  transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1), translate .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.pr-plan:hover {
  translate: 0 -4px;
  box-shadow: 0 0 0 1px rgba(12, 19, 48, .04), 0 26px 50px -26px rgba(12, 19, 48, .35);
}
.pr-plan-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 28px) clamp(22px, 2.2vw, 28px) 26px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 19, 48, .05), 0 12px 28px -16px rgba(12, 19, 48, .2);
}
.pr-plan--pro .pr-plan-card {
  box-shadow: 0 0 0 2px var(--c), 0 1px 2px rgba(12, 19, 48, .05), 0 20px 40px -18px rgba(106, 76, 255, .45);
}
.pr-plan-foot { flex: none; min-height: 158px; }
.pr-plan:hover .glow { --op: -16px; }   /* translate, zie .glow in styles.css */
.pr-plan-char {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* zonder JavaScript: het affiche ongeveer waar tg.peek het karakter zet */
  --fx: 34%;
  --fy: calc(100% - 80px);
  --fw: 92px;
  --kx: calc(34% + 45px);
  --ky: calc(100% - 29px);
  --kd: 890px;
}

.pr-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 27px;
}
.pr-plan-tags { margin: 0; font-size: 14px; line-height: 1.4; color: var(--tag); }
.pr-badge {
  flex: none;
  margin: 0;
  padding: 5px 10px 6px;
  border-radius: 999px;
  background: var(--pr-lila-deep);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
}
.pr-plan-name {
  margin: 28px 0 0;
  font: 500 clamp(40px, 3.6vw, 54px)/1 var(--sans);
  letter-spacing: -.045em;
}
.pr-plan-namerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 28px;
}
.pr-plan-namerow .pr-plan-name { margin: 0; }
.pr-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 18px 0 0;
}
.pr-amount {
  font: 500 clamp(56px, 5vw, 78px)/.95 var(--sans);
  letter-spacing: -.05em;

  color: var(--ink);
}
.pr-amount--talk { font-size: clamp(42px, 3.9vw, 58px); letter-spacing: -.045em; }
.pr-per { font-size: 16px; color: var(--ink-3); }
.pr-bill {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.pr-bill.pr-roll { display: grid; }
.pr-agents {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--tint);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.pr-orbs { display: inline-flex; flex: none; padding-right: 5px; }
.pr-orbs .orb { --s: 25px; margin-right: -6px; }
@media (max-width: 380px) {
  .pr-orbs .orb:nth-child(n+5) { display: none; }
}
.pr-sum {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pr-cta { width: 100%; margin-top: 20px; }
.pr-feats {
  display: grid;
  align-content: start;
  gap: 11px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.pr-feats li,
.pr-pcard-list li { position: relative; padding-left: 31px; }
.pr-feats li::before,
.pr-pcard-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--tint, #f4f5f7);
  background: color-mix(in srgb, var(--c) 18%, #fff);
}
.pr-feats li::after,
.pr-pcard-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 5.5px;
  width: 10px;
  height: 10px;
  background: var(--o0);
  -webkit-mask: var(--pr-check) center / contain no-repeat;
  mask: var(--pr-check) center / contain no-repeat;
}
.pr-feats .pr-feats-all { color: var(--ink); font-weight: 600; }

/* breed: drie naast elkaar, en met subgrid staan prijzen, knoppen en lijsten
   van de drie kaarten op dezelfde hoogte */
@media (min-width: 980px) {
  .pr-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @supports (grid-template-rows: subgrid) {
    .pr-plans { grid-template-rows: repeat(9, auto); row-gap: 0; }
    .pr-plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; }
    .pr-plan-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
  }
}
/* tablet: één kaart per rij, de lijst ernaast */
@media (min-width: 640px) and (max-width: 979px) {
  .pr-plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 44px);
    align-content: start;
  }
  .pr-plan-card > * { grid-column: 1; }
  .pr-plan-card > .pr-feats {
    grid-column: 2;
    grid-row: 1 / span 7;
    margin-top: 0;
    padding: 0 0 0 clamp(24px, 4vw, 44px);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .pr-plan-foot { min-height: 138px; }
}
@media (max-width: 639px) {
  .pr-plan-name,
  .pr-plan-namerow { margin-top: 22px; }
  .pr-plan-namerow .pr-plan-name { margin-top: 0; }
  .pr-plan-foot { min-height: 140px; }
}

/* ---------- de vergelijking ---------- */

.pr-compare {
  position: relative;
  padding: 6px clamp(10px, 1.6vw, 22px) 22px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.pr-table {
  --pr-band: #f6f3ff;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
}
.pr-table .pr-col-label { width: 40%; }

.pr-table thead th,
.pr-table thead td {
  position: sticky;
  top: var(--pr-stick);
  z-index: 3;
  padding: 22px 14px 16px;
  background: #fff;
  text-align: left;
  vertical-align: bottom;
  font-weight: 400;
  transition: box-shadow .25s ease;
}
.pr-compare.is-stuck .pr-table thead th,
.pr-compare.is-stuck .pr-table thead td {
  box-shadow: 0 1px 0 var(--line), 0 14px 16px -14px rgba(12, 19, 48, .3);
}
.pr-corner { vertical-align: bottom; }
.pr-corner .seg { flex-wrap: nowrap; }
.pr-th-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  font: 500 22px/1.1 var(--sans);
  letter-spacing: -.03em;
  color: var(--ink);
}
.pr-th-name::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.pr-th-badge {
  padding: 4px 8px 5px;
  border-radius: 999px;
  background: var(--pr-lila-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.pr-th-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  margin-top: 12px;
}
.pr-th-amount {
  font: 500 32px/1 var(--sans);
  letter-spacing: -.045em;

  color: var(--ink);
}
.pr-th-amount--talk { font-size: 23px; letter-spacing: -.03em; }
.pr-th-per { font-size: 13.5px; line-height: 1.3; color: var(--ink-3); }
.pr-th-cta {
  width: 100%;
  height: auto;
  min-height: 40px;
  margin-top: 14px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.pr-table tbody th,
.pr-table tbody td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.pr-table tbody th {
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
}
.pr-table tbody td {
  position: relative;
  text-align: center;
  color: var(--ink);

}
.pr-table tbody tr.pr-group th {
  padding: 36px 14px 12px;
  border-top: 0;
  font: 400 15px/1.2 var(--sans);
  color: var(--tag);
  /* de pro-kolom loopt als een band door de hele tabel: 40% + 20% ... 80% */
  background: linear-gradient(90deg, transparent 60%, var(--pr-band) 60% 80%, transparent 80%);
}
.pr-table tbody:first-of-type tr.pr-group th { padding-top: 18px; }
.pr-table thead th:nth-child(3),
.pr-table tbody td:nth-child(3) { background: var(--pr-band); }
.pr-table thead th:nth-child(3) { border-radius: 20px 20px 0 0; }
.pr-table tbody:last-of-type tr:last-child td:nth-child(3) { border-radius: 0 0 20px 20px; }
.pr-table tbody tr:not(.pr-group):hover > * { box-shadow: inset 0 0 0 999px rgba(12, 19, 48, .028); }

/* ✓, — en tekst; de kleur hoort bij het plan */
.pr-table td:nth-child(2) { --pc: #0fb57e; }
.pr-table td:nth-child(3) { --pc: var(--pr-lila-deep); }
.pr-table td:nth-child(4) { --pc: #1b61cf; }
.pr-yes::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--tint, #f4f5f7);
  background: color-mix(in srgb, var(--pc) 15%, #fff);
}
.pr-yes::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--pc);
  -webkit-mask: var(--pr-check) center / contain no-repeat;
  mask: var(--pr-check) center / contain no-repeat;
}
.pr-no::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  vertical-align: middle;
  background: #c3c6d0;
}
.pr-txt { font-weight: 500; }

@media (max-width: 999px) {
  .pr-corner .seg { display: none; }
  .pr-table .pr-col-label { width: 37%; }
  .pr-table tbody tr.pr-group th { background: linear-gradient(90deg, transparent 58%, var(--pr-band) 58% 79%, transparent 79%); }
}
/* zonder JavaScript, op een telefoon: dezelfde tabel, compact */
@media (max-width: 759px) {
  .pr-compare { padding: 4px 6px 14px; border-radius: 24px; }
  .pr-table { font-size: 13.5px; }
  .pr-table .pr-col-label { width: 43%; }
  .pr-table thead th,
  .pr-table thead td { position: static; padding: 14px 6px 10px; }
  .pr-table .pr-th-name { font-size: 16px; }
  .pr-table .pr-th-name::before,
  .pr-table .pr-th-badge,
  .pr-table .pr-th-per,
  .pr-table .pr-th-cta { display: none; }
  .pr-table .pr-th-amount { font-size: 19px; }
  .pr-table .pr-th-amount--talk { font-size: 14px; }
  .pr-table tbody th,
  .pr-table tbody td { padding: 10px 6px; }
  .pr-table tbody tr.pr-group th {
    padding: 24px 6px 8px;
    background: linear-gradient(90deg, transparent 62%, var(--pr-band) 62% 81%, transparent 81%);
  }
  .pr-yes::before { width: 22px; height: 22px; }
}

/* op een telefoon, met JavaScript: een kaart per plan, uit dezelfde tabel */
.pr-cards { display: none; }
@media (max-width: 759px) {
  .pr-compare.has-cards { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .pr-compare.has-cards .pr-table { display: none; }
  .pr-compare.has-cards .pr-cards { display: grid; gap: 12px; }
}
.pr-pcard {
  padding: 20px 20px 22px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.pr-pcard--pro { box-shadow: 0 0 0 2px var(--c), var(--shadow-card); }
.pr-pcard-head {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pr-pcard-head .pr-th-name { margin: 0; font-size: 28px; }
.pr-pcard-head .pr-th-price { margin-top: 2px; }
.pr-pcard-head .pr-th-amount { font-size: 38px; }
.pr-pcard-head .pr-th-amount--talk { font-size: 28px; }
.pr-pcard-head .pr-th-cta { margin-top: 10px; }
.pr-pcard-lead { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.pr-pcard-group + .pr-pcard-group,
.pr-pcard-lead + .pr-pcard-group,
.pr-pcard-head + .pr-pcard-group { margin-top: 16px; }
.pr-pcard-group h4 { margin: 0 0 9px; font: 400 14px/1.2 var(--sans); color: var(--tag); }
.pr-pcard-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.pr-pcard-val { font-weight: 600; }

/* ---------- wat een model kost ---------- */

.pr-eq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.pr-part {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.pr-part-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.pr-part-tag { margin: 0; font-size: 14px; color: var(--tag); }
.pr-part-orb { --s: 46px; }
.pr-part h3 {
  margin: clamp(22px, 3vw, 40px) 0 0;
  font: 500 clamp(32px, 3vw, 46px)/1 var(--sans);
  letter-spacing: -.04em;
}
.pr-part > p { max-width: 40ch; margin: 12px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.pr-part-prices {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15.5px;
  color: var(--ink-2);
}
.pr-part-prices li { display: flex; align-items: baseline; gap: 8px; }
.pr-part-prices .dot { align-self: center; }
.pr-part-prices strong { color: var(--ink); font-weight: 600; }
.pr-plus {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -16px 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px var(--tint), var(--shadow-sm);
  font: 400 32px/1 var(--sans);
  color: var(--ink);
}
.pr-ways { display: grid; gap: 0; margin-top: 18px; }
.pr-way {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pr-way:last-child { padding-bottom: 0; }
.pr-way-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tint);
  color: #0a8a5f;
}
.pr-way-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pr-way h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font: 500 19px/1.25 var(--sans);
  letter-spacing: -.02em;
}
.pr-way-plan {
  padding: 4px 9px 5px;
  border-radius: 999px;
  background: #eef3fd;
  color: #1b4fb8;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.pr-way p { max-width: 58ch; margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.pr-way .tags { margin-top: 10px; font-size: 14px; }
@media (min-width: 900px) {
  .pr-eq { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .pr-plus { margin: 0 -18px; }
}

/* ---------- vragen ---------- */

.pr-faq { display: grid; gap: 8px; }
.pr-q {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.pr-q[open] { box-shadow: var(--shadow-card); }
.pr-q > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 18px 24px;
  border-radius: 22px;
  list-style: none;
  cursor: pointer;
  font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--sans);
  letter-spacing: -.02em;
  color: var(--ink);
}
.pr-q > summary::-webkit-details-marker { display: none; }
.pr-q > summary::after {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 13px 1.7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.7px 13px no-repeat,
    var(--panel);
  transition: rotate .35s cubic-bezier(.2, .8, .2, 1), background-color .2s ease;
}
.pr-q > summary:hover::after { background-color: #e9ebef; }
.pr-q[open] > summary::after { rotate: 45deg; }
.pr-a { padding: 0 24px 24px; }
.pr-a p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.pr-a a { color: var(--ink); text-underline-offset: .2em; }
/* openen en sluiten glijdt waar de browser dat kan; elders springt het
   (Safari tot 18 en Firefox: zonder interpolate-size geen hoogte 0 → auto) */
@supports (interpolate-size: allow-keywords) {
  .pr-q { interpolate-size: allow-keywords; }
  .pr-q::details-content {
    height: 0;
    overflow: clip;
    transition: height .4s cubic-bezier(.2, .8, .2, 1), content-visibility .4s allow-discrete;
  }
  .pr-q[open]::details-content { height: auto; }
}

.pr-faq-side {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.pr-faq-side h3 {
  margin: 0;
  font: 500 clamp(28px, 2.6vw, 38px)/1.05 var(--sans);
  letter-spacing: -.04em;
}
.pr-faq-side .btn { margin-top: 20px; }
@media (min-width: 900px) {
  .pr-faq-side { position: sticky; top: 96px; }
}

/* ---------- aanvraagformulier ---------- */

.pr-req { align-items: stretch; }
.pr-form {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.pr-label {
  display: block;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.pr-opt { color: var(--tag); }
.pr-pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.pr-pick legend { margin-bottom: 10px; }
.pr-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-pick-opt { position: relative; display: inline-flex; }
.pr-pick-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pr-pick-opt span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px 10px 15px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  font: 500 15.5px/1 var(--sans);
  color: var(--ink);
  transition: box-shadow .2s ease, background-color .2s ease;
  pointer-events: none;
}
.pr-pick-opt span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.pr-pick-opt:hover span { box-shadow: 0 0 0 1px var(--ink-3); }
.pr-pick-opt input:checked + span {
  background: var(--tint, #f4f5f7);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  box-shadow: 0 0 0 2px var(--c);
}
.pr-pick-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.pr-pick-opt.is-picked span { animation: pr-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pr-pop { 40% { transform: scale(1.07); } }

.pr-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink);
}
.pr-check[hidden] { display: none; }
.pr-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--core);
  cursor: pointer;
}
.pr-check label { cursor: pointer; }

.pr-field { display: grid; gap: 8px; margin-top: 20px; }
.pr-input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 15px;
  border: 0;
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.pr-input::placeholder { color: var(--ink-3); }
.pr-input:hover { background: #eef0f3; }
.pr-input:focus-visible {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--signal);
}
.pr-input[aria-invalid="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--red); }
textarea.pr-input { min-height: 124px; resize: vertical; }
.pr-field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #8c2c22;
  font-size: 14px;
  line-height: 1.45;
}
.pr-field-error:empty { display: none; }
.pr-field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 600 12px/1 var(--sans);
}
.pr-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}
.pr-count { }
.pr-count.is-near { color: var(--ink); font-weight: 600; }

/* de honingpot: voor mensen onzichtbaar, maar niet display:none */
.pr-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr-send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 26px;
}
.pr-submit[disabled] { cursor: not-allowed; opacity: .55; }
.pr-form[aria-busy="true"] .pr-submit { cursor: progress; opacity: .8; }
.pr-form[aria-busy="true"] .pr-submit .arr { animation: pr-nudge .9s ease-in-out infinite; }
@keyframes pr-nudge { 50% { transform: translateX(4px); } }
.pr-privacy {
  flex: 1 1 240px;
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
.pr-result {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}
.pr-result:empty { margin: 0; padding: 0; }
/* verstuurd: de bevestiging staat groot in beeld; de live-regio zegt hem voor */
.pr-form.is-sent .pr-result {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pr-result.is-error { background: #fcefed; color: #8c2c22; box-shadow: inset 3px 0 0 var(--red); }

.pr-form.is-sent { display: grid; align-content: center; }
.pr-done {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 8px 0 4px;
  outline: none;
}
.pr-done[hidden] { display: none; }
.pr-done-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--tint, #f4f5f7);
  background: color-mix(in srgb, var(--c) 20%, #fff);
}
.pr-done-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--pr-lila-ink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: pr-draw .7s .15s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes pr-draw { to { stroke-dashoffset: 0; } }
.pr-done-text {
  max-width: 22ch;
  margin: 0;
  font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--sans);
  letter-spacing: -.025em;
  color: var(--ink);
}

/* rechts: wat er daarna gebeurt, met een karakter dat onder de kaart kijkt */
.pr-req-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  border-radius: var(--r-card);
  background: var(--tint, #f4f5f7);
  background: color-mix(in srgb, var(--c) 20%, #fff);
}
.pr-next {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 19, 48, .05), 0 12px 28px -16px rgba(12, 19, 48, .2);
}
.pr-next h3 {
  margin: 0;
  font: 500 clamp(26px, 2.4vw, 34px)/1.05 var(--sans);
  letter-spacing: -.04em;
}
.pr-next ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pr-next;
}
.pr-next li {
  position: relative;
  counter-increment: pr-next;
  padding-left: 38px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.pr-next li::before {
  content: counter(pr-next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--c);
  color: var(--ink);
  font: 600 12.5px/1 var(--sans);
}
.pr-req-char {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --fx: 36%;
  --fy: calc(100% - 110px);
  --fw: 118px;
  --kx: calc(36% + 57px);
  --ky: calc(100% - 45px);
  --kd: 1130px;
}
@media (max-width: 899px) {
  .pr-req-side { min-height: 400px; }
}

/* ---------- tekstballonnen bij de karakters ---------- */

.pr-bubble { z-index: 4; }
.pr-bubble--r { border-radius: 14px 14px 14px 4px; transform-origin: 0 100%; }
.pr-bubble--l { border-radius: 14px 14px 4px 14px; transform-origin: 100% 100%; }

/* ---------- minder beweging ---------- */

@media (prefers-reduced-motion: reduce) {
  .pr-roll > .pr-m,
  .pr-roll > .pr-y { transform: none !important; filter: none !important; }
  .pr-plan:hover { translate: none; }
  .pr-pick-opt.is-picked span,
  .pr-form[aria-busy="true"] .pr-submit .arr { animation: none; }
}
