/* ============================================================
   SaturdaySignal.com — Master Stylesheet
   Design Direction: Clean Institutional ("Fidelity Clean")
   Deep Navy + Emerald CTA — Bright, Crisp, Premium
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ------------------------------------------------------------ */
:root {
  /* Primary Palette */
  --color-bg-primary: #FFFFFF;
  --color-bg-section-alt: #F7F8FA;
  --color-bg-hero: #0F172A;
  --color-bg-card: #FFFFFF;

  /* Accent & CTA */
  --color-accent: #1D4ED8;
  --color-cta: #15803D;
  --color-cta-hover: #166534;

  /* Text */
  --color-text-heading: #111827;
  --color-text-body: #4B5563;
  --color-text-muted: #9CA3AF;
  --color-text-on-dark: #F9FAFB;

  /* Semantic */
  --color-success: #15803D;
  --color-loss: #DC2626;
  --color-border: #E5E7EB;

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale */
  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --text-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  --section-gap: clamp(3.5rem, 10vw, 6rem);
  --grid-gap: 1.5rem;

  /* Cards */
  --card-radius: 12px;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
  --card-padding: 2rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}


/* ------------------------------------------------------------
   2. RESET & BASE STYLES
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #1E40AF;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-heading);
  line-height: var(--leading-tight);
  font-weight: 700;
  text-wrap: balance;
}

.section-title,
.hero-title {
  text-wrap: balance;
}


/* ------------------------------------------------------------
   3. SKIP TO CONTENT (ACCESSIBILITY)
   ------------------------------------------------------------ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-cta);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

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

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

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

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

/* On mobile, ensure text content appears before decorative sidebars
   in grid-2 layouts where DOM order has sidebar first (methodology page) */
.grid-2 > .card-elevated:first-child {
  order: 2;
}
.grid-2 > .card-elevated:first-child + div {
  order: 1;
}

@media (min-width: 768px) {
  .grid-2 > .card-elevated:first-child {
    order: unset;
  }
  .grid-2 > .card-elevated:first-child + div {
    order: unset;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ------------------------------------------------------------
   5. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */
.text-serif {
  font-family: var(--font-display);
}

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

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

.text-success {
  color: var(--color-success);
}

.text-loss {
  color: var(--color-loss);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--color-text-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-body);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  line-height: var(--leading-relaxed);
}

.disclaimer-text {
  font-size: var(--text-small);
  color: #6B7280;
  line-height: var(--leading-normal);
}


/* ------------------------------------------------------------
   6. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              padding var(--transition-base);
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.65rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.header-scrolled .nav-logo {
  color: var(--color-text-heading);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-body);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.header-scrolled .nav-links a {
  color: var(--color-text-body);
}

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

.nav-cta {
  display: none;
}

.nav-cta.btn {
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
}

.nav-cta.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.header-scrolled .nav-cta.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-heading);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  border-radius: 2px;
}

.header-scrolled .mobile-menu-toggle span {
  background-color: var(--color-text-heading);
}

.nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 999;
}

.nav-open .nav-links a {
  font-size: 1.25rem;
  color: var(--color-text-on-dark);
}

.nav-open .mobile-menu-toggle span {
  background-color: var(--color-text-on-dark);
}

/* Inner pages without hero: always show scrolled header state */
body:not(:has(.hero)) .header {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body:not(:has(.hero)) .header .nav-links a {
  color: var(--color-text-body);
}

body:not(:has(.hero)) .header .nav-links a:hover {
  color: var(--color-text-heading);
}

body:not(:has(.hero)) .header .nav-logo {
  color: var(--color-text-heading);
}

body:not(:has(.hero)) .header .mobile-menu-toggle span {
  background-color: var(--color-text-heading);
}

body:not(:has(.hero)) .header .nav-cta.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: block;
  }
  .mobile-menu-toggle {
    display: none;
  }
}


/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
}

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

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.3);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(249, 250, 251, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(249, 250, 251, 0.1);
  border-color: var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary-dark:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.2);
}

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

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

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


