/*
 * Pricing page. Loads after tokens.css + site.css.
 * Per-user, mix-and-match tiers, with a monthly/annual toggle (annual = 2
 * months free). The offer starts at EUR 1 for a 30-day trial, then the chosen
 * tier bills per user. Cards are allowed here: a pricing table is the one place
 * a bordered card earns its keep, since elevation communicates the tiers.
 */

.p-head { text-align: center; }
.p-head .inner { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.p-head h1 { font-size: var(--cc-fs-h1); }
.p-head .lead { max-width: 56ch; }

/* ─── Billing toggle (monthly / annual) ─────────────────────────────────── */
/* A single thumb slides between the two options instead of each button
   carrying its own background, so the switch feels like one object moving.
   JS sets --thumb-x / --thumb-w from the active button; with no JS the thumb
   stays under Monthly (the default) and the labels are still legible. */
.billing-toggle { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--cc-r-pill); background: var(--cc-surface-2); border: 1px solid var(--cc-border); margin-top: 8px; }
.billing-toggle .toggle-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--thumb-w, 86px); transform: translateX(var(--thumb-x, 4px));
  border-radius: var(--cc-r-pill); background: var(--cc-bg); box-shadow: var(--cc-shadow-sm);
  transition: transform var(--cc-dur-base) var(--cc-ease-out), width var(--cc-dur-base) var(--cc-ease-out);
  pointer-events: none;
}
.billing-toggle button {
  position: relative; z-index: 1;
  font-family: var(--cc-font-mono); font-size: var(--cc-fs-sm); font-weight: var(--cc-w-medium);
  padding: 9px 18px; min-height: 40px; border-radius: var(--cc-r-pill); color: var(--cc-ink-mute);
  transition: color var(--cc-dur-fast);
}
.billing-toggle button[aria-pressed="true"] { color: var(--cc-ink); }
.billing-toggle .save { color: var(--cc-accent); font-weight: var(--cc-w-semibold); }
/* The price count-up uses tabular figures so the width does not jitter mid-roll. */
.plan .price { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .billing-toggle .toggle-thumb { transition: none; } }

/* ─── Plan grid ─────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 44px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--cc-r-lg);
  background: var(--cc-surface); border: 1px solid var(--cc-border);
  transition: border-color var(--cc-dur-base), transform var(--cc-dur-base) var(--cc-ease-out), box-shadow var(--cc-dur-base);
  translate: 0 0;
}
@media (hover: hover) { .plan:hover { translate: 0 -3px; border-color: var(--cc-border-strong); box-shadow: var(--cc-shadow-md); } }
.plan.featured { border-color: var(--cc-accent-mid); box-shadow: var(--cc-glow-accent); }
.plan-badge { align-self: flex-start; font-family: var(--cc-font-mono); font-size: var(--cc-fs-label-code); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc-accent); background: var(--cc-accent-tint); padding: 4px 10px; border-radius: var(--cc-r-sm); }
.plan h3 { font-size: var(--cc-fs-h3); }
.plan .tagline { color: var(--cc-ink-mute); font-size: var(--cc-fs-sm); min-height: 2.6em; }

/* Price block: keep a fixed height so the three plans align across the row. */
.plan .price-row { display: flex; align-items: baseline; gap: 6px; min-height: 3rem; }
.plan .price { font-family: var(--cc-num); font-variant-numeric: var(--cc-numeric); font-size: clamp(2rem, 1.4rem + 1.8vw, 2.6rem); font-weight: var(--cc-w-bold); color: var(--cc-ink); letter-spacing: -0.02em; }
.plan .per { font-family: var(--cc-font-mono); font-size: var(--cc-fs-sm); color: var(--cc-ink-mute); }
.plan .price-sub { font-family: var(--cc-font-mono); font-size: var(--cc-fs-label-code); color: var(--cc-ink-faint); min-height: 1.2em; }

.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--cc-ink-soft); font-size: var(--cc-fs-sm); }
.plan li svg { width: 17px; height: 17px; color: var(--cc-accent); flex: 0 0 auto; margin-top: 2px; }
/* Pin the CTA to the bottom so the three buttons form a clean line. */
.plan .btn { margin-top: auto; }
/* Insight is included, not bought: a quiet line sits where the button would. */
.plan .plan-included { margin-top: auto; font-family: var(--cc-font-mono); font-size: var(--cc-fs-label-code); color: var(--cc-ink-mute); border-top: 1px solid var(--cc-border); padding-top: 14px; }
.plan .plan-note { font-family: var(--cc-font-mono); font-size: var(--cc-fs-label-code); color: var(--cc-ink-faint); text-align: center; }

/* ─── Mix-and-match + trial explainer ───────────────────────────────────── */
.p-explain { display: grid; gap: clamp(24px, 3vw, 44px); grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 820px) { .p-explain { grid-template-columns: repeat(3, 1fr); } }
.p-ex { display: flex; flex-direction: column; gap: 8px; }
.p-ex .n { font-family: var(--cc-font-mono); font-size: var(--cc-fs-label-code); letter-spacing: 0.1em; color: var(--cc-accent); font-weight: var(--cc-w-semibold); }
.p-ex h3 { font-size: 1.0625rem; }
.p-ex p { color: var(--cc-ink-soft); font-size: var(--cc-fs-sm); }

/* ─── Enterprise / larger rollout ───────────────────────────────────────── */
.p-enterprise { margin-top: 48px; padding: 28px; border-radius: var(--cc-r-lg); border: 1px solid var(--cc-border); background: var(--cc-surface); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.p-enterprise h3 { font-size: var(--cc-fs-h3); }
.p-enterprise p { color: var(--cc-ink-soft); font-size: var(--cc-fs-sm); max-width: 62ch; margin-top: 6px; }
.p-enterprise a { color: var(--cc-accent); }

.p-fine { margin-top: 40px; font-size: var(--cc-fs-sm); color: var(--cc-ink-mute); max-width: 80ch; }
.p-fine a { color: var(--cc-accent); }
