@font-face {
  font-family: 'Inter';
  src: url('../../quipu/Tipografia/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../../quipu/Tipografia/Nohemi/Web-TT/Nohemi-Regular.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../../quipu/Tipografia/Nohemi/Web-TT/Nohemi-Medium.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../../quipu/Tipografia/Nohemi/Web-TT/Nohemi-SemiBold.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 600 700;
}

:root {
  --bg: #f5faf7;
  --surface: #ffffff;
  --text: #20212b;
  --muted: #596472;
  --primary: #009f7a;
  --primary-dark: #007c60;
  --success: #009f7a;
  --border: #d7e7df;
  --brand-ink: #34343f;
  --brand-wash: #eefaf5;
  --brand-soft: #dff3eb;
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Nohemi', 'Inter', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(18, 60, 48, 0.08);
  --radius: 14px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.site-brand,
.nav a,
.nav-cta-btn,
.btn,
.eyebrow,
.hero-kicker,
.tool-icon,
.stat-label,
.stat-value {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

.wrapper {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

body[data-route="budget_generator"] .wrapper {
  max-width: 1280px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(248, 252, 249, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(196, 222, 211, 0.84);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 159, 122, 0.12), rgba(0, 159, 122, 0));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(192, 222, 209, 0.95);
  box-shadow: 0 14px 32px rgba(0, 159, 122, 0.13);
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}

.site-header .wrapper {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.site-header-bar {
  min-height: 96px;
  position: relative;
  transition: min-height 0.25s ease;
}

.site-header.is-scrolled .site-header-bar {
  min-height: 80px;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}

.mobile-primary-cta {
  display: none;
}

.mobile-cta-row,
.mobile-secondary-cta {
  display: none;
}

.logo {
  display: block;
  height: 60px;
  transition: filter 0.25s ease, transform 0.25s ease;
  width: auto;
}

.site-brand:hover .logo {
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.nav-shell {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  width: min(100%, 980px);
  margin-left: auto;
  transition: gap 0.25s ease;
}

.nav-main-group {
  grid-column: 1;
  justify-self: end;
  min-width: 0;
}

.nav-right-group {
  grid-column: 2;
  justify-self: end;
  min-width: 0;
}

.nav {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 159, 122, 0.14);
  border-radius: 999px;
  gap: 4px;
  min-width: max-content;
  justify-self: center;
  overflow: hidden;
  padding: 6px;
  position: relative;
  isolation: isolate;
  box-shadow: 0 8px 18px rgba(0, 159, 122, 0.08);
}

.nav-cta-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.nav-backdrop {
  display: none;
}

.nav-indicator {
  background: linear-gradient(180deg, #ffffff, #eefaf5);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0, 159, 122, 0.15);
  height: calc(100% - 12px);
  left: 6px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 6px;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  width: 64px;
}

.nav.has-indicator .nav-indicator {
  opacity: 1;
}

.nav a {
  color: var(--brand-ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 16px;
  position: relative;
  transition: color 0.24s ease, transform 0.24s ease;
  z-index: 1;
}

.nav a:focus-visible,
.nav-cta-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(0, 159, 122, 0.3);
  outline-offset: 2px;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0.8;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: none;
  transform: translateY(-1px) scale(1.01);
  color: var(--primary-dark);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-cta-btn {
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition: box-shadow 0.24s ease, filter 0.24s ease, transform 0.24s ease;
  white-space: nowrap;
  will-change: transform;
}

.nav-cta-icon {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  height: 22px;
  object-fit: contain;
  padding: 3px;
  width: 22px;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus-visible {
  color: #ffffff;
  filter: saturate(1.02);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-billin-btn {
  background: linear-gradient(135deg, #0e76ff 0%, #0b5fd0 100%);
  box-shadow: 0 10px 22px rgba(14, 118, 255, 0.24);
}

.nav-billin-btn:hover,
.nav-billin-btn:focus-visible {
  box-shadow: 0 16px 28px rgba(14, 118, 255, 0.35);
}

.nav-quipu-btn {
  background: linear-gradient(135deg, #17b489 0%, #0f8b6a 100%);
  box-shadow: 0 10px 22px rgba(16, 163, 127, 0.24);
}

.nav-quipu-btn:hover,
.nav-quipu-btn:focus-visible {
  box-shadow: 0 16px 28px rgba(16, 163, 127, 0.34);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 159, 122, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #effaf5);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(0, 159, 122, 0.24);
  box-shadow: 0 10px 24px rgba(0, 159, 122, 0.08);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.site-header.is-scrolled .logo {
  transform: translateY(-1px) scale(0.97);
}

.site-header.is-ready .site-brand,
.site-header.is-ready .nav,
.site-header.is-ready .nav-cta-group,
.site-header.is-ready .nav-toggle {
  animation: headerFadeIn 0.55s ease both;
}

.site-header.is-ready .nav {
  animation-delay: 0.08s;
}

.site-header.is-ready .nav-cta-group {
  animation-delay: 0.16s;
}

@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 42px 0 20px;
}

.hero-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.hero h1 {
  margin-top: 0;
  font-size: 36px;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.home-topbar {
  padding: 22px 0 8px;
}

.home-topbar-inner {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #d7e5f2;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.home-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-quick-nav a {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-ink);
  font-weight: 700;
  padding: 8px 14px;
}

.home-quick-nav a:hover {
  background: var(--brand-wash);
  text-decoration: none;
}

.home-top-actions {
  display: flex;
  gap: 10px;
}

.home-hero {
  padding: 34px 0 18px;
  position: relative;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: linear-gradient(180deg, rgba(0, 159, 122, 0.11), rgba(0, 159, 122, 0));
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.02);
  }
}

@keyframes homeHeroSweep {
  0%,
  38% {
    transform: translateX(-120%);
  }
  55% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes homeBorderPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(0.995);
  }
}

@keyframes homePanelFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes homePanelScan {
  0%,
  48% {
    transform: translateX(-100%);
  }
  68% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes homeTileLift {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 159, 122, 0);
    transform: translateY(0);
  }
  42% {
    box-shadow: 0 10px 24px rgba(0, 159, 122, 0.1);
    transform: translateY(-3px);
  }
}

@keyframes homeCtaSheen {
  0%,
  44% {
    transform: translateX(-120%);
  }
  62% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes homeCardRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-hero-card {
  background: linear-gradient(150deg, #ffffff, var(--brand-wash));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 36px;
  position: relative;
  z-index: 1;
}

.home-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.78) 46%, transparent 58%),
    linear-gradient(150deg, rgba(0, 159, 122, 0.08), transparent 48%);
  pointer-events: none;
  transform: translateX(-120%);
  animation: homeHeroSweep 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  z-index: 0;
}

.home-hero-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(0, 159, 122, 0.18);
  border-radius: 17px;
  pointer-events: none;
  animation: homeBorderPulse 5.6s ease-in-out infinite;
  z-index: 0;
}

.home-hero-card > * {
  position: relative;
  z-index: 1;
}

.home-hero-card h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.14;
}

.home-hero-card p {
  max-width: 820px;
  line-height: 1.62;
}

.home-hero-layout {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy .eyebrow {
  margin-bottom: 12px;
}

.home-hero-visual {
  min-height: 330px;
  position: relative;
}

.brand-product-frame {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(18, 60, 48, 0.14);
  margin: 0;
  overflow: hidden;
  padding: 18px;
}

.brand-product-logo {
  display: block;
  height: 36px;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.brand-product-shot {
  background: var(--brand-wash);
  border: 1px solid #dceee6;
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.brand-product-frame figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.home-info-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(18, 60, 48, 0.14);
  display: grid;
  gap: 16px;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  position: relative;
  transform: translateZ(0);
  animation: homePanelFloat 7s ease-in-out infinite;
}

.home-info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 159, 122, 0.09), transparent);
  pointer-events: none;
  transform: translateX(-100%);
  animation: homePanelScan 6.5s ease-in-out infinite;
  z-index: 0;
}

.home-info-panel > * {
  position: relative;
  z-index: 1;
}

.home-info-panel-head {
  align-items: center;
  border-bottom: 3px solid var(--primary);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.home-info-panel-head span,
.home-info-panel-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.home-info-panel-head strong {
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 22px;
}

.home-info-panel-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-info-panel-grid div {
  background: var(--brand-wash);
  border: 1px solid #cde9df;
  border-radius: 12px;
  min-height: 94px;
  padding: 14px;
  transform: translateY(0);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.home-info-panel-grid div:nth-child(1) {
  animation: homeTileLift 5.8s ease-in-out infinite;
}

.home-info-panel-grid div:nth-child(2) {
  animation: homeTileLift 5.8s ease-in-out 0.7s infinite;
}

.home-info-panel-grid div:nth-child(3) {
  animation: homeTileLift 5.8s ease-in-out 1.4s infinite;
}

.home-info-panel-grid div:nth-child(4) {
  animation: homeTileLift 5.8s ease-in-out 2.1s infinite;
}

.home-info-panel-grid div:hover {
  background: #ffffff;
  border-color: rgba(0, 159, 122, 0.34);
  box-shadow: 0 14px 30px rgba(0, 159, 122, 0.12);
  transform: translateY(-4px);
}

.home-info-panel-grid strong {
  color: var(--brand-ink);
  display: block;
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 6px;
}

.home-info-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.hero-preview-window {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(18, 60, 48, 0.14);
  overflow: hidden;
}

.hero-preview-bar {
  align-items: center;
  background: var(--brand-wash);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 7px;
  padding: 12px 14px;
}

.hero-preview-bar span {
  background: #88bdae;
  border-radius: 50%;
  display: block;
  height: 9px;
  width: 9px;
}

.hero-preview-sheet {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.hero-preview-sheet > div:first-child {
  align-items: center;
  border-bottom: 3px solid var(--primary);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.hero-preview-sheet small {
  color: var(--muted);
  font-weight: 700;
}

.hero-preview-line {
  background: #edf2f7;
  border-radius: 999px;
  height: 12px;
  width: 68%;
}

.hero-preview-line-wide {
  width: 92%;
}

.hero-preview-table {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.hero-preview-table span {
  background: #f7fafc;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  color: #34475e;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 6px;
  text-align: center;
}

.hero-preview-total {
  align-items: center;
  background: #edf8f1;
  border: 1px solid #bfe4cc;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.hero-preview-floating {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  bottom: 0;
  box-shadow: 0 18px 36px rgba(0, 159, 122, 0.24);
  color: #ffffff;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  position: absolute;
  right: 12px;
  width: min(210px, 58%);
}

.hero-preview-floating span,
.hero-preview-floating small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-preview-floating strong {
  font-size: 34px;
  line-height: 1;
}

.home-trust-text {
  margin-top: 14px;
  font-size: 15px;
  color: #4a6078;
}

.home-proof-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.home-proof-strip span {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--brand-ink);
  font-weight: 800;
  overflow: hidden;
  padding: 11px 12px;
  position: relative;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-proof-strip span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(0, 159, 122, 0.16) 48%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.home-proof-strip span:hover {
  border-color: rgba(0, 159, 122, 0.38);
  box-shadow: 0 12px 26px rgba(18, 60, 48, 0.1);
  transform: translateY(-3px);
}

.home-proof-strip span:hover::after {
  transform: translateX(120%);
}

.home-trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.trust-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.home-tools-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-icon {
  align-items: center;
  background: var(--brand-wash);
  border: 1px solid #cde9df;
  border-radius: 10px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  min-width: 42px;
  padding: 0 10px;
  white-space: nowrap;
  line-height: 1;
}

.home-tools-grid .btn {
  margin-top: 6px;
  width: 100%;
}

.home-affiliate-grid,
.home-audience-grid {
  display: grid;
  gap: 16px;
}

.home-affiliate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.affiliate-card {
  background: linear-gradient(180deg, #ffffff, var(--brand-wash));
}

.affiliate-logo {
  display: block;
  height: 34px;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.home-affiliate-note {
  margin-top: 12px;
}

.lead-magnet {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f4faf7);
  border: 1px solid #cfdfd8;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  padding: 28px;
}

.lead-copy h2 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 10px;
}

.lead-copy p {
  color: #35485d;
  margin-top: 0;
}

.lead-benefits {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.lead-form-panel {
  background: #ffffff;
  border: 1px solid #d6e5dc;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 159, 122, 0.12);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.lead-form-panel label:not(.lead-consent):not(.contact-honeypot) {
  color: #223043;
  font-weight: 800;
}

.lead-form-panel .btn {
  width: 100%;
}

.lead-consent {
  align-items: flex-start;
  color: #42566d;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  line-height: 1.45;
}

.lead-consent input {
  margin-top: 5px;
}

.lead-status {
  border-radius: 10px;
  font-weight: 700;
  margin: 0;
  min-height: 0;
}

.lead-status.is-success {
  background: #edf8f1;
  color: #176b39;
  padding: 10px 12px;
}

.lead-status.is-error {
  background: #fff0f0;
  color: #9a2525;
  padding: 10px 12px;
}

.case-grid,
.editorial-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.case-card span {
  align-items: center;
  background: var(--brand-wash);
  border: 1px solid #cde9df;
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 10px;
}

.case-card h3 {
  margin: 14px 0 8px;
}

.case-card p {
  color: var(--muted);
  margin: 0;
}

.section-tight {
  display: grid;
  gap: 14px;
}

.home-why-list {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.home-why-list li {
  color: #24394f;
}

/* Mobile-first home layout */
body[data-route="home"] .wrapper {
  width: min(100% - 40px, var(--max));
  padding-left: 0;
  padding-right: 0;
}

body[data-route="home"] .section {
  padding: 10px 0;
}

body[data-route="home"] .section-heading h2 {
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  line-height: 1.22;
}

body[data-route="home"] .section-heading p,
body[data-route="home"] p,
body[data-route="home"] li {
  font-size: 1rem;
  line-height: 1.62;
}

body[data-route="home"] .button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

body[data-route="home"] .button-row .btn {
  width: 100%;
  min-height: 48px;
}

body[data-route="home"] .home-tools-grid,
body[data-route="home"] .home-affiliate-grid,
body[data-route="home"] .home-audience-grid,
body[data-route="home"] .home-trust-grid,
body[data-route="home"] .home-proof-strip,
body[data-route="home"] .case-grid,
body[data-route="home"] .editorial-grid,
body[data-route="home"] .grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

body[data-route="home"] .home-hero-layout,
body[data-route="home"] .lead-magnet {
  grid-template-columns: 1fr;
}

body[data-route="home"] .card,
body[data-route="home"] .trust-card,
body[data-route="home"] .home-hero-card,
body[data-route="home"] .lead-magnet,
body[data-route="home"] .cta-band {
  width: 100%;
  border-radius: 16px;
}

body[data-route="home"] .card,
body[data-route="home"] .trust-card,
body[data-route="home"] .home-hero-card {
  padding: 22px;
}

body[data-route="home"] .cta-band {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 14px;
  padding: 22px;
}

body[data-route="home"] .cta-band .button-row {
  width: 100%;
}

body[data-route="home"] .home-hero::before {
  opacity: 0.65;
}

@media (min-width: 480px) {
  body[data-route="home"] .wrapper {
    width: min(100% - 44px, var(--max));
  }
}

@media (min-width: 640px) {
  body[data-route="home"] .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  body[data-route="home"] .button-row .btn {
    width: auto;
  }

  body[data-route="home"] .home-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="home"] .home-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="home"] .home-affiliate-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  body[data-route="home"] .home-hero {
    padding: 52px 0 22px;
  }

  body[data-route="home"] .home-hero-card {
    padding: 30px;
  }

  body[data-route="home"] .home-audience-grid,
  body[data-route="home"] .home-trust-grid,
  body[data-route="home"] .case-grid,
  body[data-route="home"] .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="home"] .home-affiliate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body[data-route="home"] .home-hero {
    padding: 64px 0 26px;
  }

  body[data-route="home"] .home-hero-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  }

  body[data-route="home"] .lead-magnet {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }

  body[data-route="home"] .home-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-route="home"] .home-proof-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-route="home"] .home-audience-grid,
  body[data-route="home"] .home-trust-grid,
  body[data-route="home"] .case-grid,
  body[data-route="home"] .editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-pro {
  padding: 52px 0 24px;
  position: relative;
}

.hero-pro::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  background: linear-gradient(180deg, rgba(0, 159, 122, 0.1), rgba(0, 159, 122, 0));
  pointer-events: none;
}

.hero-pro-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: stretch;
}

.hero-pro-copy,
.hero-pro-panel {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-pro-copy {
  background: linear-gradient(140deg, #ffffff 0%, var(--brand-wash) 100%);
  border: 1px solid var(--border);
  padding: 34px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-pro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.hero-pro p {
  margin-top: 16px;
}

.hero-pro-mini {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pro-mini span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px 12px;
  color: #2b3a4a;
  font-size: 13px;
  font-weight: 600;
}

.hero-pro-panel {
  background: linear-gradient(170deg, #006f56, #009f7a 52%, #2fc7a0);
  color: #ffffff;
  padding: 30px;
}

.hero-pro-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.hero-stack-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.hero-stack-list li {
  color: rgba(255, 255, 255, 0.93);
}

.section-pro {
  padding-top: 14px;
}

.home-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.stat-label {
  color: #4f6680;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  margin-top: 4px;
}

.stat-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.card-pro {
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body[data-route="home"] .home-tools-grid .card-pro,
body[data-route="home"] .editorial-grid .card-pro,
body[data-route="home"] .case-card {
  animation: homeCardRise 0.7s ease both;
}

body[data-route="home"] .home-tools-grid .card-pro:nth-child(2),
body[data-route="home"] .editorial-grid .card-pro:nth-child(2),
body[data-route="home"] .case-card:nth-child(2) {
  animation-delay: 0.08s;
}

body[data-route="home"] .home-tools-grid .card-pro:nth-child(3),
body[data-route="home"] .editorial-grid .card-pro:nth-child(3),
body[data-route="home"] .case-card:nth-child(3) {
  animation-delay: 0.16s;
}

body[data-route="home"] .home-tools-grid .card-pro:nth-child(4) {
  animation-delay: 0.24s;
}

body[data-route="home"] .home-tools-grid .card-pro:nth-child(5) {
  animation-delay: 0.32s;
}

body[data-route="home"] .home-tools-grid .card-pro:nth-child(6) {
  animation-delay: 0.4s;
}

.notice-pro {
  border-left-width: 6px;
}

.cta-band {
  background: linear-gradient(135deg, #007c60, #009f7a);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 159, 122, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 54%);
  pointer-events: none;
  transform: translateX(-120%);
  animation: homeCtaSheen 7s ease-in-out infinite;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #ffffff;
  margin: 0;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  transform: translateY(24px);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.is-visible-on-load {
  opacity: 0;
  animation: heroFadeUp 0.55s ease forwards;
}

.is-visible-on-load.delay-1 {
  animation-delay: 0.1s;
}

.is-visible-on-load.delay-2 {
  animation-delay: 0.2s;
}

.is-visible-on-load.delay-3 {
  animation-delay: 0.3s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  min-height: 48px;
  overflow: hidden;
  position: relative;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 46%, transparent 58%);
  pointer-events: none;
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

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

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 159, 122, 0.2);
  }

  .btn:hover::after {
    transform: translateX(120%);
  }
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.btn-secondary:hover {
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  padding: 24px;
}

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

.section {
  padding: 18px 0 10px;
}

.section h1 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.section p,
.section h2,
.section h3,
label {
  overflow-wrap: anywhere;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.notice {
  background: var(--brand-wash);
  border: 1px solid #cce8de;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  color: #223043;
  padding: 18px 20px;
}

.notice strong {
  color: var(--text);
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-links a {
  align-items: center;
  background: var(--brand-wash);
  border: 1px solid #cde9df;
  border-radius: 10px;
  color: var(--primary-dark);
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 12px;
}

.related-links a:hover {
  background: #def4ec;
  text-decoration: none;
}

.notice.is-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f97316;
}

.notice.is-success {
  background: #edf8f1;
  border-color: #bfe4cc;
  border-left-color: var(--success);
}

.responsive-table {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  width: 100%;
}

.responsive-table table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.responsive-table th,
.responsive-table td {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.responsive-table th {
  background: var(--brand-wash);
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.responsive-table tr:last-child td {
  border-bottom: 0;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.calculator-list .card {
  display: flex;
  flex-direction: column;
}

.calculator-list .btn {
  margin-top: auto;
}

.contact-layout,
.template-hero {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.contact-panel {
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.contact-form label {
  margin-top: 0;
}

.contact-form .btn {
  margin-top: 6px;
}

.turnstile-field {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 8px;
  min-height: 65px;
  width: 100%;
}

.turnstile-field .cf-turnstile {
  margin: 0 auto;
}

.turnstile-config-warning {
  margin-top: 8px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.template-page {
  display: grid;
  gap: 22px;
}

.template-preview {
  margin: 0;
  min-width: 0;
}

.template-preview-sheet {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}

.template-preview-head,
.template-preview-row,
.template-preview-table,
.template-preview-total {
  display: grid;
  gap: 10px;
}

.template-preview-head {
  align-items: center;
  border-bottom: 3px solid var(--primary);
  grid-template-columns: 1fr auto;
  padding-bottom: 14px;
}

.template-preview-head strong {
  font-size: 24px;
}

.template-preview-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.template-preview-row span,
.template-preview-table span {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #35465b;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
}

.template-preview-table {
  grid-template-columns: 1.6fr repeat(4, 1fr);
  margin-top: 14px;
}

.template-preview-lines {
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px);
  background-size: 100% 34px, 20% 100%;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  height: 132px;
  margin-top: 10px;
}

.template-preview-total {
  align-items: center;
  background: var(--brand-wash);
  border: 1px solid #cce8de;
  border-radius: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 14px;
  padding: 12px;
}

.template-preview figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.template-more {
  display: grid;
  gap: 14px;
}

.cookie-consent {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  bottom: 18px;
  box-shadow: 0 16px 42px rgba(18, 60, 48, 0.14);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  max-width: 920px;
  padding: 18px;
  position: fixed;
  right: 18px;
  z-index: 90;
}

.cookie-consent p {
  color: var(--muted);
  margin: 4px 0 0;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tool-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 700px;
  margin: 30px auto;
}

label {
  display: block;
  font-weight: 700;
  margin-top: 14px;
}

.required-star {
  color: #c81e1e;
  font-weight: 800;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  font-family: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--success);
  height: 18px;
  margin-top: 0;
  padding: 0;
  width: 18px;
}

textarea {
  resize: vertical;
}

.resultado {
  margin-top: 20px;
  padding: 16px;
  background: var(--brand-wash);
  border: 1px solid #cce8de;
  border-radius: 10px;
  font-size: 18px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .wrapper {
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid > *,
.budget-layout > *,
.budget-form,
.budget-preview,
.budget-preview-paper {
  min-width: 0;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-wide {
  grid-column: 1 / -1;
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.budget-form {
  display: grid;
  gap: 22px;
}

.budget-form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.budget-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.budget-form-section h2,
.budget-section-header h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.budget-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.budget-lines {
  display: grid;
  gap: 12px;
}

.budget-line-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(64px, 0.42fr) minmax(84px, 0.55fr) minmax(64px, 0.42fr) minmax(64px, 0.42fr) 36px;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #f9fbfd;
}

.budget-line-row input,
.budget-line-row select {
  margin-top: 6px;
  padding: 10px 8px;
}

.budget-line-row label {
  margin-top: 0;
}

.budget-line-row label span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.budget-line-remove {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: #9a2525;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

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

.btn-secondary {
  background: #e8eef5;
  color: var(--text);
}

.btn-secondary:hover {
  background: #dce6ef;
  text-decoration: none;
}

.budget-preview {
  position: sticky;
  top: 18px;
}

.budget-preview-paper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #1f2937;
  max-width: 100%;
  overflow: hidden;
  padding: 24px;
}

.budget-preview-header,
.preview-parties,
.budget-total-box p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.budget-preview-header {
  align-items: flex-start;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 18px;
}

.preview-kicker {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.budget-preview-header h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.preview-meta {
  min-width: 165px;
  text-align: right;
}

.preview-meta p,
.preview-parties p,
.budget-total-box p,
.preview-extra p,
.preview-note {
  margin: 0;
}

.preview-parties {
  margin: 22px 0;
}

.preview-parties section {
  min-width: 0;
  width: 50%;
}

.preview-parties h3,
.preview-extra h3 {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.preview-name {
  font-weight: 700;
}

.budget-preview-paper p,
.budget-preview-paper strong,
.budget-preview-paper span,
.budget-preview-paper td,
.budget-preview-paper th {
  overflow-wrap: anywhere;
}

.budget-preview-table {
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
}

.budget-preview-table th,
.budget-preview-table td {
  border-bottom: 1px solid var(--border);
  padding: 9px 7px;
  text-align: right;
  vertical-align: top;
}

.budget-preview-table th:first-child,
.budget-preview-table td:first-child {
  text-align: left;
}

.budget-preview-table th {
  background: var(--brand-wash);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
}

.budget-preview-table th:nth-child(1),
.budget-preview-table td:nth-child(1) {
  width: 30%;
}

.budget-preview-table th:nth-child(2),
.budget-preview-table td:nth-child(2),
.budget-preview-table th:nth-child(4),
.budget-preview-table td:nth-child(4),
.budget-preview-table th:nth-child(5),
.budget-preview-table td:nth-child(5) {
  width: 12%;
}

.budget-preview-table th:nth-child(3),
.budget-preview-table td:nth-child(3),
.budget-preview-table th:nth-child(6),
.budget-preview-table td:nth-child(6) {
  width: 17%;
}

.budget-total-box {
  margin: 18px 0 0 auto;
  max-width: 280px;
  width: 100%;
}

.budget-total-box p {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}

.budget-grand-total {
  color: var(--primary);
  font-size: 20px;
  text-transform: uppercase;
}

.preview-extra {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 14px;
}

.preview-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
}

.scroll-top:focus-visible {
  outline: 3px solid rgba(0, 159, 122, 0.3);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .site-header .wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .mobile-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f5fa8;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .mobile-primary-cta:hover {
    text-decoration: none;
    background: #0b4e89;
  }

  .mobile-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--success);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-secondary-cta:hover {
    text-decoration: none;
    filter: brightness(0.95);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .site-header-bar {
    min-height: 84px;
  }

  .site-header.is-scrolled .site-header-bar {
    min-height: 76px;
  }

  .nav-shell {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(196, 222, 211, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 247, 0.99));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    width: auto;
    margin-left: 0;
    z-index: 30;
  }

  .site-header.is-open .nav-shell {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-main-group,
  .nav-right-group {
    grid-column: auto;
    justify-self: stretch;
  }

  .nav {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .nav-indicator {
    display: none;
  }

  .nav.has-indicator .nav-indicator {
    opacity: 0;
  }

  .nav a {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

  .nav a[aria-current="page"] {
    background: rgba(0, 159, 122, 0.11);
  }

  .nav a::after {
    left: 16px;
    right: 16px;
    bottom: 10px;
  }

  .nav-cta-btn {
    width: 100%;
    min-height: 50px;
  }

  .nav-cta-group {
    display: grid;
    gap: 10px;
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 20;
  }

  .site-header.is-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .template-hero,
  .lead-magnet,
  .case-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .comparison-actions .btn,
  .contact-form .btn,
  .tool-box .btn {
    width: 100%;
  }

  .home-topbar-inner,
  .home-top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-top-actions .btn {
    width: 100%;
  }

  .home-trust-grid,
  .home-tools-grid,
  .home-affiliate-grid,
  .home-audience-grid,
  .home-proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-pro-grid,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .hero-pro-copy,
  .hero-pro-panel {
    padding: 24px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-route="home"] .button-row {
    flex-direction: column;
  }

  body[data-route="home"] .button-row .btn {
    width: 100%;
  }

  .home-hero::before {
    animation: none;
  }

  .card:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cookie-consent-actions,
  .cookie-consent-actions .btn {
    width: 100%;
  }

  .form-grid-2,
  .form-grid-3,
  .budget-layout {
    grid-template-columns: 1fr;
  }

  .budget-preview {
    position: static;
  }

  .budget-line-row {
    grid-template-columns: 1fr 1fr;
  }

  .budget-line-row label:first-child {
    grid-column: 1 / -1;
  }

  .budget-line-remove {
    justify-self: end;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 1121px) and (max-width: 1240px) {
  .site-header .wrapper {
    gap: 10px;
  }

  .nav {
    gap: 2px;
    padding: 5px;
  }

  .nav a {
    font-size: 15px;
    padding: 11px 13px;
  }

  .nav-cta-btn {
    min-height: 44px;
    padding: 10px 13px;
  }

  .nav-cta-group {
    gap: 8px;
  }

  .nav-shell {
    width: min(100%, 980px);
  }
}

@media (max-width: 560px) {
  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header .wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header-bar {
    gap: 8px;
    min-height: 78px;
  }

  .site-header.is-scrolled .site-header-bar {
    min-height: 72px;
  }

  .logo {
    height: 42px;
  }

  .mobile-cta-row {
    gap: 6px;
  }

  .mobile-primary-cta {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .mobile-secondary-cta {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .mobile-secondary-cta .nav-cta-icon {
    height: 18px;
    width: 18px;
  }

  .nav-toggle {
    border-radius: 14px;
    height: 42px;
    width: 42px;
  }

  .nav-shell {
    left: 12px;
    right: 12px;
    padding: 12px;
  }

  .nav a {
    font-size: 15px;
  }

  .section h1 {
    font-size: 28px;
  }

  .hero-pro h1 {
    font-size: 28px;
  }

  .home-hero-card {
    padding: 24px;
  }

  .home-hero-card h1 {
    font-size: 29px;
  }

  .home-hero-visual {
    min-height: 0;
  }

  .hero-preview-floating {
    margin-top: 12px;
    position: static;
    width: 100%;
  }

  .hero-preview-table {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-magnet,
  .lead-form-panel,
  .case-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 30px;
  }

  .card,
  .tool-box,
  .budget-form {
    padding: 18px;
  }

  .budget-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .budget-section-header .btn,
  .budget-actions .btn {
    width: 100%;
  }

  .budget-line-row {
    grid-template-columns: 1fr;
  }

  .budget-line-row label:first-child {
    grid-column: auto;
  }

  .budget-line-remove {
    justify-self: end;
  }

  .budget-preview-paper {
    padding: 18px;
  }

  .budget-preview-header,
  .preview-parties,
  .budget-total-box p {
    display: block;
  }

  .preview-meta {
    margin-top: 12px;
    text-align: left;
  }

  .preview-parties section {
    width: 100%;
  }

  .preview-parties section + section {
    margin-top: 16px;
  }

  .budget-preview-table {
    display: block;
    overflow-x: auto;
  }

  .responsive-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .responsive-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .responsive-table tr {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
  }

  .responsive-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }

  .responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .related-links {
    flex-direction: column;
  }

  .related-links a {
    justify-content: center;
    width: 100%;
  }

  .template-preview-table {
    grid-template-columns: 1fr 1fr;
  }

  .template-preview-head,
  .template-preview-row,
  .template-preview-total {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    bottom: 10px;
    left: 10px;
    padding: 14px;
    right: 10px;
  }

  .cookie-consent p {
    font-size: 13px;
    line-height: 1.45;
  }

  .cookie-consent-actions {
    gap: 8px;
  }

  .cookie-consent-actions .btn {
    min-height: 42px;
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .is-visible-on-load {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  body[data-route="budget_generator"] {
    background: #ffffff;
  }

  body[data-route="budget_generator"] * {
    visibility: hidden;
  }

  body[data-route="budget_generator"] .budget-preview-paper,
  body[data-route="budget_generator"] .budget-preview-paper * {
    visibility: visible;
  }

  body[data-route="budget_generator"] .budget-preview-paper {
    border: 0;
    box-shadow: none;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  body[data-route="budget_generator"] .scroll-top {
    display: none !important;
  }
}
