/* =========================================================================
   NoxiaSounds — auth.php
   ========================================================================= */

.auth-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
}

/* ---------- Desktop narrative panel ---------- */
.auth-aside { display: none; }
.auth-stage { position: relative; flex: 0 0 100%; height: 100%; }

@media (min-width: 992px) {
  .auth-aside {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 48px clamp(40px, 6vw, 96px);
  }
  .auth-aside__brand { display: flex; align-items: center; gap: 12px; }
  .auth-aside__logo { width: 38px; height: 38px; }
  .auth-aside__brand .wordmark { font-size: 22px; }
  .auth-aside__art { flex: 1; display: grid; place-items: center; min-height: 0; }
  .auth-aside__copy { max-width: 560px; padding-bottom: 12px; }
  .auth-aside__title { font-size: clamp(34px, 3.4vw, 52px); font-weight: 300; line-height: 1.1; margin: 14px 0 34px; }
  .auth-aside__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--stroke); padding-top: 24px; }
  .auth-aside__facts strong { display: block; font-family: var(--f-ui); font-weight: 300; font-size: 34px; color: var(--lilac); line-height: 1; margin-bottom: 8px; }
  .auth-aside__facts span { font-size: 13px; color: var(--ink-3); line-height: 1.45; display: block; }

  .auth-stage {
    flex: 0 0 460px;
    height: min(880px, calc(100dvh - 56px));
    margin-right: clamp(32px, 5vw, 80px);
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(170deg, rgba(86, 70, 168, .72), rgba(52, 42, 122, .78));
    border: 1px solid var(--stroke);
    box-shadow: 0 40px 120px -30px rgba(20,10,60,.55), inset 0 1px 0 rgba(255,255,255,.12);
  }
}

/* ---------- Generic panes ---------- */
.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  max-width: 520px;
  margin: 0 auto;
}
.pane--center { justify-content: safe center; overflow-y: auto; scrollbar-width: none; }
.pane--flow { padding-bottom: calc(20px + var(--safe-bottom)); }
.pane.scroll-y { display: block; }

.topbar { display: flex; align-items: center; gap: 14px; height: 52px; flex: none; }
.topbar--progress { margin-bottom: 8px; }

/* ---------- Intro ---------- */
.intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  max-width: 520px;
  margin: 0 auto;
}
.intro__top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.intro__brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: 18px; letter-spacing: .02em; }
.intro__brand .ic { width: 28px; height: 28px; }
.intro__track { position: relative; flex: 1; min-height: 0; }
.intro__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  opacity: 0;
  transform: translateX(40px);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease);
}
.intro__slide.is-current { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.intro__slide.is-past { transform: translateX(-40px); }
.intro__visual { flex: 1; min-height: 220px; position: relative; display: grid; place-items: center; }
.intro__text h2 { font-size: clamp(27px, 7.2vw, 32px); font-weight: 400; line-height: 1.15; margin: 10px 0 14px; }
.intro__text p.muted { font-size: 15px; max-width: 36ch; }
.intro__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; }
.intro__next { padding: 0 24px 0 28px; }

.dots { display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.2); transition: all .6s var(--ease); }
.dots i.is-on { width: 28px; background: var(--lilac); }

/* Slide 1 visual */
.intro-orb { position: relative; }
.intro-orb .orb__ring { animation: ring-pulse 4.5s var(--ease-soft) infinite; }
.intro-orb .orb__ring:nth-of-type(3) { animation-delay: .6s; }
.intro-orb .orb__ring:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .5; } }

