/* Keuzehulp "Welk abonnement past bij mij?" (choose.html) en de vergelijkingstabel (compare.html). */

/* ---- Keuzehulp ---- */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.plan-form { display: grid; gap: 28px; }
.plan-question label { display: block; font-size: 22px; line-height: 1.3; font-weight: 800; }
.plan-hint { margin: 8px 0 14px; color: var(--muted); max-width: 34em; }
.plan-stepper { display: inline-flex; align-items: stretch; gap: 10px; }
.plan-stepper input {
  width: 110px; min-height: 60px; padding: 0 10px; text-align: center;
  font: inherit; font-size: 30px; font-weight: 900; color: var(--text);
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  -moz-appearance: textfield; appearance: textfield;
}
.plan-stepper input::-webkit-outer-spin-button, .plan-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan-stepper input:focus-visible, .plan-step:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.plan-step {
  width: 60px; min-height: 60px; cursor: pointer;
  font: inherit; font-size: 32px; font-weight: 800; line-height: 1; color: var(--text);
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
}
.plan-step:hover { border-color: var(--text); }

.plan-result {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.plan-result-label { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.plan-result-name { margin: 0; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.plan-result-price { margin: 10px 0 18px; font-size: 21px; font-weight: 800; }
.plan-result-text { margin: 0 0 12px; color: var(--muted); }
.plan-result-list { margin: 0 0 16px; }
.plan-result .small-note { margin: 12px 0 0; }
.plan-actions { display: grid; gap: 12px; margin-top: 18px; }
.plan-actions .btn { justify-self: start; }
.plan-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-store {
  display: inline-flex; flex-direction: column; min-width: 150px; padding: 10px 16px;
  border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--muted); text-decoration: none;
}
.plan-store-name { font-weight: 800; font-size: 17px; color: var(--text); }
.plan-store-note { font-size: 14px; }
.plan-store--live { background: var(--dark); border-color: var(--dark); }
.plan-store--live .plan-store-name, .plan-store--live .plan-store-note { color: #fff; }

.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-for { margin: 4px 0 0; font-weight: 700; color: var(--green); }
.plan-cards .price { font-size: 36px; }
.plan-cards .price-note { margin-bottom: 0; }
.plan-facts { margin: 32px 0 20px; max-width: 46em; }

/* Op de prijspagina: de grotere abonnementen onder de twee gewone prijzen. */
.plan-more { margin: 40px 0 16px; font-size: 22px; font-weight: 800; }
.plan-choose { margin: 28px 0 36px; }

/* ---- Vergelijkingstabel ---- */
.compare-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--dark); color: #fff; font-size: 16px; font-weight: 800; }
.compare tbody th { font-weight: 800; width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .compare-own th, .compare .compare-own td { background: var(--green-soft); }
.compare .compare-steps { font-size: 22px; font-weight: 900; white-space: nowrap; }
.compare small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); font-weight: 400; }
.compare-note { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 52em; }
.compare-sources { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (min-width: 760px) { .compare-sources { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; } }

/* ---- Vergelijking per functie (compare.html): Tap2bSafe naast de andere apps ----
   Breed scherm: alle apps naast elkaar. Smal scherm: de bezoeker kiest één app naast Tap2bSafe
   (js/compare.js zet data-with op de tabel). Zonder script blijft de hele tabel staan en schuift hij opzij. */
.matrix { min-width: 900px; table-layout: fixed; }
.matrix thead th { vertical-align: bottom; }
.matrix thead th:first-child, .matrix tbody th { width: 22%; }
.matrix thead th small { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.matrix thead th[data-app="own"] { background: var(--green); color: #121A26; }
.matrix td[data-app="own"] { background: var(--green-soft); }
.matrix td { font-size: 15px; line-height: 1.4; }

/* Ja, Deels, Nee: een woord met een teken ervoor, zodat het ook zonder kleur klopt. */
.m { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.m::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; line-height: 1; }
.m-y::before { content: "✓"; background: var(--green); color: #121A26; }
.m-p::before { border: 2px solid var(--green); background: linear-gradient(90deg, var(--green) 50%, transparent 50%); }
.m-n { color: var(--muted); }
.m-n::before { content: "–"; border: 2px solid var(--border); color: var(--muted); }
.m-note { display: block; margin-top: 4px; color: var(--muted); }
td[data-app="own"] .m-note { color: var(--text); }
html.vb-contrast .m-y::before { color: #FFFFFF; }
html.vb-contrast .matrix thead th[data-app="own"] { color: #FFFFFF; }
html.vb-contrast .matrix td[data-app="own"] { box-shadow: inset 3px 0 0 #000000, inset -3px 0 0 #000000; }

.matrix-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }
.matrix-legend li { display: flex; align-items: flex-start; gap: 8px; }
.matrix-legend .m { color: var(--text); font-size: 15px; }

.matrix-pick { display: none; margin-bottom: 14px; }
.matrix-pick p { margin: 0 0 8px; font-weight: 800; }
.matrix-pick-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.matrix-pick button { min-height: 48px; padding: 0 6px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.matrix-pick button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
@media (max-width: 420px) { .matrix-pick-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 900px) {
  .matrix-pick:not([hidden]) { display: block; }
  .matrix-wrap.matrix-on { overflow: visible; overflow: clip; }
  .matrix[data-with] { display: block; min-width: 0; }
  .matrix[data-with] thead, .matrix[data-with] tbody { display: block; }
  .matrix[data-with] tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .matrix[data-with] [data-app], .matrix[data-with] thead th:first-child { display: none; }
  .matrix[data-with] [data-app="own"],
  .matrix[data-with="whatsapp"] [data-app="whatsapp"],
  .matrix[data-with="apple"] [data-app="apple"],
  .matrix[data-with="google"] [data-app="google"],
  .matrix[data-with="life360"] [data-app="life360"] { display: block; }
  .matrix[data-with] thead { position: sticky; top: var(--nav-h); z-index: 2; }
  .matrix[data-with] tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 6px; border-bottom: 0; }
  .matrix[data-with] tbody th { padding-top: 16px; }
  .matrix[data-with] td { padding: 10px 16px 14px; }
}

/* De prijzen van Tap2bSafe in de rij "Wat het kost": elk abonnement op een eigen regel */
.m-price { display: block; }
.m-price + .m-price { margin-top: 6px; }
.m-price b { display: block; font-size: 16px; font-weight: 800; }

/* Het aantal handelingen in de eerste rij van de tabel */
.m-steps { display: block; font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; }

/* ---- Bovenaan compare.html: de handelingen als balkjes, Tap2bSafe naast de andere ---- */
.why-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.why-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .why-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.stepchart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.stepchart h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.stepchart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stepchart-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 2ch; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; }
.stepchart-name { font-weight: 800; line-height: 1.25; }
.stepchart-name small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.stepbar { display: flex; gap: 4px; }
.stepbar i { flex: 0 0 calc((100% - 28px) / 8); height: 18px; border-radius: 5px; background: var(--muted); opacity: 0.55; }
.stepchart-n { font-size: 26px; line-height: 1; font-weight: 900; text-align: right; }
.stepchart-own { background: var(--green-soft); padding-top: 14px; padding-bottom: 14px; }
.stepchart-own .stepbar i { background: var(--green); opacity: 1; height: 26px; }
.stepchart-own .stepchart-n { font-size: 38px; }
.stepchart-own .stepchart-name { font-size: 20px; }
.stepchart-own .stepchart-name small { color: var(--text); }
.stepchart-own-app { background: var(--green-soft); }
.stepchart-own-app .stepbar i { background: var(--green); opacity: 1; }
.stepchart-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
html.vb-contrast .stepchart-own { outline: 3px solid #000000; }
html.vb-contrast .stepbar i { opacity: 1; }
@media (max-width: 480px) {
  .stepchart { padding: 16px; }
  .stepchart-row { grid-template-columns: minmax(0, 1fr) 2ch; row-gap: 6px; }
  .stepchart-name { grid-column: 1 / -1; }
}

/* ---- Zo snel gaat het: de manieren van Tap2bSafe als tegels ---- */
.speed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.speed li { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 15px; line-height: 1.45; color: var(--muted); }
.speed strong { font-size: 17px; color: var(--text); }
.speed-n { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; color: var(--text); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 4px solid var(--green); align-self: flex-start; }
@media (max-width: 1000px) { .speed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .speed { grid-template-columns: repeat(2, minmax(0, 1fr)); } .speed li:last-child { grid-column: 1 / -1; } }

/* ---- Redenen en het blok voor families en teams ---- */
.why .card h3 { padding-left: 34px; position: relative; }
.why .card h3::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #121A26; font-size: 14px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
html.vb-contrast .why .card h3::before { color: #FFFFFF; }
#samen .plan-cards { margin-top: 4px; }
#samen .plan-choose { margin: 24px 0 0; }
#samen .small-note { margin-top: 14px; }

/* ---- Hoe we geteld hebben: uitklapbaar onderaan ---- */
.compare-how { max-width: none; }
.compare-count { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.compare-how .compare-sources { margin-top: 14px; }

@media (max-width: 860px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .plan-result { position: static; }
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
}
