/* Scar Protocol Quiz — styles part 1: tokens, layout, chrome, questions
   Tokens mirror dev.scarprotocol.com (Playfair Display / Lato / Open Sans, #4aa3e2, #2f2e38, phase pastels) */
:root {
  --blue: #4aa3e2; --blue-d: #2f8fd3; --dark: #2f2e38; --head: #242628; --body: #6d7278; --muted: #5e6369;
  --tint: #f6fafe; --tint2: #e8f4fc; --line: rgba(5, 5, 5, .1); --ok: #05d14b;
  --p1: #e8b4af; --p2: #ffdcc4; --p3: #ceffe3; --p4: #b3d5fe; --p5: #fcd7fa;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Lato', system-ui, sans-serif; --ui: 'Open Sans', system-ui, sans-serif;
  --r: 18px; --shadow: 0 10px 30px -12px rgba(47, 46, 56, .18); --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); color: var(--body); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--head); margin: 0; line-height: 1.2; }
h1:focus, h2:focus { outline: none; }
[hidden] { display: none !important; }

/* soft background blobs that shift per section */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; transition: background 1.2s var(--ease), transform 1.6s var(--ease); }
.bg-blobs span:nth-child(1) { top: -18vmax; left: -14vmax; background: var(--p4); }
.bg-blobs span:nth-child(2) { bottom: -22vmax; right: -16vmax; background: var(--p1); }
.bg-blobs span:nth-child(3) { top: 40%; left: 60%; width: 24vmax; height: 24vmax; background: var(--p3); opacity: .25; }
body[data-section="1"] .bg-blobs span:nth-child(1) { background: var(--p2); transform: translate(6vmax, 4vmax); }
body[data-section="1"] .bg-blobs span:nth-child(2) { background: var(--p3); }
body[data-section="2"] .bg-blobs span:nth-child(1) { background: var(--p5); }
body[data-section="2"] .bg-blobs span:nth-child(2) { background: var(--p4); transform: translate(-4vmax, -4vmax); }
body[data-kind="results"] .bg-blobs { opacity: .5; }

