/* ================================================
   IAAI Co. — Design Tokens & Styles
   Art Direction: Bold & Authoritative
   Palette: Deep Navy + Warm Gold accent
   ================================================ */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 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;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.15 0.02 250 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.15 0.02 250 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.15 0.02 250 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ========== LIGHT MODE (Default) ========== */
:root,
[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f5f6f8;
  --color-surface-offset: #eef0f4;
  --color-divider: #dfe2e8;
  --color-border: #cdd2da;

  --color-text: #0b1a2e;
  --color-text-muted: #4a5568;
  --color-text-faint: #a0aab8;
  --color-text-inverse: #ffffff;

  /* Navy primary */
  --color-primary: #0b1a2e;
  --color-primary-hover: #162d4a;
  --color-primary-active: #0a1523;

  /* Orange accent */
  --color-accent: #e8600a;
  --color-accent-hover: #cf5508;
  --color-accent-active: #b34a07;

  /* Functional */
  --color-success: #2d7a3a;
  --color-error: #c23a3a;
}

/* ========== DARK MODE ========== */
[data-theme='dark'] {
  --color-bg: #0b1a2e;
  --color-surface: #102240;
  --color-surface-2: #162d4a;
  --color-surface-offset: #0e1f38;
  --color-divider: #1e3a5f;
  --color-border: #264670;

  --color-text: #edf0f5;
  --color-text-muted: #8fa3bf;
  --color-text-faint: #5a7390;
  --color-text-inverse: #0b1a2e;

  --color-primary: #edf0f5;
  --color-primary-hover: #c8d6e5;
  --color-primary-active: #adbfcf;

  --color-accent: #f07020;
  --color-accent-hover: #e8600a;
  --color-accent-active: #cf5508;

  --color-success: #5db86b;
  --color-error: #e06060;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1a2e;
    --color-surface: #102240;
    --color-surface-2: #162d4a;
    --color-surface-offset: #0e1f38;
    --color-divider: #1e3a5f;
    --color-border: #264670;
    --color-text: #edf0f5;
    --color-text-muted: #8fa3bf;
    --color-text-faint: #5a7390;
    --color-text-inverse: #0b1a2e;
    --color-primary: #edf0f5;
    --color-primary-hover: #c8d6e5;
    --color-primary-active: #adbfcf;
    --color-accent: #f07020;
    --color-accent-hover: #e8600a;
    --color-accent-active: #cf5508;
    --color-success: #5db86b;
    --color-error: #e06060;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ========== HEADER ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11,26,46,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s var(--ease-out);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: #ffffff;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #c8d6e5;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive);
}

.header__nav a:hover {
  color: #ffffff;
}

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

.header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
}

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

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b1a2e;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-1);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.08);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: #c8d6e5;
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

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

.btn--accent:hover {
  background: var(--color-accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.2);
}

.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: oklch(from var(--color-text) l c h / 0.3);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ========== HERO ========== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero--light {
  background: var(--color-bg);
}

.hero--light .hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10) 0;
  max-width: var(--content-wide);
}

@media (min-width: 768px) {
  .hero--light .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    padding: var(--space-16) 0;
  }
}

.hero__text {
  order: 1;
}

@media (min-width: 768px) {
  .hero__text {
    order: 0;
  }
}

.hero__chart {
  order: 0;
}

@media (min-width: 768px) {
  .hero__chart {
    order: 1;
  }
}

/* ===== Hero Chart Card ===== */
.hero-chart-card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.hero-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-chart-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: #ffffff;
}

