/* =============================================
   WINDER EXCELLENCE — style.css
   Palette: Navy / Teal / Gold (IMS brand)
   Fonts: Instrument Serif (display) + Work Sans (body)
   ============================================= */

/* === DESIGN TOKENS === */
:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f4f3ef;
  --color-surface: #f9f8f5;
  --color-surface-2: #ffffff;
  --color-surface-offset: #edeae4;
  --color-border: #d8d5ce;
  --color-divider: #e2dfd9;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-muted: #5a5855;
  --color-text-faint: #9a9895;
  --color-text-inverse: #ffffff;

  /* Brand palette */
  --color-navy: #0D2233;
  --color-navy-mid: #1a3a52;
  --color-teal: #01696F;
  --color-teal-hover: #0c4e54;
  --color-teal-lt: #e6f3f3;
  --color-gold: #C17D2A;
  --color-gold-hover: #a06020;
  --color-gold-lt: #fdf5e6;

  /* Semantic */
  --color-primary: var(--color-teal);
  --color-primary-hover: var(--color-teal-hover);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,34,51,0.08);
  --shadow-md: 0 4px 16px rgba(13,34,51,0.10);
  --shadow-lg: 0 12px 40px rgba(13,34,51,0.14);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.27vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1rem + 5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Content widths */
  --content-default: 1080px;
  --content-narrow: 720px;
}

[data-theme='dark'] {
  --color-bg: #0e1419;
  --color-surface: #141b22;
  --color-surface-2: #1a2430;
  --color-surface-offset: #111820;
  --color-border: #2a3540;
  --color-divider: #1e2b35;
  --color-text: #d4d2ce;
  --color-text-muted: #7a7876;
  --color-text-faint: #4a4846;
  --color-text-inverse: #0e1419;
  --color-navy: #0D2233;
  --color-teal: #3a9ea8;
  --color-teal-hover: #5bb8c2;
  --color-teal-lt: #1a2e30;
  --color-gold: #d4902e;
  --color-gold-hover: #e8a840;
  --color-gold-lt: #221a0e;
  --color-primary: var(--color-teal);
  --color-primary-hover: var(--color-teal-hover);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0e1419;
    --color-surface: #141b22;
    --color-surface-2: #1a2430;
    --color-surface-offset: #111820;
    --color-border: #2a3540;
    --color-divider: #1e2b35;
    --color-text: #d4d2ce;
    --color-text-muted: #7a7876;
    --color-text-faint: #4a4846;
    --color-text-inverse: #0e1419;
    --color-teal: #3a9ea8;
    --color-teal-hover: #5bb8c2;
    --color-teal-lt: #1a2e30;
    --color-gold: #d4902e;
    --color-gold-hover: #e8a840;
    --color-gold-lt: #221a0e;
    --color-primary: var(--color-teal);
    --color-primary-hover: var(--color-teal-hover);
  }
}

/* === BASE RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  color: var(--color-text);
}

p, li { text-wrap: pretty; }

::selection {
  background: rgba(1,105,111,0.18);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === LAYOUT === */
body { overflow-x: hidden; }

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* === TYPOGRAPHY HELPERS === */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-teal-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-navy);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
[data-theme='dark'] .logo { color: var(--color-text); }
.logo:hover { opacity: 0.8; }

.logo-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.logo-text strong {
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }

.btn-nav {
  background: var(--color-navy);
  color: #fff !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-md);
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--color-teal) !important; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
  gap: var(--space-1);
}
.nav-mobile a {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}
.nav-mobile a:last-child { border-bottom: none; }
.btn-mobile-cta {
  display: inline-block;
  margin-top: var(--space-3);
  background: var(--color-teal);
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(1,105,111,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(193,125,42,0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle winder geometry */
.hero-bg::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 60vw, 600px);
  height: clamp(240px, 60vw, 600px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow:
    inset 0 0 0 80px rgba(255,255,255,0.01),
    inset 0 0 0 200px rgba(1,105,111,0.04),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 0 80px rgba(1,105,111,0.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(193,125,42,0.4);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full, 999px);
  margin-bottom: var(--space-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-headline em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-ctas .btn-ghost {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.hero-ctas .btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
  .stat-divider { display: none; }
  .hero-stats { gap: var(--space-4); }
  .stat-num { font-size: var(--text-lg); }
}

.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  max-width: 160px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* === PROBLEM SECTION === */
.problem {
  background: var(--color-surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}

.problem-text h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
  margin-top: var(--space-4);
}

.problem-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.problem-text p:last-child { margin-bottom: 0; }

.callout-card {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.callout-math { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  gap: var(--space-4);
}
.math-row span:last-child { font-weight: 700; white-space: nowrap; }
.math-row.muted { color: var(--color-text-muted); }
.math-row.highlight {
  color: var(--color-teal);
  font-size: var(--text-lg);
}
.math-row.highlight span:last-child {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
}

.math-divider {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-2) 0;
}

.callout-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.55;
}

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

/* === PROGRAM === */
.program {
  background: var(--color-bg);
}

.program-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.program-step {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.program-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--color-teal-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
}

.program-step h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
}

.program-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.step-price {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  background: var(--color-gold-lt);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full, 999px);
  display: inline-block;
  width: fit-content;
  margin-top: auto;
}

.program-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-inline: var(--space-2);
}

.program-connector::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-border);
  position: relative;
}

@media (max-width: 900px) {
  .program-steps {
    grid-template-columns: 1fr;
  }
  .program-connector {
    padding-top: 0;
    padding-block: var(--space-2);
  }
  .program-connector::after {
    width: 2px;
    height: 24px;
  }
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--color-navy);
  color: #fff;
}

