/* Pilot zelf starten (pilot.html). Bouwt op site.css (Kamelo-systeem: k-display, k-lead). De CSP staat geen inline stijlen toe.
   Opbouw: kop in het midden, links drie keuzes als tegels, rechts een vaste samenvatting, daaronder het verloop. */

/* ---------- Kop ---------- */
.pl-hero { max-width: 1180px; margin: 0 auto; padding: clamp(110px, 12vw, 150px) var(--gutter) 0; text-align: center; }
.pl-k { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
.pl-hero .k-lead { margin-left: auto; margin-right: auto; }
.pl-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.pl-facts li { display: flex; align-items: baseline; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--soft); font-size: 15px; }
.pl-facts b { font-weight: 600; }
.pl-facts span { color: var(--muted); }

/* ---------- Keuzes + samenvatting ---------- */
.pl { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 90px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(28px, 4vw, 56px); align-items: start; scroll-margin-top: 70px; }
.pl-q { margin: 0; padding: 0 0 40px; border: 0; }
.pl-q + .pl-q { padding-top: 40px; border-top: 1px solid var(--line); }
.pl-q legend { float: left; width: 100%; } /* zo gedraagt de legend zich als een gewone kop (geen gat in de rand) */
.pl-q legend + * { clear: both; }
.pl-q legend, .pl-legend { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.pl-q legend i, .pl-legend i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font: 600 14px/1 var(--font); letter-spacing: 0; }

