:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #17191f;
  --surface-raised: #20232b;
  --line: #353943;
  --text: #f5f5f2;
  --muted: #b7bac2;
  --gold: #e1b35e;
  --orange: #f0803f;
  --shadow: 0 26px 70px rgb(0 0 0 / 38%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgb(225 179 94 / 11%), transparent 36rem),
    radial-gradient(circle at 90% 80%, rgb(240 128 63 / 7%), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, summary, a { -webkit-tap-highlight-color: transparent; }

button, a { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--gold);
  color: #171208;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 18px;
  letter-spacing: .16em;
  text-decoration: none;
}

.brand img { width: 48px; height: 48px; object-fit: contain; }

.open-app {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }

.hero { padding: 62px 0 42px; }

.eyebrow, .section-heading p, .lesson-name {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1, h2 { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: .01em; }

h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(46px, 9vw, 88px); line-height: .98; }

.lede { max-width: 580px; margin: 0; color: var(--muted); font-size: clamp(20px, 3vw, 24px); }

.growth-note {
  margin: 12px 0 0;
  color: var(--gold);
  font-weight: 700;
}

.release-note {
  max-width: 680px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: rgb(242 126 43 / 10%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); }
.upcoming-heading { margin-top: 36px; }

.lesson-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.lesson-button {
  display: grid;
  min-height: 92px;
  padding: 20px;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.lesson-button:hover { border-color: var(--gold); background: var(--surface-raised); }
.lesson-button:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.lesson-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgb(225 179 94 / 30%);
  border-radius: 13px;
  background: rgb(225 179 94 / 10%);
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 21px;
}

.lesson-copy strong { display: block; font-size: 19px; line-height: 1.3; }
.lesson-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.lesson-arrow { color: var(--gold); font-size: 28px; }

.lesson-button-upcoming {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  cursor: default;
  opacity: .72;
}

.upcoming-badge {
  border: 1px solid rgb(225 179 94 / 45%);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.future-section { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgb(23 25 31 / 68%); }
.future-section summary { min-height: 64px; padding: 17px 20px; cursor: pointer; font-weight: 800; }
.future-section summary span { float: right; color: var(--muted); font-size: 14px; font-weight: 600; }
.future-section p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 17px; }
.grouped-lesson-list { padding: 0 20px 20px; }
.guide-group[open] summary { color: var(--gold); }

.lesson-view { padding-top: 26px; }
.back-button { min-height: 52px; margin-bottom: 24px; padding: 11px 2px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.lesson-layout { display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); gap: clamp(28px, 6vw, 70px); align-items: center; }

.phone-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 390px);
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  border: 9px solid #252830;
  border-radius: 46px;
  background: #08090b;
  box-shadow: var(--shadow);
}

.phone-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hotspots { position: absolute; inset: 0; }
.hotspot { position: absolute; pointer-events: none; }
.focus-ring {
  position: absolute;
  z-index: 3;
  opacity: 0;
  border: 4px solid var(--orange);
  border-radius: 14px;
  box-shadow: 0 0 0 7px rgb(240 128 63 / 18%);
  pointer-events: none;
  transition: opacity .2s ease;
  animation: pulse 2s ease-in-out infinite;
}

.focus-ring-moving { transition: none; }

.image-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; background: linear-gradient(145deg, #17191f, #0b0c0f); color: var(--gold); font-weight: 800; }
.image-placeholder[hidden] { display: none; }

.step-card { padding: 8px 0; }
.step-count { margin: 0 0 14px; color: var(--orange); font-size: 17px; font-weight: 800; }
.step-card h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; }
.step-body { max-width: 34ch; margin: 0 0 20px; color: #d7d9de; font-size: clamp(20px, 2.5vw, 24px); }
.step-tip { max-width: 36rem; margin: 0 0 24px; padding: 17px 19px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--surface); color: #d7d9de; font-size: 17px; }

.variant-picker { display: flex; margin: 0 0 24px; gap: 9px; flex-wrap: wrap; }
.variant-picker button { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; font-size: 16px; font-weight: 800; }
.variant-picker button[aria-pressed="true"] { border-color: var(--gold); background: rgb(225 179 94 / 14%); color: var(--gold); }

.step-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.step-actions button { min-height: 58px; padding: 14px 27px; border-radius: 13px; cursor: pointer; font-size: 18px; font-weight: 800; }
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #171208; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.step-actions button:disabled { opacity: .35; cursor: default; }

footer { max-width: 760px; margin: 0 auto; padding: 28px 20px 54px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 16px; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 13px rgb(240 128 63 / 5%); }
}

@media (max-width: 760px) {
  body { font-size: 20px; }
  .site-header { padding: 14px 16px; }
  .brand span { display: none; }
  .open-app { font-size: 15px; }
  main { padding-inline: 16px; }
  .hero { padding-top: 42px; }
  .lesson-list { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; align-items: start; }
  .visual-column { order: 2; }
  .step-card { order: 1; }
  .phone-frame { width: min(88vw, 350px); }
  .step-body { max-width: none; }
  .step-actions { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 20%); }
  .step-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .focus-ring { animation: none; transition: none; }
}
