/* ==========================================================================
   ProntoCore — Componenten: knoppen, links, chips, cursor, formulieren,
   schuifregelaars, sectie-rail, scroll-voortgang.
   ========================================================================== */

/* ---------------- Knoppen ---------------- */
.btn {
  --btn-h: 54px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--btn-h);
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, color 0.4s;
  will-change: transform;
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  flex: none;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn__label {
  position: relative;
  display: inline-block;
}

.btn--sm {
  --btn-h: 44px;
  padding: 0 20px;
  font-size: 0.8125rem;
  gap: 10px;
}

.btn--lg {
  --btn-h: 62px;
  padding: 0 34px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Plasma (primair) — donkere tekst: 6.5:1 contrast */
.btn--plasma {
  color: var(--ink-950);
  background: var(--grad-plasma);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -8px rgba(255, 91, 31, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.btn--plasma::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.btn--plasma:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 44px -8px rgba(255, 91, 31, 0.75), 0 0 0 1px rgba(255, 179, 107, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--plasma:hover::before {
  transform: translateX(120%);
}

/* Outline */
.btn--outline {
  color: var(--bone-50);
  border: 1px solid rgba(243, 239, 232, 0.22);
  background: rgba(5, 6, 11, 0.35);
}

.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120px 60px at var(--bx, 50%) var(--by, 50%), rgba(255, 91, 31, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn--outline:hover {
  border-color: rgba(255, 122, 61, 0.7);
}

.btn--outline:hover::before {
  opacity: 1;
}

.btn--outline[aria-current="page"] {
  border-color: var(--plasma-500);
}

.btn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plasma-500);
  box-shadow: 0 0 10px var(--plasma-500);
  animation: core-breathe 2.4s ease-in-out infinite;
}

/* Ghost */
.btn--ghost {
  padding: 0 6px;
  color: var(--bone-50);
}

.btn--ghost .btn__label {
  background: linear-gradient(var(--plasma-400), var(--plasma-400)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease-out);
}

.btn--ghost:hover .btn__label {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* Link met lijn */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-100);
  background: linear-gradient(90deg, rgba(255, 179, 107, 0.6), rgba(255, 179, 107, 0.15)) 0 100% / 100% 1px no-repeat;
  transition: color var(--dur-2), background-size 0.6s var(--ease-out);
}

.link-line .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.3;
  transition: transform 0.5s var(--ease-out);
}

.link-line:hover {
  color: var(--plasma-300);
}

@media (max-width: 480px) {
  .link-line {
    letter-spacing: 0.18em;
  }
}

/* sneltoets-hints (Ctrl K) zeggen niets op een telefoon of tablet */
html.is-touch [data-palette-open] kbd {
  display: none;
}

/* aanraakschermen: onzichtbaar groter raakvlak (± 44 px hoog), zelfde uiterlijk */
html.is-touch .link-line {
  position: relative;
}

html.is-touch .link-line::after {
  content: "";
  position: absolute;
  inset: -9px -6px -7px;
}

.link-line:hover .icon {
  transform: translateX(6px);
}

/* ---------------- Chips ---------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(12, 15, 24, 0.6);
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.2;
  transition: border-color var(--dur-2), color var(--dur-2), background-color var(--dur-2);
}

.chip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--plasma-400);
  flex: none;
}

.chip--plain::before {
  display: none;
}

button.chip:hover,
a.chip:hover {
  border-color: rgba(255, 122, 61, 0.55);
  color: var(--bone-50);
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--plasma-500);
  background: rgba(255, 91, 31, 0.12);
  color: var(--bone-50);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 122, 61, 0.35);
  color: var(--plasma-300);
  background: rgba(255, 91, 31, 0.06);
}

.tag--ice {
  border-color: rgba(143, 180, 255, 0.3);
  color: var(--ice-300);
  background: rgba(143, 180, 255, 0.06);
}

/* ---------------- Paneel / kaart ---------------- */
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid rgba(143, 180, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.spotlight {
  --mx: 50%;
  --my: 50%;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 320px at var(--mx) var(--my), rgba(255, 122, 61, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* ---------------- Cursor ----------------
   De cursor is een echte systeemcursor (SVG via --cur / --cur-p, gezet door JS):
   geen vertraging. De overlay .cursor-fx toont alleen extra's. */
html.cur-on,
html.cur-on body {
  cursor: var(--cur);
}

html.cur-on :is(a[href], button, [role="button"], label, summary, select, .choice, .day, input[type="range"], input[type="checkbox"], input[type="radio"], [data-cursor="view"], [data-cursor="drag"]) {
  cursor: var(--cur-p);
}

html.cur-on :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable]) {
  cursor: text;
}

html.cur-on :disabled {
  cursor: not-allowed;
}

.cursor-fx {
  position: fixed;
  inset: 0;
  z-index: 9800;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-fx.is-in {
  opacity: 1;
}

html.is-touch .cursor-fx {
  display: none;
}

.cursor-fx__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cursor-cross,
.cursor-coords,
.cursor-tip,
.cursor-hold {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

/* HUD: vizierlijnen over het hele scherm + coördinaten */
.cursor-cross,
.cursor-coords {
  display: none;
}

html.cur-hud .cursor-cross,
html.cur-hud .cursor-coords {
  display: block;
}

.cursor-cross--h {
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 180, 255, 0.16) 20%, rgba(143, 180, 255, 0.16) 80%, transparent);
}

.cursor-cross--v {
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(143, 180, 255, 0.16) 20%, rgba(143, 180, 255, 0.16) 80%, transparent);
}

.cursor-coords {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(5, 6, 11, 0.7);
  border: 1px solid rgba(143, 180, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--ice-300);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Label naast de cursor ("Lees", "Plan" …) */
.cursor-tip {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--bone-50);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  scale: 0.85;
  transform-origin: 0 0;
  transition: opacity 0.18s, scale 0.25s var(--ease-out);
}

.cursor-tip.is-on {
  opacity: 1;
  scale: 1;
}

/* Vasthoud-ring rond de cursor (hero) */
.cursor-hold {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: conic-gradient(var(--plasma-400) calc(var(--hold, 0) * 1turn), rgba(143, 180, 255, 0.18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-hold.is-on {
  opacity: 1;
}

/* ---------------- Formulieren ---------------- */
.field {
  position: relative;
  display: grid;
  gap: 8px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field__label .req {
  color: var(--plasma-400);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.7);
  color: var(--bone-50);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--dur-2), box-shadow var(--dur-2), background-color var(--dur-2);
}

.textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-4);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-600);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 122, 61, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.12);
  background: rgba(12, 15, 24, 0.9);
}