.flow-steps {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.flow-step {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(255,255,255,.1);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: step-glow 4.5s var(--ease-soft) infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
.flow-step em { font-style: normal; white-space: nowrap; }
@keyframes step-glow {
  0%, 30%, 100% { color: var(--ink-2); border-color: var(--stroke); box-shadow: none; }
  10%, 22% { color: #fff; border-color: rgba(205,189,255,.55); box-shadow: 0 0 24px -4px rgba(165,139,255,.7); }
}

/* Slide 2 visual: brainwaves */
.brainwaves { width: 100%; max-width: 360px; }
.brainwaves svg { width: 100%; height: 170px; display: block; overflow: visible; }
.bw-legend { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; gap: 6px; }
.bw-legend span {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ink-4);
  padding-top: 12px;
  border-top: 2px solid rgba(255,255,255,.08);
  transition: all .7s var(--ease);
}
.bw-legend small { display: block; font-family: var(--f-body); font-size: 11.5px; color: inherit; opacity: .8; margin-top: 2px; }
.bw-legend span.is-on { color: var(--ink); border-top-color: var(--lilac); }

/* ---------- Welcome ---------- */
.welcome { display: flex; flex-direction: column; gap: 18px; }
.welcome__orb { display: grid; place-items: center; margin-bottom: 10px; }
.welcome__head { text-align: center; margin-bottom: 8px; }
.welcome__head h2 { font-size: 30px; font-weight: 400; margin-bottom: 8px; }
.welcome__head p { font-size: 14.5px; max-width: 34ch; margin: 0 auto; }

.auth-options { display: flex; flex-direction: column; gap: 12px; }
.auth-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  width: 100%;
  border-radius: 18px;
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  transition: background .35s, transform .35s var(--ease), border-color .35s;
}
.auth-btn .ic { position: absolute; left: 20px; width: 22px; height: 22px; }
.auth-btn:hover { background: rgba(255,255,255,.1); border-color: var(--stroke-2); }
.auth-btn:active { transform: scale(.98); }
.auth-btn--apple { background: #f6f3ff; color: #120f2e; border-color: transparent; }
.auth-btn--apple:hover { background: #fff; }
.auth-btn--quiet { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.18); color: var(--ink-2); }
.auth-btn--quiet:hover { color: var(--ink); background: rgba(255,255,255,.04); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-4); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.legal { font-size: 12px; line-height: 1.6; color: var(--ink-3); text-align: center; margin-top: 4px; }
.legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }

/* ---------- Forms ---------- */
.form-wrap { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; padding-bottom: 32px; }
.form-title { font-size: 30px; font-weight: 400; margin-bottom: 8px; }
.form-icon {
  width: 64px; height: 64px;
  border-radius: 22px;
  display: grid; place-items: center;
  color: var(--lilac);
  background: var(--grad-soft);
  border: 1px solid var(--stroke);
}
.form-row { display: flex; justify-content: flex-end; margin: 4px 0 0; }
.form-error { min-height: 20px; font-size: 13px; color: #ffb4c6; margin: 8px 0 4px; }
#emailForm .btn-nx { margin-top: 4px; }

.segmented {
  --n: 2; --idx: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
}
.segmented button {
  position: relative; z-index: 1;
  height: 42px;
  border-radius: 12px;
  font-family: var(--f-ui);
  font-size: 14.5px;
  color: var(--ink-3);
  transition: color .4s;
}
.segmented button.is-active { color: #fff; }
.segmented__pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: 12px;
  background: rgba(139,108,246,.35);
  border: 1px solid rgba(165,139,255,.45);
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform .55s var(--ease);
}
.segmented--wide { --n: 5; }

.collapsible { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease), margin .55s var(--ease); }
.collapsible > * { overflow: hidden; min-height: 0; }
.collapsible.is-open { grid-template-rows: 1fr; opacity: 1; margin-bottom: 12px; }

.strength { margin-top: 0; }
.strength.is-open { margin-top: 12px; margin-bottom: 0; }
.strength > * { overflow: hidden; }
.strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strength__bars i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .4s; }
.strength[data-score="1"] .strength__bars i:nth-child(-n+1) { background: #f2a3b8; }
.strength[data-score="2"] .strength__bars i:nth-child(-n+2) { background: var(--peach); }
.strength[data-score="3"] .strength__bars i:nth-child(-n+3) { background: var(--lilac); }
.strength[data-score="4"] .strength__bars i { background: var(--teal); }
.strength__label { display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.otp { display: flex; gap: 8px; justify-content: center; align-items: center; }
.otp input {
  width: 46px; height: 58px;
  border-radius: 14px;
  text-align: center;
  font-family: var(--f-ui);
  font-size: 24px;
  color: var(--ink);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  outline: none;
  transition: all .3s var(--ease);
}
.otp input:focus { border-color: rgba(165,139,255,.7); box-shadow: 0 0 0 4px rgba(139,108,246,.16); background: rgba(165,139,255,.08); }
.otp input.is-filled { border-color: rgba(165,139,255,.4); }
.otp__gap { width: 10px; height: 2px; background: var(--stroke-2); border-radius: 2px; }
.otp.is-shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Personalise flow ---------- */
.progress-steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-steps i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.progress-steps i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--peach), var(--violet-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.progress-steps i.is-done::after { transform: scaleX(1); }
.step-count { font-size: 13px; color: var(--ink-3); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

.steps { position: relative; flex: 1; min-height: 0; }
.step {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 2px 24px;
  opacity: 0;
  transform: translateX(36px);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.step::-webkit-scrollbar { display: none; }
.step.is-current { opacity: 1; transform: none; pointer-events: auto; }
.step.is-prev { transform: translateX(-36px); }
.step__head { margin-bottom: 24px; }
.step__head h2 { font-size: 28px; font-weight: 400; line-height: 1.15; margin: 10px 0 10px; }
.step__head p { font-size: 14.5px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--stroke);
  transition: all .45s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.step.is-current .choice, .step.is-current .row-choice, .step.is-current .texture, .step.is-current .listen { opacity: 1; transform: none; }
.choice strong { font-family: var(--f-ui); font-weight: 500; font-size: 16px; margin-top: 10px; }
.choice small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.choice__ic {
  width: 42px; height: 42px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--lilac);
  background: rgba(165,139,255,.12);
  transition: all .45s var(--ease);
}
.choice::after, .texture::after {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  transition: all .35s var(--ease);
  background-position: center; background-repeat: no-repeat; background-size: 12px;
}
.choice.is-selected, .row-choice.is-selected, .texture.is-selected, .listen.is-selected {
  background: linear-gradient(160deg, rgba(139,108,246,.3), rgba(139,108,246,.1));
  border-color: rgba(165,139,255,.6);
  box-shadow: 0 16px 40px -20px rgba(139,108,246,.9);
}
.choice.is-selected .choice__ic, .row-choice.is-selected .choice__ic { background: var(--violet); color: #fff; }
.choice.is-selected::after, .texture.is-selected::after {
  border-color: transparent;
  background-color: var(--lilac);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23181240' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.row-choice, .setting-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--stroke);
  transition: all .45s var(--ease);
}
.row-choice { opacity: 0; transform: translateY(10px); }
.row-choice > span:nth-child(2), .setting-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.row-choice strong, .setting-row strong { font-family: var(--f-ui); font-weight: 500; font-size: 16px; }
.row-choice small, .setting-row small { font-size: 12.5px; color: var(--ink-3); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); flex: none; position: relative; transition: border-color .3s; }
.radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lilac); transform: scale(0); transition: transform .4s var(--ease); }
.row-choice.is-selected .radio { border-color: var(--lilac); }
.row-choice.is-selected .radio::after { transform: scale(1); }

.texture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.texture {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--stroke);
  color: var(--ink-2);
  font-size: 13px;
  transition: all .45s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.texture .ic { width: 26px; height: 26px; color: var(--lilac); }
.texture::after { top: 10px; right: 10px; width: 18px; height: 18px; background-size: 10px; }
.texture.is-selected { color: #fff; }

.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listen {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--stroke);
  transition: all .45s var(--ease);
  opacity: 0; transform: translateY(10px);
}
.listen .ic { color: var(--lilac); margin-bottom: 6px; }
.listen strong { font-family: var(--f-ui); font-weight: 500; font-size: 16px; }
.listen small { font-size: 12px; color: var(--ink-3); }

.science-note {
  display: flex; gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242,198,173,.07);
  border: 1px solid rgba(242,198,173,.16);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.science-note .ic { color: var(--peach); margin-top: 1px; }

.flow-foot { padding-top: 14px; flex: none; }

/* stagger children of current step */
.step.is-current [data-key] > *:nth-child(1) { transition-delay: .1s; }
.step.is-current [data-key] > *:nth-child(2) { transition-delay: .16s; }
.step.is-current [data-key] > *:nth-child(3) { transition-delay: .22s; }
.step.is-current [data-key] > *:nth-child(4) { transition-delay: .28s; }
.step.is-current [data-key] > *:nth-child(5) { transition-delay: .34s; }
.step.is-current [data-key] > *:nth-child(6) { transition-delay: .40s; }
.step.is-current [data-key] > *:nth-child(7) { transition-delay: .46s; }
.step.is-current [data-key] > *:nth-child(8) { transition-delay: .52s; }
.step.is-current [data-key] > *:nth-child(9) { transition-delay: .58s; }
.choice:hover, .row-choice:hover, .texture:hover, .listen:hover { border-color: var(--stroke-2); background-color: rgba(255,255,255,.07); transition-delay: 0s !important; }

/* ---------- Calibrate ---------- */
.calibrate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 46px; }
.calibrate__orb { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.calibrate__orb .orb { --size: 168px; }
.calibrate__orb .orb__ring { animation: ring-pulse 3s var(--ease-soft) infinite; }
.calibrate__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
#calProgress { transition: stroke-dashoffset .9s var(--ease); }
.calibrate__text h3 { font-size: 22px; font-weight: 400; margin-top: 10px; min-height: 30px; transition: opacity .4s, transform .4s var(--ease); }
.calibrate__text h3.is-swap { opacity: 0; transform: translateY(6px); }
.calibrate__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.calibrate__list li {
  font-size: 13.5px; color: var(--ink-4);
  display: flex; align-items: center; gap: 10px;
  transition: color .5s;
}
.calibrate__list li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  transition: all .5s var(--ease);
  background-position: center; background-repeat: no-repeat; background-size: 10px;
}
.calibrate__list li.is-done { color: var(--ink-2); }
.calibrate__list li.is-done::before {
  border-color: transparent; background-color: var(--violet-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Ready ---------- */
.ready { display: flex; flex-direction: column; gap: 22px; padding: 40px 0 10px; text-align: center; }
.ready__mark {
  width: 76px; height: 76px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 0 0 10px rgba(139,108,246,.12), 0 0 0 22px rgba(139,108,246,.06), 0 20px 50px -10px rgba(139,108,246,.8);
}
.ready__mark .ic { width: 32px; height: 32px; }
.ready h2 { font-size: 28px; font-weight: 400; margin-top: 10px; }
.profile-card { text-align: left; padding: 6px 18px; }
.profile-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.profile-row + .profile-row { border-top: 1px solid var(--stroke); }
.profile-row .choice__ic { width: 38px; height: 38px; border-radius: 12px; }
.profile-row small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.profile-row strong { display: block; font-family: var(--f-ui); font-weight: 400; font-size: 16px; margin-top: 2px; }
.profile-row p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Sheets ---------- */
.provider { text-align: center; }
.provider__badges { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0 22px; }
.provider__logo { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--stroke); }
.provider__logo svg { width: 34px; height: 34px; }
.provider__logo--brand .ic { width: 28px; height: 28px; }
.provider__logo--brand.is-apple { background: #f6f3ff; color: #120f2e; }
.provider__dots { display: flex; gap: 5px; }
.provider__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); animation: dot 1.4s infinite; }
.provider__dots i:nth-child(2) { animation-delay: .2s; }
.provider__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.provider__state { height: 90px; display: grid; place-items: center; }
.provider__ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(143,211,209,.15); color: var(--teal); animation: fade-up .5s var(--ease); }