.hero-chart-period {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(232,96,10,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Bars */
.hero-chart-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.hero-chart-row-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.hero-chart-metric {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #c8d6e5;
}

.hero-chart-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #ffffff;
}

.hero-chart-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.hero-chart-bar {
  height: 100%;
  width: var(--bar-width, 50%);
  background: linear-gradient(90deg, #e8600a, #f07a2e);
  border-radius: 5px;
  transform-origin: left;
  animation: bar-grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-chart-bar--accent {
  background: linear-gradient(90deg, #f07a2e, #f5943e);
}

.hero-chart-bar--navy {
  background: linear-gradient(90deg, #c8d6e5, #8fa3bf);
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* KPI row */
.hero-chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-chart-kpi {
  text-align: center;
}

.hero-chart-kpi-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-chart-kpi-label {
  font-size: var(--text-xs);
  color: #8fa3bf;
  line-height: 1.3;
}

/* Dark mode adjustments */
[data-theme='dark'] .hero-chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero__title span {
  color: var(--color-accent);
}

.hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ========== SECTIONS ========== */

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

.section--alt {
  background: var(--color-surface-2);
}

.section--dark {
  background: #0b1a2e;
  color: #ffffff;
}

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section--dark .section__title {
  color: #ffffff;
}

.section--dark .section__desc {
  color: #c8d6e5;
}

.section--dark .section__eyebrow {
  color: var(--color-accent);
}

/* ========== PROBLEM SECTION ========== */

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

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

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

.problem-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

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

.problem-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.problem-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.problem-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== ROI CALCULATOR ========== */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
  }
}

.calc-text {
  max-width: 480px;
}

.calc-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.calc-slider-group {
  margin-bottom: var(--space-6);
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: #4a5568;
  font-weight: 500;
}

.calc-slider-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
}

/* Custom range slider */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #c8d6e5 0%,
    #c8d6e5 var(--fill, 25%),
    #eef0f4 var(--fill, 25%),
    #eef0f4 100%
  );
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(232,96,10,0.35);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(232,96,10,0.45);
}

.calc-range::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(232,96,10,0.35);
  cursor: pointer;
  border: none;
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #eef0f4;
}

.calc-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: #c8d6e5;
}

.calc-divider {
  height: 1px;
  background: #eef0f4;
  margin-block: var(--space-4);
}

.calc-results-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a5568;
  text-align: center;
  margin-bottom: var(--space-4);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.calc-result-period {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0aab8;
}

.calc-result-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: #0b1a2e;
  line-height: 1.1;
}

.calc-result-amount--highlight {
  color: var(--color-accent);
}

/* Dark mode calc card */
[data-theme='dark'] .calc-card {
  background: var(--color-surface);
}

[data-theme='dark'] .calc-slider-label {
  color: #c8d6e5;
}

[data-theme='dark'] .calc-range {
  background: linear-gradient(
    to right,
    #5a7390 0%,
    #5a7390 var(--fill, 25%),
    #1e3a5f var(--fill, 25%),
    #1e3a5f 100%
  );
}

[data-theme='dark'] .calc-divider {
  background: #1e3a5f;
}

[data-theme='dark'] .calc-results-label {
  color: #8fa3bf;
}

[data-theme='dark'] .calc-result-period {
  color: #5a7390;
}

[data-theme='dark'] .calc-result-amount {
  color: #edf0f5;
}

[data-theme='dark'] .calc-range::-moz-range-track {
  background: #1e3a5f;
}

[data-theme='dark'] .calc-range::-moz-range-progress {
  background: #5a7390;
}

/* ========== SERVICES / VALUE PROPS ========== */

.value-props {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .value-props {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .value-props {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.value-prop {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.value-prop:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

[data-theme='dark'] .value-prop {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

[data-theme='dark'] .value-prop:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.value-prop__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.value-prop__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
}

.value-prop__label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.value-prop__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== HOW IT WORKS ========== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.step-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: oklch(from var(--color-accent) l c h / 0.2);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Step cards inside dark sections */
.section--dark .step-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.section--dark .step-card::before {
  color: rgba(232,96,10,0.45);
}

.section--dark .step-card h3 {
  color: #ffffff;
}

.section--dark .step-card p {
  color: #c8d6e5;
}

/* ========== AUDIT CTA ========== */

.audit-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  text-align: left;
}

.audit-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.audit-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audit-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(0.12 0.04 250 / 0.93) 0%,
    oklch(0.12 0.04 250 / 0.8) 100%
  );
}

.audit-cta__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .audit-cta__content {
    grid-template-columns: 1fr auto;
    gap: var(--space-10);
  }
}