.field.is-invalid .input,
.field.is-invalid .textarea,
.field.is-invalid .select {
  border-color: #ff6b6b;
}

.field__error {
  font-size: 0.8125rem;
  color: #ff8f8f;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB36B' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

.select option {
  background: var(--ink-850);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid var(--ink-600);
  background: var(--ink-900);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-2), border-color var(--dur-2);
}

.check input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink-950);
  border-bottom: 2px solid var(--ink-950);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.3s var(--ease-spring);
}

.check input:checked {
  background: var(--plasma-500);
  border-color: var(--plasma-500);
}

.check input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.check a {
  color: var(--plasma-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- Schuifregelaar ---------------- */
.range {
  --p: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--plasma-600), var(--plasma-300) var(--p), var(--ink-700) var(--p));
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--plasma-600), var(--plasma-300) var(--p), var(--ink-700) var(--p));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFD3A8 40%, #FF7A3D 100%);
  border: 0;
  box-shadow: 0 0 0 6px rgba(255, 91, 31, 0.16), 0 0 18px rgba(255, 91, 31, 0.8);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFD3A8 40%, #FF7A3D 100%);
  border: 0;
  box-shadow: 0 0 0 6px rgba(255, 91, 31, 0.16), 0 0 18px rgba(255, 91, 31, 0.8);
}

.range:hover::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 9px rgba(255, 91, 31, 0.18), 0 0 26px rgba(255, 91, 31, 0.9);
}

/* aanraakschermen: groter schuifvlak en duim, zodat je hem met je vinger pakt */
html.is-touch .range {
  height: 44px;
  touch-action: pan-y;
}

html.is-touch .range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -12px;
}

