/* pricing.css — page-specific styles for the Pricing page.
   Shared chrome (reset, layout, type base, buttons, nav, dropdown, footer, reveal)
   lives in tokens.css + base.css; only pricing-unique rules live here. */

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4rem);
}
/* Page-local overrides: the hero uses a bare <h1> + centred, constrained lead,
   and the eyebrow needs its own gap to the headline (global reset zeroes margins). */
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ink-soft); margin-top: 1.1rem; max-width: 38rem; margin-inline: auto; }

/* ---------- Billing toggle ---------- */
.toggle-wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 2.25rem;
}
.toggle-label { font-size: 0.9375rem; color: var(--ink-faint); }
.toggle-label.active { color: var(--ink); font-weight: 600; }
.toggle {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line); transition: background 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }
.badge-save {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-ink);
  font-size: 0.75rem; font-weight: 600; margin-left: 4px;
}

/* ---------- Founding banner ---------- */
.founding-banner {
  background: var(--accent-tint); border: 1px solid #EAB308;
  border-radius: var(--radius-sm); padding: 10px 18px;
  text-align: center; font-size: 0.9rem; color: var(--accent-ink);
  margin-top: 1.5rem; font-weight: 500;
}
.founding-banner strong { font-weight: 700; }

/* ---------- Tier cards ---------- */
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 3rem; align-items: start;
}
@media (max-width: 840px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 24px; background: var(--bg);
  position: relative; display: flex; flex-direction: column;
}
.tier.is-featured {
  border-color: var(--accent); background: var(--accent-tint);
  box-shadow: var(--shadow-soft);
}
.tier-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
  width: fit-content;
}
.tier-name { font-size: 1.125rem; font-weight: 500; }
.tier-tagline { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }

.tier-price-wrap { margin-top: 1.25rem; }
.tier-price {
  font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.tier-price small { font-size: 1rem; font-weight: 400; color: var(--ink-faint); }
.tier-annual { font-size: 0.8rem; color: var(--ink-faint); margin-top: 3px; }
.tier-annual.hidden { display: none; }
.tier-founding {
  margin-top: 6px; font-size: 0.8125rem; color: var(--accent-ink); font-weight: 500;
}
.tier-founding s { color: var(--ink-faint); font-weight: 400; }
.tier-seat { font-size: 0.8rem; color: var(--ink-faint); margin-top: 4px; }

.divider { border: none; border-top: 1px solid var(--line); margin-block: 18px; }

.tick-list { list-style: none; flex: 1; }
.tick-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.4;
}
.tick-list li::before {
  content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7-7' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

.tier-cta { margin-top: 20px; }

/* ---------- Card / table buttons (page-specific full-width block treatment) ----------
   base.css .btn is an inline-flex pill used by the shared nav/footer; the pricing
   cards + comparison table want full-width block buttons with a 3-way hierarchy
   (ghost / gold-accent / dark-primary). Scoped to the page's own containers so the
   shared nav "Start free" / "Log in" keep base.css's canonical styling. */
.tier-cta .btn,
.compare-table .btn {
  display: block; width: 100%; text-align: center; padding: 13px 20px;
  border-radius: 0.5rem; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; transition: background 0.15s, color 0.15s;
  border: 1.5px solid transparent;
}
.tier-cta .btn-primary,
.compare-table .btn-primary { background: var(--ink); color: white; }
.tier-cta .btn-primary:hover,
.compare-table .btn-primary:hover { background: #2a2a2a; }
.tier-cta .btn-ghost,
.compare-table .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tier-cta .btn-ghost:hover,
.compare-table .btn-ghost:hover { border-color: #bbb; }
/* .btn-accent is pricing-only (not in base.css, unused by the shared partials) so it
   is safe unscoped — it colours the "most popular" Starter CTA and the final CTA. */
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }

/* ---------- Comparison table ---------- */
.compare-wrap { padding-block: clamp(3rem, 7vw, 5.5rem); }
.compare-wrap h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 2rem; text-align: center; }

.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.compare-table thead th {
  padding: 12px 16px; font-size: 0.8125rem; font-weight: 600;
  text-align: left; vertical-align: bottom;
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 64px; background: var(--bg); z-index: 10;
}
.compare-table thead th:first-child { color: var(--ink-faint); width: 38%; }
.compare-table thead th.th-featured { background: var(--accent-tint); border-bottom-color: var(--accent); }
.compare-table thead .tier-head-price { font-size: 1.125rem; font-weight: 500; margin-top: 2px; }
.compare-table thead .tier-head-note { font-size: 0.75rem; color: var(--ink-faint); font-weight: 400; margin-top: 1px; }

.compare-table tbody tr td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table tbody tr:hover td { background: var(--surface); }
.compare-table tbody td:first-child { color: var(--ink-soft); }
.compare-table tbody td.td-featured { background: rgba(254,249,195,0.35); }
.compare-table tbody tr:hover td.td-featured { background: rgba(254,249,195,0.6); }

.cat-row td {
  background: var(--surface) !important;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-block: 8px;
}

.chk { display: inline-flex; align-items: center; justify-content: center; }
.chk-yes::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7-7' stroke='%2322c55e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.chk-no { color: var(--line); font-size: 1.1rem; font-weight: 300; }
.chk-val { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-wrap { background: var(--surface); padding-block: clamp(3rem, 7vw, 5rem); }
.faq-wrap h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 2rem; text-align: center; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.faq-item { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.faq-q { font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.faq-a { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Footer CTA ---------- */
.final-cta {
  text-align: center; padding-block: clamp(4rem, 10vw, 7rem);
}
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.025em; }
.final-cta p { margin-top: 1rem; font-size: 1.0625rem; color: var(--ink-soft); }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 2rem; flex-wrap: wrap; }
.btn-lg { padding: 15px 32px; font-size: 1.0625rem; width: auto; }
/* Page-local "Book a demo" link treatment (scoped so the shared nav "Log in" keeps base.css). */
.cta-row .btn-link { color: var(--accent-ink); font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
