/* ==========================================================================
   OrgGuard Marketing Site — Reusable Components
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal);
  text-align: center;
  line-height: 1;
}

.btn--primary {
  background-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(45, 122, 71, 0.25);
}

.btn--primary:hover {
  background-color: var(--brand-700);
}

.btn--secondary {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.btn--secondary:hover {
  background-color: var(--brand-100);
}

.btn--white {
  background-color: #fff;
  color: var(--brand-900);
}

.btn--white:hover {
  background-color: var(--brand-50);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Disabled state for placeholder CTAs (pre-launch buttons that aren't yet
 * wired to a destination, e.g. "Install Free from AppExchange" before the
 * listing publishes). Use on a <span class="... is-disabled"> with
 * aria-disabled="true" so no keyboard activation path is exposed. Works on
 * any button-like element: .btn, .pricing-card__cta-*, etc. */
.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* When .is-disabled is on a .btn (hero / closing CTAs), preserve the inline
 * flex layout that lets text and an optional .btn__badge sit on the same
 * line. The .btn already supplies its own padding and font-size. */
.btn.is-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Inline "Coming soon" tag rendered inside a disabled .btn (hero/closing
 * CTAs that don't have a card ribbon to carry the signal). Pricing-card
 * disabled CTAs rely on the .pricing-card__soon-badge ribbon at the top of
 * the card instead, so they don't need this inline badge. */
.btn__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* On white-button variants the badge sits against a white surface, so the
 * dark-on-white treatment from the base rule is correct; the only addition
 * is slightly more background-opacity so the badge boundary still reads at
 * the parent's 0.55 disabled opacity. */
.btn--white .btn__badge {
  background: rgba(0, 0, 0, 0.22);
}

/* Demoted text-link CTA — used for secondary actions that follow a primary
 * button (e.g., "Or apply for beta" next to "Install Free from AppExchange").
 * Inherits color from its container so it reads on both light and dark
 * backgrounds. */
.btn--text-link {
  display: inline-block;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.btn--text-link:hover {
  opacity: 1;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--block {
  display: block;
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 50;
  transition: box-shadow var(--transition-normal);
}

.site-header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 1.25rem 2.5rem;
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__logo-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.site-header__nav a:hover {
  color: var(--brand-600);
}

.site-header__cta {
  display: none;
}

/* Override .btn--sm padding for the header CTA — give it more breathing room */
.site-header__cta.btn--sm {
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
}

/* Mobile hamburger */
.site-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gray-700);
  border-radius: 1px;
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal);
}

.site-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
  z-index: 49;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.mobile-menu__links a:hover {
  color: var(--brand-600);
}

.mobile-menu__cta {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .site-header__hamburger {
    display: none;
  }
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards ---------- */
.card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--brand-50);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Pricing Card ---------- */
.pricing-card {
  border-radius: 1rem;
  padding: 2rem;
  border: 2px solid var(--gray-200);
  transition: box-shadow var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-card--highlighted {
  border-color: var(--brand-600);
  box-shadow: 0 20px 40px -10px rgba(45, 122, 71, 0.1);
}

.pricing-card__badge-top {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background-color: var(--brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
}

.pricing-card__name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem; /* keep card header height consistent across tiers */
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
  white-space: nowrap;
}

/* Coming Soon — same top-center pill placement as the Limited Time Offer badge */
.pricing-card__soon-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--amber-700);
  background-color: var(--amber-100);
  border: 1px solid var(--amber-500);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 1;
}

.pricing-card__description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.pricing-card__price {
  margin-bottom: 0.5rem;
}

.pricing-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-900);
}

/* Enterprise card uses a tagline instead of a numeric price */
.pricing-card__amount--contact {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  display: block;
  line-height: 1.2;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pricing-card__trial {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.pricing-card__features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.pricing-card__feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Visible "planned / not yet available" qualifier for Pro+ / Max cards.
 * The "Coming Soon" name-row badge alone reads as ambiguous, so this spells
 * out that the listed features are not purchasable in OrgGuard Pro 1.0. */
.pricing-card__planned-note {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--gray-600);
}

.pricing-card__planned-note a {
  color: var(--brand-600);
  text-decoration: underline;
}

/* Flex (rather than block) so the text sits vertically centered when the
 * subgrid row track stretches the button taller than its natural content
 * height. Without this, text top-aligned within a stretched button shows
 * visible whitespace below the label. */
.pricing-card__cta-primary,
.pricing-card__cta-secondary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 2.75rem;
}

