:root {
  --ink: #09152a;
  --ink-soft: #17243a;
  --muted: #7b8494;
  --paper: #fffefd;
  --panel: #f7f8fc;
  --line: #e9edf1;
  --blue: #2eb8f1;
  --aqua: #35d6cf;
  --sun: #f5d86a;
  --coral: #ff7a69;
  --shadow: 0 30px 90px rgba(42, 68, 95, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 9% 4%, rgba(255, 255, 255, 0.9) 0 4rem, transparent 8rem),
    linear-gradient(135deg, #d7e9f8 0%, #edf5f9 48%, #f6efe5 100%);
  background-size: 135% 135%;
  animation: backdrop-drift 16s ease-in-out infinite alternate;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-frame {
  width: min(100% - 7rem, 1200px);
  margin: 4.4rem auto;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: frame-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) both, frame-glow 7s ease-in-out 900ms infinite;
}

.page-frame::before,
.page-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-frame::before {
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    110deg,
    rgba(46, 184, 241, 0),
    rgba(46, 184, 241, 0.5),
    rgba(53, 214, 207, 0.32),
    rgba(46, 184, 241, 0)
  );
  background-size: 260% 260%;
  opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-flow 5.8s linear infinite;
}

.page-frame::after {
  height: 18rem;
  inset: -8rem -10rem auto;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(46, 184, 241, 0.16), transparent 30%),
    radial-gradient(circle at 70% 20%, rgba(53, 214, 207, 0.12), transparent 32%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  filter: blur(22px);
  transform: translateX(-5%);
  animation: frame-light-drift 12s ease-in-out infinite alternate;
}

.nav-bar,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav-bar {
  min-height: 5.05rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 2rem 1.1rem;
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand img {
  display: block;
  width: 13.4rem;
  height: auto;
  max-height: 2.45rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2.45rem;
}

.site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 400;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: white;
}

.pill-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 520;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button svg,
.site-nav svg,
.hero-bottom svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.1;
}

.pill-button.dark,
.pill-button.dark-on-image {
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(7, 18, 38, 0.18);
}

.pill-button.dark:hover,
.pill-button.dark-on-image:hover {
  background: #12203a;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-toggle {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 155, 209, 0.28);
  outline-offset: 3px;
}

main {
  display: grid;
  gap: 4.55rem;
}

.hero {
  padding: 0 2rem;
}

.hero-image {
  min-height: 31.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  background: var(--ink);
  animation: hero-rise 920ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.24) 47%, transparent 70%);
  transform: translateX(-125%);
  animation: hero-sheen 8s ease-in-out 1.4s infinite;
}

.hero-image > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-position: center 48%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 17, 34, 0), rgba(6, 17, 34, 0.22)),
    linear-gradient(90deg, rgba(6, 17, 34, 0.14), rgba(6, 17, 34, 0.03) 58%, rgba(6, 17, 34, 0.1));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  margin-inline: auto;
  padding: 5.15rem 1.4rem 7rem;
  color: white;
  text-align: center;
  animation: copy-rise 820ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: 2.8rem;
  line-height: 1.18;
  font-weight: 360;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.58rem;
  line-height: 1.2;
  font-weight: 460;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.03rem;
  line-height: 1.22;
  font-weight: 520;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 38rem;
  margin: 0 auto 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 320;
}

.hero-copy .pill-button {
  animation: cta-breathe 3.6s ease-in-out 1.1s infinite;
}

.hero-bottom {
  position: absolute;
  bottom: 1.45rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-bottom.left {
  left: 1.5rem;
}

.hero-bottom.right {
  right: 1.5rem;
  gap: 1.15rem;
}

.hero-bottom p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.2;
}

.hero-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 300;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 1.78rem;
  height: 1.78rem;
  display: grid;
  place-items: center;
  margin-left: -0.45rem;
  border: 2px solid white;
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font-size: 0.6rem;
  font-weight: 700;
}

.avatars span:first-child {
  margin-left: 0;
  background: var(--sun);
}

