:root {
  --bg: #080808;
  --panel: rgba(18, 18, 17, 0.9);
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.66);
  --faint: rgba(247, 244, 238, 0.42);
  --accent: #ffde59;
  --accent-rgb: 255, 222, 89;
  --danger: #f87171;
  --success: #34d399;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 4%, rgba(var(--accent-rgb), 0.13), transparent 28rem),
    radial-gradient(circle at 10% 0%, rgba(var(--accent-rgb), 0.08), transparent 28rem),
    linear-gradient(180deg, #111 0%, var(--bg) 45%, #050505 100%);
  color: var(--text);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.page { min-height: 100vh; }
.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, none) center/cover no-repeat;
  opacity: 0.34;
  filter: saturate(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.48), rgba(0,0,0,.78));
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: grid;
  align-content: end;
  gap: 24px;
  padding: 34px 0 46px;
}
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #080808;
  overflow: hidden;
  font-weight: 950;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: rgba(0,0,0,.16); }
.brand strong { display: block; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.brand span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.account-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 11px 16px;
  font-weight: 850;
}
h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 7vw, 92px); line-height: .88; letter-spacing: -.07em; }
.hero-copy { max-width: 620px; margin: 0; color: rgba(247,244,238,.76); font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #080808; }
.btn.full { width: 100%; justify-content: center; display: inline-flex; }
.btn.app-btn {
  border-color: rgba(var(--accent-rgb), .38);
  background: rgba(var(--accent-rgb), .10);
  color: var(--text);
}
.modal .btn.app-btn {
  color: #18181b;
  background: rgba(var(--accent-rgb), .16);
  border-color: rgba(var(--accent-rgb), .34);
}
.app-hint {
  max-width: 460px;
  margin: -8px 0 0;
  color: rgba(247,244,238,.66);
  font-size: 13px;
  font-weight: 750;
}
.main { padding: 38px 0 70px; }
.checkout-notice-wrap { padding-top: 28px; }
.forms-reminder-wrap { padding-top: 18px; }
.checkout-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.forms-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: rgba(var(--accent-rgb), .28);
  background: rgba(var(--accent-rgb), .10);
}
.checkout-notice.success {
  border-color: rgba(52,211,153,.25);
  background: rgba(52,211,153,.08);
}
.forms-reminder.success {
  border-color: rgba(52,211,153,.25);
  background: rgba(52,211,153,.08);
}
.checkout-notice strong { color: var(--text); font-size: 18px; }
.forms-reminder strong { color: var(--text); font-size: 18px; }
.checkout-notice p, .forms-reminder p { margin: 5px 0 0; color: var(--muted); }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}
.status-pill.complete {
  border-color: rgba(52,211,153,.28);
  background: rgba(52,211,153,.10);
  color: #bbf7d0;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.section-copy { margin: 0; color: var(--muted); line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 58px rgba(0,0,0,.2);
}
.product-card { padding: 20px; display: grid; gap: 13px; }
.product-type { color: var(--faint); font-size: 10px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.product-card h3, .session-card h3 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.price { font-size: 30px; font-weight: 950; letter-spacing: -.05em; color: var(--accent); }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .view-toggle button {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}
.view-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.view-toggle button.active { background: var(--accent); border-color: var(--accent); color: #080808; }
.schedule-grid.list { grid-template-columns: 1fr; }
.schedule-grid.week { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.schedule-grid.month { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.session-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}
.session-image {
  min-height: 190px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .65), rgba(255,255,255,.12));
  display: grid;
  place-items: center;
  color: #080808;
  font-size: 28px;
  font-weight: 950;
}
.session-image img { width: 100%; height: 100%; object-fit: cover; }
.session-body { padding: 18px; display: grid; gap: 11px; align-content: start; }
.session-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.session-type { color: var(--accent); font-size: 10px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.session-price { color: var(--accent); font-weight: 950; white-space: nowrap; }
.session-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.subtle { color: var(--faint); }
.empty, .notice { padding: 22px; border: 1px dashed rgba(255,255,255,.16); border-radius: 20px; color: var(--muted); text-align: center; }
.notice { border-style: solid; text-align: left; background: rgba(var(--accent-rgb), .08); }
.modal-root:empty { display: none; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: #f6f6f7;
  color: #18181b;
  box-shadow: 0 28px 80px rgba(0,0,0,.4);
}
.modal-head, .modal-section, .modal-actions { padding: 18px; border-bottom: 1px solid rgba(0,0,0,.08); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.modal h3 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.modal p { color: #71717a; }
.close { border: 0; background: transparent; color: #52525b; font-weight: 900; }
.field { display: grid; gap: 7px; margin-bottom: 12px; }
.field label { color: #71717a; font-size: 11px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.field input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  background: #fff;
  color: #18181b;
  padding: 13px 14px;
  outline: 0;
}
.light-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  margin-top: 10px;
}
.agreement-row {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  margin-top: 8px;
}
.signature-field {
  display: grid;
  width: 100%;
  gap: 10px;
}
.signature-field input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #f4f4f5;
  color: #18181b;
  padding: 12px 13px;
  outline: 0;
}
.modal .btn { color: #18181b; border-color: rgba(0,0,0,.12); background: #fff; }
.modal .btn.primary { background: var(--accent); border-color: var(--accent); color: #080808; }
.status { min-height: 20px; color: #71717a; font-size: 13px; font-weight: 750; }
.status.error { color: #b91c1c; }
.status.success { color: #047857; }

@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .hero-inner { min-height: 380px; padding-top: 24px; }
  .topline, .section-head, .session-top { align-items: flex-start; flex-direction: column; }
  .checkout-notice, .forms-reminder { align-items: stretch; flex-direction: column; }
  .session-card { grid-template-columns: 1fr; }
  .session-image { min-height: 210px; }
  .session-actions .btn { width: 100%; text-align: center; }
}
