/* 2025 Design System Variables */
:root {
  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  
  /* 2025 Color Palette */
  --color-primary: #1a7f64;        /* Rich teal */
  --color-primary-dark: #145c47;   /* Darker teal */
  --color-secondary: #8B4513;      /* Warm mocha */
  --color-accent: #FF6B35;         /* Vibrant orange */
  --color-bg: #F8F6F0;             /* Soft cream */
  --color-bg-alt: #E8E4DD;         /* Light mocha */
  --color-text: #2C2C2C;           /* Deep charcoal */
  --color-text-light: #666666;     /* Medium gray */
  --slate-500: #64748b;            /* Neutral slate for breadcrumbs */
  --primary-600: #1a7f64;          /* Primary button base */
  --primary-300: #64c3a9;          /* Primary focus outline */
  --color-white: #FFFFFF;          /* Pure white */
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.16);
}

/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md) 0;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Ensure links are visible in all content sections */
section a,
section p a,
section ul li a,
section ol li a {
  color: var(--color-primary);
  text-decoration: underline;
}

section a:hover,
section p a:hover,
section ul li a:hover,
section ol li a:hover {
  color: var(--color-primary-dark);
}

/* Images: universal responsive behavior */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Prevent layout shifts when width/height attrs exist */
img {
  object-fit: contain;
  -ms-interpolation-mode: bicubic;
}

/* Figures and hero images */
figure, .hero-section img, .content-section img {
  width: 100%;
}

/* Chart.js & canvases on tools pages */
canvas {
  max-width: 100%;
  height: auto !important;
}

/* Container System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* Brutalist Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

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

/* Removed unused asymmetrical layouts */

/* Section Spacing */
.section {
  padding: var(--space-2xl) 0;
}

.section-dark {
  background: var(--color-bg-alt);
}

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

/* CRO: Progress bar */
#progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
}

#progress-bar {
  transform-origin: left center;
  transform: scaleX(0);
  height: 3px;
  background: var(--color-primary);
  opacity: 0.8;
}

@media (min-width: 1024px) {
  #progress-wrap { height: 4px; }
  #progress-bar { height: 4px; }
}

/* CRO: Sticky header */
.header {
  position: sticky;
  top: 0;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .nav {
    height: 72px;
    padding: 0 24px;
  }
}

.nav nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400 !important;
  transition: color 0.2s;
}

.nav nav a:hover {
  color: var(--color-primary);
}

/* CRO: Navigation dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
  position: relative;
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .nav-dropdown-toggle::after {
    display: none !important;
  }

  .nav-dropdown-toggle {
    cursor: default;
  }

  .nav-dropdown-toggle:hover {
    background: transparent;
    color: var(--color-text);
  }
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.logo {
  font-weight: bold;
  font-size: 1.18rem;
  color: var(--color-primary);
  text-decoration: none;
}
/* --- Button base (canonical) --- */
.btn,
.btn-primary,
.btn-secondary,
.cta,
.cta-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  height: auto;
  min-height: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Label spans inside buttons never clip */
.btn .label,
.cta .label {
  line-height: 1.1;
}

.btn,
.btn-primary,
.cta,
.cta-small {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(26, 127, 100, 0.15);
  letter-spacing: 0.025em;
  max-width: 100%;
}

.btn::before,
.btn-primary::before,
.cta::before,
.cta-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.btn:hover,
.btn-primary:hover,
.cta:hover,
.cta-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
  background: linear-gradient(135deg, #1e8b6b 0%, #16634a 100%);
}

.btn:hover::before,
.btn-primary:hover::before,
.cta:hover::before,
.cta-small:hover::before {
  left: 100%;
}

.btn:active,
.btn-primary:active,
.cta:active,
.cta-small:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(26, 127, 100, 0.25);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.cta:focus-visible,
.cta-small:focus-visible {
  outline: 2px solid var(--primary-300);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
  letter-spacing: 0.025em;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 127, 100, 0.25);
}

.cta,
.cta-small {
  margin-top: 0;
  margin-bottom: 0;
}

.cta-section .btn,
.cta-section .cta,
.hero-section .btn,
.hero-section .cta {
  margin-top: 0;
  margin-bottom: 0;
}

.btn-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid #e5e7eb;
}

.btn-mode:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-mode.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

* {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .cta,
  .cta-small {
    padding: 10px 18px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.1 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (min-width: 481px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .cta,
  .cta-small {
    min-width: 200px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .cta:hover,
  .cta-small:hover {
    filter: none;
  }

  .btn:hover,
  .btn-primary:hover,
  .cta:hover,
  .cta-small:hover {
    background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
    box-shadow: 0 2px 8px rgba(26, 127, 100, 0.15);
    transform: none;
  }

  .btn::before,
  .btn-primary::before,
  .cta::before,
  .cta-small::before {
    left: -100%;
  }

  .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: none;
    box-shadow: none;
  }

  .btn-mode:hover {
    filter: none;
    background: var(--color-white);
    color: var(--color-text);
    border-color: #e5e7eb;
  }

  .btn-mode.active:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
  }
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  background: var(--color-white);
  color: var(--color-primary);
  letter-spacing: 0.025em;
}

.secondary-cta:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 127, 100, 0.25);
}

.btn-primary:focus, .btn-secondary:focus, .cta:focus, .secondary-cta:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Removed unused animations and micro-interactions */

/* Card System */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card a,
.card ul li a,
.card p a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.card a:hover,
.card ul li a:hover,
.card p a:hover {
  color: var(--color-primary-dark);
}

.card-featured a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 600;
}

.card-featured a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Removed unused card variants */

.card-featured {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cta-content {
  flex: 1;
  min-width: 300px;
}

.price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: var(--space-sm) 0;
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Additional Component Styles */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--space-md);
}

.visual-placeholder {
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-text-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  text-align: center;
  padding: var(--space-md);
}

.faq-list {
  display: grid;
  gap: var(--space-lg);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-item h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.related-links {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--color-text-light);
  font-size: 14px;
}

.related-links a {
  color: var(--color-primary);
  text-decoration: underline;
}

.coming-soon-notice {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}

.calculator-form {
  display: grid;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  color: var(--color-text);
}

.form-group input {
  padding: var(--space-sm);
  border: 2px solid var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.result-display {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin: var(--space-lg) 0;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-top: var(--space-sm);
}

/* Main layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem 1rem 2rem 1rem;
  }
}

section {
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 2rem;
  }
}

/* CRO: Mobile floating CTA */
.floating-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(26, 127, 100, 0.1);
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

.floating-cta .btn-primary {
  width: 100%;
  max-width: 400px;
  margin: 0;
}

/* CRO: Footer styles */
footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--color-primary);
}

/* Footer Certification Badges */
.footer-certifications {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding: 1.5rem 16px;
  text-align: center;
  background: #f8fafc;
  border-radius: 8px;
}

.footer-certifications-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-certifications img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Google badges (first and third) - smaller */
.footer-certifications img:nth-child(1),
.footer-certifications img:nth-child(3) {
  width: 110px;
}

/* Customer.io badge (middle/second) - bigger */
.footer-certifications img:nth-child(2) {
  width: 160px;
}

.footer-certifications img:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .footer-certifications {
    padding: 1rem 16px;
  }
  
  .footer-certifications-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .footer-certifications img {
    width: 120px;
  }
  
  /* Google badges smaller on tablet */
  .footer-certifications img:nth-child(1),
  .footer-certifications img:nth-child(3) {
    width: 95px;
  }
  
  /* Customer.io bigger on tablet */
  .footer-certifications img:nth-child(2) {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .footer-certifications-container {
    gap: 1.25rem;
  }
  
  .footer-certifications img {
    width: 100px;
  }
  
  /* Google badges smaller on mobile */
  .footer-certifications img:nth-child(1),
  .footer-certifications img:nth-child(3) {
    width: 80px;
  }
  
  /* Customer.io bigger on mobile */
  .footer-certifications img:nth-child(2) {
    width: 120px;
  }
}

