:root {
  --bg: #060911;
  --bg-2: #0a0f1c;
  /* glass surfaces — translucent, lifted off the aurora with backdrop-blur */
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --panel-solid: #10162a;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eaf0fa;
  --muted: #98a6c0;
  --accent: #2ed3b7;
  --accent-2: #5b9dff;
  --accent-3: #9b6bff;
  --grad: linear-gradient(115deg, var(--accent), var(--accent-2) 48%, var(--accent-3));
  --grad-soft: linear-gradient(135deg, rgba(46, 211, 183, 0.16), rgba(78, 155, 255, 0.16), rgba(155, 107, 255, 0.16));
  --radius: 16px;
  --r-sm: 10px;
  --r-lg: 22px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 12px 44px -8px rgba(78, 155, 255, 0.5);
  --blur: saturate(1.3) blur(14px);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- animated aurora background (drifting teal/blue/violet blobs) ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 70vw; height: 70vw;
  top: -22vw; left: -18vw;
  background: radial-gradient(circle at 30% 30%, rgba(46, 211, 183, 0.5), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(78, 155, 255, 0.5), transparent 60%);
  animation: aurora1 24s ease-in-out infinite alternate;
}
body::after {
  width: 60vw; height: 60vw;
  top: 24vh; right: -22vw;
  background: radial-gradient(circle at 60% 40%, rgba(155, 107, 255, 0.45), transparent 60%);
  animation: aurora2 30s ease-in-out infinite alternate;
}
@keyframes aurora1 { to { transform: translate(8vw, 10vh) scale(1.12); } }
@keyframes aurora2 { to { transform: translate(-7vw, -6vh) scale(1.16); } }
/* faint grid, fading toward the top */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  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: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

.app {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 20px 72px;
}

/* frosted-glass surfaces — translucent panels lifted off the aurora */
.hero,
.day,
.streak,
.account-chip,
.help-btn,
.btn-begin,
.qa,
.readiness,
.modal-card,
.welcome-card,
.hp-card,
.session-foot {
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* ---- top bar ---- */
.topbar {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
  padding-top: 44px; /* clear the absolutely-positioned account chip + help button */
}
.account-chip { max-width: min(60%, 260px); }
.help-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.help-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.account-chip {
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 46%;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.account-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}
.account-chip .pro-pill {
  background: var(--accent);
  color: #04231e;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.account-chip .who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* signed-in chip: a compact avatar + optional plan pill */
.account-chip.chip-avatar {
  padding: 3px 10px 3px 3px;
  gap: 6px;
}
.account-chip .chip-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #04231e;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  flex: none;
}

/* ---- generic modal ---- */
/* The `hidden` attribute must beat every `display` rule below — without this,
   modals (which default to `hidden`) render on top of the app permanently. */
[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 14, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(22, 29, 48, 0.92), rgba(12, 17, 30, 0.94));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.modal-x:hover {
  color: var(--text);
}

/* ---- paywall ---- */
.paywall-badge {
  display: inline-block;
  background: var(--accent);
  color: #04231e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.paywall-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}
.paywall-sub {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 340px;
}
.paywall-price {
  color: var(--accent);
  font-size: 1.05rem;
}
.paywall-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  max-width: 320px;
  margin-inline: auto;
}
.paywall-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.paywall-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 800;
}
.paywall-go,
.auth-go {
  width: 100%;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 15px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(46, 211, 183, 0.28);
  transition: transform 0.12s ease, filter 0.2s ease;
}
.paywall-go:hover,
.auth-go:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.paywall-go:disabled,
.auth-go:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 13px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.2s ease;
}
.auth-google:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}
.auth-google:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.paywall-note,
.auth-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.2em;
  line-height: 1.4;
}
.paywall-note.demo,
.auth-note.demo {
  color: var(--accent-2);
}

/* ---- auth ---- */
.auth-card h2 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}
.auth-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 auto 20px;
  max-width: 330px;
  line-height: 1.5;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}
