/* Yoga Lab — $10 first class landing page.
   Mobile-first. Brand: near-black ground, teal wordmark, magenta/violet nebula. */

:root {
  --ink:        #050507;
  --ink-2:      #0c0c11;
  --panel:      #12121a;
  --panel-2:    #171722;
  --line:       rgba(255,255,255,0.10);
  --line-2:     rgba(255,255,255,0.18);

  --text:       #ffffff;
  --text-2:     #b9b9c4;
  --text-3:     #7e7e8c;

  --teal:       #35a2c2;
  --teal-lo:    #8ed4ea;
  --teal-hi:    #1b6580;
  --magenta:    #d55181;
  --violet:     #8b6cd9;
  --amber:      #fab219;
  --good:       #0ca30c;

  --r:          14px;
  --r-lg:       20px;
  --shadow:     0 18px 44px rgba(0,0,0,.5);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The nebula glow, echoing the logo ring. Anchored to the top of the document
   rather than the viewport — fixed positioning tinted the form's translucent
   borders pink as you scrolled past. */
body::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 900px;
  background:
    radial-gradient(52% 46% at 50% 0%, rgba(213,81,129,.30), transparent 68%),
    radial-gradient(46% 40% at 18% 12%, rgba(139,108,217,.22), transparent 70%),
    radial-gradient(40% 34% at 84% 8%, rgba(53,162,194,.20), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #04141a; padding: 10px 16px;
  border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-lo);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------- header ---------------- */

.site {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 18px;
  max-width: 1080px; margin: 0 auto;
}

/* Transparent PNG of the wordmark lockup (mandala + YOGA LAB + tagline),
   cropped out of the full circular logo — the nebula ring is illegible at
   header size, so the CSS glow above carries that part of the brand instead. */
.logo { width: 178px; height: auto; }
.logo.sm { width: 158px; margin-bottom: 12px; }

@media (min-width: 560px) { .logo { width: 208px; } }

.phone {
  color: var(--text-2); text-decoration: none; font-size: 14px;
  font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px;
}
.phone:hover { color: var(--text); border-color: var(--line-2); }

/* ---------------- hero ---------------- */

.hero {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 18px 22px 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-lo);
}

h1 { margin: 0 0 18px; line-height: 1; letter-spacing: -0.03em; }

.price {
  display: block;
  font-size: clamp(84px, 26vw, 152px);
  font-weight: 800;
  line-height: .84;
  background: linear-gradient(168deg, #ffffff 8%, var(--teal-lo) 52%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(53,162,194,.34));
}
.h1-line {
  display: block;
  font-size: clamp(30px, 8.6vw, 46px);
  font-weight: 750; text-transform: uppercase; letter-spacing: -0.01em;
  margin-top: 4px;
}
.h1-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 500; letter-spacing: .02em;
  color: var(--magenta);
}

.lede {
  margin: 0 auto 26px; max-width: 30em;
  color: var(--text-2); font-size: 16.5px;
}
.lede strong { color: var(--text); }

/* ---------------- buttons ---------------- */

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(160deg, var(--teal-lo), var(--teal) 58%, var(--teal-hi));
  color: #041318;
  font: inherit; font-size: 17px; font-weight: 750;
  padding: 16px 30px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px rgba(53,162,194,.30);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(53,162,194,.40); }
.cta:active { transform: translateY(0); }
.cta[disabled] { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.3); }

.cta.alt {
  background: linear-gradient(160deg, #f2a3c0, var(--magenta) 58%, #a83562);
  color: #1d0510;
  box-shadow: 0 12px 30px rgba(213,81,129,.30);
}
.cta.alt:hover { box-shadow: 0 16px 38px rgba(213,81,129,.42); }

.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 600;
  padding: 11px 20px; cursor: pointer;
}
.ghost:hover { background: rgba(255,255,255,.12); }

.back {
  background: none; border: 0; color: var(--text-3);
  font: inherit; font-size: 14px; padding: 0 0 14px; cursor: pointer;
}
.back:hover { color: var(--teal-lo); }

.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; margin: 30px 0 0; padding: 0;
  font-size: 13px; color: var(--text-3);
}
.trust strong { color: var(--text-2); font-weight: 700; }

/* ---------------- funnel shell ---------------- */

.booking {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
  padding: 0 18px 70px;
  scroll-margin-top: 12px;
}