.footer-bottom {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding: 1rem 16px 0;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
.hero {
  text-align: center;
  padding: 4rem 20px 3rem 20px;
  background: linear-gradient(120deg, #f3faf7 0%, #e6f4ef 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(26,127,100,0.08), 0 1.5px 6px rgba(0,0,0,0.03);
  margin-bottom: 2.8rem;
  border: 1.5px solid #d0ede2;
  position: relative;
  margin-top: 0.5rem;
}
.hero-photo {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: 227px;
  height: 227px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(26,127,100,0.10);
  background: #fff;
  border: 3.5px solid #1a7f64;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero-photo:hover {
  box-shadow: 0 8px 32px rgba(26,127,100,0.18);
  transform: scale(1.04);
}
.hero-main {
  font-size: 1.45rem;
  font-weight: 700;
  color: #145c47;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(26,127,100,0.07);
  line-height: 1.13;
  word-break: normal;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
}
.hero-h2 {
  font-size: 1.11rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1.1rem;
  margin-top: 0.1rem;
  letter-spacing: -0.2px;
}
.hero-subtitle {
  color: #145c47;
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0.8rem 0 0.3rem 0;
  letter-spacing: 0.01em;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-bio {
  color: var(--color-text-light);
  font-size: 1.07rem;
  margin: 0.3rem auto 0 auto;
  max-width: 95%;
  line-height: 1.6;
  text-align: center;
}

.hero-urgency {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem auto 0 auto;
  max-width: 95%;
  text-align: center;
  background: rgba(26, 127, 100, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: inline-block;
}
.problem-solution {
  background: #e6f4ef;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 1.27rem;
  margin-top: 0.5rem;
}
.problem-solution p {
  font-size: 1.07rem;
  color: #444;
  line-height: 1.6;
  margin: 0.3rem auto 0 auto;
  max-width: 95%;
  text-align: center;
}
.problem-solution h2 {
  color: #1a7f64;
  margin-bottom: 0.7rem;
}
.logos {
  text-align: center;
  margin: 2.5rem 0 2rem 0;
}

.logos-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.logo-row img {
  width: 100px !important;
  height: 100px !important;
  opacity: 0.95;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.2em;
  object-fit: contain;
  transition: box-shadow 0.18s, width 0.18s, height 0.18s;
  margin: 0 0.2em;
  max-width: 20vw;
  max-height: 20vw;
}
.logo-row img:hover {
  box-shadow: 0 4px 18px rgba(26,127,100,0.13);
}
.deliver {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}
.deliver h2 {
  color: #1a7f64;
  font-size: 1.43rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
}
.deliver ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.deliver li {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
  border-left: 4px solid #1a7f64;
  position: relative;
  background: #f7faf9;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(26,127,100,0.03);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  margin-right: 0.5rem;
}
.deliver li:last-child {
  margin-bottom: 0;
}
.deliver-title {
  font-size: 1.07rem;
  font-weight: 800;
  color: #145c47;
  margin-bottom: 0.05rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
  letter-spacing: -0.2px;
}
.deliver-desc {
  color: #444;
  font-size: 0.93rem;
  font-weight: 400;
  margin-left: 1.7em;
  margin-top: 0.05em;
  line-height: 1.5;
}
.work-with-me {
  text-align: center;
}
.work-with-me h2 {
  color: #1a7f64;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
  width: 100%;
  align-items: start; /* Align cards to top */
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch; /* Stretch cards to same height */
  }
}

@media (min-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch; /* Stretch cards to same height */
  }
}
.pricing-card {
  background: #eaf7f1;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0%;
  min-width: 0;
}
/* Removed .pricing-card-audit sub-class - all cards now use base .pricing-card class */

/* Removed .pricing-card:last-child rule to ensure all cards have consistent styling */

/* Most chosen ribbon - separate class for ribbon only */
.ribbon-most-chosen {
  position: relative;
  overflow: visible; /* Ensure ribbon doesn't get clipped */
}

.ribbon-most-chosen::before {
  content: "Most Chosen";
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 12px 0 8px;
  z-index: 1;
  pointer-events: none; /* Prevent ribbon from interfering with clicks */
}

/* Grid improvements for services */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card improvements */
.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(26, 127, 100, 0.15);
}

.card-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}
/* Removed duplicate pricing card rules - using simplified version below */
.pricing-card .cta, .pricing-card .cta-blue, .pricing-card .cta-large, .pricing-card .cta-small {
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-card .cta:hover, .pricing-card .cta-blue:hover, .pricing-card .cta-large:hover, .pricing-card .cta-small:hover {
  background: linear-gradient(135deg, #1e8b6b 0%, #16634a 100%) !important;
  color: var(--color-white) !important;
}

/* Simplified pricing card styling */
.pricing-card {
  background: #eaf7f1;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.pricing-card h3 {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pricing-card ul {
  color: var(--color-text);
  margin: 1rem 0 1.5rem 0;
  padding: 0 0 0 1.2em;
  font-size: 0.97rem;
  flex-grow: 1;
}

/* Ribbon card - same as others but with ribbon */
.ribbon-most-chosen {
  background: #eaf7f1;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}
.cta-blue {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  font-size: 1.07rem;
  padding: 1.1em 2.2em;
  border-radius: 8px;
  margin-top: 0.7em;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
  background: #2563eb;
  color: #fff;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.cta-blue:hover, .cta-blue:active, .cta-blue:focus {
  background: #1742a0;
  color: #fff;
  text-decoration: none;
}
.why-me {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}
.why-me h2 {
  color: #1a7f64;
  font-size: 1.43rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
}
.why-me ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-me li {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
  border-left: 4px solid #1a7f64;
  position: relative;
  background: #f7faf9;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(26,127,100,0.03);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  margin-right: 0.5rem;
  color: #222;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
}
.why-me li:last-child {
  margin-bottom: 0;
}
.why-me li:before {
  display: none;
}
.testimonial {
  background: #e6f4ef;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}
.testimonial h2 {
  color: #1a7f64;
  margin-bottom: 0.7rem;
}
.testimonial-content {
  display: flex;
  align-items: flex-start;
  gap: 2.8rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.testimonial-photo {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(26,127,100,0.10);
  border: 3px solid #fff;
  background: #fff;
  flex-shrink: 0;
  display: block;
  margin-top: 30px;
}
.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: #145c47;
  font-size: 1.13rem;
  background: none;
  border: none;
  box-shadow: none;
}
.testimonial blockquote footer {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 1.2em;
  font-size: 1.13rem;
  color: #333;
  font-style: normal;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.testimonial-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,127,100,0.07);
  margin-right: 0.3em;
  padding: 2px;
}

.testimonial-linkedin {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.testimonial-linkedin:hover {
  transform: scale(1.1);
}

.testimonial-linkedin svg {
  transition: fill 0.2s ease;
}

.testimonial-linkedin:hover svg {
  fill: #1a7f64;
}
.final-cta {
  background: #1a7f64;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 0.5rem;
}
.final-cta h2 {
  color: #fff;
  margin-bottom: 0.7rem;
}
.final-cta p {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}
.final-cta .cta, .final-cta .secondary-cta {
  margin: 0.5rem 0.5rem 0 0;
}
/* CRO: Lead magnet section */
.lead-magnet {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.8rem 2.5rem 2.5rem 2.5rem;
  margin: 2.5rem auto;
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}

.lead-magnet h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.lead-magnet p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

#lead-form input,
#lead-form select,
#lead-form textarea {
  padding: 0.75rem;
  border: 1.5px solid #cfd8dc;
  border-radius: var(--border-radius);
  background: #f7faf9;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#lead-form input:focus,
#lead-form select:focus,
#lead-form textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
  background: var(--color-white);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13);
}

#lead-form input.is-invalid {
  border-color: #dc3545;
}

#lead-step-1, #lead-step-2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#lead-step-2 {
  display: none;
}