.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.google-btn:hover { filter: brightness(0.96); }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 16px 0;
}
.auth-or::before,
.auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.coupon { margin-top: 14px; }
.coupon-toggle {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.coupon-toggle:hover {
  color: var(--text);
}
.coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.coupon-input {
  flex: 1;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.coupon-input:focus { outline: none; border-color: var(--accent); }
.coupon-go {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
.paywall-fine { margin: 14px 0 0; font-size: 0.72rem; color: var(--muted); }
.paywall-fine a { color: var(--muted); text-underline-offset: 3px; }
.paywall-fine a:hover { color: var(--text); }
.auth-account {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acct-email {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-all;
}
.acct-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.acct-status .on {
  color: var(--accent);
  font-weight: 700;
}
.acct-signout {
  align-self: center;
}
.share-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.share-title {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  flex: 1;
  min-width: 92px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.share-btn:hover { border-color: var(--accent); }

/* ================= profile (signed-in account panel) ================= */
.profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #04231e;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(46, 211, 183, 0.28);
  flex: none;
}
.profile-id { min-width: 0; flex: 1; }
.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.profile-email {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-pill {
  flex: none;
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
}
.plan-pill.free {
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
}

/* journey — progress ring + meta */
.profile-journey {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), rgba(21, 27, 38, 0.4));
}
.ring { position: relative; width: 82px; height: 82px; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 213.6; /* 2·π·34 */
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.ring-label .ring-tot { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.journey-meta { min-width: 0; flex: 1; }
.journey-title { font-weight: 700; font-size: 0.98rem; }
.journey-sub { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.continue-btn {
  margin-top: 12px;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(46, 211, 183, 0.26);
  transition: transform 0.12s ease, filter 0.2s ease;
}
.continue-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* stat tiles */
.stat-row { display: flex; gap: 10px; }
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.stat-ico { font-size: 1.05rem; line-height: 1; }
.stat-n { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.stat-n.stat-txt { font-size: 0.98rem; }
.stat-l { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }

/* plan card */
.plan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.plan-info { flex: 1; min-width: 0; }
.plan-name { font-weight: 700; font-size: 0.95rem; }
.plan-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.plan-sub .on { color: var(--accent); font-weight: 700; }
.plan-cta {
  flex: none;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.2s ease;
}
.plan-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* share — now a collapsible details */
.profile .share-block { border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.profile .share-title {
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0;
}
.profile .share-title::-webkit-details-marker { display: none; }
.profile details[open] .share-title { margin-bottom: 12px; }
.profile .acct-signout { align-self: center; }

/* ---- lock badges on days / studio ---- */
.day.pro-locked .day-action .pro-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(46, 211, 183, 0.4);
  background: rgba(46, 211, 183, 0.1);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.day.pro-locked .day-action .pro-lock:hover {
  background: rgba(46, 211, 183, 0.18);
}
.tabs button .tab-pro {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--accent);
  vertical-align: super;
  margin-left: 3px;
}
.studio-lock {
  margin: 0 0 22px;
  background: linear-gradient(180deg, rgba(46, 211, 183, 0.12), var(--panel));
  border: 1px solid rgba(46, 211, 183, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.studio-lock b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.studio-lock p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 14px;
}
.studio-lock button {
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand h1 {
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
  background: linear-gradient(100deg, #ffffff 20%, #cfe0ff 55%, var(--accent) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-dot {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 9px rgba(46, 211, 183, 0.5));
}
.subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  margin: 7px 0 0;
}

/* ---- focal stage ---- */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 8px 0 20px;
  min-height: 300px;
}
.focal {
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  display: block;
}
.readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.beat-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.beat-value .unit {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
}
.band {
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
}
.band-blurb {
  max-width: 240px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 2.4em;
}
.timeline {
  margin-top: 16px;
  width: min(70vw, 260px);
}
.bar {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}
.time {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---- scrubbable session timeline ---- */
.seek {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none; /* let drag scrub without page-scrolling on touch */
}
.seek .bar { position: relative; width: 100%; z-index: 0; }
.seek-marks { position: absolute; inset: 0; pointer-events: none; }
.seek-mark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 12px;
  background: var(--muted);
  opacity: 0.5;
  border-radius: 2px;
}
.seek-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: left 0.15s linear;
}
.seek:hover .seek-knob { transform: translate(-50%, -50%) scale(1.18); }
.seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.seek.scrubbing .seek-knob,
.seek.scrubbing .bar-fill { transition: none; }

/* ---- headphone / stereo test ---- */
.hp-card { max-width: 460px; }
.hp-emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.hp-title { font-size: 1.35rem; margin: 4px 0 10px; }
.hp-lead { color: var(--muted); line-height: 1.6; font-size: 0.96rem; margin-bottom: 20px; }
.hp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hp-choice {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 14px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.hp-choice:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.04); }
.hp-replay {
  margin-top: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}
.hp-replay:hover { color: var(--text); }

/* ---- transport ---- */
.transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  color: #05221d;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(46, 211, 183, 0.3);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.play:hover {
  transform: translateY(-1px);
}
.play:active {
  transform: translateY(1px);
}
.play.playing {
  background: linear-gradient(180deg, #2b3444, #222a37);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.play-icon {
  font-size: 0.9rem;
}
.headphone-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-2);
}

/* ---- presets ---- */
.presets h2,
.controls h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 0 0 10px;
}
.preset-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.preset {
  flex: 0 0 auto;
  min-width: 150px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}
.preset:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.preset.on {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(46, 211, 183, 0.14), var(--panel));
}
.preset .p-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.preset .p-tag {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 4px;
  line-height: 1.35;
}

/* ---- controls ---- */
.controls {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}
.field > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field .val {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hint {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* segmented mode control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
}
.segmented button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 6px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.segmented button.on {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* range inputs */
/* Keyboard focus for the six Studio sliders — outline:none below removed the
   only visible focus indicator (WCAG 2.4.7). */
input[type="range"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 211, 183, 0.55);
  border-radius: 999px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 40%), var(--line) var(--fill, 40%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
}

/* safety + footer */
.safety {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.safety summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.safety ul {
  margin: 12px 0 4px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.safety strong {
  color: var(--text);
}
.foot {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.72rem;
}
.foot span {
  color: var(--text);
  font-weight: 600;
}

/* ---- tabs ---- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: 340px;
  margin: 0 auto 24px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.tabs.tabs-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 380px;
}
.tabs.tabs-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 460px;
}
.tabs.tabs-4 button {
  padding: 10px 6px;
  font-size: 0.82rem;
}
@media (max-width: 420px) {
  .tabs.tabs-4 button { font-size: 0.76rem; padding: 9px 3px; }
}
.tabs button:hover { color: var(--text); }
.tabs button.on {
  background: linear-gradient(180deg, rgba(46, 211, 183, 0.16), var(--panel-2));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(46, 211, 183, 0.35), 0 4px 14px rgba(46, 211, 183, 0.12);
}

/* ---- Remote Viewing ---- */
.rv-head { text-align: center; margin-bottom: 18px; }
.rv-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent-2); font-weight: 700; }
.rv-title { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.rv-blurb { color: var(--muted); font-size: 0.85rem; line-height: 1.55; max-width: 52ch; margin: 8px auto 0; }
.rv-hero {
  background: linear-gradient(180deg, rgba(78, 155, 255, 0.14), var(--panel) 70%);
  border: 1px solid rgba(78, 155, 255, 0.4);
  border-radius: var(--radius); padding: 20px; margin: 20px 0; text-align: center; box-shadow: var(--shadow);
}
.rv-hero-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-2); font-weight: 700; }
.rv-hero-title { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.rv-hero-blurb { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin-top: 6px; }
.rv-hero-btn, .rv-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 13px 26px; border-radius: 999px; font-size: 1rem; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 24px rgba(46, 211, 183, 0.28); transition: transform 0.12s ease;
}
.rv-hero-btn { width: 100%; max-width: 300px; margin-top: 14px; }
.rv-hero-btn:hover, .rv-next:hover { transform: translateY(-1px); }
.rv-next { margin-top: 16px; }

.rv-list { display: flex; flex-direction: column; gap: 8px; }
.rv-card { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.rv-card.locked { opacity: 0.45; }
.rv-card.done .rv-card-n { color: var(--muted); }
.rv-card-n { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); font-weight: 700; }
.rv-card-n .ok { color: var(--accent); }
.rv-card-name { font-weight: 600; font-size: 0.92rem; margin-top: 3px; }
.rv-go { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit; }
.rv-go:hover { border-color: var(--accent); }
.rv-pro { border: 1px solid rgba(46, 211, 183, 0.4); background: rgba(46, 211, 183, 0.1); color: var(--accent);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.rv-card-act .lk { font-size: 1.1rem; opacity: 0.7; }

.rv-results { margin-top: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rv-results-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 8px; }
.rv-res-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.88rem; border-top: 1px solid var(--line); }
.rv-res-row:first-of-type { border-top: none; }
.rv-res-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-res-score small { color: var(--muted); font-weight: 500; font-size: 0.7rem; }
.rv-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* stage */
.rv-stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rv-orb { position: relative; width: 120px; height: 120px; margin: 8px auto 4px; }
.rv-orb span { position: absolute; border-radius: 50%; }
.rv-orb .glow { inset: -30%; background: radial-gradient(circle, rgba(78,155,255,.3), transparent 62%); animation: rvpulse 3.6s ease-in-out infinite; }
.rv-orb .ring { inset: 0; border: 1px solid rgba(78,155,255,.5); animation: rvpulse 3.6s ease-in-out infinite; }
.rv-orb .core { top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--accent-2); box-shadow: 0 0 20px var(--accent-2); animation: rvpulse 3.6s ease-in-out infinite; }
@keyframes rvpulse { 0%,100% { transform: scale(.86); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rv-orb span { animation: none; } }
.rv-phase { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--accent-2); font-weight: 700; margin-top: 6px; }
.rv-cue { margin-top: 12px; font-size: 1.02rem; line-height: 1.55; color: var(--text); max-width: 480px; text-wrap: balance; }
.rv-body { width: 100%; max-width: 520px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; }
.rv-count { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-2); margin: 6px 0; }
.rv-count-lbl { color: var(--muted); font-size: 0.85rem; max-width: 40ch; }
.rv-hint { color: var(--muted); font-size: 0.72rem; margin-top: 12px; }
.rv-foot { margin-top: 22px; }