html.is-touch .range::-moz-range-thumb {
  width: 28px;
  height: 28px;
}

html.is-touch .range:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 9px rgba(255, 91, 31, 0.2), 0 0 22px rgba(255, 91, 31, 0.85);
}

/* Segmenten */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.6);
  width: 100%;
}

.segmented button {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: background-color var(--dur-2), color var(--dur-2);
}

.segmented button[aria-pressed="true"] {
  background: var(--bone-50);
  color: var(--ink-950);
  font-weight: 500;
}

.segmented button:not([aria-pressed="true"]):hover {
  color: var(--bone-50);
}

/* ---------------- Scroll-voortgang + sectie-rail ---------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 830;
  height: 2px;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--plasma-600), var(--plasma-300));
  box-shadow: 0 0 10px rgba(255, 91, 31, 0.7);
}

.rail {
  display: none;
}

@media (min-width: 1280px) and (hover: hover) {
  .rail {
    position: fixed;
    right: 10px;
    top: 50%;
    z-index: 700;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
    transition: opacity 0.5s;
  }

  html.is-loading .rail {
    opacity: 0;
  }

  .rail a {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    height: 14px;
  }

  .rail a::after {
    content: "";
    width: 10px;
    height: 1px;
    background: var(--ink-500);
    transition: width 0.5s var(--ease-out), background-color 0.4s;
  }

  .rail a span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-4);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.4s, transform 0.5s var(--ease-out), color 0.4s;
  }

  .rail:hover a span {
    opacity: 0.6;
    transform: none;
  }

  .rail a:hover span {
    opacity: 1;
    transform: none;
  }

  .rail:hover {
    padding-left: 120px;
    background: linear-gradient(90deg, transparent, rgba(5, 6, 11, 0.85) 40%);
  }

  .rail a.is-active span {
    color: var(--plasma-300);
  }

  .rail a.is-active::after {
    width: 22px;
    background: var(--plasma-400);
    box-shadow: 0 0 8px rgba(255, 91, 31, 0.7);
  }

  .rail a:hover::after {
    width: 22px;
    background: var(--bone-100);
  }
}

/* ---------------- Split-tekst helpers ---------------- */
.split-line {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* geen vaste will-change: GSAP geeft woorden alleen tijdens de animatie een eigen laag */
.split-word,
.split-char {
  display: inline-block;
}

/* Scrub-tekst (woord voor woord oplichten) */
.scrub-text .word {
  display: inline;
  color: rgba(243, 239, 232, 0.14);
  transition: color 0.2s linear;
}

.scrub-text .word.is-on {
  color: var(--bone-50);
}

.scrub-text .word.is-accent.is-on {
  color: var(--plasma-300);
}

/* ---------------- Marquee ---------------- */
.marquee {
  --gap: 12px;
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  padding-right: var(--gap);
  will-change: transform;
}

/* ==========================================================================
   FAQ (vragenlijst — homepage, FAQ-pagina en dienstpagina's)
   ========================================================================== */
.faq__grid {
  display: grid;
  gap: 40px;
}

.faq__head {
  display: grid;
  gap: 20px;
  align-content: start;
  justify-items: start;
}

.faq__head h2 {
  font-size: var(--fs-h2);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.25rem);
  font-weight: 450;
  letter-spacing: -0.015em;
  transition: color var(--dur-2);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: var(--plasma-200);
}

.qa summary i {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out);
}

.qa summary i::before,
.qa summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}

.qa summary i::after {
  transform: rotate(90deg);
}

.qa[open] summary i {
  background: var(--plasma-500);
  border-color: var(--plasma-500);
  color: var(--ink-950);
  transform: rotate(180deg);
}

.qa[open] summary i::after {
  transform: rotate(0deg);
}

.qa__a {
  overflow: hidden;
}

.qa__a p {
  padding-bottom: 24px;
  max-width: 62ch;
  color: var(--text-2);
}

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
  }

  .faq__head {
    position: sticky;
    top: 140px;
  }
}

/* knop die de AI-assistent opent */
.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFB36B 45%, #FF5B1F);
  box-shadow: 0 0 10px #FF5B1F;
  flex: none;
}

.faq__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}