.contact {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.8rem 2.5rem 2.5rem 2.5rem;
  margin: 2.5rem auto;
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}
.contact h2 {
  color: #1a7f64;
  font-size: 1.07rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
  text-align: left;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26,127,100,0.10), 0 2px 8px rgba(37,99,235,0.04);
  border: 1.5px solid #e6f4ef;
  padding: 2.2rem 2.5rem 2.5rem 2.5rem;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
}
.contact form label {
  font-size: 0.97rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.18em;
  margin-top: 0.1em;
  text-align: left;
  width: 100%;
}
.contact form input,
.contact form textarea {
  font-size: 0.97rem;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  border: 1.5px solid #cfd8dc;
  background: #f7faf9;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0.1em;
  margin-top: 0.1em;
  box-shadow: 0 1.5px 8px rgba(37,99,235,0.04) inset;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact form input:focus,
.contact form textarea:focus {
  border-color: #2563eb;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.13), 0 2px 12px rgba(37,99,235,0.07) inset;
}
.contact form button {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #2563eb 60%, #1742a0 100%);
  color: #fff;
  font-size: 1.01rem;
  font-weight: 700;
  border: none;
  padding: 0.9em;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  margin: 0.7em auto 0.5em auto;
  max-width: 360px !important;
  min-width: 180px !important;
  width: 100% !important;
  box-shadow: 0 4px 18px rgba(26,127,100,0.10);
  letter-spacing: 0.01em;
}
.contact form button:hover {
  background: linear-gradient(90deg, #1742a0 60%, #2563eb 100%);
  box-shadow: 0 8px 32px rgba(37,99,235,0.13), 0 2px 8px rgba(26,127,100,0.10) inset;
  filter: brightness(1.04);
  transform: none;
}
#form-success {
  color: #1a7f64;
  margin-top: 1.5em;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 600;
}
.booking {
  text-align: center;
  margin: 2.5rem 0;
}
.booking h2 {
  color: #1a7f64;
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #888;
  font-size: 0.82rem;
}

/* Responsive styles */
/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop-only button */
.desktop-only {
  display: inline-block;
}

/* CRO: Mobile navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .nav {
    position: relative;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
  pointer-events: none; /* Prevent clicks when menu is closed */
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  pointer-events: auto; /* Re‑enable clicks only when open */
  }
  
  .nav-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400 !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-menu a:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }
  
  /* Mobile dropdown styles */
  .nav-dropdown {
    position: relative;
    width: 100%;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    border-radius: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 400 !important;
    color: var(--color-text-light);
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-dropdown-menu a:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }
  
  /* Ensure mobile menu has proper spacing and visibility */
  .nav-menu {
    min-width: 280px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .nav-menu.mobile-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Improve mobile menu toggle button visibility */
  .mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10001;
  }
  
  .mobile-menu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
  
  /* Ensure proper touch targets for mobile */
  .nav-menu a,
  .nav-dropdown-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 900px) {
  html, body {
    font-size: 16px;
  }
  
  main {
    max-width: 100vw;
    padding: 1.5rem 0.5rem 2rem 0.5rem;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem 1rem;
  }
  
  /* All pricing cards now use base class - no sub-classes needed */
  
  /* Mobile pricing cards - ensure identical sizing */
  .pricing-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    min-height: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  
  .pricing-card ul {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
  }
  
  .pricing-card .cta {
    padding: 14px 20px;
    font-size: 16px;
    margin-top: auto;
    flex-shrink: 0;
  }
  
  /* Ensure ribbon card has same dimensions as others on mobile */
  .ribbon-most-chosen {
    width: 100%;
    min-height: 400px;
    height: auto;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  /* Fix ribbon positioning on mobile */
  .ribbon-most-chosen::before {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
    position: absolute;
    z-index: 10;
    pointer-events: none;
  }
  
  /* Ensure ribbon doesn't affect card content flow */
  .ribbon-most-chosen h3 {
    margin-right: 80px; /* Make space for ribbon */
  }
  
  .cta-large {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile button improvements */
  .btn-primary, .cta, .cta-large, .cta-small {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 1px 4px rgba(26, 127, 100, 0.1);
  }
  
  .btn-primary:hover, .cta:hover, .cta-large:hover, .cta-small:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(26, 127, 100, 0.15);
  }
  
  section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Mobile grid adjustments */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
  }
  
  .why-me ul {
    padding-left: 0;
  }
  
  .why-me li {
    display: block;
    margin-bottom: 1.2em;
    padding-left: 1.5em;
    word-break: normal;
  }
  
  .why-me li:before {
    position: absolute;
    left: 0;
    top: 0.2em;
  }
}
@media (max-width: 600px) {
  .hero-main {
    font-size: clamp(28px, 6vw, 48px);
  }
  
  .hero-photo {
    width: 146px;
    height: 146px;
  }
  
  .hero {
    padding: 2.2rem 0 1.5rem 0;
  }
  
  .pricing-card {
    padding: 1rem 0.5rem;
  }
  
  .deliver, .why-me, .contact, .testimonial, .problem-solution, .lead-magnet {
    padding: 1rem 0.5rem;
  }
  
  .logo-row {
    gap: 1rem;
  }
  
  .deliver h2 {
    font-size: 1.2rem;
  }
  
  .deliver-title {
    font-size: 0.95rem;
  }
  
  .deliver-desc {
    font-size: 0.9rem;
    margin-left: 1.1em;
  }
  
  .why-me h2, .deliver h2 {
    font-size: 1.2rem;
  }
  
  .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 1rem !important;
    max-height: 95vh !important;
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    font-size: 2.2rem;
    z-index: 10;
  }
  
  .modal-title {
    margin-top: 2.5rem;
  }
  
  #lead-form {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  html, body {
    font-size: 14.33px;
  }
  .testimonial-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .testimonial-photo {
    width: 112px;
    height: 112px;
    margin-top: 10px;
  }
  .testimonial blockquote {
    text-align: center;
  }
  .testimonial blockquote footer {
    justify-content: center;
  }
  .contact {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
  .contact h2 {
    font-size: 1.07rem;
  }
  form {
    gap: 1rem;
  }
  .logo-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.7rem;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .logo-row img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px;
    max-height: 60px;
    padding: 0.5em;
  }
  .cta-blue {
    font-size: 1rem;
    padding: 0.7em 0;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
  }
  .hero-main {
    font-size: 1.8rem;
  }
  
  .hero-h2 {
    font-size: 1.1rem;
  }
  .modal-close {
    display: none !important;
  }
}
@media (max-width: 400px) {
  .cta-blue {
    font-size: 1.05rem;
    padding: 0.9em 0.2em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
  }
}

.cta-large {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.7em;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
}

.cta-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
}

.cta-small {
  font-size: 0.95rem;
  border-radius: 8px;
  min-width: 120px;
}

.cta-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 127, 100, 0.25);
}

.hero-name {
  font-size: 1.14rem;
  font-weight: 700;
  color: #145c47;
  margin: 0.5rem 0 0.5rem 0;
  text-align: center;
  letter-spacing: 0.01em;
}

form .cta-blue, form .cta-blue:hover, form .cta-blue:active, form .cta-blue:focus {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 900px) {
  .hero-subtitle, .hero-bio {
    max-width: 1100px;
  }
}

/* CRO: Desktop typography */
@media (min-width: 1024px) {
  html, body {
    font-size: 18px;
  }
  
  .hero-main {
    font-size: clamp(44px, 4vw, 56px);
  }
  
  .hero-h2 {
    font-size: 1.3rem;
  }
  
  .hero-subtitle, .hero-bio {
    max-width: 1100px;
  }
}

@media (min-width: 1200px) {
  html, body {
    font-size: 18px;
  }
  
  main {
    max-width: 1000px;
  }
  
  .hero-main {
    font-size: clamp(44px, 4vw, 56px);
  }
  
  .hero-h2 {
    font-size: 1.4rem;
  }
}

section h2:not(.hero-main):not(.problem-solution h2) {
  color: #1a7f64;
  font-size: 1.43rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
  text-align: center;
}

.final-cta-h2 {
  color: #fff;
  font-size: 1.43rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
  text-align: center;
}

.funnel-print-headline {
  color: #fff !important;
  font-size: 1.43rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  letter-spacing: -0.5px;
  text-align: center;
}

/* CRO: Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

/* Modal Card */
.modal-content {
  max-width: 1100px;
  width: 100%;
  min-width: 0;
  padding: 1.2rem 0.8rem;
  max-height: 95vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 32px rgba(26,127,100,0.18), 0 2px 8px rgba(37,99,235,0.07);
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1.5px solid #e6f4ef;
  background: linear-gradient(120deg, #f8fafc 0%, #e6f4ef 100%);
  align-items: center;
  backdrop-filter: blur(7px) saturate(1.15);
  border: 1.5px solid #e0e7ef;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1a7f64;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #2563eb;
}

/* Title & Subtitle */
.modal-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a7f64;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}
.modal-subtitle {
  font-size: 0.93rem;
  color: #444;
  text-align: center;
  line-height: 1.5;
  margin-top: -0.8rem;
}

/* Intro */
.modal-intro {
  font-size: 0.95rem;
  color: #2563eb;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin-bottom: -0.4rem;
}
.modal-emoji {
  font-size: 1.2rem;
}

/* Form Styles */
#application-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
}

#application-form label {
  font-size: 0.89rem !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin-bottom: 0.25rem !important;
  display: block;
  text-align: center;
}

#application-form input,
#application-form select {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 0.89rem !important;
  padding: 0.6em 0.8em !important;
  border-radius: 8px !important;
  border: 1.5px solid #cfd8dc !important;
  background: #f7faf9 !important;
  box-sizing: border-box !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  box-shadow: 0 1.5px 8px rgba(37,99,235,0.04) inset;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
#application-form input:focus,
#application-form select:focus {
  border-color: #2563eb !important;
  outline: none !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.13), 0 2px 12px rgba(37,99,235,0.07) inset !important;
}

/* Select dropdown icon */
#application-form select {
  background: #f7faf9 url("data:image/svg+xml;utf8,<svg fill='%232563eb' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 0.7em center;
  background-size: 1.1em;
  appearance: none;
  padding-right: 2em;
}

/* Notes and Optional */
.optional {
  font-weight: 400;
  color: #888;
  font-size: 0.9rem;
}
.form-note {
  font-size: 0.81rem;
  color: #2563eb;
  margin-top: -0.3em;
  margin-bottom: 0.3em;
}

/* CTA Button */
.cta-green {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #1a7f64 60%, #2563eb 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  padding: 0.9em;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s;
  margin: 0.7em auto 0.5em auto;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 18px rgba(26,127,100,0.13);
  letter-spacing: 0.01em;
}
.cta-green:hover {
  background: linear-gradient(90deg, #145c47 60%, #1742a0 100%);
  box-shadow: 0 6px 24px rgba(37,99,235,0.13);
}

/* Post-submit Success Message */
#application-success {
  font-size: 0.93rem;
  color: #1a7f64;
  font-weight: 600;
  text-align: center;
  margin-top: 0.6em;
}