/* capture */
.rv-cap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rv-cap-lbl { color: var(--muted); font-size: 0.8rem; text-align: center; }
.rv-mic {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(78,155,255,.5);
  background: rgba(78,155,255,.1); color: var(--text); border-radius: 999px; padding: 14px 28px;
  font-size: 1.05rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: transform .12s, background .2s;
}
.rv-mic:hover { transform: translateY(-1px); }
.rv-mic.on { border-color: rgba(46,211,183,.7); background: rgba(46,211,183,.14); color: var(--accent);
  animation: micpulse 1.6s ease-in-out infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(46,211,183,.35); } 50% { box-shadow: 0 0 0 10px rgba(46,211,183,0); } }
@media (prefers-reduced-motion: reduce) { .rv-mic.on { animation: none; } }
.rv-live { min-height: 1.4em; color: var(--muted); font-size: 0.95rem; font-style: italic; margin: 4px 0; max-width: 42ch; }
.rv-input { width: 100%; max-width: 360px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 1rem; font-family: inherit; text-align: center; }
.rv-input:focus { outline: none; border-color: var(--accent-2); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rv-chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 6px 12px; font-size: 0.82rem; cursor: pointer; }
.rv-chip.hit { background: rgba(46,211,183,.18); border-color: rgba(46,211,183,.5); color: var(--accent); cursor: default; }
.rv-chip.partial { background: rgba(245,196,81,.14); border-color: rgba(245,196,81,.4); color: #f5c451; cursor: default; }
.rv-chip.miss { background: var(--bg-2); color: var(--muted); cursor: default; }
.rv-text { width: 100%; max-width: 460px; min-height: 100px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 0.95rem; font-family: inherit; resize: vertical; }
.rv-text:focus { outline: none; border-color: var(--accent-2); }
.rv-sketch { width: 100%; max-width: 520px; aspect-ratio: 520 / 300; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); touch-action: none; cursor: crosshair; }