.progress {
  display: flex; gap: 6px; list-style: none; margin: 0 0 30px; padding: 0;
  counter-reset: none;
}
.progress li {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  transition: color .2s, border-color .2s;
}
.progress li span {
  display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
}
.progress li[data-done] { color: var(--teal-lo); border-top-color: var(--teal-hi); }
.progress li[data-done] span {
  background: var(--teal-hi); border-color: var(--teal); color: #eafaff;
}
.progress li[aria-current] { color: var(--text); border-top-color: var(--teal); }
.progress li[aria-current] span {
  background: linear-gradient(160deg, var(--teal-lo), var(--teal));
  border-color: var(--teal-lo); color: #041318;
  box-shadow: 0 0 0 4px rgba(53,162,194,.16);
}

.step { animation: rise .3s ease both; }
.step[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  html { scroll-behavior: auto; }
}

.step h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 6vw, 30px); font-weight: 750; letter-spacing: -0.02em;
}
.step-note { margin: 0 0 22px; color: var(--text-3); font-size: 14.5px; }

/* ---------------- step 1: class cards ---------------- */

.classes { display: grid; gap: 10px; }
@media (min-width: 620px) { .classes { grid-template-columns: 1fr 1fr; } }

.class-card {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(168deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 17px;
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.class-card:hover {
  border-color: var(--teal); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.class-card.is-picked {
  border-color: var(--teal-lo);
  box-shadow: 0 0 0 1px var(--teal-lo), 0 12px 30px rgba(53,162,194,.22);
}

.cc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.cc-count {
  flex: none; font-size: 11.5px; font-weight: 650; color: var(--teal-lo);
  background: rgba(53,162,194,.14); padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}

/* A class with nothing on the schedule this week. */
.class-card.is-unavailable { opacity: .45; cursor: not-allowed; }
.class-card.is-unavailable:hover { border-color: var(--line); transform: none; box-shadow: none; }
.class-card.is-unavailable .cc-count { background: rgba(255,255,255,.07); color: var(--text-3); }

.no-schedule {
  grid-column: 1 / -1; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; text-align: center;
}
.no-schedule a { color: var(--teal-lo); font-weight: 650; }
.cc-desc { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.badge {
  font-size: 11px; font-weight: 650; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  background: rgba(255,255,255,.07); color: var(--text-2);
}
.badge.heat  { background: rgba(213,81,129,.16); color: #f3a2c1; }
.badge.cool  { background: rgba(139,108,217,.18); color: #bcaaf0; }
.badge.begin { background: rgba(53,162,194,.18); color: var(--teal-lo); }
.badge.adv   { background: rgba(250,178,25,.15); color: var(--amber); }

/* ---------------- step 2: dates + slots ---------------- */

.dates {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr);
  gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.date-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 6px;
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color .16s, background .16s;
}
.date-btn:hover { border-color: var(--teal); }
.date-btn.is-picked {
  background: linear-gradient(165deg, var(--teal-lo), var(--teal));
  border-color: var(--teal-lo); color: #041318;
}
.db-dow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.db-day { font-size: 21px; font-weight: 750; line-height: 1.1; }
.db-mon { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.slots-wrap { margin-top: 28px; }
.slots-h { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 8px; }

.slot {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 8px;
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.slot:hover:not(.is-full) { border-color: var(--teal); transform: translateY(-1px); }
.slot.is-picked {
  background: linear-gradient(165deg, var(--teal-lo), var(--teal));
  border-color: var(--teal-lo); color: #041318;
}
.slot-time { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-tag { font-size: 10.5px; font-weight: 650; letter-spacing: .03em; }
.slot-variant {
  font-size: 10.5px; font-weight: 650; color: var(--violet);
  text-align: center; line-height: 1.25;
}
.slot-teacher {
  font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.slot.is-picked .slot-variant, .slot.is-picked .slot-teacher { color: #04212b; }

/* A day this class doesn't run. */
.date-btn.is-empty { opacity: .32; cursor: not-allowed; border-style: dashed; }
.date-btn.is-empty:hover { border-color: var(--line); }
.slot.is-open  .slot-tag { color: var(--text-3); }
.slot.is-picked .slot-tag { color: #04212b; }
.slot.is-low   .slot-tag { color: var(--amber); }

.slot.is-full {
  cursor: not-allowed; opacity: .5;
  background: transparent; border-style: dashed;
}
.slot.is-full .slot-time { text-decoration: line-through; color: var(--text-3); }
.slot.is-full .slot-tag { color: var(--text-3); }

/* Full slots stay clickable so we can record the demand; this acknowledges the
   tap instead of appearing broken. */
.slot.nudge { animation: nudge .32s ease; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .slot.nudge { animation: none; } }

.slots-foot { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------------- step 3: form ---------------- */

.summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  background: rgba(53,162,194,.09);
  border: 1px solid rgba(53,162,194,.28);
  border-radius: 12px; padding: 13px 15px; margin-bottom: 24px;
  font-size: 14.5px;
}
.summary b { font-weight: 700; }
.summary .sep { color: var(--teal); }
.summary .amt { margin-left: auto; font-weight: 750; color: var(--teal-lo); }

.form { display: grid; gap: 17px; }
.row { display: grid; gap: 17px; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: .01em;
  padding: 0;
}

.field input {
  width: 100%;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 14px;
  font: inherit; font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color .16s, background .16s;
}
.field input::placeholder { color: var(--text-3); }
.field input:hover { border-color: var(--line-2); }
.field input:focus { border-color: var(--teal); background: var(--panel-2); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--magenta); }

.hint { margin: 1px 0 0; font-size: 12.5px; color: var(--text-3); }
.err { margin: 0; font-size: 12.5px; color: #f08eaf; min-height: 0; }
.err:empty { display: none; }
.form-err { margin-top: -4px; text-align: center; }

.toggle legend { margin-bottom: 8px; }
.radios { display: grid; gap: 8px; }
@media (min-width: 520px) { .radios { grid-template-columns: 1fr 1fr; } }
.radios label {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 14px;
  font-size: 14.5px; font-weight: 500; color: var(--text);
  cursor: pointer;
}
.radios label:has(input:checked) {
  border-color: var(--teal); background: rgba(53,162,194,.10);
}
.radios input { accent-color: var(--teal); width: 17px; height: 17px; }

.submit { width: 100%; margin-top: 4px; }
.submit.is-busy { pointer-events: none; opacity: .7; }

.fineprint { margin: 0; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ---------------- step 4: confirmation ---------------- */

.confirm { text-align: center; }

.tick {
  width: 60px; height: 60px; margin: 4px auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(12,163,12,.14); color: #5ede5e;
  border: 1px solid rgba(12,163,12,.4);
}
.confirm-line { margin: 0 auto 26px; max-width: 26em; color: var(--text-2); font-size: 16px; }
.confirm-line b { color: var(--text); }

.qr-card {
  background: linear-gradient(168deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px; box-shadow: var(--shadow);
  display: grid; justify-items: center; gap: 13px;
}
.qr-title {
  margin: 0; font-size: 12px; font-weight: 650;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-3);
}
#qr { border-radius: 10px; display: block; background: #fff; }
.code {
  margin: 0; font-size: 25px; font-weight: 750; letter-spacing: .12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--teal-lo);
}
.qr-hint { margin: 0; font-size: 12.5px; color: var(--text-3); max-width: 30em; }

.upsell {
  margin-top: 26px; text-align: left;
  background: linear-gradient(168deg, rgba(213,81,129,.14), rgba(139,108,217,.07));
  border: 1px solid rgba(213,81,129,.32);
  border-radius: var(--r-lg); padding: 22px;
}
.upsell-kicker {
  margin: 0 0 5px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--magenta);
}
.upsell h3 { margin: 0 0 9px; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.upsell-body { margin: 0 0 17px; color: var(--text-2); font-size: 15px; }
.upsell-body strong { color: var(--text); }
.upsell .cta { width: 100%; }
.upsell.is-added .cta { pointer-events: none; }
.upsell-foot { margin: 11px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }

.know {
  margin-top: 26px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px;
}
.know h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.know ul { margin: 0; padding-left: 19px; display: grid; gap: 9px; }
.know li { color: var(--text-2); font-size: 14.5px; }
.know li strong { color: var(--text); }
.map {
  display: inline-block; margin-top: 15px;
  color: var(--teal-lo); font-size: 14px; font-weight: 600; text-decoration: none;
}
.map:hover { text-decoration: underline; }

/* ---------------- footer ---------------- */

.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 30px 22px 40px; text-align: center;
}
.contact { margin: 0 0 14px; font-size: 14px; }
.contact a { color: var(--text-2); text-decoration: none; }
.contact a:hover { color: var(--text); }
.legal { margin: 0 auto; max-width: 46em; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
