/* ============================================================
   THE ALIGNMENT ACCELERATOR — Shared Stylesheet
   Brand: Alignment Navy / Accelerator Gold / Accelerator Orange
   Fonts: Montserrat (display) + Inter (body)
   ============================================================ */

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }

/* ---------- Design Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --text-3xl: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  --text-hero: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);

  /* Spacing (4px base) */
  --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;

  /* Brand colors — Alignment Accelerator */
  --navy: #1b2a4a;
  --navy-deep: #131f38;
  --navy-light: #24365c;
  --gold: #ffc233;
  --gold-hover: #ffcf5c;
  --orange: #ff7a30;
  --orange-hover: #ff8f52;
  --cream: #faf6f0;
  --cream-dim: #f2ebe0;
  --ink: #22242a;
  --ink-muted: #55575f;
  --ink-faint: #8b8d94;
  --white: #ffffff;
  --border-light: #e7e0d3;

  /* Semantic roles */
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-surface-2: var(--cream-dim);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-muted);
  --color-text-inverse: var(--cream);
  --color-primary: var(--navy);
  --color-accent: var(--orange);
  --color-accent-2: var(--gold);
  --color-border: var(--border-light);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.12);
  --shadow-lg: 0 20px 48px rgba(27, 42, 74, 0.18);
  --shadow-gold: 0 8px 28px rgba(255, 194, 51, 0.35);

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

  --content-narrow: 640px;
  --content-default: 780px;
  --content-wide: 1120px;
  --content-full: 1320px;

  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

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

::selection {
  background: rgba(255, 194, 51, 0.35);
  color: var(--ink);
}

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

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

button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section-tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}

/* ---------- Typography Utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.headline-hero { font-size: var(--text-hero); }
.headline-xl { font-size: var(--text-3xl); }
.headline-lg { font-size: var(--text-2xl); }
.headline-md { font-size: var(--text-xl); }

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

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 194, 51, 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn-block { width: 100%; }
.btn-lg { padding: var(--space-5) var(--space-10); font-size: var(--text-base); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
}
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}
.brand-name span { display: block; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 240, 0.65);
  padding-block: var(--space-12);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.site-footer .brand { color: var(--white); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  font-size: var(--text-sm);
}
.footer-links a:hover { color: var(--gold); }
.footer-fine {
  font-size: var(--text-xs);
  max-width: 60ch;
  color: rgba(250, 246, 240, 0.4);
}

/* ---------- Hero band (dark navy sections) ---------- */
.hero-band {
  background: radial-gradient(ellipse 120% 100% at 50% -10%, var(--navy-light), var(--navy) 55%, var(--navy-deep));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 194, 51, 0.12), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(255, 122, 48, 0.1), transparent 40%);
  pointer-events: none;
}
.hero-band .container { position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}
.card-elevated {
  box-shadow: var(--shadow-lg);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--gold);
}
.trust-item span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250, 246, 240, 0.65);
}

/* ---------- Video wrapper (VSL) ---------- */
/* Vidalytics/embed scripts manage their own aspect ratio via inline padding-top
   on the embed div itself — this wrapper only supplies the frame chrome. */
.video-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-deep);
  position: relative;
}
.video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-6);
  background: var(--navy-deep);
  z-index: 5;
}
.video-fallback.is-visible { display: flex; }
.video-fallback p { color: rgba(250,246,240,0.75); max-width: 440px; }
.video-open-link { text-align: center; margin-top: var(--space-4); font-size: var(--text-sm); }
.video-open-link a { color: rgba(250,246,240,0.6); text-decoration: underline; }
.video-open-link a:hover { color: var(--white, #fff); }

/* ---------- Embed cards (Calendly, Typeform, ActiveCampaign) ---------- */
.embed-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.embed-card-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.embed-card-body { padding: var(--space-6); }

/* ---------- Progress / trap meter ---------- */
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width 400ms ease;
}

/* ---------- Quiz components ---------- */
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--white);
  font-size: var(--text-base);
  color: var(--ink);
}
.quiz-option:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.quiz-option[aria-pressed='true'] {
  border-color: var(--orange);
  background: linear-gradient(0deg, rgba(255, 122, 48, 0.06), rgba(255, 122, 48, 0.06));
}
.quiz-option-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.quiz-option[aria-pressed='true'] .quiz-option-letter {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ---------- Transformation photo pairs ---------- */
.transform-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.transform-pair figure { position: relative; margin: 0; }
.transform-pair img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 3/4; background: var(--cream, #f4ede3); }
.transform-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(27, 42, 74, 0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.transform-tag.after { background: var(--orange); }

/* ---------- Utility grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--navy-deep);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  display: none;
}
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: var(--space-3) var(--space-6);
  z-index: 200;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Shared testimonial / proof strip (used on every landing page) ---------- */
.proof-strip { background: var(--cream-dim); }
.proof-strip .section-head { max-width: 640px; margin-bottom: var(--space-10); }
.proof-strip .eyebrow { justify-content: flex-start; }
.transform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.transform-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.transform-card-body { padding: var(--space-6); }
.transform-card-body h3 { font-family: var(--font-display); color: var(--navy); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.transform-card-body p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 860px) {
  .transform-grid { grid-template-columns: 1fr; }
}
