/* ================================================
   A GOLDEN RIOT — Style Tokens & Components
   ================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
}

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1.125rem, 1rem    + 1.5vw,  2rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2.25rem,  1rem    + 3.33vw,  4rem);
  --text-3xl:  clamp(3rem,     3rem    + 5vw,    7.5rem);
}

/* --- Spacing --- */
:root {
  --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;
}

/* --- Color Palette: Black Swarm + Bonfire Red + Magnolia White --- */
:root, [data-theme="light"] {
  --color-bg:             #faf8f8;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f0f0;
  --color-surface-offset: #ece6e6;
  --color-border:         #d8d0d0;
  --color-divider:        #e5dede;

  --color-text:           #1a1a1a;
  --color-text-muted:     #6b6060;
  --color-text-faint:     #a89494;
  --color-text-inverse:   #ffffff;

  --color-primary:        #da1a32;
  --color-primary-hover:  #c2152b;
  --color-primary-active: #a00c30;
  --color-primary-light:  #fcedef;

  --color-accent-dark:    #000000;
  --color-accent-dark-hover: #1a1a1a;

  --color-success:        #437a22;
  --color-error:          #a00c30;

  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 0;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 2px 2px 0 rgba(0,0,0,0.12);
  --shadow-md: 4px 4px 0 rgba(0,0,0,0.85);
  --shadow-lg: 6px 6px 0 rgba(0,0,0,0.85);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

[data-theme="dark"] {
  --color-bg:             #0f0f0f;
  --color-surface:        #1a1a1a;
  --color-surface-2:      #1c1414;
  --color-surface-offset: #1e1616;
  --color-border:         #3d2828;
  --color-divider:        #2d2020;

  --color-text:           #f0ecec;
  --color-text-muted:     #9a8888;
  --color-text-faint:     #655050;
  --color-text-inverse:   #0f0f0f;

  --color-primary:        #da1a32;
  --color-primary-hover:  #e83045;
  --color-primary-active: #f04055;
  --color-primary-light:  #2a0f12;

  --color-accent-dark:    #f0ecec;
  --color-accent-dark-hover: #ffffff;

  --color-success:        #6daa45;
  --color-error:          #e83045;

  --shadow-sm: 2px 2px 0 rgba(218,26,50,0.3);
  --shadow-md: 4px 4px 0 rgba(218,26,50,0.6);
  --shadow-lg: 6px 6px 0 rgba(218,26,50,0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #111111;
    --color-surface:        #1a1a1a;
    --color-surface-2:      #222222;
    --color-surface-offset: #1d1d1d;
    --color-border:         #3a3a3a;
    --color-divider:        #2d2d2d;
    --color-text:           #f0ecec;
    --color-text-muted:     #9a8888;
    --color-text-faint:     #655050;
    --color-text-inverse:   #0f0f0f;
    --color-primary:        #da1a32;
    --color-primary-hover:  #e83045;
    --color-primary-active: #f04055;
    --color-primary-light:  #2a0f12;
    --color-accent-dark:    #f0ecec;
    --color-accent-dark-hover: #ffffff;
    --color-success:        #6daa45;
    --color-error:          #e83045;
    --shadow-sm: 2px 2px 0 rgba(218,26,50,0.3);
    --shadow-md: 4px 4px 0 rgba(218,26,50,0.6);
    --shadow-lg: 6px 6px 0 rgba(218,26,50,0.8);
  }
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

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

/* ================================================
   HEADER / NAV
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-4);
  transition: box-shadow 0.3s ease;
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.logo span {
  color: var(--color-primary);
}

.logo__mark {
  flex-shrink: 0;
  display: block;
}

/* ================================================
   LOGO PULSE ANIMATION
   ================================================ */
@keyframes logo-pulse-a {
  0%, 100% { fill: #da1a32; }
  35%       { fill: #f03050; }
  70%       { fill: #a00c30; }
}

@keyframes logo-pulse-b {
  0%, 100% { fill: #a00c30; }
  35%       { fill: #da1a32; }
  70%       { fill: #6e0820; }
}

@keyframes logo-pulse-c {
  0%, 100% { fill: #da1a32; }
  50%       { fill: #f54060; }
}

@keyframes logo-stroke-pulse {
  0%, 100% { stroke: #da1a32; }
  50%       { stroke: #f03050; }
}

.lr--1  { animation: logo-pulse-a    4s ease-in-out infinite; }
.lr--2  { animation: logo-pulse-b    4s ease-in-out infinite; animation-delay: 0.7s; }
.lr--4  { animation: logo-stroke-pulse 4s ease-in-out infinite; animation-delay: 0.35s; }
.lr--5  { animation: logo-pulse-c    4s ease-in-out infinite; animation-delay: 1.4s; }

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

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

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

.nav-cta {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--color-text-inverse) !important;
  background: var(--color-accent-dark);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-1);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.theme-toggle {
  padding: var(--space-1);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-surface);
    padding: var(--space-20) var(--space-8) var(--space-8);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

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

  .nav-links a {
    font-size: var(--text-base);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }

  .nav-overlay.open { display: block; }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 36%;
  height: 100%;
  background: #000000;
  z-index: 0;
}

[data-theme="dark"] .hero::after {
  background: #da1a32;
  opacity: 0.12;
}

.hero__watermark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 34%;
  max-width: 420px;
  min-width: 200px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.hero__watermark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 21px;
  height: 13px;
  background: var(--color-primary);
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 14ch;
  margin-inline: 0;
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: 0;
  margin-bottom: var(--space-10);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero::after { display: none; }
  .hero { text-align: center; }
  .hero h1, .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__watermark { width: 60%; right: -10%; opacity: 0.06; }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
}

[data-theme="dark"] .btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

[data-theme="dark"] .btn--primary:hover {
  background: var(--color-text-muted);
}

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

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

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

/* ================================================
   SOCIAL PROOF BAR
   ================================================ */
.proof-bar {
  background: var(--color-surface-2);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.proof-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--content-default);
  border: 2px solid var(--color-border);
}

@media (max-width: 640px) {
  .proof-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proof-stat {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-divider);
}

.proof-stat:last-child {
  border-right: none;
}

.proof-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.proof-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-header__eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 21px;
  height: 13px;
  background: var(--color-primary);
  opacity: 0.85;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--content-wide);
  margin-inline: auto;
}

.step {
  text-align: left;
  padding: var(--space-8) var(--space-8) var(--space-8) 0;
  border-top: 4px solid var(--color-border);
}

.step:nth-child(1) { border-top-color: #da1a32; }
.step:nth-child(2) { border-top-color: #000000; padding-left: var(--space-8); }
.step:nth-child(3) { border-top-color: #a00c30; padding-left: var(--space-8); }

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 34px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

/* Each step gets a distinct brand color */
.step:nth-child(1) .step__number { background: #da1a32; }
.step:nth-child(2) .step__number { background: #000000; }
.step:nth-child(3) .step__number { background: #a00c30; }

.step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
  margin-inline: 0;
}

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

  .step {
    padding: var(--space-6) var(--space-4);
  }
}

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

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.tier {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tier:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
}

.tier--featured {
  border-color: var(--color-primary);
  border-width: 2px;
}


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

.tier__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

/* Services layout (no pricing elements) */
.tiers--services {
  grid-template-columns: repeat(3, 1fr);
}

.tiers--services .tier:last-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-10);
  border-top: 4px solid var(--color-primary);
}

.tiers--services .tier:last-child .tier__name {
  min-width: 240px;
  margin-bottom: 0;
}

.tiers--services .tier:last-child .tier__desc {
  flex-grow: 1;
  margin-bottom: 0;
}

.tiers--services .tier:last-child .btn {
  align-self: center;
  min-width: 140px;
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .tiers--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers--services .tier:last-child {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
  }

  .tiers--services .tier:last-child .tier__name,
  .tiers--services .tier:last-child .tier__desc {
    margin-bottom: var(--space-4);
  }
}

.tier__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.tier__price-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.tier__divider {
  width: 100%;
  height: 1px;
  background: var(--color-divider);
  margin-bottom: var(--space-6);
}

.tier__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

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

.tier__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23437a22'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
}

.tier .btn {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
}

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

/* ================================================
   PROOF POINTS (Credentials)
   ================================================ */
.credentials {
  background: var(--color-bg);
}

.cred-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
  max-width: var(--content-default);
  margin-inline: auto;
}

.cred-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: var(--space-6);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cred-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
}

.cred-card:first-child {
  grid-row: span 2;
}

.cred-card__icon {
  width: 55px;
  height: 34px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: #ffffff;
}

.cred-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.cred-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Colorize cred card icons and top borders using brand palette */
.cred-card:nth-child(1) { border-top-color: #da1a32; }
.cred-card:nth-child(2) { border-top-color: #000000; }
.cred-card:nth-child(3) { border-top-color: #a00c30; }
.cred-card:nth-child(4) { border-top-color: #da1a32; }
.cred-card:nth-child(1) .cred-card__icon { background: #da1a32; }
.cred-card:nth-child(2) .cred-card__icon { background: #000000; }
.cred-card:nth-child(3) .cred-card__icon { background: #a00c30; }
.cred-card:nth-child(4) .cred-card__icon { background: #da1a32; }

/* Colorize AI feature icons and left borders */
.ai-feature:nth-child(1) { border-left-color: #da1a32; }
.ai-feature:nth-child(2) { border-left-color: #000000; }
.ai-feature:nth-child(3) { border-left-color: #a00c30; }
.ai-feature:nth-child(1) .ai-feature__icon { background: #da1a32; }
.ai-feature:nth-child(2) .ai-feature__icon { background: #000000; }
.ai-feature:nth-child(3) .ai-feature__icon { background: #a00c30; }

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

  .cred-card:first-child {
    grid-row: span 1;
  }
}

/* ================================================
   LEAD MAGNET
   ================================================ */
.lead-magnet {
  background: var(--color-accent-dark);
  color: var(--color-text-inverse);
}

.lead-magnet .container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: var(--content-default);
}

.lead-magnet__content {
  flex: 1;
}

.lead-magnet__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.lead-magnet h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text-inverse);
}

[data-theme="dark"] .lead-magnet h2 {
  color: var(--color-text);
}

.lead-magnet p {
  font-size: var(--text-base);
  opacity: 0.8;
  margin-bottom: var(--space-6);
  max-width: 48ch;
  color: var(--color-text-inverse);
}

[data-theme="dark"] .lead-magnet p {
  color: var(--color-text-muted);
}

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

.lead-magnet__form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--text-sm);
}

.lead-magnet__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.lead-magnet__form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218,26,50,0.25);
}

.lead-magnet__icon {
  width: 200px;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-magnet__icon svg {
  width: 160px;
  height: 160px;
  opacity: 0.15;
}

@media (max-width: 768px) {
  .lead-magnet .container {
    flex-direction: column;
    text-align: center;
  }

  .lead-magnet__icon { display: none; }

  .lead-magnet__form {
    justify-content: center;
  }

  .lead-magnet p {
    margin-inline: auto;
  }
}

/* ================================================
   CONTACT / INTAKE FORM
   ================================================ */
.contact {
  background: var(--color-surface-2);
}

.contact .container--narrow {
  max-width: 680px;
}

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

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

.form-group--full {
  grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218,26,50,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%236b6860' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-8);
}

.form-submit {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-inline: auto;
}

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

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--color-accent-dark);
  color: var(--color-text-inverse);
  padding-block: var(--space-10);
}

[data-theme="dark"] .footer {
  background: var(--color-surface);
  color: var(--color-text);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.footer__brand span {
  color: var(--color-primary);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-xs);
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.4;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .footer__copy {
  border-top-color: var(--color-divider);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }

/* ================================================
   AI EDGE SECTION
   ================================================ */
.ai-edge {
  background: var(--color-surface-2);
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.ai-feature {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-8) var(--space-6);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ai-feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
}

.ai-feature__icon {
  width: 55px;
  height: 34px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: #ffffff;
}

.ai-feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

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

@media (max-width: 768px) {
  .ai-features {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ================================================
   THANK-YOU PAGE
   ================================================ */
.ty-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
  background: var(--color-bg);
}

.ty-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.ty-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.ty-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
}

/* ================================================
   CHECKLIST
   ================================================ */
.checklist-page {
  background: var(--color-surface-2);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}

.checklist-intro {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}

.checklist-intro h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.checklist-intro p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checklist-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
}

.checklist-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.checklist-group__number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  min-width: 28px;
}

.checklist-group__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  margin: 0;
}

.checklist-group__count {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checklist-item label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checklist-item input[type="checkbox"]:checked + label {
  color: var(--color-text-faint);
  text-decoration: line-through;
}

/* ================================================
   THANK-YOU CTA
   ================================================ */
.ty-cta {
  background: var(--color-bg);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
}

.ty-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.ty-cta p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .header,
  .no-print,
  .footer {
    display: none !important;
  }

  .ty-hero {
    padding-block: var(--space-8);
  }

  .checklist-page {
    padding-block: var(--space-4);
    background: none;
  }

  .checklist-group {
    border: 1px solid #ccc;
    border-left: 3px solid #da1a32;
    break-inside: avoid;
    margin-bottom: var(--space-4);
  }

  .checklist-item label {
    color: #333;
  }
}
