/* --- CSS Reset (trimmed) --- */
*,
*::before,
*::after {
  box-sizing: border-box
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0
}

html:focus-within {
  scroll-behavior: smooth
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  line-height: 1.7  /* Phase 2 LLM Update: Increased from 1.6 for better readability (Cognitive Fluency) */
}

img,
picture {
  max-width: 100%;
  display: block
}

input,
button,
textarea,
select {
  font: inherit
}

:root {
  scrollbar-gutter: stable both-edges;
  --max: 1120px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Light theme (default) */
:root {
  --bg: #f7f8fc;
  --bg-mute: #eef1f8;
  --panel: #ffffff;
  --panel-2: #fafbff;
  --text: #081224;
  --muted: #3b4a6b;
  --brand: #7aa2ff;
  --brand-2: #6ef3d6;
  --accent: #ffd166;
  --ok: #5dd39e;
  --danger: #ff6b6b;
  --shadow: 0 10px 25px rgba(10, 22, 60, .08);
}

/* Dark theme - this should override light theme when .theme-dark class is present */
body.theme-dark {
  --bg: #0b1020;
  --bg-mute: #10162e;
  --panel: #0f162f;
  --panel-2: #121a38;
  --text: #eaf0ff;
  --muted: #b6c0dd;
  --brand: #7aa2ff;
  --brand-2: #6ef3d6;
  --accent: #ffd166;
  --ok: #5dd39e;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(122, 162, 255, .25), transparent),
    radial-gradient(1000px 500px at 120% 10%, rgba(110, 243, 214, .2), transparent),
    var(--bg);
  animation: backgroundShift 20s ease-in-out infinite alternate;
}

/* LLM Update: Skip to content link for accessibility (WCAG 2.1 Level A) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Phase 2 LLM Update: Navigation CTA styling (reduced visual weight for visual hierarchy) */
.nav-cta {
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  background: rgba(122, 162, 255, 0.2) !important;
  outline: none;
}

/* Phase 2 LLM Update: Software expertise trust badges (Authority Transfer) */
.tools-trust-section {
  padding: 1.5rem 0;
  background: rgba(122, 162, 255, 0.05);
  border-top: 1px solid rgba(122, 162, 255, 0.1);
  border-bottom: 1px solid rgba(122, 162, 255, 0.1);
}

.tools-intro {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.tools-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.tool-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(122, 162, 255, 0.1);
  border: 1px solid rgba(122, 162, 255, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.tool-badge:hover {
  opacity: 1;
  background: rgba(122, 162, 255, 0.15);
  border-color: rgba(122, 162, 255, 0.3);
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 0%, 100% 0%;
  }

  100% {
    background-position: 20% 10%, 80% 20%;
  }
}

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

a:hover {
  opacity: .8;
  transition: opacity .2s ease;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: none;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224;
  box-shadow: 0 8px 20px rgba(122, 162, 255, .35);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Ensure button text remains dark even in dark theme */
body.theme-dark .btn {
  color: #081224 !important;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(122, 162, 255, .45);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

body.theme-dark .btn-secondary {
  color: #ffffff !important;
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(122, 162, 255, .45);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(122, 162, 255, .15);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(122, 162, 255, .1);
  border-color: rgba(122, 162, 255, .6);
  outline: none;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, .85), rgba(11, 16, 32, .65));
  background-color: rgba(11, 16, 32, .85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(122, 162, 255, .15);
  z-index: 50;
}

header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 900;
  letter-spacing: .3px
}

.logo-image {
  width: 55px;
  height: 50px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-image:hover {
  transform: translateY(-1px);
}

@keyframes logoGlow {
  0% {
    box-shadow: var(--shadow);
  }

  100% {
    box-shadow: 0 10px 30px rgba(122, 162, 255, .5);
  }
}

/* Desktop Navigation */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links-desktop a {
  opacity: .9;
  padding: .9rem .8rem;
  border-radius: 10px;
  transition: all .2s ease;
}

.nav-links-desktop a:hover,
.nav-links-desktop a:focus {
  background: rgba(122, 162, 255, .15);
  opacity: 1;
  outline: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  /* Changed from space-around to space-between */
  width: 32px;
  height: 24px;
  /* Increased from 32px to give more room */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  /* Reduced padding to give more room for lines */
  z-index: 65;
  transition: transform 0.3s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle:focus {
  outline: none;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Fixed hamburger line styling with proper spacing */
.mobile-menu-toggle .hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text) !important;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  display: block;
  margin: 0;
  /* Remove any default margins */
}

/* Ensure hamburger lines are visible in dark theme with high specificity */
body.theme-dark .mobile-menu-toggle .hamburger-line {
  background: var(--text) !important;
}

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

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

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

/* Mobile Navigation - Fixed positioning and alignment */
.nav-links-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Use dynamic viewport height for better mobile support */
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.98), rgba(15, 22, 47, 0.96));
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 60;

  /* Flexbox layout - hidden by default */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;

  /* Smooth transitions */
  opacity: 0;
  transform: translateY(-20px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s;
}

.nav-links-mobile.active {
  display: flex !important;
  /* Ensure flexbox is applied when active */
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-links-mobile a {
  display: flex;
  /* Changed from block to flex for better centering */
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 240px;
  /* Reduced from 280px */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(122, 162, 255, 0.15);
  border: 2px solid rgba(122, 162, 255, 0.3);
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  /* Ensure padding is included in width calculations */
}

.nav-links-mobile a:last-child {
  margin-bottom: 0;
}

.nav-links-mobile a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 162, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.nav-links-mobile a:hover::before,
.nav-links-mobile a:focus::before {
  left: 100%;
}

.nav-links-mobile a:hover,
.nav-links-mobile a:focus {
  background: rgba(122, 162, 255, 0.25);
  border-color: rgba(122, 162, 255, 0.5);
  color: var(--text);
  transform: translateY(-2px) scale(1.02);
  outline: none;
  box-shadow: 0 8px 25px rgba(122, 162, 255, 0.2);
}

.nav-links-mobile a:active {
  transform: translateY(-1px) scale(0.98);
}

/* Special styling for the CTA button in mobile menu - narrower */
.nav-links-mobile .btn {
  display: flex !important;
  /* Ensure flex display for CTA button too */
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224 !important;
  border: none;
  box-shadow: 0 8px 25px rgba(122, 162, 255, 0.4);
  max-width: 240px;
  /* Reduced from 280px */
  width: 100%;
  font-weight: 700;
  position: relative;
  box-sizing: border-box;
}

.nav-links-mobile .btn:hover,
.nav-links-mobile .btn:focus {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(122, 162, 255, 0.5);
  outline: none;
}

.nav-links-mobile .btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .logo-image {
    width: 50px;
    height: 50px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  header .nav {
    padding: 0.75rem 0;
  }
}

/* Ensure mobile menu works on very small screens */
@media (max-width: 480px) {
  .nav-links-mobile {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .nav-links-mobile a {
    max-width: 220px;
    /* Even narrower on small screens */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .nav-links-mobile .btn {
    max-width: 220px;
    /* Match other buttons */
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

@media (min-width: 769px) {
  .nav-links-desktop {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-links-mobile {
    display: none !important;
  }
}

/* Override legacy styles at the bottom - place this after all other mobile styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    background: transparent !important;
    padding: 2px !important;
    /* Updated padding */
    border-radius: 4px !important;
    height: 24px !important;
    /* Ensure height is applied */
    justify-content: space-between !important;
    /* Ensure spacing is applied */
  }

  .mobile-menu-toggle.active {
    background: transparent !important;
  }

  .mobile-menu-toggle .hamburger-line {
    background: var(--text) !important;
    margin: 0 !important;
    /* Remove any margins */
  }

  body.theme-dark .mobile-menu-toggle .hamburger-line {
    background: var(--text) !important;
  }

  /* Ensure mobile menu shows as flexbox when active */
  .nav-links-mobile.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Hero Section */
.hero {
  padding: clamp(40px, 8vw, 90px) 0 40px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid>div:first-child {
    order: 1;
  }

  .hero-grid>div:last-child {
    order: 2;
    margin-top: 2rem;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(122, 162, 255, .12);
  border: 1px solid rgba(122, 162, 255, .25);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: heroBadgeGlow 3s ease-in-out infinite alternate;
}

@keyframes heroBadgeGlow {
  0% {
    background: rgba(122, 162, 255, .12);
    border-color: rgba(122, 162, 255, .25);
    box-shadow: 0 0 0 rgba(122, 162, 255, .2);
  }

  100% {
    background: rgba(122, 162, 255, .18);
    border-color: rgba(122, 162, 255, .35);
    box-shadow: 0 0 20px rgba(122, 162, 255, .15);
  }
}

/* Hero Headlines */
.hero-headline {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: heroAccentShimmer 4s ease-in-out infinite;
  position: relative;
}

@keyframes heroAccentShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subheadline {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
  max-width: 55ch;
}

.hero-description {
  max-width: 55ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: .9;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-guarantee {
  background: rgba(110, 243, 214, .1);
  border: 1px solid rgba(110, 243, 214, .3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 2rem;
}

.hero-guarantee strong {
  color: var(--brand-2);
}

/* Additional spacing for hero content elements */
.hero > .container > div > div > div {
  margin-top: 1.5rem;
}

.hero > .container > div > div > div:first-child {
  margin-top: 0;
}

/* Tilt Card */
.tilt-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}

.tilt-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(400px 200px at 10% 10%, rgba(122, 162, 255, .25), transparent 60%),
    radial-gradient(300px 160px at 90% 20%, rgba(110, 243, 214, .18), transparent 60%);
  animation: cardGlow 4s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes cardGlow {
  0% {
    opacity: .3;
  }

  100% {
    opacity: .6;
  }
}

/* ROI Teaser Banner */
.roi-teaser-banner {
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.08), rgba(110, 243, 214, 0.05));
  border: 1px solid rgba(122, 162, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(122, 162, 255, 0.1);
  animation: subtle-glow 4s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
  0% {
    box-shadow: 0 4px 12px rgba(122, 162, 255, 0.1);
  }

  100% {
    box-shadow: 0 6px 20px rgba(122, 162, 255, 0.15);
  }
}

.roi-teaser-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.roi-teaser-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.roi-teaser-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
}

.roi-teaser-text strong {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.roi-teaser-text span {
  color: var(--muted);
  font-size: 0.95rem;
}

.roi-teaser-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(122, 162, 255, 0.25);
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ensure roi-teaser-btn text remains dark even in dark theme */
body.theme-dark .roi-teaser-btn {
  color: #081224 !important;
}

.roi-teaser-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(122, 162, 255, 0.35);
}

/* Mobile adjustments for ROI teaser */
@media (max-width: 768px) {
  .roi-teaser-banner {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
  }

  .roi-teaser-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .roi-teaser-text {
    min-width: auto;
    align-items: center;
  }
}

/* ROI Calculator Styles */
.roi-calculator-section {
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.03), rgba(110, 243, 214, 0.02));
  border-top: 1px solid rgba(122, 162, 255, 0.1);
  border-bottom: 1px solid rgba(122, 162, 255, 0.1);
}

.roi-calculator-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.roi-calculator-intro h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.roi-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(122, 162, 255, 0.05);
  border: 1px solid rgba(122, 162, 255, 0.1);
  border-radius: var(--radius-md);
  min-width: 140px;
}

.roi-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.roi-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

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

.calculator-form {
  background: var(--panel);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 162, 255, 0.1);
  box-shadow: var(--shadow);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.calculator-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(122, 162, 255, 0.2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.1);
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  font-weight: 600;
  z-index: 2;
}

.input-with-prefix .calculator-input {
  padding-left: 2rem;
}

.input-hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.slider-container {
  margin: 0.5rem 0;
}

.calculator-slider {
  width: 100%;
  height: 6px;
  background: rgba(122, 162, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(122, 162, 255, 0.3);
}

.calculator-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(122, 162, 255, 0.3);
}

.slider-output {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--brand);
}

.calculator-results {
  background: var(--panel);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 162, 255, 0.1);
  box-shadow: var(--shadow);
  position: relative;
}

