/* =========================================================
   Paradigm Psychiatry - Attention-as-a-Service & Brain Fitness
   Dark · Apple-esque · Minimal
   ========================================================= */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0c;
  --bg-card: rgba(22, 22, 26, 0.72);
  --bg-card-solid: #121216;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-secondary: #c7c7cc;
  --text-tertiary: #8e8e93;
  --text-label: #d1d1d6;

  /* Brand accents from logos */
  --aaas: #eef3fc;
  --aaas-soft: #bcd2f4;
  --aaas-glow: rgba(188, 210, 244, 0.18);
  --fitness: #6f9fe8;
  --fitness-soft: #9bbef0;
  --fitness-glow: rgba(111, 159, 232, 0.22);
  --fitness-navy: #0d1f3a;
  --accent: #bcd2f4;
  --accent-soft: #eef3fc;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --radius-pill: 999px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: #fff;
}

strong {
  font-weight: 600;
  color: #fff;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* Bold italic emphasis
   Instrument Serif only has regular italic - light synthetic weight.
   Color matches hero "HOW" (aaas-soft). */
em.em-strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--aaas-soft);
  text-shadow: none;
}

/* Brand names - bold only, no italic */
.brand-strong {
  font-family: var(--font);
  font-style: normal;
  font-weight: 700;
  color: var(--aaas-soft);
  letter-spacing: -0.01em;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

/* ---------- Ambient backdrop ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform, opacity;
}

.ambient-glow-a {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(111, 159, 232, 0.28), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.ambient-glow-b {
  width: 45vw;
  height: 45vw;
  bottom: 5%;
  right: -12%;
  background: radial-gradient(circle, rgba(188, 210, 244, 0.16), transparent 65%);
  animation: drift-b 28s ease-in-out infinite alternate;
}

.ambient-glow-c {
  width: 35vw;
  height: 35vw;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.12), transparent 65%);
  animation: drift-c 18s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%  { transform: translate(8%, 12%) scale(1.12); opacity: 0.55; }
  100% { transform: translate(4%, -6%) scale(0.95); opacity: 0.38; }
}

@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50%  { transform: translate(-10%, -8%) scale(1.15); opacity: 0.5; }
  100% { transform: translate(-4%, 6%) scale(1.05); opacity: 0.32; }
}

@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.25; }
  100% { transform: translate(-12%, 10%) scale(1.2); opacity: 0.42; }
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  animation: grid-shift 40s linear infinite;
}

@keyframes grid-shift {
  0%   { background-position: 0 0; opacity: 0.7; }
  50%  { opacity: 1; }
  100% { background-position: 72px 72px; opacity: 0.7; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.78);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  width: min(1280px, calc(100% - 2.5rem));
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.header-pathway-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
}

.header-pathway-link:hover {
  opacity: 1;
}

.header-pathway-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-pathway-aaas,
.header-pathway-fitness {
  height: 48px;
}

@media (max-width: 1200px) {
  .header-pathway-aaas,
  .header-pathway-fitness {
    height: 40px;
  }

  .header-logos {
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 900px) {
  /* Pathway marks still in footer; hide in header when space is tight */
  .header-pathway-link {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  color: #000 !important;
  background: var(--text) !important;
  margin-left: 0.35rem;
  padding: 0.55rem 1.1rem !important;
}

.nav-cta:hover {
  background: #fff !important;
  opacity: 0.92;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-label);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.magnetic:active {
  transform: translate3d(var(--mx), var(--my), 0) scale(0.98);
}

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

.btn-primary:hover {
  background: #fff;
  color: #000;
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  margin: 0 0 1rem;
}

.eyebrow-hero {
  flex-wrap: nowrap;
  max-width: 100%;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  font-size: clamp(0.62rem, 1.35vw, 0.85rem);
  letter-spacing: 0.045em;
  gap: 0.45rem;
}

.eyebrow-hero-text {
  white-space: nowrap;
  min-width: 0;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fitness);
  box-shadow: 0 0 0 0 var(--fitness-glow);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 159, 232, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(111, 159, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 159, 232, 0); }
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lead,
.section-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 38em;
}