/* Tegels: soort kantoor en AI-diensten. Gekozen = blauwe rand, zoals de configurator van een winkel. */
.pl-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pl-tiles label { position: relative; cursor: pointer; }
.pl-tiles input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pl-tiles span { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; padding: 16px 16px 15px; border-radius: 18px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease), background .2s; }
.pl-tiles label:hover span { box-shadow: inset 0 0 0 1px var(--muted); }
.pl-tiles input:checked + span { box-shadow: inset 0 0 0 2px var(--action); background: var(--ph-bg); }
.pl-tiles input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 3px; }
.pl-tiles b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; -webkit-hyphens: auto; hyphens: auto; }
.pl-tiles img { width: 26px; height: 26px; }
.pl-ic { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-tiles input:checked + span .pl-ic { stroke: var(--action); }
.pl-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--muted); font: 600 17px/1 var(--font); font-style: normal; }
/* Bij de AI-diensten een vinkje rechtsboven: je kunt er meer kiezen */
.pl-ai span::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s, box-shadow .2s; }
.pl-ai input:checked + span::after { background: var(--action); box-shadow: none; }
.pl-ai span::before { content: ""; position: absolute; z-index: 1; top: 21px; right: 23px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.pl-ai input:checked + span::before { opacity: 1; }

/* Aantal mensen: groot getal met − en +, schuif eronder */
.pl-people { padding: 22px 24px 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.pl-seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-step { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font: 400 24px/1 var(--font); cursor: pointer; transition: background .2s; }
.pl-step:hover { background: var(--line); }
.pl-seats input { width: 120px; border: 0; background: transparent; color: var(--ink); font: 600 48px/1 var(--font); letter-spacing: -.04em; text-align: center;
  -moz-appearance: textfield; appearance: textfield; }
.pl-seats input::-webkit-inner-spin-button, .pl-seats input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pl-range { --p: 11%; display: block; width: 100%; margin: 22px 0 0; height: 4px; border-radius: 4px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--action) var(--p), var(--line) var(--p)); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .28); cursor: pointer; }
.pl-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .28); cursor: pointer; }
.pl-hint { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Samenvatting: blijft in beeld tijdens het kiezen */
.pl-card { position: sticky; top: 86px; padding: 28px; border-radius: var(--k-radius); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--k-shadow); }
.pl-card h2 { margin: 0; text-align: left; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.pl-sum { margin: 18px 0 0; }
.pl-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pl-sum dt { color: var(--muted); }
.pl-sum dd { margin: 0; text-align: right; font-weight: 500; }
.pl-free { color: var(--green); }
.pl-after { margin-top: 6px; padding: 18px 18px 16px; border-radius: 16px; background: var(--soft); }
.pl-after-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pl-after-top p { margin: 0; font-size: 14px; font-weight: 600; }
.pl-bill { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--line); }
.pl-bill label { position: relative; cursor: pointer; }
.pl-bill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pl-bill span { display: block; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.pl-bill input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pl-bill input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.pl-bill em { margin-left: 3px; font-style: normal; color: var(--green); }
.pl-price { margin: 14px 0 0; }
.pl-price b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pl-price span { color: var(--muted); font-size: 14px; }
.pl-calc { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.pl-go { display: flex; justify-content: center; margin-top: 20px; padding: 17px 22px; border-radius: 14px; background: var(--action); color: #fff; font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(10, 132, 255, .8); transition: opacity .2s; }
.pl-go:hover { text-decoration: none; opacity: .88; }
.pl-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.pl-feat { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pl-feat li { display: flex; gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pl-feat svg { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Verloop van de pilot ---------- */
.pl-how { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 11vw, 140px) var(--gutter) clamp(90px, 10vw, 130px); }
.pl-how h2 { font-size: var(--k-h2); font-weight: 600; letter-spacing: -.035em; }
.pl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 52px 0 0; padding: 0; list-style: none; }
.pl-steps li { position: relative; padding: 26px 24px 30px; border-radius: 20px; background: var(--soft); }
.pl-when { margin: 0 0 40px; font-size: 14px; font-weight: 600; color: var(--action); }
.pl-steps h3 { font-size: 20px; letter-spacing: -.02em; }
.pl-steps h3 + p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

@media (max-width: 1180px) and (min-width: 1021px), (max-width: 760px) { .pl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1020px) {
  .pl { grid-template-columns: 1fr; }
  .pl-card { position: static; }
  .pl-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pl-tiles span { flex-direction: row; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 14px; }
  .pl-tiles b { font-size: 15px; }
  .pl-ic, .pl-tiles img, .pl-plus { flex: none; width: 22px; height: 22px; }
  .pl-ai span { padding-right: 36px; }
  .pl-ai span::after { top: calc(50% - 10px); right: 12px; } .pl-ai span::before { top: calc(50% - 6px); right: 19px; }
  .pl-card { padding: 22px 18px; }
  .pl-price span { display: block; margin-top: 2px; }
  .pl-steps { grid-template-columns: 1fr; }
  .pl-when { margin-bottom: 20px; }
}

/* Donker: kaart en vlakken hebben dezelfde grijstint, dus de binnenvlakken een tikje lichter; het ChatGPT-logo wit */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pl-after, :root:not([data-theme="light"]) .pl-step, :root:not([data-theme="light"]) .pl-plus { background: #2c2c2e; }
  :root:not([data-theme="light"]) .pl-step:hover { background: #3a3a3c; }
  :root:not([data-theme="light"]) .pl-bill { background: #1c1c1e; }
  :root:not([data-theme="light"]) .pl-bill input:checked + span { background: #48484a; }
  :root:not([data-theme="light"]) .pl-tiles span, :root:not([data-theme="light"]) .pl-people { box-shadow: inset 0 0 0 1px #3a3a3c; }
  :root:not([data-theme="light"]) .pl-tiles input:checked + span { box-shadow: inset 0 0 0 2px var(--action); }
  :root:not([data-theme="light"]) .pl-ai span::after { box-shadow: inset 0 0 0 1.5px #48484a; }
  :root:not([data-theme="light"]) .pl-ai input:checked + span::after { box-shadow: none; }
  :root:not([data-theme="light"]) .pl-tiles img[src*="openai"] { filter: invert(1); }
  :root:not([data-theme="light"]) .pl-card { box-shadow: 0 0 0 1px #2c2c2e; }
}