.calculator-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--muted);
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.results-container {
  animation: slideUpResults 0.5s ease-out;
}

@keyframes slideUpResults {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.urgency-message {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 159, 67, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.loss-highlight {
  color: #ff6b6b;
  font-weight: 900;
  font-size: 1.1rem;
}

.savings-breakdown {
  margin-bottom: 2rem;
}

.savings-metric.primary {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.1), rgba(110, 243, 214, 0.1));
  border: 2px solid rgba(122, 162, 255, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.savings-metric.primary .metric-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.savings-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.savings-metric {
  text-align: center;
  padding: 1rem;
  background: rgba(122, 162, 255, 0.05);
  border: 1px solid rgba(122, 162, 255, 0.1);
  border-radius: var(--radius-sm);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.calculator-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(122, 162, 255, 0.1);
}

.calculator-disclaimer {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.calculator-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.calculator-primary-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Mobile Responsive for ROI Calculator */
@media (max-width: 768px) {
  .roi-calculator {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .roi-stats {
    gap: 1rem;
  }

  .roi-stat {
    min-width: 120px;
    padding: 0.75rem;
  }

  .roi-stat-number {
    font-size: 1.5rem;
  }

  .calculator-form,
  .calculator-results {
    padding: 1.5rem;
  }

  .savings-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .savings-metric.primary .metric-value {
    font-size: 2rem;
  }

  .calculator-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .calculator-actions .btn,
  .calculator-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .roi-stats {
    flex-direction: column;
    align-items: center;
  }

  .roi-stat {
    min-width: auto;
    width: 100%;
    max-width: 200px;
  }

  .calculator-form,
  .calculator-results {
    padding: 1rem;
  }

  .input-hint {
    font-size: 0.8rem;
  }
}

/* Generic Styles */
.section {
  padding: clamp(36px, 6vw, 70px) 0
}

.section h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.section>.container>p {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.muted {
  color: var(--muted)
}

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

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

  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
  }

  .grid.cols-4 {
    grid-template-columns: repeat(4, 1fr)
  }
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(122, 162, 255, .15);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
}

/* Pricing/Engagement Model Styles */
.pricing-step {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(122, 162, 255, .15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
}

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

.step-badge {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(122, 162, 255, .3);
}

.pricing-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(122, 162, 255, .1);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 162, 255, .2);
}

.pricing-content p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-highlight {
  background: rgba(110, 243, 214, .1);
  border: 1px solid rgba(110, 243, 214, .3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text);
}

.pricing-highlight strong {
  color: var(--brand-2);
}

/* Phase 2 LLM Update: Visual guarantee badge for Risk Reversal psychology */
.guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(93, 211, 158, 0.1);
  border: 2px solid var(--ok);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(93, 211, 158, 0.15);
}

.guarantee-icon {
  font-size: 2.5rem;
  color: var(--ok);
  line-height: 1;
  flex-shrink: 0;
}

.guarantee-content {
  flex: 1;
}

.guarantee-title {
  display: block;
  color: var(--ok);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.guarantee-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.guarantee-text strong {
  color: var(--ok);
  font-weight: 700;
}

.pricing-actions {
  margin-top: 1.5rem;
}

.implementation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.tier {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 2px solid rgba(122, 162, 255, .2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.tier:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 162, 255, .4);
  box-shadow: 0 8px 25px rgba(122, 162, 255, .15);
}

.tier h4 {
  margin: 0 0 .75rem 0;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tier p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}

/* Individual tier styling */
.tier:nth-child(1) h4 {
  color: #cd7f32;
}

.tier:nth-child(1)::before {
  background: linear-gradient(90deg, #cd7f32, #b8860b);
}

.tier:nth-child(2) h4 {
  color: #c0c0c0;
}

.tier:nth-child(2)::before {
  background: linear-gradient(90deg, #c0c0c0, #a8a8a8);
}

.tier:nth-child(3) h4 {
  color: #ffd700;
}

.tier:nth-child(3)::before {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.retainer-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.retainer-features li {
  padding: .5rem 0;
  color: var(--text);
  position: relative;
  padding-left: 1.5rem;
}

.retainer-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Responsive adjustments for pricing */
@media (max-width: 768px) {
  .pricing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  .pricing-header h3 {
    order: 1;
  }

  .step-badge {
    order: 2;
  }

  .price {
    order: 3;
    align-self: flex-end;
  }

  .implementation-tiers {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonial-card {
  background: linear-gradient(135deg, var(--bg-mute), var(--panel));
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(122, 162, 255, .15);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(122, 162, 255, .1), transparent 50%);
}

.testimonial-card blockquote {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 65ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-card cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 700;
  color: var(--brand);
  position: relative;
  z-index: 1;
}

/* Process Steps */
.steps {
  display: grid;
  gap: 20px;
  margin-top: 2rem;
  text-align: center;
}

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

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

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(122, 162, 255, .15);
  transition: transform .2s ease;
}

.step:hover {
  transform: translateY(-3px);
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081224;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(122, 162, 255, .3);
}

/* FAQ */
details {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(122, 162, 255, .15);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  transition: all .2s ease;
}

details:hover {
  border-color: rgba(122, 162, 255, .3);
}

details+details {
  margin-top: 12px
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--brand);
  transition: transform .2s ease;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(122, 162, 255, .05), rgba(110, 243, 214, .05));
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  opacity: .8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 50ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* Footer */
footer {
  border-top: 1px solid rgba(122, 162, 255, .15);
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

/* Google Form Modal */
.form-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.form-modal.is-open {
  display: block;
}

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.form-modal__dialog {
  position: relative;
  margin: 4vh auto;
  background: var(--panel);
  border-radius: var(--radius-lg);
  width: min(900px, 92vw);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideUpModal .3s ease;
}

@keyframes slideUpModal {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(122, 162, 255, .15);
  background: linear-gradient(90deg, var(--panel), var(--panel-2));
}

.form-modal__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.form-modal__close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
  color: var(--muted);
  border-radius: 4px;
  transition: all .2s ease;
}

.form-modal__close:hover {
  background: rgba(122, 162, 255, .1);
  color: var(--text);
}

.form-modal__body {
  padding: 0;
  height: min(80vh, 820px);
}

.form-modal__iframe-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.form-modal__iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Industry Cards */
.industry-card {
  text-align: center;
}

.industry-card .icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.industry-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-headline {
    font-size: clamp(28px, 8vw, 48px);
  }

  .hero-subheadline {
    font-size: clamp(18px, 5vw, 24px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    justify-content: center;
  }

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

  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step {
    margin: 0 0.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }
}

@media print {

  header,
  .cta-row,
  .sticky-cta,
  .form-modal {
    display: none !important
  }

  body {
    background: #fff;
    color: #000
  }

  .card,
  .step,
  details,
  .testimonial-card {
    box-shadow: none;
    border-color: #ddd
  }

  * {
    animation: none !important;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html:focus-within {
    scroll-behavior: auto;
  }
}

/* --- Robustness fixes for hero --- */
.hero-grid>* {
  min-width: 0;
}

.hero-headline {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid>div:first-child {
    order: 1;
  }

  .hero-grid>div:last-child {
    order: 2;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-headline {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subheadline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .tilt-card {
    margin-top: 1rem;
  }
}

.nav-links-mobile {
  height: 100dvh;
}

/* ---- Compat for legacy/shared markup (nav + modal) ---- */

/* Visually hidden utility for accessibility (used for #y) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Variables some pages reference inline */
:root {
  --brand: #0369a1;
  --brand-2: #0284c7;
  --muted: #64748b;
  --panel: #ffffff;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

/* Header/nav structures used on non-home pages */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0
}

.nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600
}

.nav-links-desktop {
  display: flex;
  gap: 1rem;
  align-items: center
}

.nav-links-mobile {
  display: none
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer
}

/* When JS toggles .active on mobile menu, show it */
.nav-links-mobile.active {
  display: block
}

/* Simple responsive behavior for shared menu classes */
@media (max-width: 768px) {
  .nav-links-desktop {
    display: none
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .6rem;
    border-radius: 10px;
    background: #e2e8f0
  }

  .mobile-menu-toggle.active {
    background: #cbd5e1
  }
}

/* Google Form modal used on legal/other pages */
.form-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000
}

.form-modal[aria-hidden="false"],
.form-modal.is-open {
  display: block
}

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45)
}

.form-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: min(920px, 92%);
  margin: 6vh auto;
  padding: 0
}

.form-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0
}

.form-modal__title {
  margin: 0
}

.form-modal__close {
  background: #e2e8f0;
  border: 0;
  border-radius: 10px;
  padding: .35rem .6rem;
  cursor: pointer
}

.form-modal__body {
  padding: 1rem 1.25rem
}

.form-modal__iframe-wrap iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #fff
}

