:root {
  --bg: #0e0f13;
  --surface: #171920;
  --surface-2: #1f222b;
  --line: #2a2e39;
  --text: #f2f3f5;
  --muted: #9aa0ad;
  --accent: #8b7cff;
  --accent-ink: #0e0f13;
  --ok: #3ecf8e;
  --warn: #ff6b6b;
  --radius: 14px;
  color-scheme: dark;
}

[data-product="run"] { --accent: #3ecf8e; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .15s;
}
body.ready { opacity: 1; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand { font-weight: 700; letter-spacing: -.01em; }
.brand span { color: var(--accent); }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  max-width: 100%;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 8px 0 12px;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 4px 0 12px;
}
h1:focus, h2:focus { outline: none; }

p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

main { flex: 1; }
section[hidden] { display: none !important; }

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:disabled { opacity: .6; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}
.btn + .btn { margin-top: 10px; }

.actions { margin-top: 24px; }

.options { display: grid; gap: 10px; margin: 16px 0 0; }
.option {
  display: block;
  width: 100%;
  text-align: start;
  padding: 16px;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.option:hover, .option:focus-visible { border-color: var(--accent); outline: none; }
.option small { display: block; color: var(--muted); margin-top: 2px; }

.progress {
  height: 4px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .2s;
}
.step-count { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 10px; }

.stories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 16px -20px 8px;
  padding: 0 20px 8px;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 46%;
  aspect-ratio: 9 / 14;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #2b2463, #121226 70%);
  border: 1px solid #3a3380;
}
.story:nth-child(2) { background: linear-gradient(160deg, #123d3a, #0f1a1c 70%); border-color: #1d5c56; }
.story:nth-child(3) { background: linear-gradient(160deg, #4a2340, #170f17 70%); border-color: #6b3260; }
.story:nth-child(4) { background: linear-gradient(160deg, #3d3412, #17150c 70%); border-color: #5e511d; }
.story .k { font-size: 11px; color: #c9c6ff; text-transform: uppercase; letter-spacing: .06em; }
.story .v { font-size: clamp(22px, 7vw, 30px); white-space: nowrap; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.story .d { font-size: 13px; line-height: 1.35; margin-top: 4px; color: #d8d6f0; }
.story .tag { font-size: 11px; color: #aaa6d6; }

ol.howto { padding-inline-start: 20px; margin: 12px 0; }
ol.howto li { margin-bottom: 8px; }

.price {
  text-align: center;
  padding: 24px 16px;
}
.price .amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); }
.price .note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.plan-choice { display: grid; gap: 10px; margin-top: 12px; }
.plan-choice label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.plan-choice input { accent-color: var(--accent); width: 20px; height: 20px; margin: 0; }
.plan-choice label:has(input:checked) { border-color: var(--accent); }
.plan-choice .pp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

ul.ticks { list-style: none; padding: 0; margin: 16px 0; }
ul.ticks li { padding-inline-start: 26px; position: relative; margin-bottom: 8px; }
ul.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }

.week { display: grid; gap: 8px; margin-top: 12px; }
.session {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.session .day { font-weight: 700; color: var(--accent); font-size: 14px; }
.session .what { font-weight: 600; }
.session .detail { font-size: 14px; color: var(--muted); }

form.email { margin-top: 16px; }
input[type=email] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 16px;
  font-size: 14px;
  color: var(--muted);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.consent a, footer a, .link { color: var(--text); }
.error { color: var(--warn); font-size: 14px; margin: 8px 0 0; }

.done { text-align: center; padding-top: 40px; }
.done .icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 32px; font-weight: 800;
}

.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 10px;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.lang-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
  font: inherit;
  font-size: 13px;
}

.hub-list { display: grid; gap: 12px; margin-top: 20px; }
.hub-list a { text-decoration: none; color: inherit; display: block; }
.hub-list .card:hover { border-color: var(--accent); }

.legal h2 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { color: #d3d6dd; font-size: 15px; }

fieldset.plan-choice { border: 0; padding: 0; margin: 12px 0 0; min-width: 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; }
:is(:lang(th), :lang(ar), :lang(hi), :lang(ja), :lang(zh), :lang(ko)) .story .k { letter-spacing: 0; }
.story .v { direction: ltr; unicode-bidi: isolate; text-align: start; }