.avatars span:nth-child(2) {
  background: var(--aqua);
}

.avatars span:nth-child(3) {
  color: white;
  background: var(--coral);
}

.intro-section,
.programs-section,
.coaches-section,
.journey-section,
.results-section,
.apply-section {
  padding-inline: 2rem;
}

.section-pill {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.05rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: white;
  font-size: 0.76rem;
  font-weight: 400;
}

.intro-copy,
.section-title-row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.intro-copy h2,
.section-title-row h2 {
  max-width: 44rem;
  font-size: 1.53rem;
  font-weight: 430;
}

.intro-copy p,
.section-title-row p {
  max-width: 31rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 320;
}

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

.dark-card,
.photo-card,
.stats-card,
.program-card,
.mini-photo,
.coach-grid article,
.journey-grid article,
.results-image,
.lead-form,
blockquote {
  border-radius: 8px;
}

.dark-card {
  min-height: 18.1rem;
  display: grid;
  align-content: space-between;
  padding: 1.5rem;
  color: white;
  background: var(--ink);
}

.dark-card svg {
  width: 2rem;
  height: 2rem;
}

.dark-card h3 {
  max-width: 16rem;
  margin: 1.9rem 0 0;
  color: white;
  font-size: 1.42rem;
  line-height: 1.2;
  font-weight: 300;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.toggle-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.toggle {
  width: 3.25rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--blue);
}

.toggle span {
  width: 1.13rem;
  height: 1.13rem;
  margin-left: auto;
  border-radius: 50%;
  background: white;
}

.photo-card,
.program-card,
.mini-photo {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.program-card.is-selected,
.mini-photo.is-selected {
  box-shadow: 0 0 0 3px rgba(8, 25, 52, 0.16);
}

.center-photo {
  min-height: 18.5rem;
}

.photo-card span,
.program-card span,
.mini-photo span {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.52rem 0.76rem;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
  font-size: 0.78rem;
  font-weight: 350;
}

.photo-card span {
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
}

.stats-card {
  min-height: 18.1rem;
  padding: 1.55rem;
  background: var(--panel);
}

.stats-card strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-size: 3.8rem;
  line-height: 0.95;
  font-weight: 340;
}

.stats-card p {
  margin-bottom: 1.9rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 320;
}

.bar-list {
  display: grid;
  gap: 0.65rem;
}

.bar-list div {
  display: grid;
  grid-template-columns: 4.8rem minmax(7rem, 1fr) 1.4rem;
  gap: 0.55rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.68rem;
}

.bar-list i {
  height: 0.7rem;
  display: block;
  width: var(--width);
  max-width: 100%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--blue) 0 48%, transparent 51%) 0 50% / 0.72rem 0.72rem repeat-x;
}

.bar-list em {
  color: var(--ink-soft);
  font-style: normal;
  text-align: right;
  font-size: 0.68rem;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.7rem;
  padding-top: 2.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.fact-row strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 520;
}

.fact-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
}

.programs-section {
  display: grid;
  grid-template-columns: 0.9fr 1.08fr 0.95fr;
  gap: 2.55rem;
  align-items: start;
  padding-block: 3.55rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.programs-copy p,
.program-stack p {
  color: var(--ink-soft);
}

.programs-copy p {
  max-width: 31rem;
  margin-bottom: 1.7rem;
  font-size: 0.92rem;
  font-weight: 320;
}

.program-card.large {
  height: 17.8rem;
  min-height: 0;
}

.photo-card img,
.program-card img,
.mini-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card::after,
.mini-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 38, 0), rgba(7, 18, 38, 0.62));
}

.program-card span {
  top: 1.1rem;
  left: 1.1rem;
}

.program-card h3,
.mini-photo h3 {
  position: absolute;
  z-index: 2;
  inset: auto 1.1rem 1.1rem;
  max-width: 17rem;
  margin: 0;
  color: white;
  font-size: 0.93rem;
  font-weight: 430;
}

.program-stack {
  display: grid;
  gap: 1.05rem;
}

