/* ============================================================================
   Token of Trust — pricing page-local styles
   ----------------------------------------------------------------------------
   Base tokens, reset, layout, typography, header/nav, footer, the shared
   button base (.btn) and generic chrome live in the shared theme
   (tot-navy.css, concept v1.1). This file holds ONLY pricing-unique
   components: the plan grid, tabbed panels, the tax card, the how-it-works
   steps, the enterprise band and the pricing FAQ.
   Consumes the shared token layer (do not re-declare :root); primary CTAs
   route through the AA-hardened --color-cta. Do not minify — one rule per
   line, keep the section headers.
   ========================================================================== */

/* Hero + heading override (centred pricing hero) ------------------- */
.hero { text-align: center; padding: 72px 0 0; }
h1 { margin: 16px auto; max-width: 24ch; }
h1 .acc {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 56ch; margin: 0 auto; }

/* Buttons (pricing CTA variants over the shared .btn base) --------- */
.btn-p { background: var(--color-cta); color: #fff; box-shadow: 0 7px 20px rgba(21, 122, 74, .28); }
.btn-p:hover { background: var(--color-cta-hover); }
.btn-s { background: #fff; color: var(--navy); border: 1.5px solid var(--line-cool); }
.btn-s:hover { border-color: var(--navy); }
.btn-tax, .btn-ent { background: var(--coral); color: #fff; }
.btn-tax:hover, .btn-ent:hover { background: #a5341f; }

/* Category tabs ---------------------------------------------------- */
.tabs {
  display: inline-flex; padding: 6px; margin-top: 40px; gap: 4px;
  flex-wrap: wrap; justify-content: center; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(16, 41, 75, .06);
}
.tab {
  border: 0; background: transparent; font-weight: 700; font-size: .9rem;
  padding: 11px 22px; min-height: var(--tap); cursor: pointer; font-family: inherit;
  color: var(--muted); border-radius: 999px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

/* Plan grid -------------------------------------------------------- */
.plans-section { padding-top: 40px; }
.panel[hidden] { display: none; }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}
.plans.two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.plan {
  padding: 36px; position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.popular {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow);
}
.pop-badge {
  position: absolute; top: -14px; left: 24px; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px;
  background: var(--coral); color: #fff; border-radius: 999px;
}
.plan h3 { font-size: 1.22rem; letter-spacing: -.01em; color: var(--navy); }
.plan .for {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin: 6px 0 14px; color: var(--teal-ink);
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.5rem; letter-spacing: -.03em; font-weight: 800; color: var(--navy); }
.price span { font-weight: 600; }
.per { font-size: .86rem; margin-top: 4px; color: var(--muted); }
.plan hr { border: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.plan li::before { content: "\2713"; font-weight: 800; flex-shrink: 0; color: var(--green); }
.plan .btn { width: 100%; text-align: center; }
.minitags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.minitags span {
  font-size: .72rem; font-weight: 700; padding: 4px 11px;
  background: #eaf5f2; color: var(--navy); border-radius: 999px;
}

/* Tax card --------------------------------------------------------- */
.tax-card {
  overflow: hidden; max-width: 920px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.tax-card .bar { height: 6px; background: var(--grad); }
.tax-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.tax-left { padding: 40px; }
.tax-left .for {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px; color: var(--coral);
}
.tax-left h3 { font-size: 1.65rem; letter-spacing: -.02em; margin-bottom: 10px; color: var(--navy); }
.tax-left > p { margin-bottom: 24px; color: var(--muted); }
.tax-left ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tax-left li { display: flex; gap: 10px; }
.tax-left li::before { content: "\2713"; font-weight: 800; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.tax-left li b { display: block; }
.tax-left li span { font-size: .87rem; color: var(--muted); }
.tax-right {
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; background: var(--navy); color: #dbe6f5;
}
.tax-right small {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #8fa5c4;
}
.tax-right .price { justify-content: center; margin: 8px 0 4px; }
.tax-right .price b { color: #fff; }
.tax-right .price span { color: #8fa5c4; }
.tax-right .per, .tax-right .alt { color: #8fa5c4; }
.tax-right .btn { margin-top: 24px; }
.tax-right .alt { font-size: .85rem; margin-top: 12px; }
.tax-right .alt a { color: #7fe3b8; font-weight: 700; }

/* How it works — steps --------------------------------------------- */
.alt-bg { background: #fff; border-block: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 40px; text-align: center;
}
.step { padding: 28px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.step .num {
  font-size: .74rem; font-weight: 800; letter-spacing: .14em;
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #eaf5f2; color: var(--teal-ink);
}
.step h3 { font-size: 1.02rem; margin: 8px 0 6px; color: var(--navy); }
.step p { font-size: .87rem; color: var(--muted); }

/* Enterprise band -------------------------------------------------- */
.ent-band {
  padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 26px; color: #fff;
}
.ent-band .kicker { color: #7fe3b8; }
.ent-band h2 { color: #fff; }
.ent-band p { max-width: 52ch; margin: 0 auto; color: #b8c8de; }
.ent-band .btn { margin-top: 24px; }
.ent-band .btn-ent { background: var(--color-cta); }
.ent-band .btn-ent:hover { background: var(--color-cta-hover); }

/* Pricing FAQ ------------------------------------------------------ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details {
  margin-bottom: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
}
.faq summary {
  padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 600;
  color: var(--teal-ink); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Nav active state + footer note (pricing-specific) ---------------- */
nav.primary a.active {
  color: var(--teal-ink); background: #eaf5f2; padding: 6px 16px;
  border-radius: 999px; font-weight: 700;
}
.foot-note { font-size: .88rem; margin-top: 12px; max-width: 34ch; color: var(--muted); }

/* Responsive ------------------------------------------------------ */
@media (max-width: 920px) {
  .plans, .plans.two { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .tax-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Dark theme — literal light surfaces + decorative tints */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    .btn-s { background: var(--card); color: var(--ink); }
    .tabs, .plan, .tax-card, .alt-bg, .faq details { background: var(--card); }
    .plan.popular { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; }
    .minitags span, .step .num, nav.primary a.active { background: rgba(43, 179, 166, .16); color: var(--teal-ink); }
    .plan h3, .price b, .tax-left h3, .step h3, .faq summary { color: var(--ink); }
  }
}
:root[data-theme="dark"] .btn-s { background: var(--card); color: var(--ink); }
:root[data-theme="dark"] .tabs,
:root[data-theme="dark"] .plan,
:root[data-theme="dark"] .tax-card,
:root[data-theme="dark"] .alt-bg,
:root[data-theme="dark"] .faq details { background: var(--card); }
:root[data-theme="dark"] .plan.popular { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; }
:root[data-theme="dark"] .minitags span,
:root[data-theme="dark"] .step .num,
:root[data-theme="dark"] nav.primary a.active { background: rgba(43, 179, 166, .16); color: var(--teal-ink); }
:root[data-theme="dark"] .plan h3,
:root[data-theme="dark"] .price b,
:root[data-theme="dark"] .tax-left h3,
:root[data-theme="dark"] .step h3,
:root[data-theme="dark"] .faq summary { color: var(--ink); }