/* ------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------ */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  border: 1px solid var(--color-border);
}

.card-elevated {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

@media (prefers-reduced-motion: reduce) {
  .card-elevated:hover {
    transform: none;
  }
}


/* ------------------------------------------------------------
   9. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../website_images/hero-city-morning.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(15, 23, 42, 0.48) 60%,
    rgba(15, 23, 42, 0.32) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 28px rgba(0, 0, 0, 0.6),
    0 8px 52px rgba(0, 0, 0, 0.45);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  color: #86EFAC;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: #FFFFFF;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.trust-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 250, 251, 0.15);
}

@media (min-width: 640px) {
  .trust-bar {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(249, 250, 251, 0.75);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Hero-specific button overrides (white/outline on dark bg) */
.hero .btn-primary {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
}

.hero .btn-primary:hover {
  background-color: #F1F5F9;
  border-color: #F1F5F9;
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
}

.hero .btn-secondary:hover {
  background-color: #F1F5F9;
  border-color: #F1F5F9;
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(249, 250, 251, 0.45);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}


/* ------------------------------------------------------------
   10. PROBLEM / AGITATION SECTION
   ------------------------------------------------------------ */
.problem-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.problem-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(29, 78, 216, 0.08);
  color: var(--color-accent);
}

.problem-icon svg {
  width: 28px;
  height: 28px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
  color: var(--color-text-heading);
}

.problem-card p {
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}


/* ------------------------------------------------------------
   11. SOLUTION SECTION
   ------------------------------------------------------------ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.solution-content h2 {
  font-size: var(--text-h2);
  margin-bottom: 1.5rem;
}

.solution-content p {
  margin-bottom: 1.25rem;
  line-height: var(--leading-relaxed);
}

.solution-content p:last-of-type {
  margin-bottom: 0;
}

.solution-highlight {
  font-weight: 600;
  color: var(--color-text-heading);
}

.solution-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

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


/* ------------------------------------------------------------
   12. HOW IT WORKS / STEPS
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

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

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-day {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
  color: var(--color-text-heading);
}

.step-desc {
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

/* Arrow connectors (desktop only) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4.25rem;
    right: -1.25rem;
    width: 2.5rem;
    height: 2px;
    background-color: var(--color-border);
  }
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 3.75rem;
    right: -1.25rem;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--color-border);
  }
}


/* ------------------------------------------------------------
   13. DIFFERENTIATORS / FEATURE CARDS
   ------------------------------------------------------------ */
.feature-card {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover {
    transform: none;
  }
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(29, 78, 216, 0.08);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-heading);
}

.feature-card p {
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  margin-bottom: 1rem;
  flex: 1;
}

.feature-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  background-color: rgba(29, 78, 216, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-top: auto;
}


/* ------------------------------------------------------------
   14. SIGNAL MOCKUP
   ------------------------------------------------------------ */
.signal-mockup {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.signal-header {
  background-color: var(--color-bg-hero);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-header-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.signal-header-date {
  font-size: 0.8125rem;
  color: rgba(249, 250, 251, 0.6);
}

.signal-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  margin: 1.5rem 2rem 0;
  background-color: rgba(21, 128, 61, 0.08);
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.signal-type svg {
  width: 16px;
  height: 16px;
}

.signal-body {
  padding: 1.25rem 2rem 2rem;
}

.signal-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.signal-field:last-of-type {
  border-bottom: none;
}

.signal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.signal-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-heading);
  font-family: var(--font-body);
}