.mini-photo {
  height: 10.6rem;
  min-height: 0;
}

.mini-photo span {
  top: 1rem;
  left: 1rem;
}

.program-stack p {
  margin: 0;
  max-width: 16rem;
  font-size: 0.9rem;
  font-weight: 320;
}

.arrow-row {
  display: flex;
  gap: 0.65rem;
}

.coaches-section {
  padding-block: 0.5rem;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.05rem;
}

.coach-grid article {
  min-height: 17.2rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: white;
}

.coach-photo {
  height: 10.4rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.coach-one {
  background-image: url("assets/coach-ari.jpg");
}

.coach-two {
  background-image: url("assets/coach-maya.jpg");
}

.coach-three {
  background-image: url("assets/coach-sofia.jpg");
}

.coach-four {
  background-image: url("assets/coach-noah.jpg");
}

.coach-grid h3 {
  margin-bottom: 0.2rem;
  padding-inline: 0.25rem;
  font-weight: 540;
}

.coach-grid p {
  min-height: 2.6rem;
  margin-bottom: 1rem;
  padding-inline: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 320;
}

.coach-grid article > span {
  display: inline-flex;
  margin-left: 0.25rem;
  padding: 0.43rem 0.68rem;
  border-radius: 999px;
  background: #eaf8ef;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 560;
}

.journey-section {
  padding-block: 3.4rem;
  background: #f4faf9;
}

.journey-section h2 {
  max-width: 38rem;
  margin-left: auto;
  font-weight: 460;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.05rem;
  margin-top: 2.3rem;
}

.journey-grid article {
  min-height: 14rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: white;
}

.journey-grid strong {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 2.4rem;
  border-radius: 50%;
  background: var(--sun);
  font-size: 0.82rem;
}

.journey-grid article:nth-child(2) strong {
  background: var(--aqua);
}

.journey-grid article:nth-child(3) strong {
  color: white;
  background: var(--blue);
}

.journey-grid article:nth-child(4) strong {
  color: white;
  background: var(--coral);
}

.journey-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 320;
}

.results-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.1rem;
  align-items: center;
}

.results-image {
  min-height: 30rem;
  overflow: hidden;
}

.results-copy p {
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 320;
}

blockquote {
  max-width: 32rem;
  margin: 1.6rem 0 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 320;
}

cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.apply-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 2rem;
  align-items: start;
  padding-block: 3.5rem;
  color: white;
  background: var(--ink);
}

.apply-section .section-pill {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.apply-section p {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 320;
}

.lead-form {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  color: var(--ink);
  background: white;
}

.lead-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 560;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: var(--panel);
}

.lead-form textarea {
  resize: vertical;
}

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

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 320;
}

.site-footer div {
  display: flex;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 320;
}

@keyframes backdrop-drift {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 100% 65%;
  }
}

@keyframes frame-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quiz-launch-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border-radius: 16px;
  background: white;
  color: var(--ink);
}

.quiz-launch-card > svg {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: #e9f8fd;
  color: #0788bb;
}

.quiz-launch-card div {
  display: grid;
  gap: 0.2rem;
}

.quiz-launch-card strong {
  font-size: 0.9rem;
}

.quiz-launch-card span {
  color: #66768a;
  font-size: 0.72rem;
}

.quiz-launch-card .pill-button span {
  color: white;
}

.quiz-only-header {
  display: none;
}

