/* ==========================================================================
   pricing.css — Styles specific to the Pricing page.
   Global look (tokens, navbar, cards, footer) comes from style.css.
   ========================================================================== */

/* ---------- Active nav indicator ---------- */
.nav-links a[aria-current="page"] {
  color: var(--text);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.mobile-links a[aria-current="page"] { color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--text-mute); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.breadcrumb svg { color: var(--text-mute); }

/* ---------- Pricing hero ---------- */
.pricing-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
  text-align: center;
}
.pricing-hero .container { position: relative; z-index: 2; }
.pricing-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 20% 15%, color-mix(in srgb, var(--blue) 22%, transparent) 0%, transparent 55%),
    radial-gradient(60% 80% at 82% 25%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(80% 90% at 50% 110%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%);
  background-size: 180% 180%, 180% 180%, 160% 160%;
}
.drift-bg { animation: hero-gradient-drift 20s ease-in-out infinite alternate; }
@keyframes hero-gradient-drift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%; }
  to   { background-position: 20% 30%, 80% 20%, 50% 80%; }
}

/* Offset anchored scroll targets below the sticky navbar */
#plans { scroll-margin-top: 96px; }
.pricing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em;
  max-width: 16ch; margin-inline: auto;
}
.pricing-hero .lead {
  color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 640px; margin: 18px auto 0;
}

/* Trust badges */
.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 30px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: .88rem; font-weight: 500;
}
.trust-badge svg { color: var(--accent); flex: none; }

/* ---------- Plans mode heading ---------- */
.plans-mode-head { text-align: center; margin: 8px auto 30px; max-width: 620px; }
.plans-mode-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
.plans-mode-head p { color: var(--text-soft); margin-top: 8px; }

/* ---------- Comparison table ---------- */
.compare-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table caption { text-align: left; padding: 16px 20px 0; color: var(--text-mute); font-size: .84rem; }
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: center; font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  position: sticky; top: 0;
  background: var(--surface-solid); color: var(--text); font-weight: 700;
  font-size: .92rem;
}
.compare-table thead th.is-highlight { color: var(--accent); }
.compare-table tbody th {
  text-align: left; color: var(--text-soft); font-weight: 600; white-space: nowrap;
  background: var(--surface-2);
}
.compare-table td { color: var(--text-soft); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-year { background: var(--accent-soft); }
.compare-table .yes { color: var(--accent); }
.compare-table .muted { color: var(--text-mute); }
.compare-hint { text-align: center; color: var(--text-mute); font-size: .82rem; margin-top: 12px; }
@media (min-width: 860px) { .compare-hint { display: none; } }

/* ---------- Which plan / scenarios ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scenario-card {
  display: flex; flex-direction: column;
  padding: 26px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.scenario-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.scenario-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.scenario-pick { font-size: 1.24rem; font-weight: 800; color: var(--accent); margin: 8px 0 10px; }
.scenario-card p { color: var(--text-soft); font-size: .92rem; flex-grow: 1; }
.scenario-card a { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ---------- How it works / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step-card {
  position: relative; padding: 28px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 800; color: #ffffff;
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand);
  margin-bottom: 16px; box-shadow: var(--shadow-glow);
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step-card p { color: var(--text-soft); font-size: .92rem; }
/* Connecting line on desktop */
@media (min-width: 861px) {
  .steps::before {
    content: ""; position: absolute; top: 50px; left: 12%; right: 12%;
    height: 2px; background: linear-gradient(90deg, var(--accent-soft), var(--border-strong), var(--accent-soft));
    z-index: 0;
  }
  .step-card { z-index: 1; }
}

/* ---------- Billing info ---------- */
.billing-card {
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.billing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.billing-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.billing-grid p { color: var(--text-soft); font-size: .94rem; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(8px); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: transparent; border: none; cursor: pointer;
  color: var(--text); font-size: 1rem; font-weight: 600; text-align: left; font-family: inherit;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon { flex: none; color: var(--accent); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-soft); font-size: .95rem; }
.faq-a p { margin: 0; }

/* ---------- Final CTA reuse tweak ---------- */
.pricing-page .cta-buttons .btn { min-width: 180px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; gap: 22px; }
  .trust-badges { gap: 8px; }
  .trust-badge { font-size: .82rem; padding: 8px 13px; }
}