.signal-thesis {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.signal-thesis-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.signal-thesis p {
  color: var(--color-text-body);
  line-height: var(--leading-normal);
  font-size: 0.9375rem;
}

.signal-note {
  background-color: var(--color-bg-section-alt);
  padding: 1rem 2rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 400px) {
  .signal-header,
  .signal-body,
  .signal-note {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .signal-type {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
}


/* ------------------------------------------------------------
   15. PERFORMANCE / STATS SECTION
   ------------------------------------------------------------ */
.stat-card {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--color-border);
}

.stat-card-value,
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-card-label,
.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.performance-disclaimer {
  background-color: rgba(29, 78, 216, 0.04);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.performance-disclaimer p {
  font-size: var(--text-small);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

.performance-disclaimer strong {
  color: var(--color-text-heading);
}


/* ------------------------------------------------------------
   16. PRICING SECTION
   ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

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

.pricing-card {
  background-color: var(--color-bg-card);
  border-radius: var(--card-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.pricing-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
  border-color: var(--color-border);
  border-width: 1px;
  border-top: 4px solid var(--color-cta);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1.25rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.1;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.pricing-signals {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.5 9.6l5.3-5.3a1 1 0 011.4 0z' fill='%2315803D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing-renewal {
  font-size: var(--text-small);
  color: #6B7280;
  text-align: center;
  margin-top: 0.75rem;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 0.75rem;
}

.pricing-guarantee svg {
  width: 14px;
  height: 14px;
}

.pricing-context {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
}

.pricing-context p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0.75rem;
}

.pricing-context .value-math {
  font-size: var(--text-body);
  color: var(--color-text-body);
  font-weight: 500;
}


/* ------------------------------------------------------------
   17. FAQ SECTION
   ------------------------------------------------------------ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.4;
  min-height: 56px;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: 4px;
}

.faq-question-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq-question-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

.faq-item.active .faq-question-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease, opacity var(--transition-base);
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-answer-content {
  padding-bottom: 1.5rem;
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
}

.faq-answer-content p {
  margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   18. FINAL CTA SECTION
   ------------------------------------------------------------ */
.final-cta {
  background-color: var(--color-bg-hero);
  color: var(--color-text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .section-title {
  color: var(--color-text-on-dark);
}

.final-cta p {
  color: rgba(249, 250, 251, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  line-height: var(--leading-relaxed);
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.final-cta .trust-bar {
  border-top-color: rgba(249, 250, 251, 0.1);
}


/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: #0F172A;
  color: rgba(249, 250, 251, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: var(--leading-normal);
  color: rgba(249, 250, 251, 0.55);
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-on-dark);
  margin-bottom: 1rem;
}

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

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

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(249, 250, 251, 0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-text-on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(249, 250, 251, 0.5);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text-on-dark);
}

.footer-disclaimer {
  border-top: 1px solid rgba(249, 250, 251, 0.08);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(249, 250, 251, 0.35);
  max-width: 900px;
}

.footer-disclaimer a {
  color: rgba(249, 250, 251, 0.5);
  text-decoration: underline;
}

.footer-disclaimer a:hover {
  color: var(--color-text-on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 250, 251, 0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.35);
}

.footer-bottom a {
  color: rgba(249, 250, 251, 0.4);
}


/* ------------------------------------------------------------
   20. SCROLL ANIMATIONS
   ------------------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fade-in.visible {
    transform: none;
  }
}


/* ------------------------------------------------------------
   21. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* Small tablets and large phones */
@media (min-width: 768px) {
  .hero-title {
    letter-spacing: -0.03em;
  }
}

/* Tablets and small laptops — no hero padding reset needed;
   padding-top: 8rem already clears the fixed header */

/* Large desktops */
@media (min-width: 1440px) {
  :root {
    --container-padding: 2rem;
  }
}


/* ------------------------------------------------------------
   22. PRINT STYLESHEET
   ------------------------------------------------------------ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .header,
  .mobile-menu-toggle,
  .nav-cta,
  .hero-overlay,
  .final-cta::before,
  .skip-to-content {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background-image: none !important;
    padding: 2rem 0;
  }

  .hero-content {
    color: #000;
  }

  .hero-title,
  .hero-subtitle {
    color: #000 !important;
  }

  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  .container, .container-narrow {
    max-width: 100%;
    padding: 0 1rem;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .btn {
    border: 1px solid #000;
    padding: 0.25rem 0.5rem;
  }

  .footer-disclaimer {
    page-break-inside: avoid;
  }

  .faq-answer {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
