:root {
  --scale-hero-title: clamp(3rem, 5.6vw, 4.8rem);
  --scale-page-title: clamp(2.85rem, 5.2vw, 4.25rem);
  --scale-admin-title: clamp(2.6rem, 4.4vw, 3.6rem);
  --scale-section-title: clamp(2.2rem, 3.2vw, 3.25rem);
  --scale-card-title: 1.125rem;
  --scale-feature-title: 1.5rem;
  --scale-form-title: clamp(2rem, 3vw, 2.7rem);
  --scale-stat-title: 2rem;
  --scale-section-y: 86px;
  --scale-section-y-compact: 72px;
  --scale-card-pad: 24px;
  --scale-panel-pad: 30px;
  --scale-card-radius: var(--radius, 8px);
}

.hero h1,
.hero-headline {
  max-width: 700px;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: var(--scale-hero-title) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  font-weight: 900;
}

.page-shell h1,
.flow-hero h1,
.contact-shell h1,
.policy-body h1 {
  max-width: 740px;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: var(--scale-page-title) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  font-weight: 900;
}

.admin-head h1 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: var(--scale-admin-title) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.section-title,
.cta-inner h2,
.cta-panel h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: var(--scale-section-title) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.form-head h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: var(--scale-form-title) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.tier-name,
.bundle-name {
  font-size: var(--scale-feature-title) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.service-card h3,
.quick-card strong,
.method h3,
.note-card h3,
.panel h2,
.panel h3,
.admin-card h2,
details.faq-item summary {
  font-size: var(--scale-card-title) !important;
  line-height: var(--line-tight, 1.25) !important;
  letter-spacing: 0 !important;
}

.bundle-price,
.tier-price,
.estimate-total,
.summary-total strong {
  font-size: var(--scale-stat-title) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.price-tile strong,
.price-tile.price-primary strong,
.proof-number {
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.hero-sub,
.section-sub,
.lead,
.intro-panel p {
  font-size: var(--type-lead, 1.0625rem) !important;
  line-height: var(--line-body, 1.65) !important;
}

.section,
.bundle-section,
.proof-section,
.cta-section {
  padding-top: var(--scale-section-y) !important;
  padding-bottom: var(--scale-section-y) !important;
}

.page-shell {
  padding-top: var(--scale-section-y-compact) !important;
  padding-bottom: var(--scale-section-y) !important;
}

.admin-shell {
  padding-top: var(--scale-section-y-compact) !important;
  padding-bottom: var(--scale-section-y-compact) !important;
}

.contact-shell {
  padding-top: 76px !important;
  padding-bottom: var(--scale-section-y) !important;
}

.service-card,
.pricing-card,
.bundle-card,
.quick-card,
.note-card,
.proof-card,
.panel,
.side-card,
.admin-card {
  border-radius: var(--scale-card-radius) !important;
  padding: var(--scale-card-pad) !important;
}

.hero-card,
.form-card,
.summary,
.builder,
.cta-panel,
.upload-zone,
.estimate-box {
  border-radius: var(--scale-card-radius) !important;
  padding: var(--scale-panel-pad) !important;
}

.journey-panel {
  border-radius: var(--scale-card-radius) !important;
  padding: 24px 18px !important;
}

.price-tile {
  border-radius: var(--scale-card-radius) !important;
  padding: 18px !important;
}

.method,
.metric,
.step-pill,
.file-item {
  border-radius: var(--scale-card-radius) !important;
}

.method,
.metric {
  padding: 14px !important;
}

.step-pill {
  padding: 12px !important;
}

.file-item {
  padding: 10px 12px !important;
}

.cta-inner {
  border-radius: var(--scale-card-radius) !important;
  padding: 48px 30px !important;
}

.btn,
.bundle-cta,
.card-footer .btn,
.estimate-actions .btn,
.form-actions .btn {
  min-height: 48px;
  padding: 13px 20px !important;
  border-radius: 999px !important;
  font-size: var(--type-ui, 0.875rem) !important;
  line-height: 1.2 !important;
}

.hero-actions,
.cta-actions,
.form-actions,
.btn-row {
  gap: 12px !important;
}

.services-grid,
.bundle-cards,
.bundle-grid,
.proof-grid,
.notes-grid {
  gap: 16px !important;
}

.bundle-teaser .bundle-price {
  font-size: 1.65rem !important;
}

.bundle-teaser {
  padding: 0 !important;
}

.bundle-teaser .bundle-cta {
  width: fit-content;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #ffb36d !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bundle-teaser:is(:hover, :focus-within) .bundle-cta {
  color: #fff8ec !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bundle-card,
.pricing-card {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.bundle-card:hover,
.bundle-cards:not(:has(.bundle-card:hover)) .bundle-card:focus-within,
.pricing-card:hover,
.bundle-grid:not(:has(.pricing-card:hover)) .pricing-card:focus-within {
  border-color: rgba(255, 122, 61, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(255,122,61,0.25), rgba(255,122,61,0.06) 38%, rgba(255,255,255,0.045)),
    #1a2021 !important;
  box-shadow: var(--glow) !important;
  transform: translateY(-4px);
}

.bundle-cards:has(.bundle-card:hover) .bundle-card.featured:not(:hover),
.bundle-cards:not(:has(.bundle-card:hover)):has(.bundle-card:focus-within) .bundle-card.featured:not(:focus-within),
.bundle-grid:has(.pricing-card:hover) .pricing-card.featured:not(:hover),
.bundle-grid:not(:has(.pricing-card:hover)):has(.pricing-card:focus-within) .pricing-card.featured:not(:focus-within) {
  border-color: var(--line) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    var(--panel) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.bundle-card:hover .bundle-price,
.bundle-cards:not(:has(.bundle-card:hover)) .bundle-card:focus-within .bundle-price,
.pricing-card:hover .tier-price,
.bundle-grid:not(:has(.pricing-card:hover)) .pricing-card:focus-within .tier-price {
  color: var(--orange) !important;
}

.bundle-cards:has(.bundle-card:hover) .bundle-card.featured:not(:hover) .bundle-price,
.bundle-cards:not(:has(.bundle-card:hover)):has(.bundle-card:focus-within) .bundle-card.featured:not(:focus-within) .bundle-price,
.bundle-grid:has(.pricing-card:hover) .pricing-card.featured:not(:hover) .tier-price,
.bundle-grid:not(:has(.pricing-card:hover)):has(.pricing-card:focus-within) .pricing-card.featured:not(:focus-within) .tier-price {
  color: #fff8ec !important;
}

.bundle-card:not(.bundle-teaser):hover .bundle-cta,
.bundle-cards:not(:has(.bundle-card:hover)) .bundle-card:not(.bundle-teaser):focus-within .bundle-cta,
.pricing-card:hover .card-footer .btn[data-package],
.bundle-grid:not(:has(.pricing-card:hover)) .pricing-card:focus-within .card-footer .btn[data-package] {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #d9521f, #ec7536) !important;
  box-shadow: 0 18px 42px rgba(255, 122, 61, 0.34) !important;
}

.bundle-cards:has(.bundle-card:hover) .bundle-card.featured:not(.bundle-teaser):not(:hover) .bundle-cta,
.bundle-cards:not(:has(.bundle-card:hover)):has(.bundle-card:focus-within) .bundle-card.featured:not(.bundle-teaser):not(:focus-within) .bundle-cta,
.bundle-grid:has(.pricing-card:hover) .pricing-card.featured:not(:hover) .card-footer .btn[data-package],
.bundle-grid:not(:has(.pricing-card:hover)):has(.pricing-card:focus-within) .pricing-card.featured:not(:focus-within) .card-footer .btn[data-package] {
  color: #fff6ea !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

.bundle-grid .pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--orange), var(--amber), transparent) !important;
  transition: opacity 0.25s ease;
}

.bundle-grid .pricing-card.featured::before,
.bundle-grid .pricing-card:hover::before,
.bundle-grid:not(:has(.pricing-card:hover)) .pricing-card:focus-within::before {
  opacity: 1;
}

.bundle-grid:has(.pricing-card:hover) .pricing-card.featured:not(:hover)::before,
.bundle-grid:not(:has(.pricing-card:hover)):has(.pricing-card:focus-within) .pricing-card.featured:not(:focus-within)::before {
  opacity: 0;
}

.hero-inner {
  gap: 80px;
}

.flow-hero {
  gap: 44px;
  margin-bottom: 30px;
}

footer,
.site-footer {
  padding: 48px 0 36px !important;
}

.footer-inner,
.footer-grid {
  gap: 48px !important;
  margin-bottom: 48px !important;
}

.footer-bottom {
  margin-top: 0 !important;
  padding-top: 28px !important;
}

@media (max-width: 1040px) {
  .hero-inner,
  .flow-hero,
  .contact-shell {
    grid-template-columns: 1fr !important;
  }

  .footer-inner,
  .footer-grid {
    gap: 32px !important;
  }
}

@media (max-width: 820px) {
  :root {
    --scale-section-y: 66px;
    --scale-section-y-compact: 54px;
    --scale-panel-pad: 24px;
    --scale-card-pad: 22px;
  }

  .hero {
    padding-top: 62px !important;
    padding-bottom: 66px !important;
  }

  .hero h1,
  .hero-headline {
    font-size: 2.65rem !important;
    line-height: 1.02 !important;
  }

  .page-shell h1,
  .flow-hero h1,
  .contact-shell h1,
  .policy-body h1,
  .admin-head h1 {
    font-size: clamp(2.48rem, 11vw, 3rem) !important;
    line-height: 1.02 !important;
  }

  .section-title,
  .cta-inner h2,
  .cta-panel h2 {
    font-size: 2.35rem !important;
    line-height: 1.08 !important;
  }

  .form-head h2 {
    font-size: 2rem !important;
  }

  .journey-panel {
    padding: 22px !important;
  }

  .footer-inner,
  .footer-grid {
    margin-bottom: 32px !important;
  }
}

@media (max-width: 640px) {
  :root {
    --scale-section-y: 58px;
    --scale-section-y-compact: 52px;
    --scale-panel-pad: 22px;
  }

  .hero {
    padding-top: 48px !important;
    padding-bottom: 58px !important;
  }

  .hero h1,
  .hero-headline {
    font-size: 2.65rem !important;
  }

  .hero-sub,
  .section-sub,
  .lead,
  .intro-panel p {
    font-size: 1rem !important;
  }

  .btn,
  .bundle-cta,
  .card-footer .btn,
  .estimate-actions .btn,
  .form-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .footer-inner,
  .footer-grid {
    gap: 28px !important;
  }
}
