/* ============================================================
   TARIEVEN (bouw_tarieven.py, oktober 2026)
   Variant A "De meter als hero" uit de subpagina-ronde, met de wijzigingen van ronde 7:
   één meter (het homepagevoorbeeld), geen minuutsectie, compacte tijdlijn op mobiel,
   vier vragen en de demokaart van de homepage. Voorvoegsel tra-.
   Bouwt voort op tokens.css, site.css, integraties.css (.subhero) en v4.css
   (.af, .af-demokaart, .faq). Kaarten: één grote ronde hoek rechtsboven.
   Ping alleen voor de knoppen en het AI-deel van de meter (zelfde codering als de homepage).
   ============================================================ */
.tra-hero, .tra-tijd, .tra-slot, .tra-demo {
  --tra-grijs: #617278;
  --tra-grijs-kop: #77878D;
  --tra-ease: cubic-bezier(.2, .7, .2, 1);
  --tra-hoek: 0 var(--radius-lg) 0 0;
}

/* ---------- Kop: titel en €0,29 links, meter rechts ---------- */
/* Bovenmarge schaalt ook met de schermhoogte: op een laag scherm (1512x860) blijven €0,29 en beide knoppen boven de vouw. */
.tra-hero { padding: clamp(40px, min(6vw, 7vh), 92px) 0 clamp(60px, 7vw, 108px); }
.tra-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(40px, 5vw, 84px); align-items: center; }
.tra-hero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -.032em; font-weight: 600; max-width: 18ch; margin-bottom: 30px; }
.tra-hero h1 span { display: block; color: rgba(255, 255, 255, .52); }
.tra-prijs { display: flex; flex-direction: column; gap: 14px; margin: 0 0 30px; }
.tra-bedrag {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(88px, 9vw, 148px); line-height: .8; letter-spacing: -.055em;
  background: linear-gradient(135deg, #fff 30%, #9EC2CE 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: .04em .04em .07em 0; align-self: flex-start;
}
.tra-per { font-size: 19px; line-height: 1.4; color: #fff; }
.tra-per em { display: block; font-style: normal; color: rgba(255, 255, 255, .68); font-size: 16px; margin-top: 4px; }

/* Vet deel en toelichting lopen als één zin door; een afgebroken regel springt in tot na het vinkje. */
.tra-feiten { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 10px; }
.tra-feiten li { position: relative; padding-left: 27px; line-height: 1.45; }
.tra-feiten li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; background: var(--mist);
  -webkit-mask: var(--icoon-vink) center / contain no-repeat; mask: var(--icoon-vink) center / contain no-repeat;
}
.tra-feiten b { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #fff; margin-right: 4px; }
.tra-feiten span { font-size: 16px; color: rgba(255, 255, 255, .7); text-wrap: pretty; }
.tra-hero .cta-row { margin-bottom: 0; }

/* ---------- De meter (witte kaart, gelijk aan de homepagemeter) ---------- */
.tra-meter { position: relative; background: #fff; color: var(--ink); border-radius: var(--tra-hoek); padding: 28px 30px 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 30px 64px -28px rgba(0, 0, 0, .5); container-type: inline-size; }
.tra-meter p { margin: 0; }
.tra-boven { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.tra-titel { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); }
.tra-meter .tra-klok { margin-top: 3px; font-size: 15px; color: var(--tra-grijs); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.tra-pauze {
  width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--baseline);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tra-pauze[hidden] { display: none; }
.tra-pauze:hover { background: var(--canvas); color: var(--ink); border-color: var(--mist); }
.tra-pauze:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.tra-pauze svg { width: 10px; height: 10px; fill: currentColor; }
.tra-pauze .tra-ico-speel, .tra-pauze[aria-pressed="true"] .tra-ico-pauze { display: none; }
.tra-pauze[aria-pressed="true"] .tra-ico-speel { display: block; }
.tra-teller { text-align: right; }
.tra-meterbedrag { display: block; font-family: var(--font-head); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tra-tarief { display: block; font-size: 14px; color: var(--tra-grijs); margin-top: 7px; transition: color .4s; white-space: nowrap; }
.tra-meter.tra-over .tra-tarief { color: var(--sage-tekst); }

/* Eén minuut AI, vier minuten collega: de verhouding 1 op 4 staat vast. */
.tra-baan { position: relative; display: flex; gap: 6px; height: 54px; margin-top: 52px; }
.tra-deel { position: relative; overflow: hidden; background: rgba(1, 30, 38, .07); flex: 1 1 0; min-width: 0; }
.tra-ai { flex-grow: 1; border-radius: 10px 0 0 10px; }
.tra-mens { flex-grow: 4; border-radius: 0 10px 10px 0; }
.tra-vul { position: absolute; inset: 0; transform-origin: left center; transform: none; transition: opacity .35s ease; }
.js .tra-vul { transform: scaleX(0); will-change: transform; }
.tra-meter.tra-leeg .tra-vul { opacity: 0; }
.tra-ai .tra-vul { background: linear-gradient(90deg, #9BEB76, var(--ping)); }
.tra-mens .tra-vul { background: linear-gradient(90deg, #BFD0D6, var(--mist)); }
.tra-golf { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; z-index: 1; }
.tra-golf i { width: 3px; height: 46%; background: var(--pitch); border-radius: 2px; opacity: 0; transform: scaleY(.3); transition: opacity .3s; }
.tra-meter.tra-praat .tra-golf i { opacity: .75; animation: tra-golf .8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
@keyframes tra-golf { from { transform: scaleY(.22); } to { transform: scaleY(1); } }

/* Het label "Doorverbonden" staat midden boven de opening tussen AI en collega. */
.tra-label {
  position: absolute; bottom: calc(100% + 10px); left: calc((100% - 6px) / 5 + 3px); transform: translate(-50%, 6px) scale(.92);
  font-size: 13px; font-weight: 600; line-height: 1; color: #fff; background: var(--pitch);
  padding: 8px 12px 8px 10px; border-radius: 0 10px 0 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  transition: opacity .35s var(--tra-ease), transform .45s var(--tra-ease); opacity: 0; pointer-events: none;
}
.tra-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 14px; background: var(--pitch); transform: translateX(-50%); }
.tra-label svg { width: 14px; height: 14px; }
.tra-meter.tra-over .tra-label, html:not(.js) .tra-label { opacity: 1; transform: translate(-50%, 0) scale(1); }

.tra-legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tra-leg { position: relative; padding-left: 18px; }
.tra-leg::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 0 4px 0 0; }
.tra-leg-ai::before { background: var(--ping); box-shadow: inset 0 0 0 1px rgba(90, 158, 60, .5); }
.tra-leg-mens::before { background: var(--mist); }
.tra-leg b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.tra-leg span { display: block; font-size: 14px; line-height: 1.45; color: var(--tra-grijs); margin-top: 2px; }
.tra-meter .tra-som { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink); transition: opacity .6s var(--tra-ease); text-wrap: pretty; }
.tra-som b { font-weight: 600; }
/* Tijdens het afspelen gedempt, maar leesbaar (minimaal 0,6 dekking, 4,5:1 of meer). */
.js .tra-meter .tra-som { opacity: .6; }
.js .tra-meter.tra-klaar .tra-som { opacity: 1; }
.tra-meter .tra-voetnoot { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--tra-grijs); }
@container (max-width: 470px) {
  .tra-boven { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tra-teller { text-align: left; }
  .tra-legenda { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Gedeelde koppen ---------- */
.tra-oog { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-tekst); margin: 0 0 18px; }
.tra-h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.05; letter-spacing: -.032em; font-weight: 600; color: var(--ink); margin: 0; }
.tra-h2 span { display: block; color: var(--tra-grijs-kop); }
.tra-kop { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.tra-link { margin: 34px 0 0; }
.tra-link a { font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--sage-tekst); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.tra-link a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--tra-ease); }
.tra-link a:hover { text-decoration: underline; text-underline-offset: 5px; }
.tra-link a:hover::after { transform: translateX(4px) rotate(45deg); }
.js .tra-tijd .rv { transform: translateY(26px); transition: opacity 1s var(--tra-ease), transform 1s var(--tra-ease); }
.js .tra-tijd .rv.in { opacity: 1; transform: none; }

/* ---------- Tijdlijn: setup en Prompt Care ---------- */
.tra-tijd { background: var(--canvas); padding: clamp(80px, 9vw, 140px) 0 clamp(64px, 7vw, 110px); }
.tra-fasen { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tra-kolom { display: flex; flex-direction: column; min-width: 0; }
.tra-as { position: relative; margin: 0 0 18px; padding-top: 22px; min-height: 40px; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.tra-as::before { content: ""; position: absolute; left: 0; right: -16px; top: 6px; height: 2px; background: var(--sage); transform-origin: left center; }
.tra-kolom:last-child .tra-as::before { right: 0; background: linear-gradient(90deg, var(--sage) 60%, rgba(76, 131, 150, 0)); }
.tra-as::after { content: ""; position: absolute; left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); }
.tra-as span { display: block; }
.js .tra-lijn .tra-as::before { transform: scaleX(0); transition: transform .7s linear; transition-delay: calc(var(--k) * .7s); }
.js .tra-lijn .tra-as::after, .js .tra-lijn .tra-as span { opacity: 0; transition: opacity .4s ease; transition-delay: calc(var(--k) * .7s + .1s); }
.js .tra-lijn .tra-fase { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--tra-ease), transform .8s var(--tra-ease); transition-delay: calc(var(--k) * .7s + .15s); }
.js .tra-lijn.in .tra-as::before { transform: none; }
.js .tra-lijn.in .tra-as::after, .js .tra-lijn.in .tra-as span, .js .tra-lijn.in .tra-fase { opacity: 1; transform: none; }

.tra-fase { flex: 1; border-radius: var(--tra-hoek); padding: 30px 28px 30px; background: #fff; box-shadow: var(--shadow); }
.tra-fase p, .tra-fase h3, .tra-fase ul { margin: 0; }
.tra-fase-wanneer { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-tekst); }
.tra-fase h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); margin-top: 8px; }
.tra-fase-bedrag { font-family: var(--font-head); font-weight: 600; font-size: clamp(56px, 5.2vw, 80px); line-height: .9; letter-spacing: -.045em; color: var(--ink); margin-top: 26px !important; font-variant-numeric: tabular-nums; }
.tra-fase-bedrag-tekst { font-size: clamp(36px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.035em; padding-top: .28em; }
.tra-fase-per { font-size: 15.5px; line-height: 1.45; color: var(--tra-grijs); margin-top: 10px !important; }
.tra-fase ul { list-style: none; padding: 0; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.tra-fase li { display: grid; grid-template-columns: 1em 1fr; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.tra-fase li::before { content: ""; width: 1em; height: 1em; margin-top: .22em; background: var(--sage-tekst); -webkit-mask: var(--icoon-vink) center / contain no-repeat; mask: var(--icoon-vink) center / contain no-repeat; }
.tra-fase-setup { background: linear-gradient(160deg, #011E26 0%, #16404C 100%); color: #fff; box-shadow: var(--shadow-lg); }
.tra-fase-setup .tra-fase-wanneer { color: var(--mist); }
.tra-fase-setup h3, .tra-fase-setup li { color: #fff; }
.tra-fase-setup .tra-fase-bedrag { background: linear-gradient(135deg, #fff 30%, #9EC2CE 105%); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start; }
.tra-fase-setup .tra-fase-per { color: rgba(255, 255, 255, .7); }
.tra-fase-setup ul { border-top-color: rgba(255, 255, 255, .16); }
.tra-fase-setup li::before { background: var(--mist); }
.tra-fase-care { background: #E6EEF1; box-shadow: none; }
.tra-fase-care .tra-fase-bedrag { color: var(--sage-tekst); }
/* Op #E6EEF1 haalt --sage-tekst geen 4,5:1 bij kleine tekst: donkerdere sage en baseline. */
.tra-fase-care .tra-fase-wanneer { color: var(--sage-ink); }
.tra-fase-care .tra-fase-per { color: var(--baseline); }
.tra-fase-care ul { border-top-color: rgba(76, 131, 150, .22); }

.tra-verbruik { position: relative; overflow: hidden; margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 16px 22px; border-radius: 10px; background: rgba(76, 131, 150, .1); font-size: 16px; color: var(--ink); }
.tra-verbruik::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(76, 131, 150, .16), rgba(76, 131, 150, .05)); transform-origin: left center; }
.js .tra-lijn .tra-verbruik::before { transform: scaleX(0); transition: transform 2.1s var(--tra-ease) .2s; }
.js .tra-lijn.in .tra-verbruik::before { transform: none; }
.tra-verbruik span { position: relative; }
.tra-verbruik-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--baseline); } /* sage haalde op de band maar 3,7:1 */

.tra-klein { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.tra-klein li { display: flex; flex-direction: column; gap: 2px; }
.tra-klein b { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.tra-klein span { font-size: 15.5px; color: var(--tra-grijs); }

/* ---------- Vragen en demokaart ---------- */
/* Vragen en demokaart zijn twee secties op hetzelfde canvas; de ruimte ertussen is die van de homepage
   (de bovenmarge van .af-demokaart, hier als bovenpadding van de demosectie). */
/* Tijdlijn en vragen delen het canvas: onderpadding tijdlijn (7vw) plus deze (1vw) is gelijk aan de
   afstand tussen vragen en demokaart (8vw). */
.tra-slot { background: var(--canvas); padding: clamp(8px, 1vw, 18px) 0 0; }
.tra-demo { background: var(--canvas); padding: clamp(72px, 8vw, 128px) 0 clamp(56px, 6vw, 96px); }
.tra-demo .af-demokaart { margin-top: 0; }
.tra-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tra-faq-grid .tra-kop { margin-bottom: 0; }
.tra-faq { max-width: none; border-top: 1px solid var(--line); }
.tra-faq summary { font-size: 18px; }
.tra-faq summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.tra-faq details[open] .antwoord { animation: tra-antwoord .45s var(--tra-ease) both; }
@keyframes tra-antwoord { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Launching-regel: klein en gedempt, tussen de tekst en de knoppen. */
.af-demokaart .tra-launch { margin: -14px 0 30px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.af-demokaart .tra-launch[hidden] { display: none; }

/* ---------- Responsief ---------- */
@media (max-width: 1020px) {
  .tra-hero-grid, .tra-faq-grid { grid-template-columns: 1fr; }
  .tra-meter { max-width: 640px; }
  .tra-hero h1 { max-width: 22ch; }
}
/* Mobiel: de tijdlijn wordt een verticale rail links, met het moment als klein label boven elke kaart. */
@media (max-width: 860px) {
  .tra-fasen { grid-template-columns: 1fr; gap: 0; }
  .tra-kolom { position: relative; padding: 0 0 18px 26px; }
  .tra-kolom::before { content: ""; position: absolute; left: 5px; top: 9px; bottom: 0; width: 2px; background: var(--sage); transform-origin: top center; }
  .tra-kolom:last-child { padding-bottom: 0; }
  .tra-kolom:last-child::before { background: linear-gradient(180deg, var(--sage) 50%, rgba(76, 131, 150, 0)); }
  .tra-as { min-height: 0; padding-top: 0; margin: 0 0 10px; font-size: 14px; }
  .tra-as::before { display: none; }
  .tra-as::after { left: -26px; top: 2px; }
  .js .tra-lijn .tra-kolom::before { transform: scaleY(0); transition: transform .5s linear; transition-delay: calc(var(--k) * .25s); }
  .js .tra-lijn.in .tra-kolom::before { transform: none; }
  .js .tra-lijn .tra-as::after, .js .tra-lijn .tra-as span, .js .tra-lijn .tra-fase { transition-delay: calc(var(--k) * .25s); }
  .tra-fase { padding: 22px 20px 22px; }
  .tra-fase-bedrag { font-size: 52px; margin-top: 16px !important; }
  .tra-fase-bedrag-tekst { font-size: 36px; padding-top: .1em; }
  .tra-fase-per { margin-top: 8px !important; }
  .tra-fase ul { margin-top: 16px; padding-top: 14px; gap: 7px; }
  .tra-verbruik { margin-top: 18px; }
}
@media (max-width: 640px) {
  .tra-hero { padding: 36px 0 56px; }
  .tra-hero h1 { font-size: 32px; margin-bottom: 22px; }
  .tra-prijs { gap: 10px; margin-bottom: 22px; }
  .tra-per { font-size: 17px; }
  .tra-feiten { margin-bottom: 26px; gap: 8px; }
  .tra-feiten li { padding-left: 28px; }
  .tra-feiten b { display: block; font-size: 16.5px; margin-right: 0; }
  .tra-feiten span { display: block; font-size: 15.5px; line-height: 1.4; }
  .tra-meter { padding: 20px 18px 20px; margin: 0 -10px; }
  .tra-titel { font-size: 16.5px; }
  .tra-meterbedrag { font-size: 38px; }
  .tra-baan { height: 46px; margin-top: 50px; }
  .tra-golf { gap: 2px; }
  .tra-golf i { width: 2px; }
  .tra-golf i:nth-child(n+6) { display: none; }
  .tra-tijd { padding: 64px 0 56px; }
  .tra-kop { margin-bottom: 32px; }
  .tra-oog { margin-bottom: 14px; }
  .tra-verbruik { padding: 14px 18px; font-size: 15.5px; }
  .tra-klein { flex-direction: column; gap: 12px; margin-top: 28px; }
  .tra-link { margin-top: 26px; }
  .tra-slot { padding: 16px 0 0; }
  .tra-demo { padding-bottom: 48px; }
  .tra-faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .tra-tijd .rv { transform: none; transition: none; }
  .js .tra-lijn .tra-as::before, .js .tra-lijn .tra-as::after, .js .tra-lijn .tra-as span, .js .tra-lijn .tra-fase,
  .js .tra-lijn .tra-kolom::before, .js .tra-lijn .tra-verbruik::before { transition: none; transform: none; opacity: 1; }
  .tra-meter.tra-praat .tra-golf i { animation: none; }
  .tra-label, .tra-tarief, .tra-meter .tra-som { transition: none; }
  .tra-faq details[open] .antwoord { animation: none; }
}