.quiz-section {
  margin-inline: 1.35rem;
  padding: clamp(2rem, 5vw, 4.6rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(53, 214, 207, 0.18), transparent 25rem),
    linear-gradient(145deg, #f3f9fd 0%, #fbfcfd 62%, #f8f4ed 100%);
  border: 1px solid rgba(46, 184, 241, 0.2);
  box-shadow: inset 0 1px 0 white, 0 28px 72px rgba(42, 68, 95, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: start;
  overflow: hidden;
  position: relative;
}

.quiz-section[hidden] {
  display: none;
}

body.quiz-mode {
  min-height: 100dvh;
  overflow-x: clip;
  background: linear-gradient(135deg, #d7e9f8 0%, #edf5f9 50%, #f6efe5 100%);
}

body.quiz-mode .page-frame {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  overflow: visible;
}

body.quiz-mode .page-frame::after {
  inset: -8rem 0 auto;
}

body.quiz-mode .nav-bar,
body.quiz-mode main > section:not(.quiz-section),
body.quiz-mode .site-footer {
  display: none;
}

body.quiz-mode main {
  gap: 0;
}

body.quiz-mode .quiz-section {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 7vw, 7rem) clamp(2rem, 5vw, 4rem);
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(32rem, 1.28fr);
  align-content: center;
  overflow: visible;
}

body.quiz-mode .quiz-only-header {
  position: fixed;
  z-index: 5;
  top: 1.5rem;
  right: clamp(1rem, 4vw, 3rem);
  left: clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

body.quiz-mode.quiz-started .quiz-intro {
  display: none;
}

body.quiz-mode.quiz-started .quiz-section {
  display: block;
  padding-top: 6.5rem;
}

body.quiz-mode.quiz-started .quiz-shell {
  width: min(100%, 52rem);
  margin: 0 auto;
}

.quiz-exit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  color: #596a7d;
  font-size: 0.78rem;
  font-weight: 750;
}

.quiz-exit svg {
  width: 1rem;
  height: 1rem;
}

.quiz-section::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  left: -12rem;
  bottom: -13rem;
  border-radius: 50%;
  border: 3rem solid rgba(46, 184, 241, 0.08);
  pointer-events: none;
}

.quiz-intro {
  position: sticky;
  top: 2rem;
  z-index: 1;
}

.quiz-intro h2 {
  margin: 1rem 0 1.2rem;
  max-width: 12ch;
}

.quiz-intro > p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 31rem;
}

.quiz-trust-row {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.quiz-trust-row span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.quiz-trust-row svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #0a8ec5;
}

.quiz-shell {
  position: relative;
  z-index: 1;
  min-height: 37rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 56px rgba(32, 67, 98, 0.12);
  backdrop-filter: blur(14px);
}

.quiz-progress-wrap {
  margin-bottom: 2rem;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: #526175;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-progress {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef3;
}

.quiz-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms ease;
}

.quiz-form {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
}

.quiz-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: quiz-step-in 260ms ease-out both;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step legend {
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.quiz-lead,
.quiz-help {
  margin: 0.85rem 0 1.45rem;
  color: var(--muted);
  line-height: 1.65;
}

.quiz-start-visual {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(46, 184, 241, 0.17);
  border-radius: 18px;
  background: #eef9fe;
}

.quiz-start-visual > img {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: cover;
  object-position: center;
}

.quiz-start-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(7, 18, 38, 0.88);
  color: white;
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-start-caption svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #61d8ff;
}