/* chrome */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo img { height: 26px; width: auto; }
.logo-text { font-family: var(--serif); letter-spacing: .18em; color: var(--head); font-size: 15px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--dark); transition: background .2s; }
.icon-btn:hover { background: var(--tint2); }
.progress-wrap { position: sticky; top: 68px; z-index: 19; padding: 0 18px 10px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.progress { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; }
.seg { flex: 1; }
.seg i { display: block; height: 4px; border-radius: 4px; background: var(--blue); width: 0; transition: width .6s var(--ease); box-shadow: inset 0 0 0 0 transparent; position: relative; }
.seg { position: relative; padding-top: 0; }
.seg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--tint2); z-index: -1; }
.seg span { display: block; margin-top: 6px; font: 600 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #a3aab2; }
.seg.active span { color: var(--dark); }
.qcount { max-width: 680px; margin: 6px auto 0; font: 400 12px var(--ui); color: var(--muted); text-align: right; }

/* stage + transitions */
.stage { flex: 1; display: flex; justify-content: center; padding: 18px 18px 120px; }
.screen { width: 100%; max-width: 680px; }
.screen.in { animation: inR .45s var(--ease) both; }
.screen.in-back { animation: inL .45s var(--ease) both; }
@keyframes inR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.screen.kind-results { max-width: 1040px; }

/* buttons (mirror .btn-style / .btn-style2 / .btn-style3) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 30px; padding: 14px 26px; font: 500 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; transition: background .25s, color .25s, transform .15s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(74, 163, 226, .7); }
.btn.primary:hover { background: var(--dark); box-shadow: none; }
.btn.primary:active { transform: scale(.98); }
.btn.outline { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn.outline:hover { background: var(--blue); color: #fff; }
.btn.ghost { color: var(--dark); border: 1px solid #c6c6c6; background: transparent; }
.btn.ghost:hover { background: var(--dark); color: #fff; }
.btn.wide { width: 100%; }
.btn.xl { padding: 19px 34px; font-size: 15px; }
.btn[disabled] { background: #c9d3dc !important; box-shadow: none; cursor: not-allowed; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font: 400 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blue); }
.link-btn small { color: #9aa1a8; text-decoration: none; }
.arrow { transition: transform .25s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* landing */
.landing { text-align: center; padding: 6vh 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: var(--tint2); color: var(--blue-d); font: 600 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; animation: fadeUp .8s .05s both; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(74, 163, 226, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 163, 226, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 163, 226, 0); } }
.display { font-size: clamp(38px, 7vw, 62px); margin: 22px auto 16px; max-width: 640px; animation: fadeUp .8s .15s both; }
.display em { font-style: italic; color: var(--blue); }
.lead { font-size: 18px; max-width: 520px; margin: 0 auto 30px; animation: fadeUp .8s .25s both; }
.landing > .btn { animation: fadeUp .8s .35s both; }
.micro { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; font: 400 13px var(--ui); color: var(--muted); animation: fadeUp .8s .45s both; }
.micro svg { width: 14px; height: 14px; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; max-width: 520px; margin: 0 auto; animation: fadeUp .6s both; }
.resume b { color: var(--head); } .resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.ribbon-wrap { margin: 52px auto 0; max-width: 560px; animation: fadeUp .8s .55s both; }
.ribbon { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; height: 58px; }
.rib { background: var(--c); border-radius: 10px; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; color: var(--dark); padding: 0 4px; }
.rib span { font: 400 16px var(--serif); } .rib small { font: 600 10px var(--ui); letter-spacing: .04em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.rib-pin { position: absolute; top: -12px; left: 0; width: 3px; height: 82px; border-radius: 3px; background: var(--dark); animation: sweep 6s var(--ease) infinite alternate; }
.rib-pin::before { content: ''; position: absolute; top: -5px; left: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--dark); }
@keyframes sweep { from { left: 4%; } to { left: 95%; } }
.rib-caption { margin-top: 18px; font: italic 400 15px var(--serif); color: var(--muted); }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin: 44px auto 0; animation: fadeUp .8s .65s both; }
.trust { display: flex; align-items: center; gap: 10px; text-align: left; font: 400 13px/1.35 var(--ui); color: var(--muted); }
.trust b { color: var(--head); font-weight: 600; }
.trust svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.trust.doc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #fff; box-shadow: var(--shadow); }