.section-lead {
  margin: 0 auto 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head .section-lead {
  margin-top: 1rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 2.5rem;
  position: relative;
}

/* Gauge sits directly under hero - less empty scroll */
.hero + .cpt-section {
  padding-top: 1.75rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-wrong {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.hero-reframe {
  font-size: clamp(2.35rem, 6.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0.75rem 0 1.75rem;
  color: var(--text);
}

.hero-reframe em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--aaas-soft);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-lead .lead {
  margin: 0;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Brand trust strip under hero CTAs */
.trust-strip {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.trust-strip li {
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Sticky mobile Call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sticky-call-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 650;
  color: #000 !important;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1rem;
  letter-spacing: -0.01em;
}

.sticky-call-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1rem;
  min-width: 5.5rem;
}

@media (max-width: 720px) {
  .sticky-call {
    display: flex;
  }

  body {
    padding-bottom: 5.25rem;
  }
}

/* Video frame */
.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-heading {
  display: block;
  width: 100%;
  margin: 0 0 0.15rem;
  text-align: center !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-label) !important;
  line-height: 1.35;
}

.video-caption {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
  max-width: 36em;
  margin-inline: auto;
}

.video-caption-tags {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-label);
}

/* Use-case routes under the hero tags, before the gauge */
.hero-routes {
  margin-top: 2.75rem;
}

.hero-routes > .eyebrow {
  margin-bottom: 0.85rem;
}

.hero-therapists {
  margin-top: 1.85rem;
}

.use-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.use-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5.1rem;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.use-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.use-btn-hot {
  border-color: rgba(111, 159, 232, 0.55);
  background: rgba(111, 159, 232, 0.08);
}

.use-btn-hot:hover {
  border-color: rgba(155, 190, 240, 0.8);
  background: rgba(111, 159, 232, 0.14);
}

.use-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--fitness-soft);
  background: rgba(111, 159, 232, 0.12);
}

.use-icon svg {
  width: 22px;
  height: 22px;
}

.use-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.use-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: inherit;
}

