/* ========================================
   ACCELERATOR X — Design System
   ========================================

   EDIT THIS FILE to change colors, fonts, spacing globally.
   No need to touch HTML or JavaScript.

   Usage in HTML:
   - Layout: Use Tailwind classes (flex, grid, px-4, etc.)
   - Colors: Use classes below (.bg-primary, .text-accent, etc.)
   - Typography: Use Tailwind + .font-display

   ======================================== */

/* ----------------------------------------
   0. FONT FACE DECLARATIONS
   Self-hosted Aptos (Microsoft) — aligns with Accelerator Solutions brand.
   Weights used on site: 400 (regular), 600 (semibold), 700 (bold).
   Files live in assets/fonts/ — woff2 only (modern browsers, ~74–79KB each).
   ---------------------------------------- */

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos-SemiBold-Italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aptos";
  src: url("assets/fonts/Aptos-Bold-Italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ----------------------------------------
   1. COLOR TOKENS (change these to rebrand)
   ---------------------------------------- */
:root {
  /* Primary brand color — used for highlights, CTAs, accents */
  --color-primary: #088abf; /* Brand teal/cyan (darkened for contrast) */

  /* Accent color — used for primary CTAs, important actions */
  --color-accent: #e93f8e; /* Brand pink/magenta */

  /* Extended brand palette (pixel-sampled from brand pack) */
  --color-amber: #fea700;
  --color-blue: #3477f5;
  --color-green: #1fbd53;
  --color-purple: #882de7;

  /* Pastel/light variants (pixel-sampled from brand pack) */
  --color-primary-light: #c8f9fe; /* teal wash */
  --color-accent-light: #fce3f1; /* pink wash */
  --color-purple-light: #f1e5ff; /* purple wash */

  /* Text colors */
  --color-navy: #1b2a4a; /* Primary text — brand navy */
  --color-muted: #64748b; /* Secondary text — slate */
  --color-body: #475569; /* Body text — slate-600 */
  --color-muted-on-dark: #cbd5e1; /* Muted-on-dark — slate-300 */
  --color-background: #ffffff; /* Page background */

  /* Surface colors */
  --color-surface: #f8fafc; /* Card backgrounds — light slate */
  --color-surface-2: #f1f5f9; /* Secondary surface — slate-100 */
  --color-border: #e2e8f0; /* Borders — light grey */
  --color-border-strong: #cbd5e1; /* Form field borders — slate-300 */

  /* Semantic colors */
  --color-success: #22c55e;
  --color-error: #ef4444;

  /* Typography — Aptos (self-hosted, aligns with Accelerator Solutions brand) */
  --font-display:
    "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:
    "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale (Tailwind-compatible) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */

  /* Border radius */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-2xl: 1.5rem; /* 24px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.trust-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
}

/*
  Trust Bar logo normalisation:
  Prefer fixing assets at source (cropped + transparent). This per-logo override
  exists only because the Premium Car Parks logo is currently a screenshot PNG.
*/
.trust-logo-premium {
  mix-blend-mode: multiply;
  filter: contrast(1.12) saturate(1.05);
  height: 36px;
}

/*
  Scroll reveals:
  - Markup uses `.reveal` plus optional delay utilities
  - JS toggles `is-visible` (see assets/js/main.js)
*/
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

.reveal-slow {
  transition-duration: 0.8s;
}

.hero-shell {
  display: grid;
  gap: var(--space-10);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 var(--space-4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-8);
}

.hero-proof-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 9999px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.hero-media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(10, 173, 206, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-media-stage {
  position: relative;
  min-height: 26rem;
  padding: 1rem;
}

.hero-media-library {
  display: block;
}

.hero-media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-media-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(27, 42, 74, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

@media (max-width: 480px) {
  .hero-media-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.64rem;
    letter-spacing: 0.01em;
  }
}

.hero-media-slides {
  position: absolute;
  inset: 4.25rem 1rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 24px;
  background: #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hero-media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-media-slide.is-active {
  opacity: 1;
}

.hero-media-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
}

.hero-media-note {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  max-width: 17rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.hero-media-note__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero-media-note__body {
  margin: 0;
  color: var(--color-body);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-risk-note {
  max-width: 20rem;
  margin: var(--space-4) auto 0;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-risk-note {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .hero-risk-note {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 639px) {
  .trust-logo {
    height: 28px;
    max-width: 140px;
  }

  .trust-logo-premium {
    height: 32px;
  }

  .hero-shell {
    gap: var(--space-8);
  }

  .hero-proof-row {
    margin-top: var(--space-6);
  }

  .hero-media-stage {
    min-height: 25rem;
    padding: 0.875rem;
  }

  .hero-media-badge {
    top: auto;
    left: auto;
    position: relative;
    justify-self: start;
    max-width: 100%;
    font-size: 0.72rem;
  }

  .hero-media-slides {
    inset: 4rem 0.875rem 6.75rem 0.875rem;
  }

  .hero-media-note {
    left: 0.875rem;
    bottom: 0.875rem;
    max-width: calc(100% - 1.75rem);
    padding: 0.875rem 0.95rem;
  }

  .hero-media-note__body {
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

@media (min-width: 640px) {
  .hero-media-stage {
    min-height: 33rem;
    padding: 1.25rem;
  }

  .hero-media-slides {
    inset: 4.75rem 1.25rem 7.75rem 1.25rem;
  }

  .hero-media-note {
    right: auto;
    left: 1.25rem;
    bottom: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-shell {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: var(--space-12);
  }

  .hero-proof-row {
    justify-content: flex-start;
  }

  .hero-media-stage {
    min-height: 38rem;
    padding: 1.5rem;
  }

  .hero-media-badge {
    top: 1.5rem;
    left: 1.5rem;
  }

  .hero-media-slides {
    inset: 5.25rem 1.5rem 9rem 1.5rem;
  }

  .hero-media-note {
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ----------------------------------------
   2. BASE STYLES
   ---------------------------------------- */
html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-navy);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Selection color */
::selection {
  background: rgba(17, 212, 212, 0.25);
}

/* Link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion preference */
@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;
  }
}

/* ----------------------------------------
   3. SEMANTIC COLOR UTILITY CLASSES
   (Use these in HTML instead of Tailwind color classes)
   ---------------------------------------- */

/* Background colors */
.bg-primary {
  background-color: var(--color-primary);
}
.bg-accent {
  background-color: var(--color-accent);
}
.bg-navy {
  background-color: var(--color-navy);
}
.bg-background {
  background-color: var(--color-background);
}
.bg-surface {
  background-color: var(--color-surface);
}
.bg-surface-2 {
  background-color: var(--color-surface-2);
}
.bg-background-95 {
  background-color: rgba(255, 255, 255, 0.95);
}
.bg-muted {
  background-color: var(--color-muted);
}
.bg-primary-light {
  background-color: var(--color-primary-light);
}
.bg-accent-light {
  background-color: var(--color-accent-light);
}
.bg-purple-light {
  background-color: var(--color-purple-light);
}

/* Text colors */
.text-primary {
  color: var(--color-primary);
}
.text-accent {
  color: var(--color-accent);
}
.text-navy {
  color: var(--color-navy);
}
.text-body {
  color: var(--color-body);
}
.text-muted {
  color: var(--color-muted);
}
.text-muted-on-dark {
  color: var(--color-muted-on-dark);
}
.text-background {
  color: var(--color-background);
}
.text-amber {
  color: var(--color-amber);
}
.text-purple {
  color: var(--color-purple);
}
.text-green {
  color: var(--color-green);
}
.text-blue {
  color: var(--color-blue);
}

/* Border colors */
.border-primary {
  border-color: var(--color-primary);
}
.border-accent {
  border-color: var(--color-accent);
}
.border-navy {
  border-color: var(--color-navy);
}
.border-muted {
  border-color: var(--color-muted);
}
.border-surface {
  border-color: var(--color-border);
}
.border-strong {
  border-color: var(--color-border-strong);
}

/* ----------------------------------------
   4. TYPOGRAPHY UTILITY CLASSES
   ---------------------------------------- */
.font-display {
  font-family: var(--font-display);
  font-weight: 500;
}

/* ----------------------------------------
   5. COMPONENT PATTERNS
   (Reusable design patterns)
   ---------------------------------------- */

/* Card component */
.card {
  background: var(--color-background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}

/* Section spacing */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Container */
.container {
  width: 100%;
  max-width: 72rem; /* 1152px */
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: translateY(1px);
}

/* Button variants */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-background);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  box-shadow: inset 0 0 0 1px var(--color-strong);
}

/* 
   BUTTON SIZE VARIANTS
   Design system handles all button sizing — no Tailwind padding classes needed
   Usage: .btn .btn-accent .btn-lg (size + color variant)
*/
.btn-sm {
  padding: var(--space-2) var(--space-4); /* 8px 16px — header CTA */
  font-size: var(--text-sm, 0.875rem);
}

.btn-lg {
  padding: var(--space-4) var(--space-8); /* 16px 32px — hero/final CTA */
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
}

/* ----------------------------------------
   6. MICRO-INTERACTIONS & FEEDBACK
   (Purposeful motion that signals responsiveness)
   ---------------------------------------- */

/* 
   BUTTON LIFT
   Creates physical affordance — button rises when hovered
   Uses transform (GPU-accelerated) not margin (causes reflow)
   Shadow expands to reinforce "elevation" metaphor
*/
.btn {
  transition:
    transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 
   PRESS FEEDBACK
   Confirms click with subtle scale-down
   Feels mechanical — user knows action registered
   Scale(0.98) subtle enough to not feel jarring
*/
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 
   BUTTON BORDER TREATMENT (hover)
   Thin outline stroke on hover for subtle emphasis
   Uses box-shadow inset for sharp 1px border without layout shift
*/
.btn-accent:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3); /* Subtle inner glow */
}

/* 
   CARD HOVER ELEVATION
   Creates sense of depth and interactivity
   4px lift with expanded shadow — noticeable but not dramatic
   Uses will-change for GPU optimization on frequently animated elements
*/
.card-hoverable {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, box-shadow;
}

.card-hoverable:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------
   Differentiator cards with overlapping illustrations
   ---------------------------------------- */
.diff-card {
  position: relative;
  overflow: visible;
  padding-top: 5rem; /* space for illustration overlap inside card */
}

/* On mobile, stacked cards need extra top margin to clear the
   illustration of the card above (96px × 66% overhang ≈ 64px).
   Reset to 0 at desktop where cards sit side-by-side in a grid. */
.diff-card + .diff-card {
  margin-top: 4rem;
}

@media (min-width: 1024px) {
  .diff-card + .diff-card {
    margin-top: 0;
  }
}

.diff-card-illustration {
  position: absolute;
  top: 0;
  left: var(--space-8);
  transform: translateY(-66%); /* 2/3 above card top edge */
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Navy border for illustrations with white/transparent backgrounds */
.diff-card-illustration--bordered {
  border: 3px solid var(--color-navy);
}

.diff-card h3 {
  margin-top: var(--space-6); /* breathing room below illustration */
  font-size: 1.75rem; /* between text-2xl and text-3xl */
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em; /* tighter tracking to match brand pack */
}

.diff-card p {
  color: var(--color-body);
  letter-spacing: -0.01em;
}

/* Testimonial stars */
.stars-5 {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: #f5c542;
  opacity: 0.9;
}

/* Legal pages layout */
.legal-shell {
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .legal-shell {
    padding: 5rem 0;
  }
}

.legal-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.legal-card h1 {
  margin: 0.5rem 0 1rem;
}

.legal-card h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-card p {
  margin: 0.25rem 0 1rem;
}

.legal-meta {
  color: var(--color-muted);
}


.article-author-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.article-author-card__picture {
  flex: 0 0 auto;
}

.article-author-card__image {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.article-author-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.founder-profile-image {
  width: 112px;
  height: 112px;
  border-radius: 9999px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .founder-profile-image {
    width: 136px;
    height: 136px;
  }
}

.article-author-card__header {
  display: block;
}

.article-author-card__name,
.article-author-card__role,
.article-author-card__bio {
  margin: 0;
}

.article-author-card__name {
  font-weight: 700;
  color: var(--color-navy);
}

.article-author-card__role,
.article-author-card__bio {
  color: var(--color-muted);
}

.article-author-card__role {
  margin-top: 0.125rem;
  font-size: 0.875rem;
}

.article-author-card__bio {
  margin-top: 0.75rem;
  line-height: 1.6;
}

.article-date-meta {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.source-preference-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
}

.source-preference-card--compact {
  padding: 1.25rem 1.5rem;
}

.source-preference-eyebrow {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.source-preference-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-navy);
}

.source-preference-copy {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .source-preference-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.article-share-panel {
  margin: 3rem 0 1.5rem;
}

.article-share-panel__icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-share-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-background);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.article-share-panel__link:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  background: var(--color-surface);
}

/* ----------------------------------------
   MOMENTUM PATH / PROCESS CARDS
   Glassmorphic 3-column card layout for "How it works" section
   ---------------------------------------- */

/* 
   PROCESS SECTION CONTAINER
   Max-width constraint with centered alignment
   Relative positioning for energy line SVG layering
*/
.process-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* 
   PROCESS CARD GRID
   3-column layout on desktop, stacks to single column on mobile
   32px gap maintains breathing room between cards
*/
.process-grid {
  position: relative; /* anchor for .energy-line absolute positioning */
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8); /* 32px */
  margin-top: 4rem; /* extra room for step indicators that overflow card top */
}

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

/* Tablet: maintain 3 columns if space allows, otherwise stack */
@media (min-width: 768px) and (max-width: 1023px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Stack if cards become cramped (<280px each) */
  @supports (width: min(280px, 100%)) {
    .process-grid {
      grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
  }
}

/* 
   GLASSMORPHIC CARD STYLING
   Semi-transparent background with backdrop blur creates depth
   Fallback: solid white for browsers without backdrop-filter support
*/
.process-card {
  position: relative;
  border-radius: var(--radius-2xl); /* 24px */
  padding: var(--space-12) var(--space-8) var(--space-10); /* extra top for overlapping indicator */
  overflow: visible; /* allow step indicator to escape card bounds */
}

/* Per-card pastel backgrounds */
.process-card--primary {
  background-color: var(--color-primary-light);
}
.process-card--purple {
  background-color: var(--color-purple-light);
}
.process-card--accent {
  background-color: var(--color-accent-light);
}

/* 
   BACKGROUND NUMBER
   Large decorative number in top-right corner
   Purely visual (pointer-events: none) — doesn't interfere with interaction
   5% opacity ensures it doesn't compete with content
*/
.process-card::before {
  content: attr(data-step);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 120px;
  font-weight: 700;
  color: var(--color-navy);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-display);
}

/*
   STEP INDICATOR
   64px circle overlapping card top edge with white halo
   Positioned inside cards — simple, works on all screen sizes
*/
.step-indicator {
  position: absolute;
  top: 0;
  left: var(--space-8);
  transform: translateY(-50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 400;
  font-size: 28px;
  box-shadow: 0 0 0 6px white;
}

/* Per-card step indicator colours */
.process-card--purple .step-indicator {
  background: var(--color-purple);
}
.process-card--accent .step-indicator {
  background: var(--color-accent);
}

/* Process card heading typography — big, bold, tight */
.process-card h3 {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/*
   ACCENT HIGHLIGHTS
   Bold coloured key verbs — per-card colours
   Card 1 (primary): teal, Card 2 (purple): purple, Card 3 (accent): pink
*/
.accent {
  color: var(--color-accent);
  font-weight: inherit;
}

.process-card--primary .accent {
  color: var(--color-primary);
}
.process-card--purple .accent {
  color: var(--color-purple);
}
.process-card--accent .accent {
  color: var(--color-accent);
}

/* 
   PRICE BADGE
   Teal pill-style badge for pricing information
   Inline-block allows natural text flow
*/
.price-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  margin-top: 1.5rem;
}

/* 
   HAND-DRAWN CALLOUT
   Organic, irregular border for money-back guarantee (Step 1 only)
   Truly hand-sketched appearance - not geometric or corporate
   Uses pseudo-element for decorative border layer
*/
.callout {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  margin: 16px 0;
  position: relative;
}

/* 
   Hand-drawn circle border
   Irregular border-radius creates organic, sketched appearance
   Each corner has different radius values for natural imperfection
   70% opacity softens the effect, feels less mechanical
*/
.callout::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--color-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  opacity: 0.7;
  pointer-events: none;
}

/*
   SCROLL-TRIGGERED ANIMATIONS
   Cards fade in and slide up when section enters viewport
   Staggered delays create cascading effect
*/

/* Card entrance animation - initial hidden state */
.process-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

/* Card visible state - triggered by Intersection Observer */
.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cascading effect */
.process-card:nth-child(1) {
  transition-delay: 0s;
}

.process-card:nth-child(2) {
  transition-delay: 0.1s;
}

.process-card:nth-child(3) {
  transition-delay: 0.2s;
}

/*
   ACCESSIBILITY: REDUCED MOTION
   Respects user preference for reduced motion
   Disables all animations and shows final state immediately
*/
@media (prefers-reduced-motion: reduce) {
  .process-card {
    transition: none;
    animation: none;
  }
}

/* ----------------------------------------
   APPLY SECTION HAND-DRAWN ACCENTS
   Underline/halo and pointer arrow into the form
   ---------------------------------------- */

.apply-shell {
  position: relative;
}

.apply-heading-wrap {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  z-index: 1;
}

.apply-underline-span {
  position: relative;
  display: inline;
}

.apply-underline {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 44px;
  pointer-events: none;
}

.apply-underline path {
  stroke: var(--color-accent);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.3s ease-out;
}

/* Visible state triggers draw animations */
.apply-visible .apply-underline path {
  stroke-dashoffset: 0;
}

/* Gentle idle loop after initial draw */
.apply-animate-loop .apply-underline path {
  animation: apply-wiggle-small 6s ease-in-out infinite;
}

@keyframes apply-wiggle-small {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}

.different-headline {
  position: relative;
  display: block;
}

.different-underline {
  position: relative;
  display: inline-block;
}

.different-underline svg {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 100%;
  height: 44px;
  pointer-events: none;
}

.different-underline path {
  stroke: var(--color-primary);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.1s ease-out;
}

.different-headline.visible .different-underline path {
  stroke-dashoffset: 0;
  transition-delay: 0.3s;
}

@media (max-width: 639px) {
  .different-underline svg {
    height: 36px;
    bottom: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .different-underline path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ----------------------------------------
   TESTIMONIALS HEADLINE HAND-DRAWN CIRCLE
   Slower animation (1.5s) with 0.4s delay
   ---------------------------------------- */

.testimonials-headline {
  position: relative;
  display: block;
}

.testimonials-circle {
  position: relative;
  display: inline-block;
}

.testimonials-circle svg {
  position: absolute;
  left: -30px;
  top: -24px;
  width: calc(100% + 60px);
  height: 92px;
  pointer-events: none;
  overflow: visible;
}

.testimonials-circle path {
  stroke: var(--color-primary);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 106 1000;
  stroke-dashoffset: 106;
  transition: stroke-dashoffset 1.5s ease-out;
}

.testimonials-headline.visible .testimonials-circle path {
  stroke-dashoffset: 0;
  transition-delay: 0.4s;
}

@media (max-width: 639px) {
  .testimonials-circle svg {
    left: -22px;
    width: calc(100% + 44px);
    height: 84px;
    top: -22px;
  }

  .testimonials-circle path {
    stroke-dasharray: 106 1000;
    stroke-dashoffset: 106;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-circle path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ----------------------------------------
   PROBLEM HEADLINE HAND-DRAWN UNDERLINE
   Animates on scroll when section enters view
   ---------------------------------------- */

.problem-headline {
  position: relative;
  display: inline-block;
}

.problem-underline {
  position: relative;
  display: inline-block;
}

.problem-underline svg {
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 100%;
  height: 88px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .problem-underline svg {
    bottom: -24px;
    height: 72px;
  }
}

.problem-underline path {
  stroke: var(--color-accent);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.1s ease-out;
}

.problem-headline.visible .problem-underline path {
  stroke-dashoffset: 0;
  transition-delay: 0.3s;
}

@media (max-width: 639px) {
  .problem-underline svg {
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-underline path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* 
   FOCUS GLOW
   Accessibility requirement: visible focus indicator for keyboard navigation
   Uses box-shadow instead of outline for softer, brand-aligned appearance
   3px spread with 40% opacity = visible but not aggressive
   
   WCAG 2.1 Compliance: This satisfies 2.4.7 Focus Visible (Level AA)
*/
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 212, 212, 0.4);
}

/* Remove focus glow from mouse clicks (browser handles :focus vs :focus-visible) */
:focus:not(:focus-visible) {
  box-shadow: none;
}

/* ----------------------------------------
   7. FOOTER COMPONENTS
   ---------------------------------------- */
.site-footer {
  background: var(--color-background);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-link {
  color: var(--color-muted);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-link:hover {
  color: var(--color-navy);
}

.footer-card {
  border: 1px solid var(--color-surface-2);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 1.25rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.footer-card:hover {
  border-color: var(--color-strong);
  box-shadow: 0 12px 30px rgba(13, 27, 63, 0.08);
  transform: translateY(-1px);
}

.footer-card:active {
  transform: translateY(0);
}

.footer-social-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.social-slot {
  align-items: center;
  border: 1px solid var(--color-surface-2);
  border-radius: 999px;
  color: var(--color-muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.625rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.social-slot:hover {
  background-color: var(--color-surface);
  border-color: var(--color-strong);
  color: var(--color-navy);
  transform: translateY(-1px);
}

.social-slot-placeholder {
  cursor: default;
  opacity: 0.65;
}

.footer-subscribe-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

  .footer-subscribe-row {
    grid-template-columns: 1fr auto;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.05fr 0.95fr 1.2fr;
  }
}

/* ----------------------------------------
   8. PRINT STYLES
   ---------------------------------------- */
@media print {
  .no-print {
    display: none !important;
  }

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

/* ----------------------------------------
   9. ARTICLE PROSE (Markdown styling)
   ---------------------------------------- */
.prose {
  color: var(--color-navy);
  max-width: 65ch;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  line-height: 1.3;
}
.prose p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}
.prose ul {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose li {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}
.prose li::marker {
  color: var(--color-primary);
  font-weight: 600;
}
.prose strong {
  color: var(--color-navy);
  font-weight: 600;
}
.prose hr {
  margin-top: 3rem;
  margin-bottom: 3rem; 
  border: 0;
  border-top: 1px solid var(--color-surface-2);
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.prose a:hover {
  color: var(--color-accent);
}
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-navy);
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 1.5rem;
}