/* Optional helpers for scroll-in animations used by JS */
.card,
.step,
.testimonial-card {
  will-change: opacity, transform;
}

/* Add these styles after your existing dark theme variables section */

/* Legal pages text content styling */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark p,
body.theme-dark li {
  color: var(--text) !important;
}

body.theme-dark p {
  color: var(--text);
}

body.theme-dark .muted,
body.theme-dark [style*="color: var(--muted)"] {
  color: var(--muted) !important;
}

/* Ensure links in legal content are visible */
body.theme-dark a {
  color: var(--brand);
}

body.theme-dark a:hover {
  color: var(--brand-2);
}

/* Make sure the main content panels are properly styled */
body.theme-dark [style*="background: var(--panel)"] {
  background: var(--panel) !important;
  color: var(--text) !important;
}

/* Fix any remaining text visibility issues */
body.theme-dark main {
  color: var(--text);
}

body.theme-dark section {
  color: var(--text);
}


/* --- Pricing Enhancements --- */
.audit-deliverables {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.audit-deliverables li {
  margin: .25rem 0;
}

.implementation-archetypes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.25rem;
}

.tier-card {
  position: relative;
  background: var(--card-bg, #0b0b0d);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 1rem;
}

.tier-card.popular {
  outline: 2px solid var(--accent, #6ee7ff);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, .15) inset;
}

.tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.tier-name {
  font-weight: 700;
  letter-spacing: .2px;
}

.ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  padding: .25rem .5rem;
  background: var(--accent, #6ee7ff);
  color: #000;
  font-weight: 700;
  font-size: .75rem;
  border-radius: 6px;
  transform: rotate(3deg);
}

/* Phase 2 LLM Update: Make Silver tier visually dominant (Default Bias - 60-70% choose "recommended") */
.tier-recommended {
  transform: scale(1.05);
  border: 3px solid var(--brand) !important;
  box-shadow: 0 12px 40px rgba(122, 162, 255, 0.3) !important;
  position: relative;
  z-index: 2;
}

.tier-recommended .ribbon {
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  font-weight: 800;
}

.tier-points {
  padding-left: 1.1rem;
  margin: .5rem 0 0;
}

.tier-cta {
  margin-top: .75rem;
}

.badge {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--accent, #6ee7ff);
  color: #000;
}

.badge.subtle {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.pricing-footnote {
  margin-top: 1rem;
}

.pricing-footnote .ranges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: .5rem 0 0;
}

.pricing-footnote .muted.small {
  font-size: .85rem;
  opacity: .8;
}

.price.custom {
  font-style: italic;
  font-weight: 600;
  opacity: .9;
}

.retainer-tiers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.retainer-card {
  background: var(--card-bg, #0b0b0d);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 1rem;
}

.retainer-card.highlighted {
  outline: 2px solid var(--accent, #6ee7ff);
}

.retainer-card h4 {
  margin: 0 0 .5rem;
}

.retainer-card ul {
  padding-left: 1.1rem;
}

.retainer-note {
  margin-top: .5rem;
  font-size: .85rem;
  opacity: .85;
}

.how-priced {
  margin-top: 1rem;
}

.how-priced h5 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}


.subprice {
  font-size: .95rem;
  opacity: .9;
  margin-top: .25rem;
  font-style: italic;
}

.implementation-tiers .tier-range {
  margin-top: .5rem;
  font-size: .9rem;
  opacity: .95;
}