/* reveal */
.rv-reveal { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rv-reveal-h { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; }
.rv-target { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 12px 0 18px; max-width: 440px; }
.rv-img-wrap { min-height: 88px; display: grid; place-items: center; }
.rv-img { width: 100%; max-width: 400px; border-radius: 14px; display: block; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.rv-img-note { color: var(--muted); font-size: 0.8rem; margin-top: 8px; font-style: italic; animation: micpulse 1.6s ease-in-out infinite; }
.rv-emoji { font-size: 3.4rem; line-height: 1; }
.rv-tname { font-size: 1.3rem; font-weight: 800; margin-top: 8px; }
.rv-tgestalt { color: var(--accent-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.rv-tblurb { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 8px; }
.rv-gauge { display: inline-flex; flex-direction: column; align-items: center; border-radius: 16px; padding: 14px 26px; border: 1px solid var(--line); }
.rv-gauge.band-strong { border-color: rgba(46,211,183,.6); background: rgba(46,211,183,.1); }
.rv-gauge.band-promising { border-color: rgba(245,196,81,.5); background: rgba(245,196,81,.08); }
.rv-gauge.band-noise { border-color: var(--line); }
.rv-score { font-size: 2.6rem; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.rv-score small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.rv-band { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; font-weight: 700; margin-top: 4px; color: var(--muted); }
.band-strong { color: var(--accent) !important; }
.band-promising { color: #f5c451 !important; }
.rv-feedback { color: var(--muted); font-size: 0.9rem; line-height: 1.55; max-width: 44ch; margin: 16px auto; }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; margin: 8px 0 18px; text-align: left; }
@media (max-width: 480px) { .rv-cols { grid-template-columns: 1fr; } }
.rv-col-h { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.rv-col-h.ok { color: var(--accent); }
.rv-gestalt-hit { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.tabs button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ---- program hero (pinned next-up CTA) ---- */
.hero {
  position: relative;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(46, 211, 183, 0.2), transparent 68%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(46, 211, 183, 0.32);
  border-radius: var(--r-lg);
  padding: 28px 22px 24px;
  margin-bottom: 26px;
  text-align: center;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: var(--accent);
}
.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 7px;
}
.hero-blurb {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.45;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 14px 36px rgba(46, 211, 183, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.hero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 44px rgba(46, 211, 183, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-btn:active {
  transform: translateY(0);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 16px;
}
.hero-link {
  border: none;
  background: none;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}
.hero-link:hover { color: var(--text); }

/* ---- how it works / FAQ ---- */
.guide-info {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qa {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
}
.qa summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.qa[open] summary::after {
  transform: rotate(45deg);
}
.qa p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}
.qa b {
  color: var(--text);
}

/* ---- welcome / orientation overlay ---- */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}
.welcome-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(22, 29, 48, 0.92), rgba(12, 17, 30, 0.94));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.welcome-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(46, 211, 183, 0.18);
}
.welcome-card h2 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}
.welcome-lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 380px;
}
.welcome-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 22px;
}
.wp {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.wp b {
  color: var(--text);
}
.wp-ico {
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1.3;
}
.welcome-go {
  width: 100%;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 15px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(46, 211, 183, 0.28);
  transition: transform 0.12s ease;
}
.welcome-go:hover {
  transform: translateY(-1px);
}

/* ---- Welcome / orientation view (the written landing) ---- */
.wv-hero {
  position: relative;
  text-align: center;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(46, 211, 183, 0.2), transparent 68%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(46, 211, 183, 0.32);
  border-radius: var(--r-lg);
  padding: 30px 22px 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.wv-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
}
.wv-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 6px 0 0;
}
.wv-lead {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 46ch;
  margin: 12px auto 0;
}
.wv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  border: none;
  cursor: pointer;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 14px 36px rgba(46, 211, 183, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.wv-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 44px rgba(46, 211, 183, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.wv-cta:active { transform: translateY(0); }
.wv-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 16px;
}

.wv-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin-bottom: 22px;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.wv-h {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
}
.wv-h-center { text-align: center; margin: 30px 0 14px; }
.wv-p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
  margin: 0 0 12px;
}
.wv-p b { color: var(--text); }
.wv-readmore {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.wv-readmore:hover { text-decoration: underline; }

/* three-places cards */
.wv-cards { display: flex; flex-direction: column; gap: 12px; }
.wv-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.wv-card:hover {
  border-color: rgba(46, 211, 183, 0.5);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.wv-card-ico { flex: 0 0 auto; font-size: 1.7rem; line-height: 1; margin-top: 2px; }
.wv-card-text { display: flex; flex-direction: column; gap: 5px; }
.wv-card-name { font-size: 1rem; font-weight: 700; }
.wv-card-tag {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(78, 155, 255, 0.14);
  border: 1px solid rgba(78, 155, 255, 0.35);
}
.wv-card-tag.pro { color: #f4c66a; background: rgba(244, 198, 106, 0.12); border-color: rgba(244, 198, 106, 0.35); }
.wv-card-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.wv-card-desc b { color: var(--text); }
.wv-card-go {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}

.wv-points { margin-bottom: 8px; }

/* go-deeper reading links */
.wv-reads { display: flex; flex-direction: column; gap: 8px; }
.wv-read {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wv-read:hover { border-color: var(--line-2); background: var(--panel-2); }
.wv-read-name { font-size: 0.92rem; font-weight: 700; }
.wv-read-name::after { content: " →"; color: var(--accent-2); }
.wv-read-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

/* ---- program home ---- */
.prog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.prog-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.prog-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}
.streak {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.02rem;
  background: linear-gradient(180deg, rgba(255, 156, 66, 0.14), var(--panel));
  border: 1px solid rgba(255, 156, 66, 0.25);
  border-radius: 999px;
  padding: 8px 15px;
  font-variant-numeric: tabular-nums;
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.day:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.day.current {
  border-color: rgba(46, 211, 183, 0.5);
  background: radial-gradient(140% 160% at 0% 0%, rgba(46, 211, 183, 0.15), var(--panel));
  box-shadow: 0 10px 30px rgba(46, 211, 183, 0.1);
}
.day.locked {
  opacity: 0.45;
}
.day.done .day-n {
  color: var(--muted);
}
.day-n {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}
.day-n .check {
  color: var(--accent);
}
.day-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 3px;
}
.day-level {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
}
.day-action .lock {
  font-size: 1.1rem;
  opacity: 0.7;
}
.btn-begin {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.1s ease,
    background 0.15s ease;
}
.btn-begin:hover {
  transform: translateY(-1px);
}
.btn-begin.primary {
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  color: #04231e;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(46, 211, 183, 0.28);
}
.btn-begin:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.prog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.link-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.link-btn:hover {
  color: var(--text);
}
.disclaimer {
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---- live session stage ---- */
.session-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.session-stage .focal {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
}
.session-overlay {
  text-align: center;
  margin-top: -20px;
  min-height: 128px;
  max-width: 500px;
  padding: 0 8px;
}
.phase-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 700;
}
.subtitle-cue {
  margin-top: 14px;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
  min-height: 3.2em;
  transition: opacity 0.3s ease;
}
.subtitle-cue.is-paused { opacity: 0.4; }
.session-foot {
  width: min(80vw, 420px);
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.session-foot .bar {
  width: 100%;
}

/* ---- full-screen player: orb + subtitles fill the screen ---- */
/* Toggled via a class (not only :fullscreen) so it also works as an immersive
   in-page overlay if the Fullscreen API is blocked. */
.session-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  justify-content: center;
  gap: 0;
  padding: 4vh 5vw;
  background:
    radial-gradient(circle at 50% 38%, rgba(20, 30, 52, 0.9), transparent 62%),
    #04070e;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.session-stage.is-fullscreen .focal {
  width: min(58vh, 74vw);
  height: min(58vh, 74vw);
}
.session-stage.is-fullscreen .session-overlay {
  margin-top: -8px;
  max-width: min(880px, 90vw);
  min-height: 0;
}
.session-stage.is-fullscreen .phase-title { font-size: 0.9rem; }
.session-stage.is-fullscreen .subtitle-cue {
  font-size: clamp(1.35rem, 3.2vw, 2.3rem);
  line-height: 1.5;
}
.session-stage.is-fullscreen .session-foot {
  width: min(720px, 88vw);
  margin-top: 30px;
}
.fs-hint {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  color: var(--muted);
  opacity: 0.7;
  text-transform: uppercase;
}
.btn-ghost {
  margin-top: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ---- readiness gate ---- */
.readiness {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.readiness h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.readiness p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 auto 16px;
  max-width: 360px;
  line-height: 1.5;
}
.rate-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.rate {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.1s ease,
    border-color 0.15s ease;
}
.rate:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.rate.warn:hover {
  border-color: #f5a524;
}
.rate-note {
  margin-top: 14px !important;
  color: var(--accent) !important;
}

@media (max-width: 420px) {
  .beat-value {
    font-size: 2.4rem;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .subtitle-cue {
    font-size: 0.98rem;
  }
}

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

/* ── Immersive session mode ────────────────────────────────────────────────
   During a guided session the app chrome (wordmark, tagline, tab bar, account
   chip, footer) has no job — it just crowds the orb, and on a phone it ate the
   top quarter of the screen for 29 minutes. Recede it instead of removing it:
   it fades back on hover/focus, and any keyboard user can still tab to it. */
body.in-session .topbar .brand,
body.in-session .topbar .subtitle,
body.in-session .tabs,
body.in-session .account-chip,
body.in-session .help-btn,
body.in-session .foot {
  opacity: 0.12;
  transition: opacity 0.6s ease;
}
body.in-session .topbar:hover .brand,
body.in-session .topbar:hover .subtitle,
body.in-session .tabs:hover,
body.in-session .account-chip:hover,
body.in-session .help-btn:hover,
body.in-session .foot:hover,
body.in-session .topbar:focus-within .brand,
body.in-session .tabs:focus-within,
body.in-session .account-chip:focus-visible,
body.in-session .help-btn:focus-visible {
  opacity: 1;
}
/* Reclaim the vertical space the tagline was holding, so the orb sits closer
   to the optical centre — this is the whole point on a phone. */
body.in-session .topbar {
  margin-bottom: 4px;
}
@media (prefers-reduced-motion: reduce) {
  body.in-session .topbar .brand,
  body.in-session .topbar .subtitle,
  body.in-session .tabs,
  body.in-session .account-chip,
  body.in-session .help-btn,
  body.in-session .foot { transition: none; }
}

/* ── Session transport ─────────────────────────────────────────────────────
   Pause is the one control a listener reaches for with their eyes shut, so it
   gets to be the primary: a wide pill on its own line, with the secondary
   actions in a quieter row beneath. Every target clears the 44px minimum
   (they measured 23–36px before, unusable with a thumb). */
.session-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary-round {
  order: -1;
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 48px;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #04231e;
  background: linear-gradient(180deg, var(--accent), #1fb79e);
  box-shadow: 0 10px 30px rgba(46, 211, 183, 0.26);
  transition: transform 0.12s ease, filter 0.2s ease;
}
.btn-primary-round:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary-round:focus-visible { outline: 3px solid rgba(46, 211, 183, 0.6); outline-offset: 3px; }
/* Force the secondary row to wrap underneath the primary. */
.session-controls::after { content: ""; flex-basis: 100%; height: 0; order: -1; }
.kbd-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.75;
}
@media (hover: none) { .kbd-hint { display: none; } }

/* ── Studio slider hit area ────────────────────────────────────────────────
   The track is painted 6px tall, which is right visually and hopeless with a
   thumb. Keep the 6px track but pad the control out to a 44px grabbable band
   (background-clip keeps the paint on the track only). */
input[type="range"] {
  height: 44px;
  padding: 19px 0;
  background-clip: content-box;
  border-radius: 0;
}
input[type="range"]::-webkit-slider-thumb { margin-top: 0; }

/* Google leads the sign-in modal: it is the only path that can't be damaged by
   e-mail transport, so it gets the solid treatment and email drops to secondary. */
.auth-google-primary {
  background: #fff;
  color: #1f1f1f;
  border-color: #fff;
  font-weight: 700;
}
.auth-google-primary:hover { background: #f1f3f4; }
.auth-go-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  box-shadow: none;
}
.auth-go-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* A Pro-locked day row is an offer, not a wall: the whole card is the target. */
.day.is-clickable { cursor: pointer; }
.day.is-clickable:hover {
  border-color: rgba(46, 211, 183, 0.4);
  background: var(--panel-2);
}
.pro-lock { min-height: 44px; }

/* Inline icons sit on the text baseline without the emoji size jump. */
.ico { vertical-align: -2px; flex: 0 0 auto; }
