:root {
  --site-topbar-mobile-radius: 28px;
}

.topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.topbar__toggle:hover {
  background: rgba(255,255,255,.06);
}

.topbar__toggle:focus-visible {
  outline: 2px solid rgba(116,240,212,.8);
  outline-offset: 2px;
}

.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .shell {
    width: min(1400px, calc(100% - 24px)) !important;
  }

  .section {
    padding: 80px 0 !important;
  }

  .hero,
  .section.hero {
    padding: 56px 0 24px !important;
    min-height: auto !important;
  }

  h1 {
    font-size: clamp(2.75rem, 11vw, 4.4rem) !important;
    line-height: .95 !important;
    letter-spacing: -.05em !important;
  }

  h2 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: .98 !important;
  }

  p,
  li,
  .lede {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .hero__cta,
  .final-cta__actions,
  .cta-card__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero__cta .button,
  .final-cta__actions .button,
  .cta-card__actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1400px, calc(100% - 20px)) !important;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "actions actions" !important;
    align-items: center !important;
    padding: 14px !important;
    gap: 12px !important;
    border-radius: var(--site-topbar-mobile-radius) !important;
  }

  .brand {
    grid-area: brand;
    min-width: 0 !important;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar__toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
  }

  .topbar > .topbar__nav,
  .topbar > .topbar__actions {
    display: none !important;
    width: 100%;
    min-width: 0 !important;
  }

  .topbar > .topbar__nav {
    grid-area: nav;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 20px;
    overflow: visible !important;
  }

  .topbar > .topbar__nav a {
    width: 100%;
    padding: 12px 14px !important;
    text-align: left;
    font-size: .95rem !important;
  }

  .topbar > .topbar__actions {
    grid-area: actions;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .topbar > .topbar__actions .button {
    width: 100%;
  }

  .topbar.is-open > .topbar__nav {
    display: flex !important;
  }

  .topbar.is-open > .topbar__actions {
    display: grid !important;
  }

  .section {
    padding: 64px 0 !important;
  }

  .hero,
  .section.hero {
    padding: 44px 0 20px !important;
  }

  .card,
  .faq-item,
  .related-card,
  .compare-card,
  .hero-card,
  .lane-card,
  .store-card,
  .cta-card,
  .benefit-card,
  .step,
  .tier,
  .price-card,
  .proof-card,
  .hero-proof__card {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  .hero-card,
  .hero-grid,
  .compare-grid,
  .card-grid,
  .related-grid,
  .preset-grid,
  .pricing-row,
  .steps,
  .tier-row,
  .benefit-grid,
  .hero-proof,
  .store-meta {
    gap: 14px !important;
  }

  .showcase__frame {
    padding: 16px !important;
    border-radius: 24px !important;
  }

  .showcase__frame img {
    border-radius: 18px !important;
  }

  .stat-strip,
  .store-row,
  .final-cta__steps,
  .legal-row,
  .footer-links {
    gap: 12px !important;
  }

  .table-wrap {
    border-radius: 24px !important;
  }
}