.use-sub {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.use-hot {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem 0.1rem;
  border-radius: var(--radius-pill);
  background: rgba(111, 159, 232, 0.18);
  color: var(--fitness-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

.use-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.use-arrow svg {
  width: 18px;
  height: 18px;
}

.use-btn-therapist {
  color: #1c1408;
  background: linear-gradient(180deg, #c9a45e 0%, #a7833c 100%);
  border-color: transparent;
}

.use-btn-therapist:hover {
  color: #1c1408;
  background: linear-gradient(180deg, #d4b16a 0%, #b48e46 100%);
  border-color: transparent;
}

.use-btn-therapist .use-icon {
  color: #1c1408;
  background: rgba(28, 20, 8, 0.12);
}

.use-btn-therapist .use-sub,
.use-btn-therapist .use-arrow {
  color: rgba(28, 20, 8, 0.72);
}

@media (max-width: 720px) {
  .hero-routes {
    order: -1;
    margin-top: 0;
    margin-bottom: 1.75rem;
  }

  .hero-therapists {
    margin-top: 1.25rem;
  }

  .use-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .use-btn {
    align-items: flex-start;
    gap: 0.45rem;
    min-height: 0;
    padding: 0.65rem 0.6rem;
    border-radius: 14px;
  }

  .use-icon {
    width: 26px;
    height: 26px;
    margin-top: 0.05rem;
  }

  .use-icon svg {
    width: 15px;
    height: 15px;
  }

  .use-title {
    font-size: 0.78rem;
  }

  .use-sub {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .use-hot {
    margin-left: 0.15rem;
    padding: 0.06rem 0.32rem;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }

  .use-arrow {
    display: none;
  }
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #12141a 0%, #0a0c10 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    var(--shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.video-frame.has-video video {
  display: block;
}

/* Transparent-background demos: fit whole frame on dark stage */
.video-frame.has-transparent-video {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(111, 159, 232, 0.14), transparent 60%),
    linear-gradient(160deg, #0c0e14 0%, #050508 100%);
}

.video-frame.has-transparent-video video {
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 0.77;
}

.video-frame.has-video .video-placeholder {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(111, 159, 232, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.play-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.video-frame:hover .play-ring {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

.video-label {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.video-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Framing ---------- */
.framing {
  padding-top: 3rem;
}

.solution-eyebrow {
  display: block;
  text-align: center;
  margin: 0 0 1rem;
}

.solution-head {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.solution-head h2 {
  text-align: center;
}

/* Full site width - matches pathways container (var(--max) = 1120px) */
.framing-story {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: stretch;
  width: 100%;
  margin: 0 0 3rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(12px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.story-num {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fitness-soft);
  margin-bottom: 1rem;
}

.story-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
}

.story-card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.story-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  opacity: 0.55;
  padding: 0 0.15rem;
}

.framing-close {
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 42em;
  margin: 0.5rem auto 0;
  line-height: 1.65;
}

@media (min-width: 961px) {
  .framing-story {
    /* Three equal cards spanning the same total width as the dual pathway row */
    gap: 1.5rem 1.75rem;
  }

  .story-card {
    min-height: 240px;
    padding: 2.5rem 2.15rem;
  }
}

/* ---------- Pathways ---------- */
.pathways {
  background: linear-gradient(180deg, transparent, rgba(13, 31, 58, 0.25) 40%, transparent);
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.pathway {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.25rem 2rem 2rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.pathway:hover {
  border-color: var(--border-strong);
}

.pathway-aaas {
  box-shadow: 0 0 60px -20px var(--aaas-glow);
}

.pathway-fitness {
  box-shadow: 0 0 60px -20px var(--fitness-glow);
}

/* Shared vertical rhythm so both cards (and their icons) align */
.pathway-header {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin-bottom: 1.75rem;
}

.pathway-logo-wrap {
  height: 148px;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.pathway-logo,
.pathway-logo-aaas,
.pathway-logo-fitness {
  display: block;
  height: 128px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.pathway-kicker {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fitness-soft);
  margin: 0 0 0.85rem;
  min-height: 1.4em;
  line-height: 1.4;
}

.pathway-aaas .pathway-kicker {
  color: #d4e4fc;
}

.pathway-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  /* ~4 sentences / lines - keeps benefit lists (and icons) aligned across cards */
  min-height: 6.8em;
}

.benefit-list {
  --benefit-icon-col: 60px;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  /* Four equal rows → icon columns line up left-to-right across both cards */
  grid-template-rows: repeat(4, minmax(4.75em, auto));
  gap: 1.1rem;
  flex: 1;
  align-content: start;
}

.benefit-list li {
  display: grid;
  grid-template-columns: var(--benefit-icon-col) minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  min-height: 0;
}

.benefit-icon {
  position: relative;
  width: var(--benefit-icon-col);
  height: var(--benefit-icon-col);
  border-radius: 14px;
  display: block;
  background: linear-gradient(145deg, rgba(111, 159, 232, 0.18), rgba(111, 159, 232, 0.05));
  border: 1px solid rgba(111, 159, 232, 0.35);
  box-shadow: 0 0 24px rgba(111, 159, 232, 0.12);
  color: var(--fitness-soft);
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: visible;
}

/* Force true center of glyph inside the square */
.benefit-icon svg,
.benefit-icon .benefit-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  display: block;
  overflow: visible;
}

.pathway-aaas .benefit-icon {
  color: var(--aaas-soft);
  background: linear-gradient(145deg, rgba(188, 210, 244, 0.2), rgba(188, 210, 244, 0.05));
  border-color: rgba(188, 210, 244, 0.4);
  box-shadow: 0 0 24px rgba(188, 210, 244, 0.12);
}

.pathway-fitness .benefit-icon {
  color: var(--fitness-soft);
  background: linear-gradient(145deg, rgba(111, 159, 232, 0.22), rgba(13, 31, 58, 0.45));
  border-color: rgba(111, 159, 232, 0.4);
  box-shadow: 0 0 24px rgba(111, 159, 232, 0.14);
}

.benefit-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.benefit-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pathway-cta {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.pathway-cta:hover {
  color: var(--accent-soft);
}

@media (max-width: 960px) {
  .pathway-logo-wrap {
    height: 120px;
  }

  .pathway-logo,
  .pathway-logo-aaas,
  .pathway-logo-fitness {
    height: 100px;
  }

  .pathway-intro {
    min-height: 0;
  }

  .benefit-list {
    grid-template-rows: none;
  }
}

/* ---------- CPT / Attention gauge ---------- */
.cpt-section {
  background: linear-gradient(180deg, transparent, rgba(13, 31, 58, 0.2) 50%, transparent);
}

.cpt-shell {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 1.75rem 1.75rem;
  backdrop-filter: blur(16px);
}

.cpt-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.cpt-panel[hidden] {
  display: none !important;
}

.cpt-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.cpt-rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cpt-rule-key {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--aaas-soft);
  letter-spacing: 0.04em;
}

.cpt-rule-key-muted {
  color: var(--text-tertiary);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.cpt-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  max-width: 36em;
}

.cpt-email-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  max-width: 360px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-label);
}

.cpt-email-label input {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cpt-email-label input::placeholder {
  color: var(--text-tertiary);
}

.cpt-email-label input:focus {
  border-color: rgba(111, 159, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 159, 232, 0.15);
}

.cpt-email-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-tertiary);
  max-width: 32em;
}

.cpt-email-error {
  margin: 0;
  font-size: 0.88rem;
  color: #ff8f8f;
}

.cpt-submit-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.cpt-submit-status.is-ok {
  color: var(--aaas-soft);
}

.cpt-submit-status.is-err {
  color: #ff8f8f;
}

.cpt-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.cpt-stage {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(111, 159, 232, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    min-height 0.3s var(--ease);
}

/* Mid-run checkpoint: grow the stage so the HUD fits, fully centered */
.cpt-stage.is-checkpoint {
  min-height: 300px;
  border-color: rgba(188, 210, 244, 0.45);
  box-shadow:
    0 0 0 1px rgba(188, 210, 244, 0.12) inset,
    0 0 40px -8px rgba(111, 159, 232, 0.45);
  cursor: default;
}

.cpt-stage:focus-visible {
  border-color: rgba(188, 210, 244, 0.45);
  box-shadow: 0 0 0 3px rgba(111, 159, 232, 0.2);
}

.cpt-stimulus {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
  min-height: 1.1em;
  transition: color 0.12s ease, text-shadow 0.12s ease;
  user-select: none;
}

.cpt-stimulus.cpt-blank {
  opacity: 0.15;
}

.cpt-stimulus.cpt-hit {
  color: var(--aaas-soft);
  text-shadow: 0 0 24px rgba(188, 210, 244, 0.45);
}

.cpt-stimulus.cpt-fa {
  color: #ff8f8f;
  text-shadow: 0 0 18px rgba(255, 120, 120, 0.35);
}

.cpt-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cpt-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fitness), var(--aaas-soft));
  transition: width 0.25s linear;
}

.cpt-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.cpt-gauge {
  position: relative;
  width: 160px;
  height: 160px;
}

.cpt-gauge-svg {
  width: 100%;
  height: 100%;
}

.cpt-gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.cpt-score-ring {
  stroke: var(--aaas-soft);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cpt-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.cpt-score {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.cpt-score-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  max-width: 4.6em;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: var(--aaas-soft);
}

.cpt-score-label-line {
  display: block;
}

/* Qualitative post-test card (no numbers until email unlock) */
.cpt-qual-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(188, 210, 244, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(111, 159, 232, 0.14), transparent 60%),
    rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.cpt-qual-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aaas-soft, #6f9fe8);
}

.cpt-qual-level {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.cpt-qual-blurb {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cpt-qual-card[data-tone="excellent"] {
  border-color: rgba(120, 200, 160, 0.35);
}
.cpt-qual-card[data-tone="excellent"] .cpt-qual-eyebrow {
  color: #8fd4b0;
}
.cpt-qual-card[data-tone="good"] {
  border-color: rgba(111, 159, 232, 0.4);
}
.cpt-qual-card[data-tone="mild"] {
  border-color: rgba(200, 180, 120, 0.35);
}
.cpt-qual-card[data-tone="mild"] .cpt-qual-eyebrow {
  color: #d4c48f;
}
.cpt-qual-card[data-tone="moderate"] {
  border-color: rgba(210, 160, 110, 0.35);
}
.cpt-qual-card[data-tone="moderate"] .cpt-qual-eyebrow {
  color: #e0b88a;
}
.cpt-qual-card[data-tone="significant"] {
  border-color: rgba(180, 160, 200, 0.35);
}
.cpt-qual-card[data-tone="significant"] .cpt-qual-eyebrow {
  color: #c4b0d8;
}

.cpt-metrics {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.cpt-metrics-report {
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.cpt-metrics > div {
  padding: 0.75rem 0.5rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.cpt-metrics dt {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.cpt-metrics dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
}

.cpt-metric-hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--text-tertiary);
}

.cpt-insight {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 34em;
}

.cpt-insight[hidden] {
  display: none !important;
}

/* Full report (post-email) */
.cpt-full-report {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding-top: 0.25rem;
  animation: cpt-report-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cpt-full-report[hidden] {
  display: none !important;
}

@keyframes cpt-report-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cpt-report-head {
  text-align: center;
  max-width: 32rem;
}

.cpt-report-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aaas-soft, #6f9fe8);
}

.cpt-report-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cpt-report-tie {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cpt-trend {
  width: 100%;
  max-width: 22rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.cpt-trend-title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: center;
}

.cpt-trend-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cpt-trend-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 0.55rem;
}

.cpt-trend-label {
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.cpt-trend-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cpt-trend-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aaas-soft, #6f9fe8), rgba(188, 210, 244, 0.9));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.cpt-trend-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-tertiary);
  text-align: center;
}

/* Insights email gate (post-run) */
.cpt-insights-gate {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1.25rem 1.15rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(188, 210, 244, 0.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(111, 159, 232, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cpt-insights-gate[hidden] {
  display: none !important;
}

.cpt-gate-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.cpt-insights-gate .cpt-email-note {
  text-align: center;
  margin: 0;
}

.cpt-insights-gate .cpt-email-label {
  max-width: none;
}

.cpt-insights-gate .btn {
  width: 100%;
}

/* In-stage checkpoint HUD - flex-centered inside the stage */
.cpt-checkpoint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1.1rem 1rem;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(111, 159, 232, 0.22), transparent 55%),
    rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cpt-checkpoint-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cpt-checkpoint[hidden] {
  display: none !important;
}

@keyframes cpt-checkpoint-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cpt-checkpoint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 20em;
  margin: 0 auto;
}

.cpt-checkpoint-badge {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aaas-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(188, 210, 244, 0.28);
  background: rgba(188, 210, 244, 0.08);
  animation: cpt-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes cpt-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(188, 210, 244, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(188, 210, 244, 0); }
}

.cpt-checkpoint-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 0 28px rgba(188, 210, 244, 0.25);
}

.cpt-checkpoint-sub {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.cpt-checkpoint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cpt-checkpoint-actions .btn {
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
}

.cpt-checkpoint-go {
  min-width: 8.5rem;
  box-shadow: 0 0 24px -6px rgba(255, 255, 255, 0.45);
}

.cpt-checkpoint-keys {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.cpt-checkpoint-keys kbd {
  display: inline-block;
  min-width: 1.35em;
  padding: 0.1em 0.35em;
  margin: 0 0.1em;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--aaas-soft);
}

/* Progress bar reacts at checkpoint / extend */
.cpt-progress.is-checkpoint .cpt-progress-fill {
  background: linear-gradient(90deg, var(--fitness), #fff, var(--aaas-soft));
  background-size: 200% 100%;
  animation: cpt-progress-shimmer 1.2s linear infinite;
}

.cpt-progress.is-extending .cpt-progress-fill {
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cpt-progress-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 540px) {
  .cpt-checkpoint-actions {
    flex-direction: column;
  }

  .cpt-checkpoint-actions .btn {
    width: 100%;
  }

  .cpt-checkpoint-keys {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpt-checkpoint,
  .cpt-checkpoint-badge,
  .cpt-progress.is-checkpoint .cpt-progress-fill {
    animation: none;
  }
}

/* Soft optional CTA after full report unlock */
.cpt-follow-invite {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.cpt-follow-invite-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cpt-follow-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.cpt-follow-invite-actions .btn {
  min-width: 9.5rem;
}

.cpt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 540px) {
  .cpt-follow-invite-actions {
    flex-direction: column;
  }

  .cpt-follow-invite-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Working Memory Challenge (paired with Attention gauge) ---------- */
.wmc-stage {
  min-height: 200px;
  cursor: default;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
}

.wmc-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
}

.wmc-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.55rem;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.wmc-response {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.wmc-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.75rem;
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--text-tertiary);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
}

.wmc-slot.is-filled {
  color: var(--aaas-soft);
  border-style: solid;
  border-color: rgba(188, 210, 244, 0.35);
  background: rgba(111, 159, 232, 0.1);
}

.wmc-feedback {
  margin: 0;
  max-width: 22em;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: center;
  padding: 0.75rem 1rem;
}

.wmc-feedback.is-ok {
  color: var(--aaas-soft);
  text-shadow: 0 0 20px rgba(188, 210, 244, 0.35);
}

.wmc-feedback.is-miss {
  color: var(--text);
  font-weight: 550;
}

.wmc-pad {
  width: 100%;
  max-width: 320px;
  margin: 0.15rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wmc-pad[hidden] {
  display: none !important;
}

.wmc-pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.wmc-key {
  min-height: 56px;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s var(--ease), border-color 0.15s, transform 0.1s;
}

.wmc-key:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(188, 210, 244, 0.35);
}

.wmc-key:active:not(:disabled) {
  transform: scale(0.97);
}

.wmc-key:focus-visible {
  outline: 3px solid rgba(111, 159, 232, 0.55);
  outline-offset: 2px;
}

.wmc-key:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wmc-pad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.wmc-pad-actions .wmc-submit {
  grid-column: 1 / -1;
  min-height: 52px;
}

.wmc-ctrl {
  min-height: 48px;
  width: 100%;
}

@media (max-width: 540px) {
  .wmc-key {
    min-height: 60px;
    font-size: 1.45rem;
  }

  .wmc-digit {
    min-width: 2.4rem;
    min-height: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmc-key {
    transition: none;
  }
}

@media (max-width: 540px) {
  .cpt-rules {
    grid-template-columns: 1fr;
  }

  .cpt-metrics,
  .cpt-metrics-report {
    grid-template-columns: 1fr 1fr;
  }

  .cpt-shell {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .cpt-qual-card {
    padding: 1.15rem 1rem 1.2rem;
  }

  .cpt-qual-level {
    font-size: 1.05rem;
  }

  .cpt-insights-gate {
    max-width: none;
  }
}

/* ---------- Gauge score branching (main + landing pages) ---------- */
.gauge-branch {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.gauge-branch[hidden] {
  display: none !important;
}

.gauge-branch-card {
  background: var(--bg-card);
  border: 1px solid rgba(188, 210, 244, 0.2);
  border-radius: 28px;
  padding: 2.25rem 2rem 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 80px -30px var(--aaas-glow);
}

.gauge-branch-meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.gauge-branch-track h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.gauge-branch-track p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.gauge-branch-track[hidden] {
  display: none !important;
}

.gauge-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gauge-branch-fine {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.gauge-branch-email-status {
  margin: 0.85rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.gauge-branch-email-status.is-ok {
  color: var(--aaas-soft);
}

.gauge-branch-email-status.is-err {
  color: #ff8f8f;
}

@media (max-width: 540px) {
  .gauge-branch-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }

  .gauge-branch-actions {
    flex-direction: column;
  }

  .gauge-branch-actions .btn {
    width: 100%;
  }
}

/* ---------- FAQ page ---------- */
.faq-page {
  padding-top: 4rem;
}

.faq-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
  text-align: center;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  margin-top: -4px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* FAQ → gauge narrative bridge */
.faq-gauge-bridge {
  margin: 2.75rem auto 0;
  max-width: 36rem;
  text-align: center;
}

.faq-gauge-bridge-rule {
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1.35rem;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent, #6f9fe8) 70%, transparent),
    transparent
  );
  opacity: 0.9;
}

.faq-gauge-bridge-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #6f9fe8);
}

.faq-gauge-bridge-line {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.faq-gauge-bridge-prompt {
  margin: 0 0 1.35rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
}

.faq-gauge-bridge-prompt em {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  line-height: 1.45;
  color: var(--text);
}

.faq-gauge-bridge-prompt em strong {
  font-style: italic;
  font-weight: 700;
  color: var(--text);
}

.faq-gauge-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card, rgba(255, 255, 255, 0.04)) 80%, transparent);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.faq-gauge-continue:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--accent, #6f9fe8) 12%, transparent);
}

.faq-gauge-continue-arrow {
  font-size: 0.95em;
  opacity: 0.75;
  transition: transform 0.2s var(--ease);
}

.faq-gauge-continue:hover .faq-gauge-continue-arrow {
  transform: translateY(2px);
}

.faq-answer a {
  color: var(--accent, #6f9fe8);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.faq-answer a:hover {
  color: var(--text);
}

/* FAQ-tuned gauge section (post-research cognitive load) */
.faq-page + .cpt-section,
.cpt-section-faq {
  padding-top: 1.75rem;
}

.cpt-section-faq .section-head {
  margin-bottom: 1.35rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.cpt-section-faq .section-head .eyebrow {
  color: color-mix(in srgb, var(--accent, #6f9fe8) 85%, var(--text-secondary));
}

.cpt-section-faq .section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.cpt-section-faq .section-lead {
  font-size: 1.02rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 1rem;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-secondary);
}

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

/* ---------- Traditional insurance ---------- */
.traditional-panel {
  background: linear-gradient(135deg, rgba(18, 22, 32, 0.95), rgba(13, 31, 58, 0.55));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.traditional-panel .section-lead {
  margin: 0 auto 2rem;
}

.traditional-copy h2 {
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.indication-pills {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.indication-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  font-weight: 500;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fitness);
  box-shadow: 0 0 8px var(--fitness-glow);
}

.traditional-note {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin: 0 0 1.75rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding-bottom: 5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.testimonial-slot:hover {
  border-color: var(--border-strong);
}

.testimonial-media {
  aspect-ratio: 4 / 3;
  background: #0c0c10;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.testimonial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.testimonial-slot blockquote {
  margin: 0;
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.testimonial-slot blockquote p {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.testimonial-slot footer {
  font-style: normal;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}

.testimonial-attr {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aaas-soft);
  letter-spacing: 0.01em;
}

.testimonial-context {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ---------- Intake ---------- */
.intake {
  padding-top: 5rem;
  padding-bottom: 7rem;
}

.intake-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.intake-copy .section-lead {
  margin: 0 0 2.5rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}

.contact-line:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--text);
  letter-spacing: -0.01em;
}

.clinic-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-tertiary);
}

/* Google Business Profile / Maps embed (near contact) */
.gbp-card {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.gbp-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.gbp-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.gbp-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.gbp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--aaas-soft);
  letter-spacing: -0.01em;
  width: fit-content;
}

.gbp-link:hover {
  color: #fff;
}

.intake-form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 1.85rem 1.85rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.intake-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.intake-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-label);
}

.intake-form input,
.intake-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.intake-form input::placeholder,
.intake-form textarea::placeholder {
  color: var(--text-tertiary);
}

.intake-form input:focus,
.intake-form textarea:focus {
  border-color: rgba(111, 159, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 159, 232, 0.15);
}

.interest-field {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.interest-field legend {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-label);
  margin-bottom: 0.5rem;
  padding: 0;
}

.interest-field .req-note {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.85em;
}

.check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
  font-size: 0.92rem !important;
  color: var(--text) !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--fitness);
  cursor: pointer;
}

.form-status {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.9rem;
  color: var(--fitness-soft);
}

.form-status.error {
  color: #ff7b7b;
}

/* Netlify Forms honeypot - hidden from people, visible to bots */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fine {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

/* ---------- About ---------- */
.about {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.about .section-head {
  margin-bottom: 2rem;
}

.about-logo {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(320px, 80%);
  margin: 0.5rem auto 0;
  object-fit: contain;
}

.about-body {
  max-width: 40em;
  margin: 0 auto;
  text-align: center;
}

.about-body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: #000;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 0.85rem;
}

.footer-brand .footer-logo {
  display: block;
  height: 64px; /* match header .brand-logo */
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-pathway-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
  flex-shrink: 0;
}

.footer-pathway-link:hover {
  opacity: 1;
}

.footer-pathway-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-pathway-aaas,
.footer-pathway-fitness {
  height: 60px;
}

@media (max-width: 960px) {
  .footer-brand .footer-logo {
    height: 52px; /* match header mobile */
  }

  .footer-pathway-aaas,
  .footer-pathway-fitness {
    height: 48px;
  }
}

@media (max-width: 540px) {
  .footer-logos {
    gap: 1rem 1.25rem;
  }

  .footer-pathway-aaas,
  .footer-pathway-fitness {
    height: 40px;
  }
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.footer-meta {
  text-align: right;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.footer-meta p {
  margin: 0 0 0.4rem;
}

.footer-meta a {
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  margin: 0.85rem 0 0.25rem;
}

.footer-social-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.footer-social-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.disclaimer {
  max-width: 28em;
  margin-left: auto !important;
  margin-top: 1rem !important;
  font-size: 0.75rem !important;
  line-height: 1.55;
  color: var(--text-tertiary);
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .brand-logo {
    height: 52px;
  }

  .pathway-grid,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .framing-story {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .story-arrow {
    justify-content: center;
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }

  .header-phone {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-social {
    align-items: flex-start;
  }

  .disclaimer {
    margin-left: 0 !important;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pathway {
    padding: 1.75rem 1.35rem;
  }

  .intake-form {
    padding: 1.5rem 1.25rem;
  }

  .container {
    width: calc(100% - 1.75rem);
  }
}

/* ---------- Brand cursor (AaaS target + Brain Fitness rings) ---------- */
.brand-cursor {
  --cx: -100px;
  --cy: -100px;
  --scale: 0.9;
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  /* position has no transition so tracking stays tight */
  transform: translate3d(var(--cx), var(--cy), 0);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.brand-cursor.is-on {
  opacity: 0.85;
  --scale: 1;
}

.brand-cursor.is-hover {
  opacity: 1;
  --scale: 1.2;
}

/* Invert to black on white/light CTAs */
.brand-cursor.is-invert {
  mix-blend-mode: normal;
  filter: none;
}

.brand-cursor.is-invert .brand-cursor-ring {
  stroke: #0a0a0c;
  opacity: 0.45;
}

.brand-cursor.is-invert .brand-cursor-lambda {
  fill: #0a0a0c !important;
}

.brand-cursor-lambda {
  fill: #ffffff;
  dominant-baseline: auto;
}

.brand-cursor-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(var(--scale));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 4px rgba(111, 159, 232, 0.3));
}

.brand-cursor.is-invert .brand-cursor-svg {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

/* Hide system pointer when brand cursor is active */
body.has-brand-cursor,
body.has-brand-cursor * {
  cursor: none !important;
}

/* Keep text I-beam on form fields for usability */
body.has-brand-cursor input,
body.has-brand-cursor textarea,
body.has-brand-cursor select,
body.has-brand-cursor [contenteditable="true"] {
  cursor: text !important;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .brand-cursor {
    display: none !important;
  }
  body.has-brand-cursor,
  body.has-brand-cursor * {
    cursor: auto !important;
  }
  body.has-brand-cursor input,
  body.has-brand-cursor textarea {
    cursor: text !important;
  }
}

/* ---------- Magnetic elements (pathway cards + CTAs) ---------- */
.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  /* settle / leave - slow, soft return */
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s var(--ease),
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
  will-change: transform;
}

.magnetic.magnetic-active {
  /* follow cursor - slower than before so it glides instead of snaps */
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s var(--ease),
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}

/* Cards get a soft lift glow while magnetized */
.pathway.magnetic.magnetic-active {
  box-shadow:
    0 0 60px -16px var(--aaas-glow),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.pathway-fitness.magnetic.magnetic-active {
  box-shadow:
    0 0 60px -16px var(--fitness-glow),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.story-card.magnetic {
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.story-card.magnetic.magnetic-active {
  border-color: var(--border-strong);
  box-shadow:
    0 0 50px -18px var(--fitness-glow),
    0 16px 36px rgba(0, 0, 0, 0.32);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse,
  .ambient-glow-a,
  .ambient-glow-b,
  .ambient-glow-c,
  .ambient-grid {
    animation: none;
  }
  .magnetic {
    --mx: 0px !important;
    --my: 0px !important;
    transform: none !important;
  }
}

@media (pointer: coarse) {
  .magnetic {
    --mx: 0px !important;
    --my: 0px !important;
    transform: none !important;
  }
}