.pricing-card__cta-primary {
  background-color: var(--brand-600);
  color: #fff;
}

.pricing-card__cta-primary:hover {
  background-color: var(--brand-700);
}

.pricing-card__cta-secondary {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.pricing-card__cta-secondary:hover {
  background-color: var(--brand-100);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 1.5rem;
}

.site-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.site-footer__brand-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* The "Aetrum LLC" link in this sentence is an inline prose link, but it lives
   in the footer, which is correctly outside <main>, so the `main p a` prose
   rule near the end of this file cannot reach it. Without this it inherits
   gray-500 from the paragraph and renders pixel-identical to the text around
   it, on every page of the site. brand-600 on the footer's gray-50 is 5.04:1,
   which clears AA. */
.site-footer__brand-text a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__brand-text a:hover {
  color: var(--brand-700);
}

.site-footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: 0.75rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: var(--brand-600);
}

.site-footer__bottom {
  max-width: var(--container-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-400);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Form Styles ---------- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background-color: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(45, 122, 71, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--red-500);
}

.form-group .form-error {
  display: none;
  font-size: 0.75rem;
  color: var(--red-600);
  margin-top: 0.25rem;
}

.form-group input.is-invalid ~ .form-error,
.form-group select.is-invalid ~ .form-error,
.form-group textarea.is-invalid ~ .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem;
  background-color: var(--success-50);
  border: 1px solid var(--success-600);
  border-radius: 0.5rem;
  color: var(--success-900);
  font-size: 0.875rem;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-error-banner {
  display: none;
  padding: 1rem;
  background-color: var(--red-50);
  border: 1px solid var(--red-500);
  border-radius: 0.5rem;
  color: var(--red-900);
  font-size: 0.875rem;
  text-align: center;
}

.form-error-banner.is-visible {
  display: block;
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   Page Hero (shared across non-home pages)
   ========================================================================== */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
  font-size: 2.25rem;
}

.page-hero p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Publication date on the legal pages, sits under the hero subtitle.
   Scoped with the parent because `.page-hero p` above is (0,1,1); a bare
   `.page-hero__updated` is (0,1,0) and would lose to it. */
/* gray-600, not gray-500: on the gray-50 hero background gray-500 computes to
   4.63:1, which clears AA by 0.13. gray-600 is 7.23:1 and is what `.page-hero
   p` above already uses. The smaller size alone marks this as subordinate. */
.page-hero .page-hero__updated {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 9rem;
    padding-bottom: 5rem;
  }

  .page-hero h1 {
    font-size: 3rem;
  }
}

/* ==========================================================================
   Annual Savings Banner
   ========================================================================== */
.savings-banner {
  background-color: var(--brand-50);
  border-bottom: 1px solid var(--brand-100);
  padding: 0.875rem 1.5rem;
  text-align: center;
  position: relative;
}

.savings-banner__text {
  font-size: 0.9375rem;
  color: var(--brand-700);
  font-weight: 500;
}

.savings-banner__text strong {
  color: var(--brand-900);
  font-weight: 700;
}

.savings-banner__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--brand-700);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.savings-banner__close:hover {
  background-color: var(--brand-100);
}

.savings-banner.is-dismissed {
  display: none;
}

/* ==========================================================================
   Billing Toggle (Monthly / Annual)
   ========================================================================== */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 3rem;
  padding: 0.375rem;
  background-color: var(--gray-100);
  border-radius: 9999px;
  position: relative;
}

.billing-toggle__wrap {
  text-align: center;
}

.billing-toggle__option {
  background: none;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 9999px;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

.billing-toggle__option.is-active {
  background-color: #fff;
  color: var(--brand-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.billing-toggle__hint {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--success-600);
  background-color: var(--success-50);
  border: 1px solid var(--success-100);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Pricing Toggle Fade Transitions
   ========================================================================== */
.pricing-card__amount,
.pricing-card__period,
.pricing-card__sub,
.pricing-card__note {
  transition: opacity var(--transition-normal);
}

.pricing-card.is-fading .pricing-card__amount,
.pricing-card.is-fading .pricing-card__period,
.pricing-card.is-fading .pricing-card__sub,
.pricing-card.is-fading .pricing-card__note {
  opacity: 0;
}

.pricing-card__sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--gray-500);
  min-height: 1.2em;
}

.pricing-card__note {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gray-400);
  min-height: 1.2em; /* keeps row height consistent when empty */
}