.quiz-fields {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.quiz-fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-field {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.quiz-field.full-width {
  grid-column: 1 / -1;
}

.quiz-field em {
  color: #68788d;
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quiz-field-help {
  margin-top: -0.25rem;
  color: #718094;
  font-size: 0.72rem;
  font-weight: 550;
}

.quiz-field input,
.quiz-field select,
.quiz-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #dbe4eb;
  border-radius: 12px;
  outline: none;
  background: #fbfdfe;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 550;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quiz-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.quiz-field input:focus,
.quiz-field select:focus,
.quiz-field textarea:focus {
  border-color: #169fd7;
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 184, 241, 0.18);
}

.quiz-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.quiz-options.compact,
.symptom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shape-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.quiz-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quiz-option > span {
  position: relative;
  display: flex;
  min-height: 3.65rem;
  padding: 0.85rem 2.8rem 0.85rem 1rem;
  border: 1px solid #dde6ed;
  border-radius: 13px;
  background: #fbfdfe;
  flex-direction: column;
  justify-content: center;
  color: #354457;
  font-size: 0.91rem;
  line-height: 1.35;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quiz-option > span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #a8b5c2;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 4px #fbfdfe;
}

.quiz-option input[type="checkbox"] + span::after {
  border-radius: 0.3rem;
}

.quiz-option strong {
  color: var(--ink);
  font-size: 0.93rem;
}

.quiz-option small {
  margin-top: 0.18rem;
  color: #718094;
  font-size: 0.74rem;
}

.quiz-option b {
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(46, 184, 241, 0.12);
  color: #087eac;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-option:hover > span {
  transform: translateY(-1px);
  border-color: rgba(46, 184, 241, 0.65);
  box-shadow: 0 8px 22px rgba(40, 86, 122, 0.08);
}

.quiz-option input:focus-visible + span {
  outline: 3px solid rgba(46, 184, 241, 0.34);
  outline-offset: 2px;
}

.quiz-option input:checked + span {
  border-color: #159fd8;
  background: #eefaff;
  box-shadow: 0 9px 24px rgba(46, 184, 241, 0.12);
}

.quiz-option input:checked + span::after {
  border-color: #149fd8;
  background: #149fd8;
  box-shadow: inset 0 0 0 4px #eefaff;
}

.quiz-option.featured > span {
  border-color: rgba(46, 184, 241, 0.4);
}

.quiz-question-group {
  margin-top: 1.55rem;
}

.quiz-question-group > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 750;
}

.quiz-question-group > p small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.commitment-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.38rem;
  margin-top: 2rem;
}

.commitment-scale label {
  position: relative;
  cursor: pointer;
}

.commitment-scale input {
  position: absolute;
  opacity: 0;
}

.commitment-scale span {
  display: grid;
  min-height: 2.9rem;
  place-items: center;
  border: 1px solid #dae4eb;
  border-radius: 10px;
  background: #fbfdfe;
  color: #506075;
  font-weight: 800;
  transition: 180ms ease;
}

.commitment-scale input:checked + span,
.commitment-scale input:focus-visible + span {
  border-color: #149fd8;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 20px rgba(9, 21, 42, 0.16);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: #607084;
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}

.quiz-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  accent-color: #159fd8;
}

.quiz-error {
  min-height: 1.35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 700;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
}

.quiz-back,
.quiz-restart {
  min-height: 44px;
  padding: 0.65rem 0.4rem;
  border: 0;
  background: transparent;
  color: #546477;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.quiz-back svg {
  width: 1rem;
}

.quiz-back.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.quiz-result {
  outline: none;
}

.quiz-result[hidden],
.quiz-form[hidden] {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.7rem;
}

.score-ring {
  --score: 0deg;
  display: grid;
  width: 8.2rem;
  height: 8.2rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) 0 var(--score), #e5edf2 var(--score) 360deg);
  box-shadow: 0 12px 30px rgba(31, 102, 131, 0.14);
}

.score-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 6.55rem;
  height: 6.55rem;
  border-radius: 50%;
  background: white;
}

.score-ring div {
  z-index: 1;
  grid-area: 1 / 1;
  display: flex;
  align-items: baseline;
}

.score-ring strong {
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.result-kicker {
  margin: 0 0 0.35rem;
  color: #0788bb;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-copy h3 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.result-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.result-insight {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 1rem;
  border-radius: 14px;
  background: #eff9fd;
  color: #3f5367;
}

.result-insight svg {
  flex: 0 0 auto;
  color: #0a8ec5;
}

.result-insight strong {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.result-insight p {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

@keyframes quiz-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes frame-glow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 rgba(46, 184, 241, 0);
  }

  50% {
    box-shadow: 0 34px 95px rgba(42, 68, 95, 0.16), 0 0 70px rgba(46, 184, 241, 0.16);
  }
}

@keyframes border-flow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 260% 50%;
  }
}