/* Trusted by Row */
.modal-trusted {
  margin-top: 0.5em;
  font-size: 0.87rem;
  color: #145c47;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.modal-lock {
  font-size: 1.1em;
}
.trusted-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,127,100,0.13), 0 1px 4px rgba(37,99,235,0.07);
  margin: 0 0.1em;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .modal-content {
    width: 95vw;
    padding: 1.4rem 1rem;
  }
  .cta-green {
    font-size: 0.97rem;
    padding: 0.8em;
  }
}

.modal-content .cta, .modal-content .cta-blue, .modal-content .cta-green {
  display: block;
  text-align: center;
  font-size: 0.97rem;
  font-weight: 700;
  border: none;
  padding: 1em 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  width: 100%;
  max-width: 360px;
  margin: 0.7em auto 0.5em auto;
  box-shadow: 0 4px 18px rgba(26,127,100,0.13), 0 1.5px 8px rgba(37,99,235,0.04) inset;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(37,99,235,0.08);
}
.modal-content .cta {
  background: linear-gradient(90deg, #1a7f64 60%, #1a9f74 100%);
  color: #fff;
}
.modal-content .cta-blue {
  background: linear-gradient(90deg, #2563eb 60%, #1742a0 100%);
  color: #fff;
}
.modal-content .cta-green {
  background: linear-gradient(90deg, #1a7f64 60%, #1a9f74 100%);
  color: #fff;
}
.modal-content .cta:hover, .modal-content .cta-blue:hover, .modal-content .cta-green:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,0.13), 0 2px 8px rgba(26,127,100,0.10) inset;
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.04);
}

@media (max-width: 1150px) {
  .modal-content {
    max-width: 95vw;
  }
}
@media (max-width: 600px) {
  .modal-content {
    width: 98vw !important;
    max-width: 98vw !important;
    padding: 0.7rem 0.2rem !important;
    max-height: 98vh !important;
    position: relative;
  }
  .modal-close {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    font-size: 2.2rem;
    z-index: 10;
  }
  .modal-title {
    margin-top: 2.5rem;
  }
}

/* CRO: Calculator Page Styles */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 2rem;
  width: 100%;
}

/* Primary button: solid dark green with white text */
.hero-ctas .cta-large {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  margin: 0;
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%) !important;
  color: var(--color-white) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(26, 127, 100, 0.15) !important;
  text-align: center !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.hero-ctas .cta-large:hover {
  background: linear-gradient(135deg, #1e8b6b 0%, #16634a 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25) !important;
}

/* Secondary button: white background with dark green border and text */
.hero-ctas .cta-small {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  margin: 0;
  background: var(--color-white) !important;
  color: #1a7f64 !important;
  border: 2px solid #1a7f64 !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Disable shimmer effect for secondary button */
.hero-ctas .cta-small::before {
  display: none;
}

.hero-ctas .cta-small:hover {
  background: #1a7f64 !important;
  color: #1a7f64 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
}

/* Explicit classes for hero CTAs (call vs email), mainly to isolate behavior */
.hero-call-cta,
.hero-email-cta {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-call-cta,
  .hero-email-cta {
    width: 100%;
    max-width: 100%;
  }
}

/* Responsive styles are handled in the existing media query below */

.calculator-section {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 3rem 0;
  margin: 2rem 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.calculator-form {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.calculator-form h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.calculator-form .form-group {
  margin-bottom: 1.5rem;
}

.calculator-form label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.calculator-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #cfd8dc;
  border-radius: var(--border-radius);
  background: var(--color-white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.calculator-form input:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13);
}

.calculator-form input.is-invalid {
  border-color: #dc3545;
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.form-actions button {
  flex: 1;
  min-width: 120px;
}

.assumptions-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
}

.calculator-results {
  background: linear-gradient(135deg, #f8fafc 0%, #e6f4ef 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 127, 100, 0.1);
}

.calculator-results h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.result-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 127, 100, 0.05);
}

.result-card h3 {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.result-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

.roi-indicator {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 0.5rem;
}

.roi-losing {
  background: #fee2e2;
  color: #dc2626;
}

.roi-breakeven {
  background: #fef3c7;
  color: #d97706;
}

.roi-profitable {
  background: #d1fae5;
  color: #059669;
}

.how-it-works {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 3rem 2rem;
  margin: 2rem 0;
}

.how-it-works h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.how-list li {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.how-list li:last-child {
  margin-bottom: 0;
}

.how-list li strong {
  color: var(--color-primary);
  font-weight: 700;
}

.spreadsheet-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin: 2rem 0;
}

.spreadsheet-card-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.spreadsheet-card-content h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.spreadsheet-card-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* CLV Calculator Specific Styles */
.mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.btn-mode {
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0;
}

.btn-mode:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-mode.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Toggle Buttons */
.toggle-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(26, 127, 100, 0.05);
}

.toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(26, 127, 100, 0.15);
}

.toggle-btn.active:hover {
  background: linear-gradient(135deg, #1e8b6b 0%, #16634a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
}

#clvForm {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

#clvForm label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#clvForm input {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #cfd8dc;
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#clvForm input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 127, 100, 0.13);
}

#clvForm button {
  margin: 0.5rem 0.5rem 0 0;
}

.input-type-toggle {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
}

.toggle-label input[type="radio"] {
  width: auto;
  margin: 0;
}

.toggle-label input[type="radio"]:checked + span {
  color: var(--color-primary);
  font-weight: 600;
}

#monthlyChurnSection,
#detailedChurnSection {
  transition: all 0.3s ease;
}

#detailedChurnSection {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.churn-info {
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  text-align: center;
}

.churn-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.churn-info strong {
  color: var(--color-primary);
}

/* Trial Section Styles */
.trial-section {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.trial-question {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.trial-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.trial-toggle .toggle-label {
  background: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.trial-toggle .toggle-label:hover {
  border-color: var(--color-primary);
}

.trial-toggle .toggle-label input[type="radio"]:checked + span {
  color: var(--color-primary);
  font-weight: 600;
}

.trial-toggle .toggle-label:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background: rgba(26, 127, 100, 0.1);
}

#trialPricingSection {
  transition: all 0.3s ease;
}

/* Retention Rate Styles */
#detailedRetentionSection {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

#detailedRetentionSection h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

.retention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.retention-field {
  display: flex;
  flex-direction: column;
}

.retention-field label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.conversion-field {
  display: flex;
  flex-direction: column;
}

.conversion-field label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 127, 100, 0.05);
}

.result-card h3 {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.result-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

#mrrChart {
  max-width: 100%;
  height: 300px;
  margin: 2rem 0;
}

details {
  margin-bottom: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

details p {
  margin-top: 0.5rem;
  color: var(--color-text-light);
}

/* Mobile adjustments for calculator and hero CTAs */
@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  .hero-ctas .cta,
  .hero-ctas .secondary-cta,
  .hero-ctas .cta-large,
  .hero-ctas .cta-small {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    font-size: 15px !important;
  }
  
  .calculator-section {
    padding: 2rem 0;
  }
  
  .calculator-form,
  .calculator-results {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .result-card {
    padding: 1rem;
  }
  
  .result-value {
    font-size: 1.5rem;
  }
  
  .how-it-works {
    padding: 2rem 1rem;
  }
  
  .spreadsheet-card {
    padding: 1.5rem;
  }

  .mode-toggle {
    flex-direction: column;
    align-items: center;
  }

  .btn-mode {
    width: 100%;
    max-width: 200px;
  }

  .toggle-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .toggle-btn {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  #clvForm button {
    width: 100%;
    margin: 0.5rem 0;
  }

  .input-type-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }

  .toggle-label {
    justify-content: center;
  }

  #detailedChurnSection {
    padding: 1rem;
  }

  .trial-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }

  .retention-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .trial-section {
    padding: 1rem;
  }
}

/* Mailchimp Form Styling */
.mc-embed-shell {
  width: 100%;
  max-width: 100%;
}

.mc-embed-signup {
  background: transparent;
  clear: left;
  font-family: var(--font-body);
  width: 100%;
}

.mc-embed-signup h2 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.mc-embed-signup .indicates-required {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.mc-embed-signup .asterisk {
  color: var(--color-primary);
  font-weight: 600;
}

.mc-embed-signup .mc-field-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.mc-embed-signup .mc-field-group label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.mc-embed-signup .mc-field-group input[type="email"],
.mc-embed-signup .mc-field-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #cfd8dc;
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.mc-embed-signup .mc-field-group input[type="email"]:focus,
.mc-embed-signup .mc-field-group input[type="text"]:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 127, 100, 0.13);
}

.mc-embed-signup .clear {
  text-align: center;
  margin-top: 1.5rem;
}

.mc-embed-signup .button {
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(26, 127, 100, 0.15);
  letter-spacing: 0.025em;
}

.mc-embed-signup .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
  background: linear-gradient(135deg, #1e8b6b 0%, #16634a 100%);
}

.mc-embed-signup .button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(26, 127, 100, 0.25);
}

/* Response messages */
.mc-embed-signup .response {
  font-weight: 600;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  text-align: center;
}

