/* =====================================================================
   TenderAlert pricing page (page-pricing.css). Loads after site.css.
   Composition = live (change register 2026-10-20): stacked hero, centred
   "abonnementen" heading over ONE even row of three cards, then the
   sign-up band (the page's one saffraan field), then the FAQ.
   The Quick Scan card stands out as the NAVY card with a saffraan button
   (main action). Start and Pro are white cards on paper.
   ===================================================================== */

/* ---------- Hero: stacked like live (h1 on two lines, subtitle below) ---------- */
.page-hero { padding-bottom: 88px; }
.page-hero .h1 .accent { display: block; }

/* ---------- Plans (section padding = .sec, like live) ---------- */

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
/* wide screens: the row runs a little wider than the text column, so the long Quick Scan lines wrap less
   and the whole card, button included, fits one laptop screen (founder 2026-10-23: cards too tall) */
@media (min-width: 1280px) { .plan-grid { margin: 0 -60px; gap: 20px; } }

/* main.js fades .pricing-card in on scroll; the cards sit high on the page, so show them at once */
.pricing-card { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Each card is a column of rows that line up across the three cards (subgrid):
   name | desc | price | list | 3 field rows | button | note.
   The Quick Scan form spans the field rows and the button row, foot-aligned.
   Start and Pro have no field: their list spans the field rows and spreads its items
   evenly, so all three buttons sit on one line and no card has a hole above its button. */
.plan-grid > .plan, .plan-grid > .plan-wrap { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; }
.plan-wrap > .plan { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.plan-qs .qs-form { grid-row: 5 / 9; align-self: end; }
.plan-qs .abo-spacer, .plan:not(.plan-qs) .abo-spacer { display: none; }
.plan:not(.plan-qs) .pricing-features { grid-row: 4 / 8; display: flex; flex-direction: column; }
.plan:not(.plan-qs) .pricing-feature { flex: 1 1 auto; align-content: center; }
.plan:not(.plan-qs) > .btn { grid-row: 8; align-self: end; }
.plan:not(.plan-qs) > .pricing-deadline { grid-row: 9; }
.plan-qs > .pricing-deadline { grid-row: 9; }

.plan {
  background: var(--white); border-radius: 18px; padding: 28px 26px 22px;
  box-shadow: 0 0 0 1px var(--line); /* flat with a thin ring like live: navy + saffraan carry the emphasis */
}
.pricing-name { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.018em; color: var(--navy); }
.pricing-desc { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.pricing-amount {
  margin-top: 16px; margin-bottom: 14px; align-self: end;
  font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.035em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.pricing-amount .per { font: 600 15px/1 var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }

.pricing-features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pricing-feature { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 8px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.pricing-feature + .pricing-feature { border-top: 1px solid var(--line); }
.pricing-feature strong { color: var(--ink); font-weight: 650; }
.abo-sub { list-style: none; margin: 4px 0 0; padding: 0; }
.abo-sub li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.abo-sub li::before { content: ''; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

.plan > .btn { width: 100%; margin-top: 10px; }
.pricing-deadline { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }

/* ---------- Quick Scan: the navy card, saffraan button (main action) ---------- */
.plan-qs { background: var(--navy); color: #fff; box-shadow: none; }
.plan-qs .pricing-name, .plan-qs .pricing-amount { color: #fff; }
.plan-qs .pricing-desc { color: var(--navy-soft); }
.plan-qs .pricing-features, .plan-qs .pricing-feature + .pricing-feature { border-top-color: var(--navy-line); }
.plan-qs .pricing-feature { color: var(--navy-soft); }
.plan-qs .pricing-feature strong { color: #fff; }
.plan-qs .check::before { border-color: var(--spark); }

/* field, button, Turnstile box and message: shared stacked Quick Scan form in site.css */
.plan-qs .qs-input { margin-top: 14px; }
.plan-qs .qs-form { gap: 0; }
.plan-qs .qs-check, .plan-qs .qs-message, .plan-qs .qs-button { margin-top: 10px; }
.plan-qs .pricing-deadline { color: var(--navy-soft); }
.plan-qs :focus-visible { outline-color: #fff; }

/* Start / Pro buttons: same height as the Quick Scan button so the row reads level */
.plan > .btn-large { height: 50px; font-size: 16.5px; }

/* ---------- Pro: content blurred, name sharp, "Binnenkort" stamp ---------- */
.plan-wrap { position: relative; }
.plan-wrap > .pricing-card { min-width: 0; pointer-events: none; user-select: none; }
.plan-wrap > .pricing-card > *:not(.pricing-name) { filter: blur(4px); opacity: .42; }
.plan-badge {
  position: absolute; top: var(--badge-top, 50%); left: 50%; transform: translate(-50%, -50%) rotate(-4deg); z-index: 2;
  background: var(--navy); color: #fff; font: 700 16px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; box-shadow: 0 0 0 4px var(--white), var(--shadow-float);
}

/* ---------- Sign-up band (the one saffraan field) ---------- */
.pricing-cta .offer { scroll-margin-top: 30vh; }

/* ---------- FAQ ---------- */
.faq-answer-inner p + p { margin-top: 10px; }
.faq-answer-inner strong { color: var(--ink); font-weight: 650; }

/* =====================================================================
   RESPONSIVE: one column below 1100 px, like live (cards 560 px wide)
   ===================================================================== */
@media (max-width: 1099px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 24px; }
  .plan-grid > .plan, .plan-grid > .plan-wrap, .plan-wrap > .plan { display: flex; flex-direction: column; grid-row: auto; }
  .plan-wrap > .plan { flex: 1; }
  .pricing-amount { align-self: flex-start; }
  .plan-qs .qs-form { align-self: stretch; } /* full width of the card text column (desktop end-alignment is for the subgrid only) */
  .plan:not(.plan-qs) .pricing-feature { flex: none; }
  .plan > .btn { margin-top: 24px; }
}
@media (max-width: 640px) {
  .page-hero { padding-bottom: 64px; }
  .plan { padding: 28px 22px 24px; border-radius: 16px; }
  .pricing-amount { font-size: 42px; margin-top: 18px; }
  .pricing-feature { font-size: 15px; padding: 12px 0; }
}
