/* Car Accident Clinics - pricing page styles
   Builds on css/main.css tokens. No em dashes. */

/* ============================== PAGE HERO ============================== */
.pricing-hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: var(--paper);
  overflow: hidden;
}
.pricing-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pricing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.pricing-glow-a {
  width: 520px; height: 520px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(42, 140, 119, 0.32), transparent 70%);
}
.pricing-glow-b {
  width: 420px; height: 420px;
  bottom: -260px; left: -140px;
  background: radial-gradient(circle, rgba(217, 92, 54, 0.22), transparent 70%);
}
.pricing-hero .container { position: relative; }

.breadcrumb { margin-bottom: var(--space-5); }
.breadcrumb ol { list-style: none; display: flex; gap: 10px; align-items: center; }
.breadcrumb li {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--pine-300); }
.breadcrumb a { color: var(--pine-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--persimmon-deep); }

.pricing-title {
  font-size: var(--t-h1);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  color: var(--pine-900);
  max-width: 20ch;
  text-wrap: balance;
}
.pricing-lede {
  margin-top: var(--gap-heading);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 52ch;
}
.pricing-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.pricing-facts li {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-700);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

/* ============================== TABS + TIERS ============================== */
.tiers {
  padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
  background: var(--paper);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-7);
}
.tab {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--pine-700);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tab:hover { color: var(--pine-900); background: rgba(11, 32, 28, 0.05); }
.tab.is-active {
  background: var(--cream);
  color: var(--pine-900);
  box-shadow: 0 1px 2px rgba(11, 32, 28, 0.08), 0 6px 18px rgba(11, 32, 28, 0.08);
}
.tab:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 2px; }

.tab-panel[hidden] { display: none; }
.panel-lede {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: var(--space-6);
}
.panel-note {
  margin-top: var(--space-5);
  font-size: var(--t-small);
  color: var(--muted);
  max-width: 70ch;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tier-card-featured {
  border-color: var(--persimmon);
  box-shadow: 0 1px 2px rgba(122, 42, 18, 0.08), 0 18px 44px rgba(217, 92, 54, 0.16);
}
.tier-flag {
  position: absolute;
  top: -13px;
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--persimmon);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.tier-top { display: grid; gap: 8px; }
.tier-name {
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--pine-900);
}
.tier-for {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--muted);
  min-height: 3em;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.tier-amount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  color: var(--pine-900);
}
.tier-from {
  font-size: 0.5em;
  font-weight: 520;
  color: var(--muted);
  letter-spacing: 0;
  margin-right: 2px;
}
.tier-period { font-size: var(--t-small); color: var(--muted); }
.tier-list {
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}
.tier-list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--t-body-sm);
  line-height: 1.55;
  color: var(--muted);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.tier-note { font-size: var(--t-small); color: var(--teal); font-weight: 600; }

/* ============================== INCLUDED ============================== */
.included {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.included-cell {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  gap: 10px;
  align-content: start;
}
.included-cell h3 {
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  color: var(--pine-900);
}
.included-cell p { font-size: var(--t-body-sm); color: var(--muted); line-height: 1.6; }

/* ============================== FAQ ============================== */
.faq {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--paper);
}
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--pine-300); box-shadow: var(--shadow-soft); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--t-body);
  color: var(--pine-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--persimmon);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: var(--space-3);
  font-size: var(--t-body-sm);
  line-height: 1.65;
  color: var(--muted);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-inner { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 760px) {
  .tier-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .tabs {
    width: 100%;
    border-radius: var(--radius-md);
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tab { white-space: nowrap; }
  .pricing-title { max-width: none; }
}
