:root {
  --bg: #000000;
  --surface: #121212;
  --surface-raised: #1e1e1e;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --accent: #e8701c;
  --on-accent: #000000;
  --fur: #f07a2a;
  --radius: 16px;
  --max: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--surface-raised);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--text-secondary); }
nav.site a[aria-current="page"], nav.site a:hover { color: var(--text); text-decoration: none; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { color: var(--text-secondary); font-size: 19px; margin: 0 0 24px; }
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.badge:hover { text-decoration: none; }
.badge.muted { background: var(--surface-raised); color: var(--text-secondary); }

/* Presale (pre-launch plan §3) */
.presale { max-width: 460px; margin: 0 0 28px; padding: 20px 22px 22px; border-radius: 20px;
  background: var(--surface); border: 1px solid rgba(232, 112, 28, 0.45); box-shadow: 0 20px 60px rgba(232, 112, 28, 0.10); }
.presale-price { margin: 0 0 12px; font-size: 18px; color: var(--text-secondary); }
.presale-price strong { font-size: 40px; line-height: 1; color: var(--text); letter-spacing: -0.02em; margin-right: 4px; }
.presale-price s { color: var(--text-tertiary); font-size: 15px; margin-left: 6px; white-space: nowrap; }
.presale-points { margin: 0 0 18px; padding: 0; list-style: none; font-size: 15px; }
.presale-points li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.presale-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.presale-points .zh { display: block; color: var(--text-tertiary); font-size: 13px; }
.presale-cta { display: block; text-align: center; font-size: 17px; padding: 14px 22px; }
.presale .waitlist-note { margin-left: 0; }

/* Waitlist */
.waitlist { max-width: 460px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.eyebrow .zh { color: var(--text-tertiary); font-weight: 400; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 112, 28, 0.18); }
.waitlist-field {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--surface-raised);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.waitlist-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 112, 28, 0.15); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; padding: 10px 14px; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 16px;
}
.waitlist input[type="email"]::placeholder { color: var(--text-tertiary); }
.waitlist button {
  flex: none; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 700;
  transition: transform 0.1s, filter 0.15s;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:active { transform: scale(0.97); }
.waitlist button:disabled { opacity: 0.6; cursor: progress; }
.waitlist-note { margin: 12px 0 0 16px; color: var(--text-tertiary); font-size: 13px; }
.waitlist-note a { color: var(--text-secondary); text-decoration: underline; }
.waitlist-note.success { color: var(--accent); font-size: 15px; font-weight: 600; }
.waitlist-note.error { color: #ff6b6b; font-size: 15px; }

/* iPhone mockup */
.phone {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622;
  padding: 10px; border-radius: 44px; background: #1a1a1a;
  box-shadow: 0 0 0 2px #3a3a3a, 0 30px 80px rgba(232, 112, 28, 0.12);
}
.phone::before {
  content: ""; position: absolute; z-index: 1; top: 22px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 999px; background: #000;
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--bg); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 24px 0 48px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.card .zh { display: block; margin-top: 6px; color: var(--text-tertiary); font-size: 14px; }

/* Legal / content pages */
main.doc { padding: 40px 0 56px; }
main.doc h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -0.01em; }
main.doc .updated { color: var(--text-tertiary); font-size: 14px; margin: 0 0 28px; }
main.doc h2 { font-size: 21px; margin: 36px 0 8px; }
main.doc h3 { font-size: 17px; margin: 22px 0 6px; }
main.doc p, main.doc li { color: var(--text-secondary); }
main.doc strong { color: var(--text); }
main.doc ul, main.doc ol { padding-left: 22px; }
.callout { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; margin: 20px 0; }
.callout p { margin: 0; }
.todo { background: #3a2a00; color: #ffcf5a; border-radius: 4px; padding: 0 4px; font-weight: 600; }
details { background: var(--surface); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 10px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--surface-raised); padding: 28px 0 40px; color: var(--text-tertiary); font-size: 14px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
footer.site .links a { color: var(--text-secondary); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .phone { width: min(280px, 78vw); margin: 0 auto; }
}

@media (max-width: 480px) {
  .waitlist button { padding: 12px 16px; }
  .eyebrow .zh { display: none; }
  nav.site { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
}

/* Web subscribe page */
main.subscribe { max-width: 520px; padding-top: 40px; padding-bottom: 56px; }
main.subscribe h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.12; margin: 0 0 8px; letter-spacing: -0.02em; }
main.subscribe h1 em { font-style: normal; color: var(--accent); }
main.subscribe .lede { color: var(--text-tertiary); margin: 0 0 24px; }
main.subscribe h2 { font-size: 21px; margin: 32px 0 8px; }
main.subscribe .zh { display: block; color: var(--text-tertiary); font-size: 14px; }
.perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.perks li { background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.offer { background: var(--surface-raised); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.offer-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.offer-note { margin: 0 0 16px; color: var(--text-secondary); }
.fine { color: var(--text-tertiary); font-size: 13px; margin: 12px 0 0; }
.steps { color: var(--text-secondary); padding-left: 22px; }

/* Unlock pages after a web purchase (/welcome, /open) */
main.unlock { max-width: 520px; }
main.unlock .steps li { margin: 0 0 12px; }
main.unlock .steps strong { color: var(--text); }
main.unlock .cta { display: block; text-align: center; margin: 20px 0 12px; }
main.unlock .secondary { display: block; text-align: center; padding: 10px 0; color: var(--text-secondary); }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0;
  background: var(--surface-raised); color: var(--text); border-radius: 999px; padding: 10px 18px;
  font-size: 15px; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Subscribe: plan cards, "More plans", the free-trial switch and the trial timeline */
.notice { background: #3a2a00; color: #ffcf5a; border-radius: 12px; padding: 12px 16px; }
.plans { display: grid; gap: 12px; margin: 0 0 24px; }
.plan {
  position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--surface-raised); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer;
}
.plan:has(input:checked) { background: var(--surface-raised); border: 2px solid var(--accent); padding: 17px 15px; }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-tertiary); }
.plan:has(input:checked) .radio { border: 7px solid var(--accent); }
.plan-name strong { display: block; font-size: 18px; }
.plan-name .caption { color: var(--text-secondary); font-size: 14px; }
.plan-price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.pills { position: absolute; top: -12px; right: 16px; display: flex; gap: 6px; }
.pill { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.more-plans { background: none; padding: 0; margin: 0; }
.more-plans summary { color: var(--text-secondary); font-size: 15px; text-align: center; padding: 6px 0; list-style: none; }
.more-plans summary::-webkit-details-marker { display: none; }
.more-plans summary::after { content: " ⌄"; }
.more-plans[open] summary { display: none; }
.trial-toggle {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font-weight: 600;
}
.trial-toggle .zh { font-weight: 400; }
.trial-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.trial-toggle .switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); transition: background 0.25s; }
.trial-toggle .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; transition: transform 0.25s cubic-bezier(.3, .7, .3, 1.2);
}
.trial-toggle input:checked + .switch { background: var(--accent); }
.trial-toggle input:checked + .switch::after { transform: translateX(20px); }
.trial-toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plans .cta { display: block; width: 100%; border: 0; font-size: 17px; padding: 16px; cursor: pointer; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .trial-toggle .switch, .trial-toggle .switch::after { transition: none; } }
main.unlock .sent { background: var(--surface); border-radius: 12px; padding: 14px 16px; color: var(--text-secondary); margin: 20px 0 0; }
main.unlock .sent strong { color: var(--text); word-break: break-all; }