.guest-list { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.guest-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.guest-list .ic { color: var(--teal); }
.guest-list li.is-off { color: var(--ink-3); }
.guest-list li.is-off .ic { color: var(--ink-4); }

/* ---------- Exit veil ---------- */
.veil {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(120% 60% at 50% 115%, rgba(247,182,164,.5), transparent 65%), linear-gradient(180deg, #2a2370, #46378a);
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.veil svg { width: 64px; height: 64px; transform: scale(.85); transition: transform 1.2s var(--ease); }
.veil.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.veil.is-on svg { transform: none; animation: orb-breathe 2.4s infinite; }

@media (max-height: 700px) {
  .intro__text h2 { font-size: 25px; }
  .welcome__orb .orb { --size: 130px !important; }
  .welcome { gap: 14px; }
}

/* ---------- v1.1 refinements ---------- */
.auth-aside__facts strong, .intro__brand, .otp input, .bw-legend span { font-family: var(--f-display); }
.auth-aside__facts strong { font-weight: 300; color: var(--peach); }
.auth-aside__title { font-weight: 300; }
.intro__brand { font-size: 22px; font-weight: 400; }
.intro__top, .topbar { padding-right: 52px; }
.intro__text h2 { font-size: clamp(29px, 7.8vw, 36px); font-weight: 400; line-height: 1.12; }
.intro__text p.muted { font-size: 15.5px; }
.bw-legend span { font-size: 16px; }
.bw-legend small { font-family: var(--f-body); }
.welcome__head h2 { font-size: 34px; font-weight: 400; }
.form-title { font-size: 32px; }
.step__head { margin-bottom: 28px; }
.step__head h2 { font-size: 31px; line-height: 1.12; }
.choice { padding: 18px 16px; gap: 0; }
.choice strong { font-weight: 600; font-size: 15.5px; margin-top: 14px; }
.row-choice strong, .setting-row strong, .listen strong { font-weight: 600; font-size: 15.5px; }
.choice__ic { background: rgba(255,255,255,.12); color: var(--mist); }
.choice.is-selected .choice__ic, .row-choice.is-selected .choice__ic { background: #fff; color: var(--indigo); }
.choice.is-selected, .row-choice.is-selected, .texture.is-selected, .listen.is-selected {
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 16px 40px -22px rgba(18,8,56,.8);
}
.choice.is-selected::after, .texture.is-selected::after { background-color: #fff; }
.texture .ic { color: var(--mist); }
.listen .ic { color: var(--mist); }
.segmented__pill { background: #fff; border-color: transparent; }
.segmented button.is-active { color: var(--indigo); font-weight: 600; }
.progress-steps i::after { background: linear-gradient(90deg, var(--peach), #fff); }
.ready h2 { font-size: 32px; }
.ready__mark { background: #fff; color: var(--indigo); box-shadow: 0 0 0 10px rgba(255,255,255,.1), 0 0 0 22px rgba(255,255,255,.05), 0 20px 50px -10px rgba(18,8,56,.6); }
.profile-row strong { font-family: var(--f-display); font-size: 17px; }
.profile-row .choice__ic { background: rgba(255,255,255,.12); }
.auth-btn { background: rgba(255,255,255,.1); font-weight: 600; font-size: 15.5px; }
.auth-btn--apple { background: #fff; }
.auth-btn--quiet { background: transparent; }
.dots i.is-on { background: #fff; }
.form-icon { color: var(--mist); }
@media (min-width: 992px) { .intro__top, .topbar { padding-right: 0; } }

/* ---------- v1.5 fit: nothing is ever clipped on short screens ---------- */
.intro__track { display: grid; grid-template-rows: minmax(100%, max-content); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.intro__track::-webkit-scrollbar { display: none; }
.intro__slide { position: relative; inset: auto; grid-area: 1 / 1; min-height: 0; }
.intro__visual { min-height: 0; padding: 8px 0; }
.intro .orb { --size: min(210px, 30vh, 56vw) !important; }
.welcome__orb .orb { --size: min(150px, 19vh) !important; }
.calibrate__orb { width: min(220px, 34vh); height: min(220px, 34vh); }
.calibrate__orb .orb { --size: min(168px, 26vh) !important; }
.calibrate { gap: min(46px, 5vh); }
.brainwaves svg { height: min(170px, 22vh); }
.pane, .intro { padding-bottom: max(20px, calc(14px + var(--safe-bottom))); }
@media (max-height: 720px) {
  .intro__text h2 { font-size: 26px; margin: 6px 0 10px; }
  .intro__slide { gap: 16px; }
  .intro__foot { padding-top: 14px; }
  .welcome { gap: 12px; }
  .welcome__head h2 { font-size: 28px; }
  .auth-btn { height: 52px; }
  .step__head { margin-bottom: 18px; }
  .step__head h2 { font-size: 26px; }
  .choice { padding: 14px; }
  .choice strong { margin-top: 10px; }
  .form-wrap { gap: 18px; }
  .ready { padding-top: 20px; gap: 16px; }
}

.provider__ok { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--indigo); animation: pop .5s var(--ease); }
.provider__ok .ic { width: 26px; height: 26px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* =========================================================================
   v1.7 — Every step fits the screen: choices share the height that's left,
   and switch to compact layouts on short phones. Nothing scrolls.
   ========================================================================= */
.step { display: flex; flex-direction: column; overflow: hidden; padding: 4px 2px 10px; }
.step__head { flex: none; margin-bottom: clamp(12px, 2.6vh, 24px); }
.step__head h2 { font-size: clamp(23px, 3.7vh, 28px); margin: 6px 0 8px; }
.choice-grid, .choice-list, .texture-grid { flex: 0 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: clamp(8px, 1.3vh, 12px); }
.choice-grid { height: min(100%, 440px); }
.choice-list { display: grid; height: min(100%, 360px); }
.texture-grid { height: min(100%, 330px); }
.choice, .row-choice, .texture, .listen { min-height: 0; }
.choice { padding: clamp(10px, 1.7vh, 16px); justify-content: center; }
.row-choice { padding-top: clamp(8px, 1.3vh, 14px); padding-bottom: clamp(8px, 1.3vh, 14px); }
.listen-grid { flex: 0 1 auto; min-height: 0; }
.welcome__orb, .welcome__orb .orb { transition: none; }
@media (max-height: 720px) {
  .choice { flex-direction: row; align-items: center; gap: 10px; }
  .choice strong { margin-top: 0; font-size: 15px; }
  .choice__ic { width: 36px; height: 36px; border-radius: 12px; }
  .listen { padding: 14px; }
  .listen .ic { width: 28px; height: 28px; margin-bottom: 2px; }
}
@media (max-height: 640px) {
  .step__head p.muted, .row-choice small { display: none; }
  .step__head h2 { margin-bottom: 0; }
  .texture .ic { width: 22px; height: 22px; }
  .welcome__orb { display: none; }
  .pane { padding-top: 10px; }
  .form-wrap, .welcome { gap: 10px; }
  .field { margin-bottom: 0; }
  .auth-btn { height: 48px; }
  .legal { margin-top: 4px; }
}
@media (max-height: 580px) {
  .listen small { display: none; }
  .flow-foot { padding-top: 8px; }
}
.texture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.texture { min-width: 0; padding-left: 6px; padding-right: 6px; }
.texture span { max-width: 100%; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 340px) { .texture span { font-size: 11.5px; } .choice { gap: 8px; padding-right: 26px; } }