/* ==========================================================================
   Highlight Badges (annual discount, Limited Time Offer)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--two-months-free {
  color: var(--success-900);
  background-color: var(--success-100);
  border: 1px solid var(--success-600);
  margin-top: 0.5rem;
}

.badge--limited-time {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

/* ==========================================================================
   Feature Comparison Table
   ========================================================================== */
.feature-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 4rem 0 0;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  background-color: #fff;
}

/*
  On wider screens the table fits inside the page container, so we drop the
  scroll wrapper and let `position: sticky` on the thead anchor against the
  page viewport instead of being trapped inside an overflow container.
*/
@media (min-width: 1024px) {
  .feature-table-wrap {
    overflow: visible;
  }
}

.feature-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.feature-table thead th {
  position: sticky;
  /* Stick to the absolute top of the viewport (NOT below the site nav).
   * z-index 60 sits above the fixed site-header (z-index 50) so the table
   * header is fully visible — without this it slid under the nav at top: 0
   * and was effectively hidden behind it. */
  top: 0;
  background-color: var(--gray-50);
  font-weight: 700;
  color: var(--brand-900);
  text-align: center;
  padding: 1rem;
  border-bottom: 2px solid var(--gray-200);
  /* Soft shadow only when stuck — masks the rounded wrapper border seam */
  box-shadow: 0 1px 0 var(--gray-200);
  z-index: 60;
}

.feature-table thead th:first-child {
  text-align: left;
}

.feature-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  color: var(--gray-700);
  vertical-align: middle;
}

.feature-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--gray-900);
}

.feature-table tbody tr:last-child td {
  border-bottom: none;
}

.feature-table tbody tr:nth-child(even) {
  background-color: var(--gray-50);
}

.feature-table__check {
  color: var(--success-600);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Marks a capability that is not included in a tier.
   The legacy __dash alias is retained ONLY for
   /pricing/preview-2026q2-mqx7n4/, which is held byte-for-byte unchanged.
   Delete the alias when that preview page is retired. */
.feature-table__none,
.feature-table__dash {
  color: var(--gray-300);
}

.feature-table__group td {
  background-color: var(--brand-50) !important;
  font-weight: 700;
  color: var(--brand-900) !important;
  text-align: left !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.625rem 1rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq {
  max-width: 48rem;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-600);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   Toast / Trust Signals
   ========================================================================== */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-list li::before {
  content: "✓";
  color: var(--success-600);
  font-weight: 700;
}

@media (min-width: 640px) {
  .trust-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
  }
}

/* ==========================================================================
   Active nav link state
   ========================================================================== */
.site-header__nav a[aria-current="page"],
.mobile-menu__links a[aria-current="page"] {
  color: var(--brand-600);
  font-weight: 600;
}

/* ==========================================================================
   CTA Section (shared across pages)
   ========================================================================== */
.cta-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--brand-900);
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--brand-200);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-section__actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }

  .cta-section__actions .btn {
    width: auto;
  }
}

/* Privacy notice under form submit buttons. */
.form-privacy-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gray-500);
  text-align: center;
}

.form-privacy-note a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Inline prose links
   ==========================================================================
   reset.css sets `a { color: inherit; text-decoration: none }`. Every
   component with links overrides that, but 25 inline links inside body copy
   across 11 pages did not, so they rendered identical to the text around
   them: /terms/ pointing at /privacy/, both support mailto links, the trust
   and roadmap cross-references. Unfindable except by hovering.

   The underline is required, not decorative. Measured against the body text
   color (gray-700 #374151), no green in the palette reaches the 3.0:1 that
   WCAG 1.4.1 demands of a color-only distinction:

     brand-600  1.96:1     brand-700  1.34:1     brand-800  1.08:1

   So color alone cannot carry this and the palette is fixed. Underline plus
   color it is. brand-600 is 5.27:1 on white, clearing AA for the text
   itself, and matches the existing .aetrum-block and .form-privacy-note
   convention.

   `:not([class])` is the whole targeting mechanism: every button, card, nav
   and footer link carries a class, and these 25 do not. Add a class to a
   prose link and it opts out. */
main p a:not([class]),
main li a:not([class]) {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main p a:not([class]):hover,
main li a:not([class]):hover {
  color: var(--brand-700);
}
