:root {
  --bg: #0a0a0c; --card: #15151a; --card2: #1d1d24; --line: #2a2a33; --text: #f4f4f6; --mute: #9a9aa6;
  --acc: #c8ff3d; --acc-ink: #111; --warn: #ffb547; --bad: #ff5d5d; --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 'DM Sans', system-ui, -apple-system, sans-serif; }
button { font: inherit; color: inherit; }
#testbar { background: #3a2a00; color: var(--warn); font-size: 12px; text-align: center; padding: 6px 12px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(10,10,12,.92); backdrop-filter: blur(10px); padding: 14px 20px 10px; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.brand { grid-column: 2; text-align: center; font-weight: 700; letter-spacing: -.01em; }
.brand b { color: var(--acc); font-weight: 800; }
.back { grid-column: 1; grid-row: 1; background: none; border: 0; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.back:hover { background: var(--card); }
.progress { grid-column: 1 / -1; height: 4px; background: var(--card2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 4px; transition: width .35s ease; }
.progress.off { visibility: hidden; }

main { max-width: 520px; margin: 0 auto; padding: 16px 20px 120px; }
.screen { animation: in .28s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 12px; font-weight: 800; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 8px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 6px; }
.sub { color: var(--mute); margin: 0 0 22px; }
.acc { color: var(--acc); }
.small { font-size: 13px; color: var(--mute); }

.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; font-size: 17px; font-weight: 500; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #444452; }
.opt.on { border-color: var(--acc); background: #1b2110; }
.opt .em { font-size: 24px; width: 30px; text-align: center; }
.opt small { display: block; color: var(--mute); font-size: 13px; font-weight: 400; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.two .opt { flex-direction: column; text-align: center; padding: 26px 12px; }
.opts.two .opt .em { font-size: 44px; width: auto; }

.cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10,10,12,0), var(--bg) 35%); z-index: 4; }
.cta .in { max-width: 480px; margin: 0 auto; }
.btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 18px; font-size: 18px; font-weight: 800; background: var(--acc); color: var(--acc-ink); cursor: pointer; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .35; cursor: default; }
.btn.ghost { background: var(--card2); color: var(--text); }
.link { background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; padding: 10px; font-size: 14px; }

.hero { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #26310f 0%, #12140e 45%, var(--card) 100%); padding: 26px 22px; margin-top: 8px; }
.score-demo { display: flex; gap: 10px; margin-top: 14px; }
.score-demo div { flex: 1; background: rgba(0,0,0,.35); border-radius: 14px; padding: 12px; text-align: center; }
.score-demo b { display: block; font-size: 26px; }
.score-demo span { font-size: 12px; color: var(--mute); }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: '✓'; color: var(--acc); font-weight: 800; }
.age-check { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 14px; padding: 14px; font-size: 14px; cursor: pointer; }
.age-check input { width: 22px; height: 22px; accent-color: var(--acc); margin: 0; flex: none; }

.info { background: var(--card); border-radius: var(--radius); padding: 22px; margin-top: 10px; }
.big-num { font-size: 56px; font-weight: 800; color: var(--acc); line-height: 1; letter-spacing: -.03em; }

/* photo step */
.shot { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; background: var(--card); border: 1.5px dashed #3a3a46; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.shot svg { width: 58%; opacity: .9; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.done { border-style: solid; border-color: var(--acc); }
.shot .ok { position: absolute; top: 12px; right: 12px; background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; }
.tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tips li { background: var(--card2); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #cfcfd8; }
.steps-dots { display: flex; gap: 6px; justify-content: center; margin: 2px 0 10px; }
.steps-dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--card2); }
.steps-dots i.on { background: var(--acc); }

/* analyzing */
.scan { position: relative; width: 210px; height: 210px; margin: 30px auto 24px; border-radius: 50%; overflow: hidden; background: var(--card); }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
.scan::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, rgba(200,255,61,0), rgba(200,255,61,.45), rgba(200,255,61,0)); animation: sweep 1.6s ease-in-out infinite alternate; }
@keyframes sweep { from { top: -30%; } to { top: 100%; } }
.checks { list-style: none; padding: 0; margin: 0 auto; max-width: 340px; display: grid; gap: 12px; }
.checks li { display: flex; justify-content: space-between; color: var(--mute); }
.checks li.done { color: var(--text); }
.checks li.done::after { content: '✓'; color: var(--acc); font-weight: 800; }
.checks li.run::after { content: ''; width: 14px; height: 14px; border: 2px solid var(--acc); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { background: #2a1414; border: 1px solid #5a2323; color: #ffc9c9; border-radius: 14px; padding: 14px; margin: 14px 0; }

/* paywall */
.locked { background: var(--card); border-radius: 24px; padding: 22px; position: relative; overflow: hidden; }
.locked .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.locked .row:last-child { border: 0; }
.blur { filter: blur(7px); user-select: none; }
.bar { height: 8px; width: 120px; background: var(--card2); border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); border-radius: 8px; }
.overall-locked { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acc) var(--p, 60%), var(--card2) 0); flex: none; }
.ring > div { width: 78px; height: 78px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.lock-badge { position: absolute; top: 16px; right: 16px; background: var(--card2); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.plans { display: grid; gap: 10px; margin: 20px 0 8px; }
.plan { position: relative; display: flex; align-items: center; gap: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; text-align: left; width: 100%; }
.plan.on { border-color: var(--acc); background: #1b2110; }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #55555f; flex: none; }
.plan.on .dot { border: 7px solid var(--acc); }
.plan .nm { flex: 1; }
.plan .nm b { display: block; font-size: 17px; }
.plan .nm span { font-size: 13px; color: var(--mute); }
.plan .pd { text-align: right; }
.plan .pd b { display: block; font-size: 20px; }
.plan .pd span { font-size: 12px; color: var(--mute); }
.plan .tag { position: absolute; top: -10px; left: 16px; background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; letter-spacing: .03em; }
.terms { font-size: 12px; color: var(--mute); text-align: center; margin: 12px 0 0; }
.guar { display: flex; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px; margin-top: 14px; font-size: 14px; }

/* results */
.res-hero { text-align: center; background: radial-gradient(120% 90% at 50% 0%, #26310f 0%, var(--card) 70%); border-radius: 24px; padding: 26px 20px; }
.res-hero .ring { width: 150px; height: 150px; margin: 6px auto 14px; }
.res-hero .ring > div { width: 124px; height: 124px; font-size: 48px; flex-direction: column; }
.res-hero .ring small { font-size: 12px; color: var(--mute); font-weight: 500; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pills span { background: rgba(0,0,0,.35); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.sec { margin-top: 26px; }
.sec > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 10px; }
.metric { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.metric .t { display: flex; justify-content: space-between; font-weight: 700; }
.metric .bar { width: 100%; margin: 8px 0 6px; }
.metric p { margin: 0; font-size: 14px; color: var(--mute); }
.fix { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.fix .t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fix .imp { color: var(--acc); font-weight: 800; white-space: nowrap; }
.fix p { margin: 6px 0 0; font-size: 14px; }
.fix .why { color: var(--mute); }
.card { background: var(--card); border-radius: 16px; padding: 16px; }
.week { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.week:last-child { border: 0; }
.week b { color: var(--acc); flex: none; width: 62px; }

@media (min-width: 900px) {
  h1 { font-size: 42px; }
  main { padding-top: 32px; }
}

/* ---------- v2 motion + imagery ---------- */
.ic { width: 24px; height: 24px; flex: none; }
.ic.sm { width: 18px; height: 18px; vertical-align: -3px; }
.ic.xs { width: 14px; height: 14px; vertical-align: -2px; }
.opt .em { color: var(--acc); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #20250f; }
.opt.on .em { background: var(--acc); color: var(--acc-ink); }
.opts.two .opt { padding: 0 0 16px; overflow: hidden; gap: 12px; }
.opts.two .gimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .4s ease; }
.opts.two .opt:hover .gimg { transform: scale(1.03); }
.opts.two .opt.on .gimg { filter: saturate(1.1); }

.intro .film { position: relative; margin: 4px -4px 0; border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 13; background: #111; box-shadow: 0 30px 80px -30px rgba(200,255,61,.25); }
.intro .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.intro .film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 90%, var(--bg) 100%); pointer-events: none; }
.intro h1 { margin-top: 22px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--card); animation: in .4s ease both; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.8)); }
.gallery b { display: block; font-size: 15px; }
.gallery span { font-size: 12px; color: #c9c9d2; }
.note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }

.shot .example { opacity: .5; filter: grayscale(.35); }
.shot .ex-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); border-radius: 999px; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #ddd; }
.shot .frame-guide { position: absolute; inset: 14% 22% 30%; border: 2px dashed rgba(200,255,61,.8); border-radius: 46%; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); border-color: rgba(200,255,61,.35); } }
.shot .tap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(10,10,12,.78); border: 1px solid #333; border-radius: 999px; padding: 10px 16px; white-space: nowrap; color: var(--acc); }
.shot .tap b { color: var(--text); font-size: 15px; }
.shot .ok { display: flex; gap: 6px; align-items: center; }

.scanbox { position: relative; width: 240px; aspect-ratio: 3 / 4; margin: 18px auto 22px; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px #2a2a33, 0 24px 60px -20px rgba(200,255,61,.35); }
.scanbox img, .scanbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanbox img { filter: grayscale(.2) contrast(1.05); }
.scanbox .beam { position: absolute; left: 0; right: 0; height: 32%; background: linear-gradient(180deg, rgba(200,255,61,0), rgba(200,255,61,.32) 85%, rgba(200,255,61,.9) 99%, rgba(200,255,61,0)); mix-blend-mode: screen; animation: sweep 1.8s ease-in-out infinite alternate; }

.ring { position: relative; }
.ring .avatar { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 50%; object-fit: cover; filter: blur(2px) brightness(.55); }
.ring .avatar + .blur { position: relative; background: none; }
.res-thumb { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--acc); margin: 0 auto 10px; display: block; animation: in .5s ease both; }
.ring.big { width: 170px; height: 170px; }
.ring.big > div { width: 142px; height: 142px; font-size: 52px; flex-direction: column; font-variant-numeric: tabular-nums; }
.btn.share { width: auto; display: inline-flex; gap: 8px; align-items: center; padding: 12px 20px; font-size: 15px; margin-top: 16px; }
.bar i { width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.locked .bar i { transition: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.guar svg { color: var(--acc); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  body { background: radial-gradient(60% 50% at 50% 0%, #1b2110 0%, var(--bg) 70%) fixed; }
}
.shot .tap svg { width: 20px; height: 20px; opacity: 1; }
@media (min-width: 900px) { .top { background: transparent; backdrop-filter: none; } }