.mc-embed-signup .response-success {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.mc-embed-signup .response-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Form row layout for better organization */
.mc-embed-signup .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mc-embed-signup .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hide the default Mailchimp styling */
.mc-embed-signup input[type="checkbox"] {
  display: none;
}

/* Custom styling for the contact form container */
.contact-form {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.contact-form .mc-embed-shell {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 800px;
  width: 100%;
}

/* SEO Content Section */
.seo-content-section {
  padding: 3rem 0;
  background: var(--color-bg);
}

.seo-content-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.seo-content-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.seo-content-item h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.seo-content-item p {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.seo-content-item a,
.seo-content-item p a,
.seo-content-item ul li a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.seo-content-item a:hover,
.seo-content-item p a:hover,
.seo-content-item ul li a:hover {
  color: var(--color-primary-dark);
}

/* Modal specific styling */
.modal-content .mc-embed-shell {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.modal-content .mc-embed-signup h2 {
  display: none; /* Hide the Subscribe title in modal */
}

.modal-content .mc-embed-signup .indicates-required {
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.modal-content .mc-embed-signup .mc-field-group {
  margin-bottom: 0.8rem;
}

.modal-content .mc-embed-signup .mc-field-group label {
  font-size: 0.89rem;
  margin-bottom: 0.25rem;
}

.modal-content .mc-embed-signup .mc-field-group input[type="email"],
.modal-content .mc-embed-signup .mc-field-group input[type="text"] {
  padding: 0.6em 0.8em;
  font-size: 0.89rem;
  border-radius: 8px;
  border: 1.5px solid #cfd8dc;
  background: #f7faf9;
  box-shadow: 0 1.5px 8px rgba(37,99,235,0.04) inset;
}

.modal-content .mc-embed-signup .mc-field-group input[type="email"]:focus,
.modal-content .mc-embed-signup .mc-field-group input[type="text"]:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.13), 0 2px 12px rgba(37,99,235,0.07) inset;
}

.modal-content .mc-embed-signup .button {
  background: linear-gradient(90deg, #1a7f64 60%, #2563eb 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9em;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(26,127,100,0.13);
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 360px;
  margin: 0.7em auto 0.5em auto;
}

.modal-content .mc-embed-signup .button:hover {
  background: linear-gradient(90deg, #145c47 60%, #1742a0 100%);
  box-shadow: 0 6px 24px rgba(37,99,235,0.13);
}

/* Message textarea styling */
.mc-embed-signup textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.mc-embed-signup textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 127, 100, 0.1);
}

.mc-embed-signup textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Mobile-specific Mailchimp form fixes */
@media (max-width: 768px) {
  .contact-form {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
  }
  
  .contact-form .mc-embed-shell {
    padding: 1.5rem 1rem;
    margin: 0;
    width: 100%;
    max-width: 400px;
  }
  
  .mc-embed-signup {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .mc-embed-signup h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  .mc-embed-signup .mc-field-group {
    margin-bottom: 0.75rem;
  }
  
  .mc-embed-signup .mc-field-group input[type="email"],
  .mc-embed-signup .mc-field-group input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem;
    font-size: 16px; /* Prevents zoom on iOS */
    box-sizing: border-box;
  }
  
  .mc-embed-signup .button {
    width: 100%;
    max-width: 320px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
  }
  
  .mc-embed-signup .indicates-required {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 0 0.5rem;
  }
  
  .contact-form .mc-embed-shell {
    padding: 1rem 0.75rem;
    margin: 0;
    max-width: 350px;
  }
  
  .mc-embed-signup h2 {
    font-size: 1.125rem;
  }
  
  .mc-embed-signup .mc-field-group input[type="email"],
  .mc-embed-signup .mc-field-group input[type="text"] {
    padding: 0.5rem;
    font-size: 16px;
  }
  
  .mc-embed-signup .button {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 280px;
    line-height: 1.2;
    text-align: center;
  }
}

/* CRO: New CTA section styles with Calendly + lead form */
.cta-subtitle {
  max-width: 760px;
  margin: 0.75rem auto 2rem auto;
  text-align: center;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.6;
}

.intro-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.intro-call-calendly,
.intro-call-form {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.intro-call-calendly h3,
.intro-call-form h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.intro-call-copy {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1rem;
}

.intro-call-form .mc-embed-signup h2 {
  font-size: 1.05rem;
  text-align: left;
  margin-bottom: 0.75rem;
}

.intro-call-form .mc-field-group label {
  font-size: 0.9rem;
}

.intro-call-form .button {
  width: 100%;
  max-width: 100%;
  font-weight: 700;
}

@media (max-width: 960px) {
  .intro-call-calendly,
  .intro-call-form {
    padding: 1.5rem 1.1rem;
  }
}

/* Mobile CTA button fixes */
@media (max-width: 768px) {
  .btn-primary {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .hero-cta .btn {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .hero-cta {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    max-width: 250px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero-cta .btn {
    max-width: 250px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .resources .hero-cta .btn-primary {
    max-width: 280px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .resources .hero-cta .btn-primary {
    min-width: auto;
    width: 100%;
    max-width: 320px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Results page styles */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.result-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.result-company {
  flex: 1;
  min-width: 200px;
}

.result-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #f8f9fa;
  padding: 0.5rem;
}

.result-company h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.result-industry {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.result-story {
  margin-bottom: 1.5rem;
}

.result-story p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-item {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  border-radius: var(--radius-md);
  color: var(--color-white);
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.metric-label {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.metric-detail {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .result-card {
    padding: 1.5rem;
  }
  
  .result-header {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
    align-items: center;
  }
  
  .result-company {
    min-width: auto;
    flex: 1;
  }
  
  .result-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  
  .result-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .metric-value {
    font-size: 1.75rem;
  }
  
  .metric-item {
    height: 100px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .result-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .result-header {
    flex-direction: column;
    text-align: center;
  }
  
  .metric-item {
    height: 90px;
    padding: 0.75rem;
  }
}

/* Proof tiles for service pages */
.proof-tile {
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  text-align: center;
}

.proof-metric {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.proof-description {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .proof-tile {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .proof-metric {
    font-size: 1.25rem;
  }
}

/* Partner Badge Section */
.partner-badge-section {
  background: #f7faf9;
  padding: 3rem 0;
  margin: 2rem 0;
}

.partner-badge-section h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.partner-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.partner-badge-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-badge-description {
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 700px;
}

.partner-badge-description a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.partner-badge-description a:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .partner-badge-section {
    padding: 2rem 0;
  }
  
  .partner-badge-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .partner-badge-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}

/* ================================================
   CAC Payback Calculator - Advanced Tool Styles
   ================================================ */

/* Advanced Tool Hero Sections (CAC Calculator & Mix Allocator) */
.tools .hero-section,
.calculator-section .hero-section {
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  color: var(--color-white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.tools .hero-section h1,
.calculator-section .hero-section h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.tools .hero-subtitle,
.calculator-section .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Container */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container-wide {
    padding: 0 1rem;
  }
}

/* Calculator Section */
.calculator-section {
  padding: 3rem 0;
  background: var(--color-bg);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
}

/* Panel Cards */
.input-panel,
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.panel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 127, 100, 0.1);
}

.form-input:hover {
  border-color: #c0c0c0;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Input with currency/suffix */
.input-with-currency,
.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  font-weight: 600;
  color: var(--color-text);
  pointer-events: none;
  z-index: 2;
  font-size: 1rem;
  line-height: 1;
}

.input-with-currency .form-input,
.input-with-suffix .form-input {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  width: 100%;
}

.input-with-currency input,
.input-with-suffix input {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  width: 100%;
}

.input-suffix {
  position: absolute;
  right: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  pointer-events: none;
  z-index: 2;
  background: white;
  padding: 0 0.25rem;
}

/* Tooltips */
.tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-text-light);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  cursor: help;
  position: relative;
  font-weight: 700;
}

.tooltip:hover {
  background: var(--color-primary);
}

.tooltip-bubble {
  position: fixed;
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  z-index: 9999;
  pointer-events: none;
  line-height: 1.3;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1;
  visibility: visible;
}

.tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
}

/* Divider */
.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 1.5rem 0;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-calculate {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-calculate:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.25);
}

.btn-calculate:active {
  transform: translateY(0);
}

.btn-reset {
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-reset:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.btn-secondary-small {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-secondary-small:hover {
  background: #e0e0e0;
}

/* Sensitivity Analysis */
.sensitivity-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.sensitivity-group {
  margin-bottom: 1.25rem;
}

.sensitivity-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.sensitivity-delta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-primary-dark);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: var(--color-primary-dark);
}

/* Empty State */
.empty-state {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.kpi-unit {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Status Badge & Insight */
.insight-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.status-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge.status-healthy {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.status-badge.status-average {
  background: #fff3cd;
  color: #856404;
  border: 2px solid #ffeaa7;
}

.status-badge.status-risky {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.insight-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* Chart Card */
.chart-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.chart-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}


/* Cohort Section */
.cohort-toggle-section {
  margin-bottom: 1rem;
}

.btn-toggle {
  width: 100%;
  padding: 1rem;
  background: var(--color-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.btn-toggle:hover {
  border-color: var(--color-primary);
  background: #f8f9fa;
}

.cohort-section {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

.cohort-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cohort-table thead {
  background: var(--color-bg);
}

.cohort-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.cohort-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text);
}

.cohort-table tr:hover {
  background: #f8f9fa;
}

.cohort-table tr.breakeven-row {
  background: #d4edda;
  font-weight: 600;
}

.cohort-table tr.breakeven-row:hover {
  background: #c3e6cb;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-width: 150px;
  padding: 0.875rem 1.25rem;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.btn-action:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 127, 100, 0.2);
}

.btn-action span {
  font-size: 1rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-text);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-weight: 600;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .toast-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* Resource Page Styles */
.resources main {
  background: var(--color-white);
}

/* Breadcrumb Styling */
.breadcrumb-nav {
  background: var(--color-bg);
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* Breadcrumbs */
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--slate-500);
}

.breadcrumb li > span {
  pointer-events: none;
}

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

.breadcrumb a:active,
.breadcrumb a:focus {
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: inherit;
  pointer-events: none;
}

.breadcrumb li::after {
  pointer-events: none;
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-text-light);
}

/* Resource Hero Section */
.resources .hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.resources .hero-section h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.resources .hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.resources .hero-content {
  max-width: 900px;
  margin: 2rem auto;
}

.resources .hero-content a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.resources .hero-content a:hover {
  color: #99f6e4;
}

.resources .hero-content h3 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Hero Image Container */
.resources .hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 2rem;
  max-width: 800px;
}

.resources .hero-dashboard-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.resources .hero-dashboard-image:hover {
  transform: scale(1.02);
}

.resources .hero-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.resources .hero-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-white);
}

.resources .hero-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.resources .hero-illustration {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.3);
}

.resources .hero-cta {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resources .hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  /* High contrast styling for dark green background */
  background: #ffffff;
  color: #145c47;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resources .hero-cta .btn-primary:hover {
  background: #f0f9f6;
  color: #0d3d2e;
  border-color: #f0f9f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.resources .hero-cta .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.resources .internal-links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.resources .internal-links h3 {
  color: var(--color-text);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.resources .internal-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.resources .internal-links a {
  color: var(--color-primary);
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 600;
}

.resources .internal-links a:hover {
  color: var(--color-primary-dark);
}

/* Content Illustrations */
.resources .content-illustration {
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
}

.resources .content-illustration img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.resources .content-illustration figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
}

/* Resource Table of Contents */
.resources .toc-section {
  background: var(--color-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-primary);
}

.resources .toc-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.resources .toc-toggle {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  margin-bottom: 1.5rem;
}

.resources .toc-toggle::marker {
  content: '';
}

.resources .toc-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0;
}

.resources .toc-list li {
  padding: 0.5rem 0;
  line-height: 1.6;
}

.resources .toc-list a {
  color: var(--color-text);
  font-weight: 500;
}

.resources .toc-list a:hover {
  color: var(--color-primary);
}

.resources .back-to-top {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  text-align: right;
}

/* Resource Content Sections */
.resources .content-section {
  padding: 3rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.resources .content-section:last-of-type {
  border-bottom: none;
}

.resources .content-section h2 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.resources .content-section h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.resources .content-section h4 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.resources .content-section ul,
.resources .content-section ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.resources .content-section li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Resource Illustration Placeholders */
.resources .illustration-placeholder,
.resources .platform-cards,
.resources .timeline-illustration,
.resources .chart-illustration,
.resources .data-illustration,
.resources .flow-illustration,
.resources .dashboard-illustration,
.resources .workshop-illustration,
.resources .cycle-illustration {
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  color: #999;
  font-style: italic;
}

/* Horizontal table scroll - clean, no edge gradients */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
  background: transparent !important;
  mask-image: none;
  -webkit-mask-image: none;
  background-image: none !important;
  box-shadow: none !important;
}

.table-wrapper::before {
  content: none !important;
}

.table-wrapper::after {
  content: 'Scroll →';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(20, 92, 71, 0.72);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 92, 71, 0.16);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.table-wrapper.show-right-fade {
  mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 32px), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 32px), rgba(0,0,0,0));
}

.table-wrapper.is-overflowing::after {
  opacity: 1;
  transform: translateX(0);
}

.table-wrapper.has-scrolled::after {
  opacity: 0;
  transform: translateX(6px);
}

.table-wrapper table {
  min-width: 640px;
  border-collapse: collapse;
  background-image: none !important;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.75rem;
}

.resources .table-wrapper {
  margin: 2rem 0;
}

.resources table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

/* Resource Code Blocks */
.resources pre {
  font-family: var(--font-mono, 'SFMono-Regular', 'Menlo', 'Monaco', monospace);
  font-size: 0.9375rem;
  line-height: 1.6;
  background: #0f172a;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}

.resources pre code {
  display: block;
  white-space: inherit;
  word-break: inherit;
  overflow-wrap: inherit;
}

/* Table and figure caption styles */
.resources caption,
figcaption {
  font-weight: 700;
  font-size: 1.0625rem; /* 17px - 1pt smaller than 1.125rem (18px) */
  font-style: italic;
  color: var(--color-primary);
  padding: 1rem;
  text-align: left;
  background: var(--color-bg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Specific styling for figure captions (charts, diagrams) */
figcaption {
  background: transparent;
  padding: 0.75rem 0;
  border-radius: 0;
  margin-top: 0.5rem;
  font-size: 0.9375rem; /* 15px - slightly smaller for figure captions */
}

.resources thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.resources th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary-dark);
}

.resources td {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.resources tbody tr:hover {
  background: var(--color-bg);
}

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

/* Resource Callout Boxes */
.resources .service-callout,
.resources .resource-callout {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.resources .service-callout h3,
.resources .resource-callout h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.resources .service-callout p,
.resources .resource-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Service callout CTA button container spacing */
.resources .service-callout p + div,
.resources .resource-callout p + div {
  margin-top: 1.5rem;
}

.resources .service-callout .btn-primary,
.resources .resource-callout .btn-primary {
  display: inline-block;
}

/* Resource CTA Section Spacing */
.resources .cta-section {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.resources .cta-section .btn-primary {
  display: inline-block;
}

/* Resource FAQ Section */
.resources .faq-section {
  padding: 3rem 0;
  background: var(--color-bg);
}

.resources .faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.resources .faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.resources .faq-item summary {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resources .faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
}

.resources .faq-item[open] summary::after {
  content: '−';
}

.resources .faq-item p,
.resources .faq-item ul {
  margin-top: 1rem;
  color: var(--color-text);
}

/* Resource Author Section */
.resources .author-section {
  padding: 3rem 0;
  background: var(--color-bg);
}

.resources .author-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.resources .author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.resources .author-bio h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 0;
  color: var(--color-primary);
}

.resources .publish-info {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.resources .resource-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.resources .resource-links li {
  padding: 0.5rem 0;
}

.resources .footer-resources {
  background: var(--color-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.resources .last-updated {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* Resource Container Widths */
.resources .container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* General Resource Callout Styles (for use across site) */
.resource-callout {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.resource-callout h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.resource-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.resource-callout a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Resource Card Styles (for homepage and other pages) */
.resources-section {
  background: var(--color-bg);
  padding: 3rem 0;
}

.resource-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--color-primary);
}

.resource-card h3 {
  margin-top: 0;
}

.resource-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.resource-card h3 a:hover {
  text-decoration: underline;
}

.resource-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Resource Responsive */
@media (max-width: 768px) {
  .resources .hero-section {
    padding: 2rem 0;
  }
  
  .resources .hero-section h1 {
    font-size: 2rem;
  }
  
  .resources .hero-content {
    padding: 0 1rem;
  }
  
  .resources .hero-image-container {
    margin: 2rem auto 1.5rem;
    max-width: 90%;
  }
  
  .resources .toc-wrapper {
    padding: 1rem;
  }
  
  .resources .toc-list {
    padding-left: 1rem;
  }
  
  .resources .content-section {
    padding: 2rem 0;
  }
  
  .resources .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .resources .author-photo {
    width: 120px;
    height: 120px;
  }
  
  .resources table {
    font-size: 0.875rem;
  }
  
  .resources th, .resources td {
    padding: 0.75rem 0.5rem;
  }
  
  .resources .container-wide {
    padding: 0 1rem;
  }
  
  /* Enhanced CTA spacing on mobile */
  .resources .cta-section {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Spacing for CTAs that appear directly after content */
  .resources .content-section > .cta-section {
    margin-top: 2.5rem;
  }
  
  .resources .content-section p + .cta-section,
  .resources .content-section ul + .cta-section,
  .resources .content-section ol + .cta-section {
    margin-top: 2.5rem;
  }
  
  /* Enhanced service callout CTA spacing on mobile */
  .resources .service-callout p + div,
  .resources .resource-callout p + div {
    margin-top: 2rem;
  }
  
  .resources .service-callout {
    padding: 1.5rem;
  }
}

/* Advanced Tool Responsive Adjustments */
@media (max-width: 768px) {
  .tools .hero-section,
  .calculator-section .hero-section {
    padding: 3rem 0 2rem;
  }

  .calculator-section {
    padding: 2rem 0;
  }

  .panel-card {
    padding: 1.5rem;
  }

  .kpi-value {
    font-size: 1.75rem;
  }

  .action-buttons {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .tools .hero-section h1,
  .calculator-section .hero-section h1 {
    font-size: 1.75rem;
  }

  .tools .hero-subtitle,
  .calculator-section .hero-subtitle {
    font-size: 1rem;
  }

  .panel-card {
    padding: 1rem;
  }

  .panel-card h2 {
    font-size: 1.5rem;
  }

  .kpi-value {
    font-size: 1.5rem;
  }

  .form-input {
    font-size: 0.9rem;
    padding: 0.625rem 0.875rem;
  }

  .btn-calculate,
  .btn-reset {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }

  .cohort-table {
    font-size: 0.75rem;
  }

  .cohort-table th,
  .cohort-table td {
    padding: 0.5rem;
  }
  
  .resources .hero-dashboard-image {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 360px) {
  .container-wide {
    padding: 0 0.5rem;
  }

  .button-group {
    flex-direction: column;
  }

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

/* ================================================
   Marketing Mix Allocator - Advanced Tool Styles
   ================================================ */

.mix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .mix-grid {
    grid-template-columns: 1fr;
  }
}

.mix-panel {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mix-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: #1a1a1a;
}

.mix-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #333;
}

.mix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.mix-table thead th {
  background: #f8f9fa;
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 2px solid #e9ecef;
  color: #495057;
}

.mix-table tbody td {
  padding: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.mix-table input {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.mix-table input:focus {
  outline: none;
  border-color: #2563eb;
}

.mix-table .channel-name {
  font-weight: 500;
}

.btn-add-channel {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #495057;
  transition: all 0.2s;
}

.btn-add-channel:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.btn-remove {
  background: transparent;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.25rem;
}

.btn-remove:hover {
  color: #bd2130;
}

.kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .kpi-grid-3 {
    grid-template-columns: 1fr;
  }
}

.kpi-card-compact {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.kpi-card-compact .kpi-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.kpi-card-compact .kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}

.chart-wrapper {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.chart-wrapper h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #495057;
}

canvas {
  width: 100% !important;
  height: 300px !important;
  max-height: 300px;
}

.action-buttons-mix {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-action-mix {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  background: white;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action-mix:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.btn-action-mix.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.btn-action-mix.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.objective-slider-container {
  margin-top: 1rem;
}

.objective-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.objective-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #2563eb, #10b981);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.objective-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.objective-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.load-example-cta {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.load-example-cta button {
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.load-example-cta button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.scenario-toggle {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.scenario-toggle label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.scenario-toggle input[type="checkbox"] {
  width: auto;
}

#scenarioBSection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6;
}

.allocation-result-table {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.allocation-result-table th {
  background: #f8f9fa;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.allocation-result-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6c757d;
  color: white;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  cursor: help;
  margin-left: 4px;
  position: relative;
}

.tooltip-icon:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.tooltip-icon:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
}

/* ===================================================
   Mix Allocator Enhancements - 2025 Playbook Edition
   =================================================== */

/* Educational Panel */
.educational-panel {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2563eb;
}

.educational-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.educational-panel details[open] summary {
  margin-bottom: 1rem;
}

.guidance-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.guidance-text {
  margin-bottom: 1rem;
}

.guidance-section {
  margin-top: 1rem;
}

.guidance-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
}

.guidance-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.guidance-section li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.guidance-section a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.guidance-section a:hover {
  text-decoration: underline;
}

/* Category Badges */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge.core {
  background: #dbeafe;
  color: #1e40af;
}

.category-badge.growth {
  background: #d1fae5;
  color: #065f46;
}

.category-badge.experimental {
  background: #fef3c7;
  color: #92400e;
}

/* Portfolio Meters */
.portfolio-view {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.portfolio-view h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.portfolio-meters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-meter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.meter-value {
  font-weight: 600;
  color: #1f2937;
}

.meter-bar {
  position: relative;
  height: 24px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.meter-fill.core {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.meter-fill.growth {
  background: linear-gradient(90deg, #10b981, #059669);
}

.meter-fill.experimental {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.meter-target {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: #374151;
  opacity: 0.5;
  z-index: 1;
}

.meter-benchmark {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.portfolio-warning {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
}

/* Benchmark Indicators */
.kpi-benchmark {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.benchmark-inline {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  margin-left: 0.5rem;
}

/* Data Quality Indicator */
.quality-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 0.25rem;
}

.quality-indicator.high {
  background: #10b981;
}

.quality-indicator.medium {
  background: #f59e0b;
}

.quality-indicator.low {
  background: #ef4444;
}

/* Enhanced KPI Grid */
.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .portfolio-view {
    padding: 1rem;
  }
  
  .meter-label {
    font-size: 0.85rem;
  }
  
  .portfolio-meter {
    gap: 0.4rem;
  }
  
  .educational-panel {
    padding: 0.75rem;
  }
  
  .guidance-section h4 {
    font-size: 0.8rem;
  }
  
  .guidance-section li {
    font-size: 0.8rem;
  }
}

/* Enhanced Table Responsiveness */
.mix-table {
  font-size: 0.85rem;
  min-width: 1200px; /* Minimum width to accommodate all columns */
}

.mix-table th,
.mix-table td {
  padding: 0.5rem 0.25rem;
  white-space: nowrap;
}

.channel-input {
  font-size: 0.8rem;
  padding: 0.25rem;
  width: 100%;
  min-width: 60px;
}

/* Responsive table container */
@media (max-width: 1400px) {
  .mix-table {
    font-size: 0.8rem;
  }
  
  .mix-table th,
  .mix-table td {
    padding: 0.4rem 0.2rem;
  }
  
  .channel-input {
    font-size: 0.75rem;
    padding: 0.2rem;
  }
}

@media (max-width: 1200px) {
  .mix-table {
    font-size: 0.75rem;
  }
  
  .mix-table th,
  .mix-table td {
    padding: 0.3rem 0.15rem;
  }
  
  .channel-input {
    font-size: 0.7rem;
    padding: 0.15rem;
  }
}

/* Ensure table scrolls horizontally */
.mix-grid {
  overflow-x: auto;
}

.mix-panel {
  min-width: 0; /* Allow shrinking */
}

/* Make channel allocation section full width */
.channel-allocation-section {
  width: 100%;
  max-width: none;
}

.channel-allocation-section .mix-grid {
  width: 100%;
  max-width: none;
}

/* Fix objective chooser and table column widths */
.mix-table th:nth-child(6), /* Data Quality column */
.mix-table td:nth-child(6) {
  min-width: 120px;
  width: 120px;
}

.mix-table th:nth-child(7), /* Current % column */
.mix-table td:nth-child(7) {
  min-width: 100px;
  width: 100px;
}

.mix-table th:nth-child(8), /* Capacity column */
.mix-table td:nth-child(8) {
  min-width: 100px;
  width: 100px;
}

.mix-table th:nth-child(9), /* Adstock column */
.mix-table td:nth-child(9) {
  min-width: 80px;
  width: 80px;
}

.mix-table th:nth-child(10), /* CAC column */
.mix-table td:nth-child(10) {
  min-width: 80px;
  width: 80px;
}

.mix-table th:nth-child(11), /* Payback column */
.mix-table td:nth-child(11) {
  min-width: 100px;
  width: 100px;
}

.mix-table th:nth-child(12), /* K column */
.mix-table td:nth-child(12) {
  min-width: 60px;
  width: 60px;
}

.mix-table th:nth-child(13), /* Remove button column */
.mix-table td:nth-child(13) {
  min-width: 60px;
  width: 60px;
}

/* Budget Configuration Two Column Layout */
.budget-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.guidance-column {
  display: flex;
  flex-direction: column;
}

.guidance-column h2 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.inputs-column {
  display: flex;
  flex-direction: column;
}

.inputs-column h2 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Enhanced Educational Panel for Left Column */
.guidance-column .educational-panel {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #2563eb;
  height: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guidance-column .guidance-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.guidance-column .guidance-text {
  margin-bottom: 1.5rem;
  color: #374151;
}

.guidance-column .guidance-section {
  margin-bottom: 1.5rem;
}

.guidance-column .guidance-section:last-child {
  margin-bottom: 0;
}

.guidance-column .guidance-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.guidance-column .guidance-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.guidance-column .guidance-section li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.guidance-column .guidance-section li:last-child {
  margin-bottom: 0;
}

.guidance-column .guidance-section a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.guidance-column .guidance-section a:hover {
  text-decoration: underline;
}

/* Results Full Width Layout */
.results-full-width {
  width: 100%;
  max-width: none;
  margin-top: 2rem;
}

.results-full-width h2 {
  color: #1f2937;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
}

/* KPI Rows */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.kpi-row-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card-large {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kpi-card-medium {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kpi-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0.5rem 0;
}

.kpi-value-medium {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0.5rem 0;
}

.kpi-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Portfolio Section */
.portfolio-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.portfolio-section h3 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.portfolio-meters-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-meter-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.meter-title {
  color: #374151;
}

.meter-value {
  color: #1f2937;
  font-weight: 600;
}

.meter-bar-horizontal {
  position: relative;
  height: 32px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.meter-bar-horizontal .meter-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 8px;
}

.meter-bar-horizontal .meter-target {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  background: #374151;
  opacity: 0.6;
  border-radius: 2px;
}

.meter-benchmark {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
  font-style: italic;
}

.portfolio-warning-horizontal {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #92400e;
  font-weight: 500;
}

/* Two Column Results Layout */
.results-two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.results-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Full Width Table Section */
.results-table-section {
  margin-bottom: 2rem;
}

.results-table-section h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Charts Grid - 2 Columns */
.results-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 2rem;
  align-items: start;
  width: 100%;
}

.results-column h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Results Table */
.table-container {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table thead th {
  background: #f8f9fa;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 2px solid #e9ecef;
  color: #495057;
}

.results-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  color: #374151;
}

.results-table tbody tr:hover {
  background: #f8f9fa;
}

/* Chart Containers */
.chart-container {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: fit-content;
}

.chart-container h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.chart-container canvas {
  max-width: 100%;
  height: auto;
}

/* Export Section */
.export-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .budget-config-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-two-column {
    grid-template-columns: 1fr;
  }
  
  .results-charts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .results-charts-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .budget-config-grid {
    gap: 1rem;
  }
  
  .guidance-column h2,
  .inputs-column h2 {
    font-size: 1.25rem;
  }
  
  .guidance-column .educational-panel {
    padding: 1rem;
  }
  
  .kpi-row {
    grid-template-columns: 1fr;
  }
  
  .kpi-row-secondary {
    grid-template-columns: 1fr;
  }
  
  .portfolio-meters-horizontal {
    gap: 1rem;
  }
  
  .export-section {
    flex-direction: column;
    align-items: center;
  }
}

/* Advanced settings button */
.btn-advanced {
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-advanced:hover {
  background: #4b5563;
}

/* Remove button styling */
.btn-remove {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove:hover {
  background: #dc2626;
}

.btn-remove:active {
  background: #b91c1c;
}

/* ====================================
   AEO-Lite Tool Styles
   ==================================== */

/* Score and pillar layout */
.score-wrap { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack vertically for better readability */
  gap: 1.5rem;
  margin-top: 1rem;
  max-width: 800px;
}

.pillar-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-white) 100%);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pillar-icon {
  font-size: 1.5rem;
}

.pillar-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pillar-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-suffix {
  font-size: 1rem;
  color: var(--color-text-light);
}

.pillar-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.pillar-fixes {
  margin-top: 1rem;
}

.pillar-fixes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.pillar-fixes summary:hover {
  text-decoration: underline;
}

/* Chips for surfaces and schema */
.chips { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  margin-top: 1rem;
}

.chip { 
  font-size: 0.9rem; 
  padding: 6px 10px; 
  border-radius: 999px; 
  border: 1px solid rgba(0,0,0,.12); 
  background: var(--color-bg);
}

.chip.pass { 
  background: rgba(5,150,105,.1); 
  border-color: rgba(5,150,105,.35); 
  color: #065f46;
}

.chip.fail { 
  background: rgba(220,38,38,.08); 
  border-color: rgba(220,38,38,.35); 
  color: #991b1b;
}


/* Fixes Badge List - Clean numbered list design */
.fixes-badge-list {
  list-style: none;
  counter-reset: fix-counter;
  padding: 0;
  margin: 1rem 0;
}

.fix-item {
  counter-increment: fix-counter;
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 1rem;
  background: var(--color-white);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fix-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.fix-item::before {
  content: counter(fix-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1;
}

.fix-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Priority badges - solid backgrounds */
.badge-priority-h {
  background: #fee2e2;
  color: #991b1b;
}

.badge-priority-m {
  background: #fed7aa;
  color: #9a3412;
}

.badge-priority-l {
  background: #d1fae5;
  color: #065f46;
}

/* Effort badges - outlined style */
.badge-effort {
  background: transparent;
  border: 1.5px solid currentColor;
}

.badge-effort-h {
  color: #92400e;
  border-color: #f59e0b;
}

.badge-effort-m {
  color: #3730a3;
  border-color: #6366f1;
}

.badge-effort-l {
  color: #1e40af;
  border-color: #3b82f6;
}

.fix-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.fix-pillar {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.fix-pillar::before {
  content: '→ ';
  color: var(--color-primary);
  margin-right: 0.25rem;
}

/* Sticky CTA */
.sticky-cta { 
  position: sticky; 
  bottom: env(safe-area-inset-bottom, 12px);
  display: block;
  z-index: 50;
  background: var(--color-bg);
  padding: 12px 1rem calc(env(safe-area-inset-bottom, 0px) + 12px);
  margin: 2rem -1rem -1rem -1rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.sticky-cta button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 127, 100, 0.2);
  user-select: none;
}

/* Lead capture section */
.lead-capture-section {
  background: var(--color-bg);
  padding: 3rem 0;
  margin: 3rem 0;
}

.lead-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lead-capture-benefits h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.lead-capture-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Chart container */
.chart-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category bars */
.category-bar-item {
  margin-bottom: 1.75rem;
}

.category-bar-item:last-child {
  margin-bottom: 0;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.category-bar-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.category-bar-score {
  font-size: 1.125rem;
  font-weight: 700;
}

.category-bar-track {
  position: relative;
  height: 32px;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease-out;
  background: linear-gradient(90deg, currentColor 0%, currentColor 90%, rgba(255,255,255,0.3) 100%);
}

.category-bar-benchmark {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: #374151;
  opacity: 0.5;
  z-index: 2;
}

.category-bar-benchmark::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid #374151;
  opacity: 0.7;
}

.category-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
}

/* Score breakdown table */
.score-breakdown-table {
  width: 100%;
  min-width: 500px; /* Ensure scrollable on small screens */
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
  border-spacing: 0;
}

.score-breakdown-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-breakdown-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-bg);
  font-size: 0.95rem;
}

.score-breakdown-table tbody tr:hover {
  background: var(--color-bg);
  transition: background 0.15s ease;
}

.score-breakdown-table .total-row {
  background: var(--color-bg-alt);
  font-weight: 700;
  border-top: 2px solid var(--color-primary);
}

.score-breakdown-table .total-row td {
  border-bottom: none;
  padding: 1rem;
}

/* Circular score indicator (pure CSS) */
.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-primary) 0deg,
    var(--color-primary) calc(3.6deg * var(--score, 0)),
    var(--color-bg) calc(3.6deg * var(--score, 0))
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-white);
}

.score-circle-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Enhanced results display */
.results-display {
  animation: fadeInUp 0.4s ease-out;
  padding: 1rem;
  padding-bottom: 140px; /* Space for sticky CTA */
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

/* Better section headings in results */
.results-display h3 {
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 2px solid var(--color-bg-alt);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive adjustments for AEO-Lite */

@media (max-width: 768px) {
  
  .lead-capture-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .chips {
    gap: 6px;
  }
  
  .chip {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  /* Badge list mobile optimization */
  .fix-item {
    padding: 1rem 1rem 1rem 2.5rem;
  }
  
  .fix-item::before {
    left: 0.75rem;
    font-size: 1rem;
  }
  
  .fix-text {
    font-size: 0.875rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  
  .chart-container {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
  
  .chart-container h3 {
    font-size: 1.125rem;
  }
  
  .category-bar-name {
    font-size: 0.85rem;
  }
  
  .category-bar-score {
    font-size: 1rem;
  }
  
  .category-bar-track {
    height: 28px;
  }
  
  .score-breakdown-table th,
  .score-breakdown-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-circle::before {
    width: 80px;
    height: 80px;
  }
  
  /* Mobile CTA optimization */
  .sticky-cta {
    bottom: 8px;
    padding: 0 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  
  .sticky-cta button {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
    white-space: normal;
    line-height: 1.3;
  }
  
  /* Ensure results container has proper padding on mobile */
  .results-display {
    padding: 0 0.5rem;
  }
  
  .score-header {
    padding: 1rem;
  }
  
  .score-wrap {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Mobile pillar cards */
  .pillar-card {
    padding: 1rem;
  }
  
  .pillar-score {
    font-size: 2rem;
  }
  
  /* Optimize category bars for mobile */
  .category-bar-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  
  .category-bar-labels {
    font-size: 0.7rem;
  }
  
  /* Add proper word breaking for all text elements */
  .results-display p,
  .pillar-description,
  .category-bar-name,
  .checker-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  
  /* Ensure all containers respect viewport */
  .checker-card,
  .chart-container,
  .score-header {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Fix floating CTA for iOS */
  .floating-cta {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    touch-action: manipulation;
  }
  
  .floating-cta button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(26, 127, 100, 0.2);
  }
  
  /* All buttons should be touch-friendly */
  .btn-check,
  .btn-primary,
  .copy-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(26, 127, 100, 0.2);
    user-select: none;
    cursor: pointer;
  }
}