/* questions */
.q-wrap { padding-top: 3vh; }
.q-wrap.narrow { max-width: 500px; margin: 0 auto; }
.q-title { font-size: clamp(27px, 4.6vw, 38px); margin-bottom: 10px; animation: fadeUp .6s both; }
.q-sub { margin: 0 0 26px; font-size: 16px; animation: fadeUp .6s .06s both; }
.options { display: grid; gap: 12px; }
.options.two-col { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 14px 16px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; opacity: 0; animation: fadeUp .5s calc(.08s + var(--i) * .05s) both; }
.opt:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.opt:focus-visible { outline: 3px solid rgba(74, 163, 226, .35); outline-offset: 2px; }
.opt .key { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font: 600 12px var(--ui); color: var(--muted); background: var(--tint); transition: .2s; }
.opt .txt { flex: 1; display: flex; flex-direction: column; }
.opt .txt b { font-weight: 700; color: var(--head); font-size: 16px; line-height: 1.3; }
.opt .txt small { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.opt .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: .2s; }
.opt .tick svg { width: 14px; height: 14px; }
.opt.selected { border-color: var(--blue); background: var(--tint); }
.opt.selected .key { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt.selected .tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.options.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.options.tiles .opt { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 118px; padding: 16px; position: relative; }
.options.tiles .tick { position: absolute; top: 12px; right: 12px; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint2); color: var(--blue-d); }
.tile-ico svg { width: 22px; height: 22px; }
.options.tiles .opt .txt b { font-size: 15px; }
.aff { min-height: 48px; margin-top: 18px; display: flex; align-items: center; gap: 10px; justify-content: center; font: italic 400 17px var(--serif); color: var(--dark); opacity: 0; transform: translateY(8px); transition: .35s var(--ease); }
.aff.show { opacity: 1; transform: none; }
.aff-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.aff-ico svg { width: 15px; height: 15px; }
.fine { font: 400 12.5px/1.5 var(--ui); color: #8b9299; margin-top: 12px; }

/* text / swatch / chips */
.text-form { display: flex; gap: 10px; animation: fadeUp .6s .1s both; }
.field { flex: 1; width: 100%; padding: 15px 20px; font: 400 16px var(--sans); color: var(--dark); border: 1.5px solid var(--line); border-radius: 30px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74, 163, 226, .15); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; transition: .2s; opacity: 0; animation: fadeUp .5s calc(.08s + var(--i) * .05s) both; }
.sw .chip { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 6px 14px -6px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.sw:hover { border-color: var(--blue); } .sw:hover .chip { transform: scale(1.06); }
.sw.selected { border-color: var(--blue); background: var(--tint); }
.sw.selected .chip { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue); }
.sw-label { font: 600 13px var(--ui); color: var(--dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-opt { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 30px; border: 1.5px solid var(--line); background: #fff; font: 400 15px var(--sans); color: var(--dark); transition: .2s; opacity: 0; animation: fadeUp .45s calc(.05s + var(--i, 0) * .035s) both; }
.chip-opt svg { width: 0; height: 15px; transition: width .2s; }
.chip-opt:hover { border-color: var(--blue); }
.chip-opt.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-opt.selected svg { width: 15px; }
.chip-opt.small { padding: 8px 14px; font-size: 14px; opacity: 1; animation: none; }
.ai-tag { font: 600 10px var(--ui); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 10px; background: var(--p3); color: #1f6b43; }
.chip-opt.selected .ai-tag { background: rgba(255, 255, 255, .25); color: #fff; }
.sticky-cta { position: sticky; bottom: 0; padding: 18px 0 8px; margin-top: 18px; background: linear-gradient(transparent, #fff 35%); }

/* body map */
.bodymap { display: grid; grid-template-columns: minmax(170px, 240px) 1fr; gap: 26px; align-items: center; animation: fadeUp .6s .1s both; }
.body { width: 100%; height: auto; max-height: 56vh; }
.rg > * { fill: #eef3f8; stroke: #d5dee8; stroke-width: 1.5; transition: fill .2s, stroke .2s; cursor: pointer; }
.rg:hover > *, .rg:focus > * { fill: var(--p4); stroke: var(--blue); outline: none; }
.rg.on > * { fill: var(--blue); stroke: var(--blue-d); }
.rg:focus { outline: none; }
.bm-label { font: 400 20px var(--serif); color: var(--head); margin-bottom: 14px; }
.bm-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* photo */
.photo-box { border-radius: 22px; animation: fadeUp .6s .1s both; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 38px 20px; border: 2px dashed #bcd7ee; border-radius: 22px; background: var(--tint); cursor: pointer; text-align: center; transition: .2s; }
.drop:hover { border-color: var(--blue); background: var(--tint2); }
.drop b { font: 400 22px var(--serif); color: var(--head); }
.drop-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.drop-ico svg { width: 30px; height: 30px; }
.tips { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font: 400 13px var(--ui); color: var(--muted); }
.tips i { font-style: normal; display: inline-flex; gap: 5px; align-items: center; }
.tips svg { width: 13px; height: 13px; color: var(--ok); }
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.pv-img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: #eef3f8; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(74, 163, 226, .55), transparent); opacity: 0; }
.photo-box.scanning .scan { opacity: 1; animation: scan 1.3s linear infinite; }
@keyframes scan { to { top: 100%; } }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); opacity: 0; }
.photo-box.scanning .rings i { animation: ring 1.8s var(--ease) infinite; }
.photo-box.scanning .rings i:nth-child(2) { animation-delay: .6s; } .photo-box.scanning .rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.obs { opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.obs.show, .obs:has(.obs-loading) { opacity: 1; transform: none; }
.obs-title { display: flex; align-items: center; gap: 8px; font: 400 19px var(--serif); color: var(--head); }
.obs-title svg { width: 18px; height: 18px; color: var(--blue); }
.obs ul { padding-left: 18px; margin: 10px 0 0; } .obs li { margin: 4px 0; }
.obs-loading { font: italic 400 16px var(--serif); color: var(--muted); }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f3fbf6; font: 400 13px/1.5 var(--ui); color: var(--muted); }
.privacy svg { width: 18px; height: 18px; flex: none; color: #1f9a52; margin-top: 1px; }
.privacy b { color: var(--dark); }
.photo-actions { margin-top: 18px; }
.photo-skip { min-height: 64px; flex-direction: column; gap: 5px; }
.photo-skip small { font: 400 11px/1.35 var(--ui); letter-spacing: 0; text-transform: none; }

/* timeline step */
.tl-bar { display: flex; gap: 3px; height: 12px; margin-bottom: 6px; animation: fadeUp .6s .08s both; }
.tl-bar i { border-radius: 6px; opacity: .55; transition: opacity .25s, transform .25s; }
.tl-bar i.hl { opacity: 1; transform: scaleY(1.6); }
.tl-legend { display: flex; justify-content: space-between; font: 400 11px var(--ui); color: #9aa1a8; margin-bottom: 18px; }
.opt.tl .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* insight */
.insight { display: grid; gap: 0; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(47, 46, 56, .28); margin-top: 2vh; animation: fadeUp .6s both; }
.ins-art { background: linear-gradient(160deg, var(--tint), #fff); display: grid; place-items: center; min-height: 230px; }
.ins-art img { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.insight.is-timeline .ins-art { padding: 64px 22px 26px; }
.ins-body { padding: 26px 28px 28px; }
.kicker { font: 600 12px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 10px; }
.ins-title { font-size: clamp(25px, 4vw, 33px); margin-bottom: 12px; }
.ins-text { font-size: 17px; margin: 0; }
.source { margin-top: 12px; font: 400 12px var(--ui); color: #9aa1a8; }
.support { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.ins-doc { display: flex; align-items: center; gap: 10px; margin: 20px 0; font: 400 12.5px/1.4 var(--ui); color: var(--muted); }
.ins-doc img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.ins-doc b { color: var(--dark); }
.btn.timer { position: relative; overflow: hidden; }
.t-fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .22); transform-origin: left; animation: tfill 9s linear forwards; }
.btn.timer.paused .t-fill { animation-play-state: paused; opacity: 0; }
.t-label { position: relative; }
@keyframes tfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* phase timeline viz */
.tv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
.tv-seg { position: relative; background: var(--c); border-radius: 12px; padding: 12px 8px; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--dark); opacity: .5; transition: opacity .3s; }
.tv-seg.past { opacity: .35; }
.tv-seg.here { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--dark); animation: pop .6s .3s var(--ease) both; }
@keyframes pop { from { transform: scale(.9); } to { transform: none; } }
.tv-roman { font: 400 20px var(--serif); } .tv-name { font: 700 12px var(--sans); }
.tv-months { font: 400 10.5px var(--ui); opacity: .75; }
.tv-pin { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; animation: drop .7s .5s var(--ease) both; }
.tv-pin b { display: block; padding: 6px 12px; border-radius: 20px; background: var(--dark); color: #fff; font: 600 11px var(--ui); letter-spacing: .04em; text-transform: uppercase; }
.tv-pin::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--dark); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* analyzing */
.analyzing { text-align: center; padding-top: 4vh; }
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.r-bg, .r-fg { fill: none; stroke-width: 7; } .r-bg { stroke: var(--tint2); }
.r-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font: 400 28px var(--serif); color: var(--head); }
.checklist { list-style: none; padding: 0; margin: 24px auto; max-width: 420px; text-align: left; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: #a3aab2; transition: color .3s; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: .3s; flex: none; }
.checklist .ck svg { width: 14px; height: 14px; }
.checklist li.done { color: var(--dark); } .checklist li.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-testi { max-width: 440px; margin: 26px auto 0; padding: 18px; border-radius: 16px; background: var(--tint); }
.mini-testi blockquote { margin: 0; font: italic 400 17px var(--serif); color: var(--dark); }
.mini-testi figcaption { margin-top: 8px; font: 600 12px var(--ui); color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(47, 46, 56, .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal.show { opacity: 1; }
.modal-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 28px 24px 22px; text-align: left; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); transform: translateY(16px); transition: transform .35s var(--ease); display: grid; gap: 12px; }
.modal.show .modal-card { transform: none; }
.modal-card h3 { font-size: 26px; } .modal-card p { margin: 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; font: 400 12px/1.45 var(--ui); color: var(--muted); }
.consent input { margin-top: 2px; }
.err { color: #c0392b; font-size: 13px; }

/* dashboard */
.dash { display: grid; gap: 20px; padding-bottom: 40px; }
.d-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 34px; border-radius: 28px; background: var(--pc); animation: fadeUp .7s both; }
.d-title { font-size: clamp(26px, 3.6vw, 36px); }
.d-phase { display: block; margin-top: 6px; font-size: clamp(38px, 6vw, 60px); color: var(--dark); }
.d-phase small { display: block; font-size: 18px; font-style: italic; color: var(--muted); margin-top: 4px; }
.d-lead { font-size: 17px; margin: 14px 0 22px; max-width: 460px; color: var(--muted); }
.d-badge { justify-self: center; width: 190px; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .6), var(--shadow); animation: pop .8s .2s var(--ease) both; }
.d-badge span { font: 400 64px/1 var(--serif); color: var(--dark); }
.d-badge small { font: 600 13px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.d-photo { justify-self: center; position: relative; width: 210px; aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 6px solid #fff; padding: 0; box-shadow: var(--shadow); }
.d-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.d-photo span { position: absolute; inset: auto 0 10px; font: 600 12px var(--ui); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.d-photo.blur img { filter: blur(14px) saturate(.8); } .d-photo.blur span { opacity: 1; }
.flag { padding: 16px 18px; border-radius: 16px; background: #fff8ec; border: 1px solid #f6d9a8; }
.flag b { color: #8a5a00; font-family: var(--serif); font-weight: 400; font-size: 19px; } .flag p { margin: 4px 0 0; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); animation: fadeUp .7s both; }
.d-h { font-size: 26px; margin-bottom: 18px; } .d-h.center { text-align: center; }
.d-sub { margin: -8px 0 16px; }
.profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.profile div { padding: 14px; border-radius: 14px; background: var(--tint); }
.profile small, .tags small { display: block; font: 600 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #9aa1a8; margin-bottom: 4px; }
.profile b { color: var(--head); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tone-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.tags { margin-top: 16px; } .tag { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; border-radius: 20px; background: var(--tint2); color: var(--dark); font-size: 14px; }
.obs-mini { margin-top: 12px; display: flex; gap: 8px; align-items: center; font: 400 13px var(--ui); color: var(--muted); }
.obs-mini svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.d-card .tv { margin-top: 44px; }
.phase-detail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.phase-detail div { padding: 12px; border-radius: 14px; border-top: 4px solid var(--c); background: #fbfcfd; font-size: 13.5px; opacity: .7; }
.phase-detail div.cur { opacity: 1; background: color-mix(in srgb, var(--c) 28%, #fff); }
.phase-detail b { color: var(--head); display: block; } .phase-detail small { display: block; color: #9aa1a8; font: 400 11.5px var(--ui); margin: 2px 0 6px; } .phase-detail p { margin: 0; line-height: 1.45; }
.graph { width: 100%; height: auto; max-height: 260px; }
.graph .axis { stroke: #e3e8ee; stroke-width: 1.5; } .graph .ax { font: 400 9.5px var(--ui); fill: #9aa1a8; }
.line-without { fill: none; stroke: #c8cfd6; stroke-width: 2.5; stroke-dasharray: 6 6; }
.line-with { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot-with { fill: var(--dark); } .lbl-without { font: italic 400 11px var(--serif); fill: #9aa1a8; } .lbl-with { font: 600 11px var(--ui); fill: var(--dark); }
.d-plan { padding: 30px 0 8px; }
.plans { display: grid; grid-template-columns: 1fr; gap: 18px; }
.plan { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); background: #fff; border: 1.5px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.plan:has(.plan-media.multi) { grid-template-columns: minmax(280px, 46%) minmax(0, 1fr); }
.plan.primary { border: 2px solid var(--blue); box-shadow: 0 26px 60px -26px rgba(74, 163, 226, .55); }
.plan-badge { align-self: flex-start; width: fit-content; margin-bottom: 10px; padding: 6px 12px; border-radius: 20px; background: var(--blue); color: #fff; font: 600 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.plan-media { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f7f3ee; padding: 18px 14px; min-height: 240px; }
.plan-media img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; max-height: 320px; object-fit: contain; object-position: center; }
.plan-info { padding: 22px 26px 24px; display: flex; flex-direction: column; justify-content: center; }
.plan-reason { margin: 0 0 6px; font: italic 400 15px var(--serif); color: var(--muted); }
.plan h3 { font-size: 24px; }
.plan-meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 12px; font: 400 13px var(--ui); color: var(--muted); }
.plan-meta svg { width: 15px; height: 15px; }
.plan-phases { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-phases li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 20px; background: color-mix(in srgb, var(--c) 45%, #fff); font-size: 13px; color: var(--dark); }
.plan-phases li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); font: 400 11px var(--serif); }
.plan-phases small { color: var(--muted); font-size: 11px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.plan-price b { font: 400 36px var(--serif); color: var(--head); }
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.guarantees div { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font: 400 12.5px/1.4 var(--ui); color: var(--muted); }
.guarantees svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.guarantees b { display: block; color: var(--head); font-size: 13.5px; }
.notes { display: grid; gap: 10px; margin-top: 14px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.note svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; } .note p { margin: 0; font-size: 14.5px; }
.routine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rt { padding: 18px; border-radius: 18px; background: var(--tint); }
.rt-h { font: 400 19px var(--serif); color: var(--head); margin-bottom: 6px; }
.rt ol { margin: 0; padding-left: 20px; } .rt li { margin: 6px 0; }
.row-actions { margin-top: 16px; }
.doc-note { background: linear-gradient(160deg, #fff, var(--tint)); }
.doc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.doc-head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; box-shadow: var(--shadow); }
.doc-head b { display: block; font: 400 19px var(--serif); color: var(--head); } .doc-head small { font: 400 12.5px var(--ui); color: var(--muted); }
.doc-note p { font: 400 17px/1.65 var(--serif); color: var(--dark); }
.dev { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: #fff3cd; color: #8a6d00; font: 600 11px var(--ui); font-style: normal; }
.testi { margin: 0 0 12px; padding: 22px; border-radius: 18px; background: var(--tint); }
.stars { color: #f2b01e; letter-spacing: 2px; } .testi blockquote { margin: 8px 0; font: italic 400 20px/1.45 var(--serif); color: var(--dark); }
.testi figcaption { font: 600 13px var(--ui); color: var(--muted); }
.d-card .link-btn { margin: 0; display: inline-block; }
.tracker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tk { aspect-ratio: 3 / 4; border-radius: 14px; background: #f1f4f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #b4bcc4; text-align: center; overflow: hidden; position: relative; }
.tk svg { width: 20px; height: 20px; } .tk small { font: 400 11px/1.3 var(--ui); }
.tk.now { background: var(--pc); color: var(--dark); }
.tk.now img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk.now img + small { position: absolute; bottom: 6px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; list-style: none; font: 400 18px var(--serif); color: var(--head); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 300 24px/1 var(--sans); color: var(--blue); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; }
.d-share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.d-share .link-btn { flex-basis: 100%; }
.disclaimer { font: 400 12px/1.6 var(--ui); color: #9aa1a8; text-align: center; max-width: 720px; margin: 6px auto 0; }
.devpanel { font: 400 12px var(--ui); background: #fafafa; border: 1px dashed #d6d6d6; border-radius: 12px; padding: 10px 14px; }
.devpanel pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; }
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 40px; background: rgba(47, 46, 56, .94); color: #fff; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4); transform: translateY(140%); transition: transform .4s var(--ease); max-width: 560px; margin: 0 auto; }
.sticky-buy.ready { transform: none; } .sticky-buy.ready.hide { transform: translateY(140%); }
.sticky-buy small { display: block; font: 400 11.5px var(--ui); opacity: .75; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy b { font: 400 22px var(--serif); }

/* responsive */
@media (min-width: 900px) {
  .insight { grid-template-columns: 1fr 1.05fr; align-items: stretch; }
  .ins-art { min-height: 440px; }
  .insight.is-timeline { grid-template-columns: 1fr; }
  .insight.is-timeline .ins-art { min-height: 0; }
}
@media (max-width: 760px) {
  .options.two-col { grid-template-columns: 1fr; }
  .bodymap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .body { max-height: 46vh; }
  .bm-chips { justify-content: center; }
  .preview { grid-template-columns: 1fr; }
  .d-hero { grid-template-columns: 1fr; padding: 26px 22px; text-align: center; }
  .d-lead { margin-left: auto; margin-right: auto; }
  .d-hero .d-badge, .d-hero .d-photo { order: -1; width: 150px; }
  .profile { grid-template-columns: 1fr 1fr; }
  .phase-detail { grid-template-columns: 1fr; }
  .plans, .guarantees, .routine-grid { grid-template-columns: 1fr; }
  .plan, .plan:has(.plan-media.multi) { grid-template-columns: 1fr; }
  .plan-media { min-height: 220px; }
  .plan-media img { max-height: 240px; }
  .plan-info { padding: 18px 18px 22px; }
  .tracker { grid-template-columns: repeat(3, 1fr); }
  .tv-name, .tv-months { display: none; }
  .tv-seg { min-height: 64px; align-items: center; }
  .d-card { padding: 20px; }
  .resume { flex-direction: column; align-items: stretch; }
  .text-form { flex-direction: column; }
}
@media (max-width: 420px) {
  .rib span { font-size: 14px; }
  .rib small { font-size: 8px; letter-spacing: .02em; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sw .chip { width: 50px; height: 50px; }
  .options.tiles { grid-template-columns: 1fr 1fr; }
  .options.tiles .opt { min-height: 104px; }
  .trust-row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Next button (manual advance) */
.sticky-cta .btn[data-next] { transition: background .25s, box-shadow .25s, transform .2s; }
.sticky-cta .btn[data-next].ready { animation: nudge .5s var(--ease); }
@keyframes nudge { 40% { transform: translateY(-3px) scale(1.01); } }
.q-wrap .aff { min-height: 40px; margin-top: 14px; }