.audit-cta__text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #f8f9fa;
  margin-bottom: var(--space-3);
}

.audit-cta__text p {
  color: #c8d6e5;
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.audit-cta__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.audit-cta__price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  line-height: 1;
}

.audit-cta__price-note {
  font-size: var(--text-xs);
  color: #8fa3bf;
  margin-top: var(--space-1);
  margin-bottom: var(--space-4);
}

/* ========== NEWSLETTER ========== */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 480px;
}

@media (min-width: 480px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input[type='email'] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  min-width: 0;
}

.newsletter-form input[type='email']::placeholder {
  color: var(--color-text-faint);
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}

/* ========== ABOUT ========== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
  }
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-quote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--color-accent);
  background: transparent;
}

.about-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--color-accent);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.about-quote cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-bullets li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* ========== CALENDLY CTA ========== */

.consult-cta {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.section--dark .consult-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: #ffffff;
}

.consult-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section--dark .consult-cta p {
  color: #c8d6e5;
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

.consult-cta p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

/* ========== FOOTER ========== */

.footer {
  background: #0b1a2e;
  color: #ffffff;
  border-top: none;
  padding-block: var(--space-8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: var(--text-xs);
  color: #8fa3bf;
}

.footer__links {
  display: flex;
  gap: var(--space-4);
}

.footer__links a {
  font-size: var(--text-xs);
  color: #c8d6e5;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: #ffffff;
}

/* ========== SCROLL ANIMATIONS ========== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ========== STAT BLOCKS ========== */

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

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

.stat {
  text-align: left;
}

@media (min-width: 640px) {
  .stat {
    text-align: center;
  }
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

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

/* ========== INDUSTRIES ========== */

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

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

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

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

.industry-item__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.industry-item__label {
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ========== WHAT YOU GET LIST ========== */

.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

.checklist li svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  margin-top: 2px;
}

/* ========== DARK MODE ADJUSTMENTS ========== */

[data-theme='dark'] .audit-cta__overlay {
  background: linear-gradient(
    135deg,
    oklch(0.08 0.04 250 / 0.92) 0%,
    oklch(0.08 0.04 250 / 0.78) 100%
  );
}

[data-theme='dark'] .problem-card,
[data-theme='dark'] .industry-item {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Footer logo override for navy bg */
.footer .header__logo {
  color: #ffffff;
}

.footer .header__logo-text {
  color: #ffffff;
}

[data-theme='dark'] .newsletter-form input[type='email'] {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

/* ================================================
   FREE AI READINESS SCORER
   ================================================ */

.scorer {
  max-width: 620px;
  margin: 0 auto;
}

.scorer__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

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

.scorer__field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.scorer__field input,
.scorer__field select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.scorer__field input:focus,
.scorer__field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 10, 0.15);
}

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

.scorer__submit {
  width: 100%;
  margin-top: var(--space-2);
}

.scorer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-1);
}

/* Results */
.scorer__results {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.scorer__score-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-6);
}

.scorer__ring-svg {
  width: 100%;
  height: 100%;
}

.scorer__score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

#scorer-score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
}

.scorer__score-of {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  align-self: flex-end;
  padding-bottom: 0.35rem;
}

.scorer__tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.scorer__tier-msg {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

.scorer__insight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  margin-bottom: var(--space-8);
}

.scorer__insight-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.scorer__insight h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.scorer__insight p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.scorer__upsell {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

.scorer__upsell > p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.scorer__upsell .checklist {
  text-align: left;
  margin-bottom: var(--space-6);
}

[data-theme='dark'] .scorer__form,
[data-theme='dark'] .scorer__results {
  background: var(--color-surface);
}

[data-theme='dark'] .scorer__field input,
[data-theme='dark'] .scorer__field select {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme='dark'] .scorer__tier {
  color: #ffffff;
}
