:root {
  --black: #000000;
  --near-black: #1d1d1f;
  --light: #f5f5f7;
  --white: #ffffff;
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --blue-mid: #147ce5;
  --blue-deep: #0058b0;
  --link: #0066cc;
  --muted: rgba(0, 0, 0, 0.56);
  --muted-on-dark: rgba(255, 255, 255, 0.64);
  --font: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 980px;
}

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

/* —— Nav —— */
.film-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  pointer-events: none;
}

.film-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: -1;
}

.film-header {
  position: relative;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

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

.film-logo {
  position: relative;
  z-index: 60;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.film-menu {
  position: relative;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.film-menu:hover {
  background: rgba(255, 255, 255, 0.08);
}

.film-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.film-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

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

.film-menu.open .film-menu-icon span:nth-child(2) {
  opacity: 0;
}

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

.film-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
}

.film-links a {
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.15rem;
}

.film-links a:hover,
.film-links a[aria-current="page"] {
  color: #fff;
}

.film-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 980px;
  min-height: 36px;
  line-height: 1;
}

.film-cta:hover {
  background: #0077ed;
}

/* —— Stages —— */
.stage {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 5vw, 3rem);
}

.stage-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(41, 151, 255, 0.18), transparent 55%),
    #000;
}

.stage-dark {
  background: var(--black);
  color: var(--white);
}

.stage-light {
  background: var(--light);
  color: var(--near-black);
}

.stage-page {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem));
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-bright);
}

.eyebrow.dark {
  color: var(--blue);
}

.stage h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stage h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.stage h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--muted-on-dark);
}

.lead.dark {
  color: rgba(0, 0, 0, 0.72);
}

.lead.narrow {
  max-width: 40rem;
}

.body {
  max-width: 40rem;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.72);
  margin: 0 0 1.25rem;
}

.stage-dark .body {
  color: var(--muted-on-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.15;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.pill-blue {
  background: var(--blue);
  color: #fff;
}

.pill-blue:hover {
  background: #0077ed;
}

.pill-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.pill-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pill-dark {
  background: var(--near-black);
  color: #fff;
}

.pill-dark:hover {
  background: #000;
}

.pill-outline-dark {
  background: transparent;
  color: var(--near-black);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.pill-outline-dark:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* —— Feature stack —— */
.feature-stack {
  margin-top: 2.5rem;
  max-width: 920px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.1fr) 1.6fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding 0.2s ease;
}

.feature-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.feature-row:hover {
  background: rgba(0, 0, 0, 0.03);
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.feature-title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-copy {
  color: rgba(0, 0, 0, 0.56);
  font-size: 1.05rem;
}

.feature-go {
  color: var(--blue);
  font-size: 1.4rem;
}

.stage-immersive {
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 113, 227, 0.22), transparent 40%),
    #000;
}

.cred-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  gap: 0.85rem 2rem;
}

.cred-list li {
  font-size: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--blue-bright);
}

/* —— Clinic + triad chart —— */
.clinic-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  max-width: 1100px;
}

.clinic-visual {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(160deg, #d2d2d7 0%, #f5f5f7 45%, #e8e8ed 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  padding: 1.25rem;
}

.triad-ring {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    #0071e3 0deg 120deg,
    #2997ff 120deg 240deg,
    #0058b0 240deg 360deg
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: triad-pulse 5s ease-in-out infinite;
}

.triad-hole {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.triad-center {
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
}

.triad-sub {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5);
}

.triad-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
  text-align: center;
  width: 5.5rem;
}

.triad-label small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 0.15rem;
}

.triad-label--move {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.triad-label--recover {
  right: 4%;
  bottom: 22%;
}

.triad-label--perform {
  left: 4%;
  bottom: 22%;
}

.clinic-visual figcaption {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

@keyframes triad-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .triad-ring {
    animation: none;
  }

  .film-menu-icon span {
    transition: none;
  }
}

/* —— Content pages —— */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.55;
}

.stage-dark .prose p {
  color: var(--muted-on-dark);
}

.prose ul,
.chip-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.prose ul li,
.chip-list li {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 1.02rem;
  color: rgba(0, 0, 0, 0.78);
}

.stage-dark .prose ul li,
.stage-dark .chip-list li {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  max-width: 920px;
  margin-top: 1.5rem;
}

.condition-grid a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--near-black);
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.15s ease;
}

.condition-grid a:hover {
  transform: translateY(-2px);
  color: var(--blue);
}

.price-table {
  width: min(560px, 100%);
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.price-table th {
  font-weight: 600;
  color: var(--near-black);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-note {
  max-width: 40rem;
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1000px;
  align-items: start;
}

.card-soft {
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.card-soft h3 {
  margin-top: 0;
}

.quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--blue);
  background: rgba(0, 113, 227, 0.06);
  border-radius: 0 14px 14px 0;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.78);
}

.quote cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Book form —— */
.stage-book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.book-form {
  width: min(560px, 100%);
  margin-top: 0.5rem;
  display: grid;
  gap: 1rem;
}

.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.book-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #272729;
  color: #fff;
  padding: 0.9rem 1.05rem;
  font: inherit;
  line-height: 1.3;
  min-height: 48px;
}

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

.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.pill-submit {
  width: fit-content;
  margin-top: 0.25rem;
}

.form-fine {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
}

.form-fine a {
  color: var(--blue-bright);
}

.form-ok {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.2);
  color: #fff;
}

.form-ok[hidden] {
  display: none !important;
}

/* —— Footer —— */
.stage-footer {
  padding: 2.25rem clamp(1.25rem, 5vw, 3rem) 3rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.56);
  max-width: 1100px;
}

.footer-bar a {
  color: var(--link);
  text-decoration: none;
}

.footer-bar a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(0, 0, 0, 0.65);
}

/* —— Mobile —— */
@media (min-width: 921px) {
  .film-chrome,
  .film-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
  }

  .film-shell {
    position: fixed;
    inset: 0 0 auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
  }

  .film-header {
    flex: 0 0 auto;
  }

  .film-links-out {
    position: fixed;
    top: 0;
    right: clamp(1rem, 4vw, 2.5rem);
    left: auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.25rem;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    overflow: visible;
    pointer-events: auto;
    z-index: 51;
  }
}

@media (max-width: 920px) {
  .film-shell {
    pointer-events: auto;
  }

  .film-header {
    flex: 1;
  }

  .film-nav {
    width: 100%;
  }

  .film-menu {
    display: inline-flex;
  }

  .film-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--nav-h) + 1rem) 1.35rem 2rem;
    background: rgba(0, 0, 0, 0.96);
    overflow-y: auto;
    pointer-events: auto;
  }

  .film-links.open {
    display: flex;
  }

  .film-links a {
    padding: 1rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.15rem;
  }

  .film-links a:first-child {
    border-top: 0;
  }

  .film-cta {
    margin-top: 1rem;
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1.25rem !important;
    text-align: center;
  }

  .feature-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }

  .feature-copy {
    grid-column: 1 / -1;
  }

  .cred-list,
  .clinic-grid,
  .book-row,
  .split-2 {
    grid-template-columns: 1fr;
  }

  .clinic-visual {
    min-height: 280px;
  }

  .pill {
    min-height: 48px;
    padding: 0.9rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
