:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #0f172a;
  --primary-strong: #020617;
  --success: #059669;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 22px 60px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.primary-btn,
.ghost-btn,
.full-width-btn,
.mobile-switch {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.ghost-btn,
.full-width-btn,
.mobile-switch {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.full-width-btn {
  width: 100%;
}

.primary-btn:hover,
.ghost-btn:hover,
.full-width-btn:hover,
.mobile-switch:hover {
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-weight: 700;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
.footer-brand {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.045em;
}

/* HERO */
.hero-section {
  padding: 56px 0 44px;
}

.pricing-hero {
  padding: 70px 0 44px;
}

.hero-shell {
  max-width: none;
}

.pricing-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.pricing-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.hero-shell h1 {
  max-width: 850px;
  margin: 18px 0 0;
  font-size: clamp(3.4rem, 4.8vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy h1 br,
.hero-shell h1 br,
.section-head h2 br {
  display: none !important;
}

.hero-text {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

/* HERO PAYMENT CARD */
.hero-payment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.14), transparent 34%), #fff;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.hero-payment-card h2 {
  margin: 18px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-price {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.premium-points {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.premium-points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.premium-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.micro-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* SECTIONS */
.section {
  padding: 78px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(3.7rem, 4.1vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 1050px;
}

.section-head p,
.compact-head p,
.single-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

/* PRICING CARDS */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-card,
.payment-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.improved-pricing-grid .pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-label.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.featured-pricing {
  background: var(--primary);
}

.featured-pricing h3,
.featured-pricing .price-line,
.featured-pricing li,
.featured-pricing p {
  color: #fff;
}

.featured-pricing li::before {
  background: #fff;
}

.pricing-card h3,
.payment-card h3 {
  margin: 18px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.price-line {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-desc {
  color: var(--muted);
  line-height: 1.65;
  min-height: 52px;
}

.plan-desc.light {
  color: rgba(255, 255, 255, 0.78);
}

.premium-card {
  transform: translateY(-10px);
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-6deg);
  pointer-events: none;
}

.best-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
}

.pricing-card ul,
.clean-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pricing-card li,
.clean-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.pricing-card li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

/* CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 0.75fr;
  gap: 24px;
  align-items: start;
}

.checkout-main,
.checkout-side {
  display: grid;
  gap: 18px;
}

.single-head {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.checkout-card {
  padding: 28px;
}

.checkout-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-alt);
  color: var(--muted);
}

.checkout-status strong,
.checkout-status span {
  color: var(--text);
}

.checkout-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.summary-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.summary-box strong {
  display: block;
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
}

.secure-message {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.secure-message p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.secure-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.checkout-btn {
  width: 100%;
  margin-top: 18px;
  min-height: 56px;
  font-size: 1rem;
}

.access-card {
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 38%), #fff;
}

.access-card h3,
.support-card h3 {
  margin-top: 0;
}

.muted-text,
.form-message,
.support-box p {
  color: var(--muted);
  line-height: 1.75;
}

.support-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-alt);
}

.form-message {
  margin-top: 14px;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.footer-text {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .pricing-hero-shell,
  .section-head,
  .pricing-grid,
  .checkout-layout,
  .checkout-summary-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .premium-card {
    transform: none;
  }

  .section-head h2 {
    font-size: clamp(3rem, 7vw, 4rem);
    max-width: 100%;
  }

  .hero-payment-card {
    max-width: 760px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .nav-actions .ghost-btn,
  .nav-actions .primary-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .pricing-hero {
    padding: 48px 0 28px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1,
  .hero-shell h1 {
    font-size: clamp(2.55rem, 11vw, 3.35rem);
    line-height: 1.08;
  }

  .section-head h2 {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    line-height: 1.12;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .primary-btn,
  .hero-cta-row .ghost-btn {
    width: 100%;
  }

  .hero-payment-card,
  .checkout-card,
  .pricing-card,
  .payment-card {
    padding: 22px;
  }

  .checkout-status {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}