:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #f5f8ff;
  background: #080e1a;
  --muted: #aab8cf;
  --accent: #ff916f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(ellipse at 87% 2%, #172e52 0, transparent 53%), #080e1a;
}

.lesson {
  width: min(100%, 692px);
  margin-inline: auto;
  padding: clamp(32px, 8vw, 72px) clamp(20px, 6vw, 42px) calc(32px + env(safe-area-inset-bottom));
}

.lesson-header { margin-bottom: clamp(28px, 7vw, 48px); }

.lesson-kicker {
  margin: 0 0 22px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: #d3dded;
  font-size: .875rem;
  font-weight: 650;
}

h1 {
  margin: 0;
  font-size: clamp(2.05rem, 8.15vw, 3.75rem);
  font-weight: 780;
  letter-spacing: -.05em;
  line-height: 1.06;
  text-wrap: balance;
}

.offer-accent { color: var(--accent); }
.offer-accent, .offer-ending { white-space: nowrap; }

.access {
  display: grid;
  gap: 20px;
  padding: clamp(19px, 5vw, 30px);
  border: 1px solid #2a3b56;
  border-radius: 20px;
  background: #121e31;
}

.access h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.access p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lesson-video p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .875rem;
}

#lesson-countdown { color: #96c3ff; font-weight: 750; font-variant-numeric: tabular-nums; }

.lesson-video mux-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #121e31;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #7cb4ff;
  color: #0a162b;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.action:hover { background: #9dc7ff; }
.action:focus-visible { outline: 2px solid #f5f8ff; outline-offset: 4px; }

.audit {
  margin-top: clamp(24px, 6vw, 40px);
  padding: clamp(19px, 5vw, 30px);
  border: 1px solid #2a3b56;
  border-radius: 20px;
  background: #121e31;
  scroll-margin-top: 16px;
}

.audit h2 {
  margin: 0 0 8px;
  font-size: clamp(1.375rem, 5.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.audit-note, .audit-result {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.audit-progress {
  margin: 20px 0 8px;
  color: #96c3ff;
  font-size: .875rem;
  font-weight: 700;
}

.audit-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.audit-question legend { display: block; margin-bottom: 12px; padding: 0; font-weight: 750; }
.audit-options { display: grid; gap: 8px; }

.audit-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #374b67;
  border-radius: 10px;
  cursor: pointer;
}

.audit-option:has(:checked) { border-color: #7cb4ff; background: #1b3353; }
.audit-option input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: #7cb4ff; }
.audit-option:focus-within { outline: 2px solid #96c3ff; outline-offset: 1px; }
.audit-note { margin-bottom: 12px; font-size: .875rem; }
.audit-result { margin-top: 14px; }
.audit-back:disabled, .audit-question:disabled .audit-option:not(:has(:checked)) { opacity: .55; }
.audit-back:disabled, .audit-question:disabled .audit-option { cursor: wait; }

.audit-back {
  min-height: 52px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid #455c7b;
  border-radius: 12px;
  background: transparent;
  color: #f5f8ff;
  font: inherit;
  cursor: pointer;
}

.benefits { margin-top: clamp(30px, 7vw, 48px); }

.benefits h2 {
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 5.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.benefits-list {
  margin: 0;
  padding: 0 clamp(16px, 5vw, 27px);
  border: 1px solid #2a3b56;
  border-radius: 20px;
  background: #121e31;
  color: #c8d4e7;
  list-style: none;
}

.benefits-list li {
  position: relative;
  padding: 15px 0 15px 32px;
  font-size: 1rem;
  line-height: 1.5;
}

.benefits-list li + li { border-top: 1px solid #2a3b56; }

.benefits-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7cb4ff;
  content: '';
}

.benefits-list li::after {
  position: absolute;
  top: 23px;
  left: 6px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #0a162b;
  border-left: 2px solid #0a162b;
  transform: rotate(-45deg);
  content: '';
}

.benefits-list strong { color: #f5f8ff; }