@keyframes frame-light-drift {
  from {
    opacity: 0.55;
    transform: translateX(-6%) scale(1);
  }

  to {
    opacity: 0.88;
    transform: translateX(8%) scale(1.04);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-sheen {
  0%,
  44% {
    transform: translateX(-125%);
  }

  58%,
  100% {
    transform: translateX(125%);
  }
}

@keyframes copy-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(7, 18, 38, 0.18);
  }

  50% {
    box-shadow: 0 18px 38px rgba(7, 18, 38, 0.25), 0 0 28px rgba(46, 184, 241, 0.24);
  }
}

@media (max-width: 1000px) {
  .page-frame {
    width: min(100% - 1rem, 760px);
    margin-block: 1rem;
  }

  .nav-bar {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    width: 100%;
    justify-self: stretch;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
    border-color: var(--line);
    background: white;
  }

  .intro-copy,
  .section-title-row,
  .programs-section,
  .results-section,
  .apply-section,
  .quiz-section {
    grid-template-columns: 1fr;
  }

  .quiz-intro {
    position: static;
  }

  .quiz-intro h2 {
    max-width: 18ch;
  }

  body.quiz-mode .quiz-section {
    padding-top: 6.5rem;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .quiz-trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-grid,
  .coach-grid,
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-section h2 {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--paper);
  }

  .page-frame {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .nav-bar,
  .hero,
  .intro-section,
  .programs-section,
  .coaches-section,
  .journey-section,
  .results-section,
  .apply-section,
  .quiz-section,
  .site-footer {
    padding-inline: 1rem;
  }

  .quiz-section {
    margin-inline: 0;
    padding-block: 2.4rem;
    border-inline: 0;
    border-radius: 0;
  }

  .quiz-launch-card {
    grid-template-columns: auto 1fr;
  }

  .quiz-launch-card .pill-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  body.quiz-mode .quiz-section {
    min-height: 100dvh;
    padding: 5.8rem 1rem 1.5rem;
  }

  body.quiz-mode .quiz-only-header {
    top: 0;
    right: 0;
    left: 0;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(222, 232, 239, 0.86);
    background: rgba(247, 251, 253, 0.9);
    backdrop-filter: blur(14px);
  }

  body.quiz-mode .quiz-intro {
    padding-top: 0.5rem;
  }

  .quiz-trust-row,
  .quiz-fields.two-col,
  .quiz-options.compact,
  .symptom-grid,
  .shape-options {
    grid-template-columns: 1fr;
  }

  .quiz-shell {
    min-height: 34rem;
    padding: 1.15rem;
    border-radius: 18px;
  }

  .quiz-form {
    min-height: 31rem;
  }

  .quiz-step legend {
    font-size: 1.55rem;
  }

  .commitment-scale {
    grid-template-columns: repeat(5, 1fr);
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .score-ring {
    width: 7.2rem;
    height: 7.2rem;
  }

  .score-ring::before {
    width: 5.7rem;
    height: 5.7rem;
  }

  main {
    gap: 3.7rem;
  }

  .nav-bar {
    min-height: 5rem;
    padding-top: 1rem;
  }

  .brand {
    min-height: 44px;
  }

  .brand img {
    width: 11.7rem;
    max-height: 2.15rem;
  }

  .hero-image {
    min-height: 38.5rem;
  }

  .hero-image > img {
    object-position: 58% center;
  }

  .hero-copy {
    padding: 3rem 1.1rem 8.8rem;
    text-align: left;
  }

  h1 {
    font-size: 2.42rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-copy p,
  .intro-copy p,
  .section-title-row p,
  .programs-copy p {
    font-size: 1rem;
  }

  .hero-bottom.left {
    left: 1rem;
    right: 1rem;
    bottom: 4.35rem;
  }

  .hero-bottom.right {
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    justify-content: space-between;
  }

  .hero-bottom p {
    font-size: 0.8rem;
  }

  .intro-copy,
  .section-title-row,
  .showcase-grid,
  .fact-row,
  .coach-grid,
  .journey-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .fact-row {
    text-align: left;
  }

  .programs-section {
    padding-block: 2.7rem;
  }

  .results-image {
    min-height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