/* Web funnel quiz (/start): one question per screen, button pinned to the bottom like an app */
.quiz-body { min-height: 100dvh; }
.quiz {
  display: flex; flex-direction: column; max-width: 520px; min-height: 100dvh; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.quiz-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; height: 44px; }
.quiz-back, .quiz-script {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--text-secondary); font: inherit; font-size: 28px; line-height: 1;
}
.quiz-back[hidden] { display: block; visibility: hidden; }
.quiz-script { font-size: 15px; font-weight: 600; background: var(--surface); }
.quiz-progress { height: 6px; border-radius: 999px; background: var(--surface-raised); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.35s cubic-bezier(.2, .8, .2, 1); }
.quiz-screen { flex: 1; padding: 28px 0 16px; }
.quiz-screen h1 { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; outline: none; }
.quiz-screen .zh { display: block; color: var(--text-tertiary); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.quiz-screen h1 .zh { font-size: 17px; margin-top: 4px; }
.quiz-hint { color: var(--text-secondary); margin: 0 0 16px; font-size: 15px; }
.quiz-hint .zh { display: inline; margin-left: 6px; }
.quiz-lede { color: var(--text-secondary); font-size: 18px; margin: 12px 0 0; }
.quiz-options { display: grid; gap: 10px; margin-top: 20px; }
.quiz-option {
  position: relative; display: block; width: 100%; text-align: left; padding: 15px 16px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--surface-raised); border-radius: var(--radius);
  font: inherit; font-weight: 600; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option[aria-checked="true"] { background: var(--surface-raised); border: 2px solid var(--accent); padding: 14px 39px 14px 15px; }
.quiz-option[aria-checked="true"]::after { content: "✓"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.quiz-option:focus-visible, .quiz-back:focus-visible, .quiz-script:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The button stays on screen however long the page gets, with the content fading out under it. */
.quiz-bottom { position: sticky; bottom: 0; padding: 24px 0 max(0px, env(safe-area-inset-bottom)); margin-bottom: calc(-1 * max(16px, env(safe-area-inset-bottom))); padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 24px); }
.quiz-bottom:empty { display: none; }
.quiz-bottom .quiz-cta { display: block; width: 100%; border: 0; padding: 16px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.quiz-bottom .quiz-cta:disabled { opacity: 0.35; cursor: default; }
.quiz-start { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.quiz-mascot { width: min(220px, 56vw); margin: 0 auto 20px; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.quiz-start .quiz-mascot { animation: quiz-breathe 3.6s ease-in-out infinite; transform-origin: bottom center; }
@keyframes quiz-breathe { 50% { transform: scaleY(1.025); } }
.quiz-phone { width: min(230px, 60vw, 24dvh); margin: 20px auto 8px; padding: 6px; border-radius: 30px; }
.quiz-phone video { border-radius: 24px; }
.quiz-phone::before { top: 14px; height: 14px; }
.quiz-chips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 12px 0 4px; }
.quiz-plan-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.quiz-plan-list li { position: relative; background: var(--surface); border-radius: 12px; padding: 14px 16px 14px 44px; }
.quiz-plan-list li::before { content: "✓"; position: absolute; left: 16px; top: 14px; color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .quiz-start .quiz-mascot { animation: none; }
  .quiz-progress span, .quiz-option { transition: none; }
}

/* "Tap for sound" on the demo video */
.sound-toggle {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, 0.72); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.sound-toggle[aria-pressed="false"] { animation: sound-nudge 2.4s ease-in-out infinite; }
.sound-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes sound-nudge { 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(232, 112, 28, 0.35); } }
@media (prefers-reduced-motion: reduce) { .sound-toggle[aria-pressed="false"] { animation: none; } }


/* /subscribe step 1: how the free trial works, full screen, rows landing one by one */
.trial-screen {
  display: flex; flex-direction: column; max-width: 520px; min-height: 100dvh; margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.trial-screen[hidden] { display: none; }
.trial-screen h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.trial-screen .zh { display: block; color: var(--text-tertiary); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.trial-screen h1 .zh { font-size: 17px; margin-top: 4px; }
.trial-screen .lede { color: var(--text-secondary); margin: 0; }
.trial-screen .trial { flex: 1; align-content: start; }
.trial-continue { display: block; width: 100%; border: 0; padding: 16px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }

/* Step 1 is a screen of its own, like an app: no site header or footer around it. */
body:has(.trial-screen:not([hidden])) header.site,
body:has(.trial-screen:not([hidden])) footer.site { display: none; }

/* "How your free trial works" timeline, ported from Stock AI's web funnel: each step's node pops,
   its text rises in, then the line to the next step draws down. Replayed by adding .play. */
.trial { list-style: none; padding: 0; margin: 28px 0 0; display: grid; }
.trial li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 34px; }
.trial li:last-child { padding-bottom: 0; }
.trial li:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 54px; bottom: 6px; width: 2px; border-radius: 1px;
  background: linear-gradient(var(--accent), rgba(255, 255, 255, 0.12));
  transform-origin: top;
}
.trial .node {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
}
.trial li:first-child .node { background: var(--accent); border-color: transparent; box-shadow: 0 0 24px rgba(232, 112, 28, 0.4); }
.trial svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trial li:first-child svg { stroke: var(--on-accent); }
.trial b { display: block; font-size: 18px; margin: 2px 0 4px; color: var(--text); }
.trial b .zh { display: inline; margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--text-tertiary); }
.trial li > div > span { color: var(--text-secondary); font-size: 15px; line-height: 1.45; }
.trial li > div > span .zh { display: block; margin-top: 4px; font-size: 14px; color: var(--text-tertiary); }

.trial.play .node { animation: node-in 0.45s cubic-bezier(.2, .9, .25, 1.3) both; }
.trial.play li > div { animation: trial-row-in 0.6s cubic-bezier(.2, .9, .25, 1.1) both; }
.trial.play li::after { animation: line-in 0.5s ease-out both; }
.trial.play li:nth-child(1) .node { animation-delay: 0.1s; }
.trial.play li:nth-child(1) > div { animation-delay: 0.2s; }
.trial.play li:nth-child(1)::after { animation-delay: 0.5s; }
.trial.play li:nth-child(2) .node { animation-delay: 0.9s; }
.trial.play li:nth-child(2) > div { animation-delay: 1s; }
.trial.play li:nth-child(2)::after { animation-delay: 1.3s; }
.trial.play li:nth-child(3) .node { animation-delay: 1.7s; }
.trial.play li:nth-child(3) > div { animation-delay: 1.8s; }
@keyframes node-in { from { opacity: 0; transform: scale(0.4); } }
@keyframes trial-row-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes line-in { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .trial.play .node, .trial.play li > div, .trial.play li::after { animation: none; } }
/* Short screens (iPhone SE): tighter steps so Continue stays on screen. */
@media (max-height: 620px) {
  .trial { margin-top: 12px; }
  .trial li { padding-bottom: 10px; gap: 14px; }
  .trial li > div > span { font-size: 14px; line-height: 1.4; }
}

main.subscribe .fine .zh { display: inline; margin-left: 4px; font-size: 13px; }

/* /subscribe: ✕ on the plans step, and the one-time welcome offer screen it (or Back) leads to */
main.subscribe { position: relative; }
.close-plans {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--text-secondary); font: inherit; font-size: 17px; cursor: pointer;
}
.close-plans:focus-visible, .offer-copy:focus-visible, .offer-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-screen {
  display: flex; flex-direction: column; max-width: 520px; min-height: 100dvh; margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.offer-screen[hidden] { display: none; }
.offer-screen .zh { display: block; color: var(--text-tertiary); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.offer-eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.offer-screen h1 { font-size: clamp(32px, 8vw, 42px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em; }
.offer-screen h1 em { font-style: normal; color: var(--accent); }
.offer-screen h1 .zh { font-size: 17px; margin-top: 6px; }
.offer-price { font-size: 22px; margin: 0; }
.offer-price s { color: var(--text-tertiary); }
.offer-price strong { font-size: 28px; }
.offer-then { color: var(--text-secondary); margin: 0 0 24px; }
.offer-code {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  background: var(--surface-raised); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 14px 16px;
}
.offer-code-label { grid-column: 1 / -1; color: var(--text-secondary); font-size: 14px; }
.offer-code-label .zh { display: inline; margin-left: 6px; font-size: 14px; }
.offer-code code { font: 700 24px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; }
.offer-copy {
  border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.offer-steps { color: var(--text-secondary); padding-left: 22px; margin: 20px 0 0; flex: 1; }
.offer-steps li { margin: 0 0 10px; }
.offer-steps b { color: var(--text); }
.offer-steps .zh { font-size: 14px; }
.offer-actions .cta { display: block; text-align: center; padding: 16px; font-size: 17px; }
.offer-skip {
  display: block; width: 100%; border: 0; background: none; color: var(--text-secondary);
  font: inherit; font-size: 15px; padding: 12px 0 0; cursor: pointer;
}
body:has(.offer-screen:not([hidden])) header.site,
body:has(.offer-screen:not([hidden])) footer.site { display: none; }
main.subscribe h1 { padding-right: 52px; }

/* Chinese switch (assets/lang.js): Chinese lines show only when it's on */
html:not(.zh-on) .zh, html:not(.zh-on) .quiz-script { display: none !important; }
header.site .wrap { gap: 14px; }
header.site nav.site { margin-left: auto; }
.zh-switch {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
  border-radius: 999px; border: 1.5px solid var(--accent); background: rgba(232, 112, 28, 0.12);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.zh-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zh-switch-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-raised); transition: background 0.15s; }
.zh-switch-track span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.zh-switch[aria-checked="true"] .zh-switch-track { background: var(--accent); }
.zh-switch[aria-checked="true"] .zh-switch-track span { transform: translateX(14px); }
.zh-switch.floating { position: fixed; top: 12px; right: 16px; z-index: 10; }
.quiz-top { grid-template-columns: 44px 1fr auto auto; }
.quiz-top .zh-switch { margin-left: 0; }
@media (max-width: 480px) {
  nav.site { gap: 12px; font-size: 14px; }
  .zh-switch { font-size: 14px; padding: 5px 6px 5px 10px; gap: 6px; }
  .zh-switch-track { width: 30px; height: 18px; }
  .zh-switch-track span { width: 14px; height: 14px; }
  .zh-switch[aria-checked="true"] .zh-switch-track span { transform: translateX(12px); }
}
