:root {
  color-scheme: dark;
  --night: #100d0c;
  --surface: #171110;
  --surface-raised: #211613;
  --ember: #e2350a;
  --ember-deep: #c92e0c;
  --white: #f8f5f0;
  --ink: #f8f5f0;
  --body: #d5c9c2;
  --muted: #ab9a92;
  --line: #58433b;
  font-family: "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100dvh; margin: 0; display: flex; justify-content: center; background: #080706; color: var(--ink); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid #ffb198; outline-offset: 3px; }
[hidden] { display: none !important; }
.app { width: min(100%, 440px); height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--night); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.masthead { position: sticky; top: 0; z-index: 10; min-height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #100d0cf2; border-bottom: 1px solid #604138; backdrop-filter: blur(12px); }
.wordmark { min-height: 48px; display: inline-flex; align-items: center; color: var(--white); font-size: 16px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.wordmark::before { content: ""; width: 5px; height: 17px; margin-right: 9px; background: var(--ember); }
.age-note { color: #c7b8b0; font-size: 11px; white-space: nowrap; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 500px; padding: 60px 25px 25px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(ellipse 89% 57% at 75% 36%, #82301f 0%, #442017 41%, transparent 78%), linear-gradient(155deg, #100d0c 8%, #301913 67%, #9b260e 130%); }
.hero::before { content: ""; position: absolute; z-index: -1; top: 19px; left: 50%; width: 330px; height: 330px; border: 1px solid #e2350a40; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 37px #e2350a0d, 0 0 0 75px #e2350a0a; }
.hero::after { content: ""; position: absolute; z-index: -1; top: 86px; left: calc(50% - 119px); width: 14px; height: 14px; background: var(--ember); transform: rotate(45deg); }
.hero-leaf { display: none; }
.intro-line { display: flex; align-items: center; gap: 10px; color: #f3d4c8; font-size: 11px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.intro-line::before, .intro-line::after { content: ""; width: 20px; height: 1px; background: var(--ember); }
.hero h1 { max-width: 390px; margin: 50px 0 19px; color: var(--white); font-size: clamp(35px, 9.6vw, 44px); font-weight: 800; line-height: 1.34; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 em { color: var(--white); font-style: normal; }
.hero p { max-width: 338px; margin: 0 auto; color: #f0dfd7; font-size: 15px; line-height: 1.75; }
.hero-actions { width: 100%; margin-top: 26px; }
.hero-foot { width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid #d883674d; color: #eac9ba; font-size: 11px; line-height: 1.6; letter-spacing: .06em; }
.button-primary, .button-outline { position: relative; min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 3px; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
a.button-primary, a.button-outline { width: 100%; }
.button-primary span, .button-outline span { font-size: 20px; font-weight: 400; line-height: 1; }
.button-primary { border: 1px solid var(--ember-deep); color: #fff; background: var(--ember-deep); }
.button-primary:hover { border-color: #f14923; background: #f14923; }
.button-outline { border: 1px solid #de9680; color: var(--white); background: transparent; }
.button-outline:hover { border-color: var(--white); background: #ffffff12; }
.button-primary:active, .button-outline:active { filter: brightness(.86); }
.hero .button-primary { width: 100%; }

.course-feature { padding: 26px 22px 34px; background: var(--night); }
.course-card { position: relative; overflow: hidden; padding: 30px 24px 24px; border: 1px solid #704232; background: linear-gradient(145deg, #291914, #1a1210 71%); }
.course-card::after { content: ""; position: absolute; top: -65px; right: -67px; width: 175px; height: 175px; border: 1px solid #a9472d70; border-radius: 50%; box-shadow: 0 0 0 23px #ba36151a, 0 0 0 51px #ba36150d; pointer-events: none; }
.course-card-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #ff9775; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.course-card-top::before { content: ""; width: 22px; height: 2px; background: var(--ember); }
.course-card h2 { position: relative; z-index: 1; max-width: 260px; margin: 35px 0 12px; font-size: 29px; font-weight: 800; line-height: 1.34; letter-spacing: -.045em; }
.course-card p { position: relative; z-index: 1; margin: 0; color: var(--body); font-size: 15px; line-height: 1.8; }
.course-card .button-primary { margin-top: 28px; }

.section { padding: 39px 24px; }
.section-white { background: var(--surface); }
.section-paper { background: var(--night); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.38; letter-spacing: -.04em; }
.section-number { flex: none; color: #f19679; font-size: 12px; }
.section-copy, .delivery-intro { margin: 0; color: var(--body); font-size: 15px; line-height: 1.8; }
.test-invite { position: relative; overflow: hidden; border-top: 1px solid #8b3724; background: radial-gradient(circle at 100% 0%, #74301e 0, #361c16 50%, #1d1411 100%); }
.test-invite::after { content: ""; position: absolute; right: -61px; bottom: -80px; width: 200px; height: 200px; border: 1px solid #e2350a75; border-radius: 50%; pointer-events: none; }
.test-invite .section-heading { position: relative; z-index: 1; max-width: 270px; margin-bottom: 14px; }
.test-invite .section-copy, .test-invite .button-outline { position: relative; z-index: 1; }
.test-invite .button-outline { width: 100%; margin-top: 24px; }
.foot { padding: 28px 24px 32px; color: var(--muted); background: var(--night); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.legal-foot { padding: 18px 24px 24px; color: var(--muted); background: var(--night); border-top: 1px solid var(--line); text-align: center; font-size: 11px; line-height: 1.8; }
.legal-foot a { color: inherit; text-underline-offset: 3px; }
.quiet-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 5px; color: #ff9270; text-decoration: underline; text-underline-offset: 3px; }

.page-head { position: relative; overflow: hidden; padding: 32px 24px 31px; background: radial-gradient(circle at 95% -10%, #5c281c, #201512 54%, #171110 100%); border-bottom: 1px solid #763d2d; }
.page-head::after { content: ""; position: absolute; top: 7px; right: -83px; width: 230px; height: 230px; border: 1px solid #e2350a33; border-radius: 50%; pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }
.page-head .eyeline { color: #ff9d7e; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.page-head h1 { margin: 22px 0 15px; font-size: 35px; font-weight: 800; line-height: 1.33; letter-spacing: -.05em; }
.page-head p { margin: 0; color: #ead8cf; font-size: 15px; line-height: 1.8; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; margin: -5px 0 13px; color: #ffe5dc; font-size: 13px; text-decoration: none; }
.detail-facts { margin: 26px 0 0; padding: 2px 16px; border: 1px solid #704536; background: #140f0dcf; }
.fact { min-height: 49px; display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 8px; border-bottom: 1px solid #584137; font-size: 13px; line-height: 1.55; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: #b6a29a; }
.fact dd { margin: 0; color: var(--white); font-weight: 600; }

.course-catalog { padding-top: 24px; padding-bottom: 32px; background: var(--night); }
.catalog-grid { display: grid; gap: 22px; }
.track-card { overflow: hidden; border: 1px solid #674235; border-radius: 9px; background: #211613; }
.track-art { position: relative; overflow: hidden; min-height: 170px; aspect-ratio: 16 / 9; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: radial-gradient(circle at 81% 40%, #c9431e 0, #862915 33%, #321913 70%, #211411 100%); }
.track-art::after { content: ""; position: absolute; top: -88px; right: -58px; width: 270px; height: 270px; border: 1px solid #ffa5878c; border-radius: 50%; box-shadow: 0 0 0 30px #ff9b7118, 0 0 0 66px #ff9b710e; }
.track-card-basic .track-art { background: radial-gradient(circle at 78% 30%, #ae4c2b 0, #61301e 36%, #211411 100%); }
.track-card-women .track-art { background: radial-gradient(circle at 75% 23%, #9a3c22 0, #542217 39%, #1e1512 100%); }
.track-art span, .track-art b { position: relative; z-index: 1; }
.track-art span { font-size: 12px; font-weight: 700; }
.track-art b { max-width: 220px; font-size: 27px; font-weight: 800; line-height: 1.32; letter-spacing: -.05em; }
.track-body { padding: 21px 19px 22px; }
.track-body h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.track-body p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.78; }
.track-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; color: #f3c2af; font-size: 11px; }
.track-metrics span { padding: 5px 8px; border: 1px solid #81503e; border-radius: 3px; line-height: 1.3; }
.track-body .button-primary { margin-top: 20px; }
.course-structure { display: grid; }
.course-structure > div { padding: 18px 0; border-top: 1px solid var(--line); }
.course-structure > div:last-child { border-bottom: 1px solid var(--line); }
.course-structure strong { color: #ff9a78; font-size: 14px; }
.course-structure p { margin: 7px 0 0; color: var(--body); font-size: 14px; line-height: 1.75; }
.curriculum-blocks { margin-top: 22px; border-top: 1px solid var(--line); }
.curriculum-block { padding: 19px 0; border-bottom: 1px solid var(--line); }
.curriculum-block span { color: #ff9673; font-size: 12px; font-weight: 700; }
.curriculum-block h3 { margin: 8px 0; font-size: 17px; }
.curriculum-block p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.8; }
.topic-list { padding: 0; margin: 18px 0 0; list-style: none; }
.topic-list li { position: relative; padding: 14px 0 14px 20px; border-bottom: 1px solid var(--line); color: var(--body); font-size: 14px; line-height: 1.7; }
.topic-list li:first-child { border-top: 1px solid var(--line); }
.topic-list li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg); }
.curriculum-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.terms { margin-top: 18px; padding: 17px; border-left: 2px solid var(--ember); background: #2c1b15; color: var(--body); font-size: 13px; line-height: 1.75; }

.delivery-list { display: grid; gap: 0; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: delivery; }
.delivery-list li { position: relative; min-height: 69px; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); counter-increment: delivery; }
.delivery-list li:last-child { border-bottom: 1px solid var(--line); }
.delivery-list li::before { content: counter(delivery, decimal-leading-zero); position: absolute; left: 0; top: 12px; color: #ff8e6b; font-size: 17px; font-weight: 800; }
.delivery-list strong { display: block; font-size: 14px; }
.delivery-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.lesson-path { margin-top: 19px; border-top: 1px solid var(--line); }
.path-row { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.path-row .index { color: #ff9270; font-size: 16px; font-weight: 800; }
.path-row h3 { margin: 0 0 5px; font-size: 16px; }
.path-row p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.7; }
.note { margin: 0; padding-left: 14px; border-left: 2px solid var(--ember); color: var(--body); font-size: 14px; line-height: 1.75; }
.reading-list { margin-top: 20px; border-top: 1px solid var(--line); }
.reading-item { padding: 19px 0; border-bottom: 1px solid var(--line); }
.reading-item small { display: block; margin-bottom: 7px; color: #ff9673; font-size: 12px; }
.reading-item h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.5; }
.reading-item p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.7; }

.purchase-bar { min-height: 72px; padding: 10px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #73412f; background: #1b110e; }
.purchase-bar small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.purchase-bar strong { font-size: 13px; }
.purchase-bar .button-primary { min-width: 143px; padding: 0 11px; font-size: 12px; }
.bottom-nav { height: calc(69px + env(safe-area-inset-bottom)); flex: 0 0 calc(69px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #5f4033; background: #100d0c; }
.nav-link { position: relative; min-height: 69px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #a8978d; font-size: 11px; text-decoration: none; }
.nav-link[aria-current="page"] { color: #ff8d67; font-weight: 700; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 20px; height: 2px; transform: translateX(-50%); background: currentColor; }
.nav-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.checkout-summary { border: 1px solid #704536; padding: 0 16px; background: #140f0d; }
.checkout-summary > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.checkout-summary > div:last-child { border-bottom: 0; }
.checkout-summary span { flex: none; color: var(--muted); }
.checkout-summary strong { text-align: right; line-height: 1.5; }
.checkout-summary #checkout-price { color: #ff9d7e; font-size: 20px; }
.pay-methods { margin: 25px 0 0; padding: 0; border: 0; }
.pay-methods legend { margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.pay-methods label { min-height: 65px; margin-top: 9px; padding: 10px 13px; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; border: 1px solid #704536; background: #211613; }
.pay-methods label:has(input:checked) { border-color: #f36c44; background: #3a211a; }
.pay-methods input { grid-row: span 2; width: 18px; height: 18px; margin: 0; accent-color: var(--ember); }
.pay-methods span { font-size: 14px; font-weight: 700; }
.pay-methods small { grid-column: 2; color: var(--muted); font-size: 11px; }
.login-invite { margin-top: 22px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 2px solid var(--ember); background: #2b1a15; font-size: 12px; line-height: 1.6; }
.login-invite a { flex: none; color: #ff9d7e; font-weight: 800; text-underline-offset: 3px; }
.checkout-info { margin: 18px 0 0; color: var(--body); font-size: 12px; line-height: 1.7; }
.checkout-content .quiet-link { font-size: 13px; }
.terms-confirm { margin-top: 16px; padding: 13px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #704536; background: #241813; color: var(--body); font-size: 12px; line-height: 1.65; }
.terms-confirm input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ember); }
.checkout-submit { width: 100%; margin-top: 20px; }
.button-primary:disabled, .button-outline:disabled { cursor: not-allowed; border-color: #58433b; color: #a8978d; background: #3a2b26; }
.form-status { min-height: 20px; margin: 12px 0 0; color: #f5b8a4; font-size: 12px; line-height: 1.6; }
.order-created { margin-top: 24px; padding: 20px 17px; border: 1px solid #a45138; background: #2b1b16; }
.order-created h2 { margin: 0 0 9px; font-size: 19px; }
.order-created p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.order-created dl { margin: 17px 0; }
.order-created dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.order-created dt { color: var(--muted); font-size: 11px; }
.order-created dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.account-section { padding-top: 25px; padding-bottom: 25px; }
.account-card { padding: 21px 19px; border: 1px solid #704536; background: linear-gradient(145deg, #291914, #1a1210); }
.account-card strong { font-size: 18px; }
.account-card p { margin: 9px 0 16px; color: var(--body); font-size: 13px; line-height: 1.7; }
.account-card .button-primary, .account-card .button-outline { width: 100%; }
.order-list { display: grid; gap: 13px; }
.order-card { padding: 18px 16px; border: 1px solid #704536; background: #211613; }
.order-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.order-card-head strong { font-size: 16px; }
.order-state { flex: none; color: #f3b8a4; font-size: 12px; }
.order-state-paid { color: #9cdda9; }
.order-meta { margin: 10px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.order-delivery { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--white); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.order-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.order-actions .button-primary, .order-actions .button-outline { min-height: 44px; padding: 0 7px; font-size: 11px; }
.recover-form { margin-top: 18px; display: grid; gap: 9px; }
.recover-form label { margin-top: 5px; color: var(--body); font-size: 12px; }
.recover-form input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #704536; border-radius: 3px; outline: none; color: var(--white); background: #211613; font: inherit; font-size: 14px; }
.recover-form input:focus { border-color: #f36c44; }
.recover-form .button-outline { width: 100%; margin-top: 11px; }

dialog { position: fixed; inset: auto 0 0; width: min(100%, 440px); max-width: none; max-height: calc(100dvh - 16px); overflow-y: auto; margin: auto auto 0; padding: 28px 24px calc(25px + env(safe-area-inset-bottom)); border: 1px solid #814633; border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--white); background: #1f1512; }
dialog::backdrop { background: #080606d9; }
dialog h2 { margin: 0 0 12px; font-size: 23px; }
dialog p { margin: 0 0 17px; color: var(--body); font-size: 14px; line-height: 1.75; }
dialog .delivery-list { margin: 15px 0 20px; }
dialog .button-primary { width: 100%; }
@media (min-width: 600px) {
  body { align-items: center; }
  .app { height: min(900px, calc(100dvh - 48px)); border: 1px solid #5a3327; border-radius: 17px; box-shadow: 0 25px 80px #0009; }
}
@media (max-width: 360px) {
  .masthead { padding-right: 17px; padding-left: 17px; }
  .wordmark { font-size: 14px; }
  .age-note { font-size: 10px; }
  .hero { padding-right: 20px; padding-left: 20px; }
  .hero h1 { font-size: 34px; }
  .section, .page-head { padding-right: 20px; padding-left: 20px; }
  .course-feature { padding-right: 18px; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-primary, .button-outline { transition: none; }
}