.how-it-works .section-label { color: var(--color-gold); }

.how-it-works .section-header h2 {
  color: #fff;
  font-size: var(--text-xl);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}
.timeline-item:last-child::before { display: none; }

.timeline-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content { padding-top: var(--space-3); }

.timeline-content h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.timeline-content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 560px;
}

/* === MACHINES BANNER === */
.machines-banner {
  background: var(--color-surface-offset, #edeae4);
  padding-block: var(--space-6);
}

.machines-banner .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.machines-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.machines-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.machines-list span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.machines-list .dot {
  color: var(--color-border);
}

/* === PRICING === */
.pricing {
  background: var(--color-bg);
}

/* Audit card */
.audit-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
  background: var(--color-surface-2);
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-md);
}

.audit-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

.audit-card-left h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.audit-card-left p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  max-width: 520px;
}

.audit-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.audit-includes li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.audit-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--color-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}

.audit-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  min-width: 180px;
}

.audit-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.price-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-navy);
  line-height: 1;
}
[data-theme='dark'] .price-num { color: var(--color-text); }

.price-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.audit-price-alt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full, 999px);
}

@media (max-width: 700px) {
  .audit-card {
    grid-template-columns: 1fr;
  }
  .audit-card-right {
    border-top: 1px solid var(--color-divider);
    padding-top: var(--space-6);
    width: 100%;
  }
  .audit-card-right .btn-primary { width: 100%; justify-content: center; }
}

/* Tier cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  align-items: start;
}

.tier-card {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tier-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tier-featured {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(1,105,111,0.08);
}

.tier-badge {
  position: absolute;
  top: -1px;
  right: var(--space-6);
  background: var(--color-teal);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tier-header { display: flex; flex-direction: column; gap: var(--space-2); }

.tier-name {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.tier-price-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-navy);
  line-height: 1;
}
[data-theme='dark'] .tier-price-num { color: var(--color-text); }

.tier-price-period {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.tier-payback {
  font-size: var(--text-xs);
  color: var(--color-teal);
  font-weight: 600;
  background: var(--color-teal-lt);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  display: inline-block;
  width: fit-content;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.tier-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 13px;
  background: var(--color-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5l2 2L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 9px 7px;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-tier:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-muted);
}

.btn-tier-featured {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.btn-tier-featured:hover {
  background: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
  color: #fff;
}

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Add-ons */
.addons {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.addons h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  gap: var(--space-4);
}

.addon-name {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.addon-price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

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

/* === ABOUT === */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card-visual {
  width: 260px;
  height: 320px;
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.about-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,0.12);
  user-select: none;
}

.about-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
}

.about-text h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
  margin-top: var(--space-4);
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 560px;
}

.about-contact-block {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-md);
}

.about-contact-block p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}
.about-contact-block p:last-child { margin-bottom: 0; }
.about-contact-block a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.about-contact-block a:hover { color: var(--color-teal-hover); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

/* === CONTACT === */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}

.contact-left h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
  margin-top: var(--space-4);
}

.contact-left p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.contact-item svg { color: var(--color-teal); flex-shrink: 0; }
.contact-item a {
  color: var(--color-text);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--color-teal); }

/* Form */
.contact-form {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(1,105,111,0.12);
}

.btn-form {
  width: 100%;
  justify-content: center;
  padding: 0.875rem;
  font-size: var(--text-sm);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding-top: clamp(var(--space-10), 6vw, var(--space-16));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 320px;
}

.logo-footer { color: rgba(255,255,255,0.9); }
.logo-footer .logo-text { color: rgba(255,255,255,0.9); }

.footer-brand p {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}
.footer-brand a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-brand a:hover { color: rgba(255,255,255,0.9); }

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding-block: var(--space-5);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* === UTILITIES === */
--radius-full: 9999px;

/* Smooth fade-in for sections */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* === WHY IMS === */
.why-ims {
  background: var(--color-surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  align-items: start;
  margin-bottom: var(--space-8);
}

.why-divider {
  background: var(--color-divider);
  align-self: stretch;
  min-height: 200px;
}

.why-col-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.why-label-them {
  color: var(--color-text-faint);
}

.why-label-ims {
  color: var(--color-teal);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.why-list li {
  font-size: var(--text-sm);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.55;
}

.why-list-them li {
  color: var(--color-text-faint);
}

.why-list-them li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--color-text-faint);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.why-list-ims li {
  color: var(--color-text-muted);
}

.why-list-ims li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: var(--color-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}

.why-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--color-gold);
  background: var(--color-gold-lt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 640px;
}

@media (max-width: 680px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-divider {
    min-height: 1px;
    width: 100%;
  }
}

/* === MOBILE POLISH === */
@media (max-width: 480px) {
  /* Hero: tighten heading line breaks */
  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-headline br { display: none; }

  /* Callout card: prevent math row overflow */
  .callout-card { padding: var(--space-5); }
  .math-row { flex-wrap: wrap; gap: var(--space-2); }
  .math-row span:first-child { flex: 1; min-width: 0; }

  /* Audit card right: full width */
  .audit-card-right { min-width: 0; }

  /* Tier payback: allow wrapping */
  .tier-payback { white-space: normal; }

  /* Why IMS note: full width */
  .why-note { max-width: 100%; }

  /* Addons: tighten padding */
  .addons { padding: var(--space-5); }
  .addon-item { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .addon-price { font-size: var(--text-base); }

  /* Section headers */
  .section-header { max-width: 100%; }

  /* Contact form */
  .contact-form { padding: var(--space-5); }

  /* Footer */
  .footer-inner { flex-direction: column; gap: var(--space-6); }
  .footer-nav { gap: var(--space-4); }
}
