:root {
  --black: #0b0b0b; --ink: #1a1a1a; --muted: #6f6a61; --line: #e6dfd2;
  --ivory: #faf7f2; --card: #ffffff; --gold: #c9a96e; --gold-2: #b8935a; --gold-soft: #f3ead9;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 18px 40px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; margin: 0 0 10px; color: var(--black); }
h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.04; }
h2 { font-size: clamp(26px, 4.6vw, 34px); line-height: 1.1; }
h3 { font-size: 22px; margin-top: 22px; }
p { line-height: 1.55; }
button { font: inherit; cursor: pointer; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--black); color: #fff; padding-top: max(12px, env(safe-area-inset-top)); }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; border-radius: 50%; }
.logo-text b { display: block; font-size: 12.5px; letter-spacing: 3px; font-weight: 600; color: var(--gold); }
.logo-text small { display: block; font-size: 11px; color: #bdb6a8; letter-spacing: .5px; margin-top: 2px; }
.lang { display: flex; border: 1px solid #3a3a3a; border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: #aaa; padding: 6px 12px; font-size: 12px; letter-spacing: 1px; }
.lang button.on { background: var(--gold); color: var(--black); font-weight: 600; }
.badge { background: var(--gold-soft); color: #6d5630; font-size: 12px; text-align: center; padding: 6px; letter-spacing: .3px; }

/* screens */
.screen { display: none; animation: fade .35s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .2s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.big { width: 100%; padding: 16px 22px; font-size: 16px; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.gold { background: linear-gradient(135deg, #d9bd86, var(--gold-2)); color: var(--black); box-shadow: 0 8px 24px rgba(184, 147, 90, .28); }
.btn.dark { background: var(--black); color: var(--gold); }
.btn.outline { background: transparent; color: var(--black); border-color: #cfc5b3; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row > .btn { flex: 1 1 160px; }
.row.links { justify-content: space-between; margin-top: 6px; }
.msg { background: #fff4e5; border: 1px solid #f1d7a8; color: #7a5410; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* landing */
.hero { display: grid; gap: 18px; align-items: center; padding-top: 10px; }
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 11.5px; color: var(--gold-2); font-weight: 600; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.trust { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.hero-art .frame { background: var(--black); border-radius: 22px; padding: 14px; max-width: 220px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.hero-art svg { width: 100%; display: block; }
.scanline { animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-110px); } 50% { transform: translateY(110px); } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px; }
.steps span { display: block; font-family: var(--serif); color: var(--gold-2); font-size: 22px; }
.steps b { font-size: 13.5px; font-weight: 500; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
.narrow { max-width: 520px; margin: 0 auto; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--black); margin-top: 1px; flex: none; }
.card .btn.big { margin-top: 20px; }

/* photo */
.guide { display: flex; gap: 16px; align-items: center; margin: 10px 0 4px; }
.guide svg { width: 120px; flex: none; }
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.camera { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; margin: 10px 0; }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.oval { position: absolute; inset: 12% 18% 16%; border: 2px dashed rgba(201,169,110,.9); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* area */
.split { display: grid; gap: 20px; }
.photo-wrap, .compare { position: relative; border-radius: 18px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; width: 100%; max-width: 520px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.photo-wrap canvas { width: 100%; height: 100%; display: block; }
.hotspots { position: absolute; inset: 0; }
.spot { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.spot i { width: 18px; height: 18px; border-radius: 50%; background: rgba(201,169,110,.95); box-shadow: 0 0 0 6px rgba(201,169,110,.28); animation: pulse 2s infinite; }
.spot span { background: rgba(11,11,11,.78); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.spot.l { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -50%); }
.spot.r { transform: translate(-9px, -50%); }
.spot.c { flex-direction: column; transform: translate(-50%, -9px); gap: 4px; }
.spot.on i { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.4); }
.spot.on span { background: var(--gold); color: var(--black); font-weight: 600; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(201,169,110,.35); } 50% { box-shadow: 0 0 0 10px rgba(201,169,110,.08); } }
.scan { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,11,11,.35); color: #fff; font-size: 14px; letter-spacing: .5px; }
.scan i { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: scan2 1.6s ease-in-out infinite; }
@keyframes scan2 { 0%,100% { top: 15%; } 50% { top: 85%; } }
.hint { color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d8cfbf; background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 14px; }
.chip.on { background: var(--black); color: var(--gold); border-color: var(--black); }
.proc-list { display: grid; gap: 12px; }
.proc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.proc-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.proc h4 { margin: 0; font-size: 16.5px; font-weight: 600; }
.proc em { font-style: normal; font-size: 11px; color: var(--gold-2); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.proc p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
dl { margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
dl div { background: var(--ivory); border-radius: 10px; padding: 8px 10px; }
dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

/* result */
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
#afterImg { clip-path: inset(0 0 0 50%); }
.divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.35); }
.divider span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.divider span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); font-weight: 700; font-size: 16px; letter-spacing: 2px; }
#slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 12px; background: rgba(11,11,11,.7); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; pointer-events: none; letter-spacing: .5px; }
.tag.tl { left: 12px; } .tag.tr { right: 12px; background: var(--gold); color: var(--black); font-weight: 600; }
.loading { position: absolute; inset: 0; background: rgba(11,11,11,.72); color: #fff; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.loading small { color: #cfc8ba; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(201,169,110,.25); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.intensity { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 520px; margin: 14px auto 0; font-size: 13px; color: var(--muted); }
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--ink); }
.seg button.on { background: var(--black); color: var(--gold); }
.note { max-width: 520px; margin: 10px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.facts { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.price { background: var(--black); color: #fff; border-radius: 18px; padding: 18px; margin: 14px 0 16px; }
.price h3 { color: var(--gold); margin: 0 0 10px; font-size: 22px; }
.pr { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #2a2a2a; font-size: 14px; color: #d8d2c6; }
.pr b { color: #fff; font-size: 16px; }
.pr.range b { color: var(--gold); font-size: 18px; }
.pr.local b { font-size: 14px; color: #d8d2c6; font-weight: 500; }
.price p { font-size: 12.5px; color: #a39d92; margin: 10px 0 0; }
.cta-sub { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* dialog */
dialog { border: 0; border-radius: 22px; padding: 26px 22px 16px; width: min(92vw, 440px); background: var(--ivory); }
dialog::backdrop { background: rgba(0,0,0,.55); }
.dlg-steps { padding-left: 20px; line-height: 1.6; color: var(--ink); margin: 6px 0 18px; }
.dlg-steps li { margin-bottom: 8px; }
dialog .btn { width: 100%; margin-top: 10px; }
dialog .link { display: block; margin: 8px auto 0; }

footer { text-align: center; font-size: 12px; color: var(--muted); padding: 18px; border-top: 1px solid var(--line); }

/* desktop */
@media (min-width: 900px) {
  main { padding-top: 40px; }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 50px; }
  .hero .btn.big { width: auto; padding: 16px 34px; }
  .hero-art .frame { max-width: 360px; padding: 18px; }
  .trust { text-align: left; }
  .split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .split .panel { position: sticky; top: 84px; }
  .photo-wrap, .compare { margin: 0; }
  .intensity, .note { margin-left: 0; }
}
@media (max-width: 420px) {
  .steps b { font-size: 12.5px; }
  dl { grid-template-columns: 1fr 1fr 1fr; }
  dd { font-size: 13px; }
}

/* ===== v2: guided capture, multi-select, multi-view result, consultation form ===== */
.sub.small { font-size: 14.5px; margin-bottom: 14px; }
.views-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.vp { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.vp.cur { background: var(--black); color: var(--gold); border-color: var(--black); font-weight: 600; }
.vp.done { background: var(--gold-soft); color: #6d5630; border-color: #e6d6b5; }
.vp.done::before { content: '✓ '; }
.vp.todo { border-style: dashed; color: var(--ink); }
.vp.off { opacity: .45; }
.camera { position: relative; border-radius: 16px; overflow: hidden; background: #151515; aspect-ratio: 3 / 4; margin: 6px 0 10px; }
.camera video, .camera #preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video { transform: scaleX(-1); }
.camera #overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(11,11,11,.78); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.status.ok { background: rgba(46,160,90,.92); }
.why { font-size: 13px; color: #6d5630; background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.tips { margin-top: 4px; }

.chip em { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; background: var(--gold); color: var(--black); font-size: 11px; margin-left: 4px; }
.chip.on em { background: var(--gold); }
.spot.has i { background: #fff; box-shadow: 0 0 0 5px rgba(201,169,110,.85); animation: none; }
.proc.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,110,.35); }
.proc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.angles { font-size: 11.5px; color: var(--gold-2); letter-spacing: .3px; }
.proc-list { margin-top: 14px; padding-bottom: 90px; }
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--black); color: #fff; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.tray-info { display: flex; flex-direction: column; min-width: 0; }
.tray-info b { font-size: 14px; color: var(--gold); font-weight: 600; }
.tray-info span { font-size: 13px; color: #d8d2c6; }
.tray .btn { flex: none; padding: 12px 18px; }
.tray.empty .btn { opacity: .4; }
#s-select:not(.active) + .tray, .screen:not(.active) .tray { display: none; }

.tabs { display: flex; gap: 6px; max-width: 520px; margin: 0 auto 10px; }
.tab { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 10px; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tab.on { background: var(--black); color: var(--gold); border-color: var(--black); }
.tab.error { border-color: #e3a3a3; }
.mini-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(201,169,110,.3); border-top-color: var(--gold); animation: spin 1s linear infinite; display: inline-block; }
.note.warn { color: #7a5410; }
.plan { list-style: none; margin: 4px 0 0; padding: 0; }
.plan li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan small { display: block; font-size: 11px; color: var(--gold-2); text-transform: uppercase; letter-spacing: 1.5px; }
.plan b { font-size: 15.5px; font-weight: 600; }
.plan span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.pr.small b { font-size: 14px; color: #d8d2c6; font-weight: 500; }

.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d8cfbf; border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.thumbs { display: flex; gap: 8px; margin: 6px 0 4px; }
.thumbs figure { margin: 0; flex: 1; max-width: 120px; }
.thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.thumbs figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.center { text-align: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--black); color: var(--gold); display: grid; place-items: center; font-size: 30px; margin: 4px auto 14px; }
.card .btn.big + .btn.big { margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(11,11,11,.9); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 40; max-width: 90vw; text-align: center; }
@media (min-width: 900px) {
  .tray { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(720px, 92vw); border-radius: 18px; }
}

.gen-error { position: absolute; left: 12px; right: 12px; bottom: 14px; background: rgba(122,30,30,.88); color: #fff; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; z-index: 3; pointer-events: none; }


.tray { flex-direction: column; align-items: stretch; gap: 8px; }
.tray-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tray-names { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tray-names:empty { display: none; }
.tray-names button { flex: none; border: 1px solid #3a3a3a; background: #1c1c1c; color: #eee; border-radius: 999px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.proc-list { padding-bottom: 130px; }


.btn.more-angles { max-width: 520px; margin: 14px auto 0; display: flex; border-color: var(--gold); color: var(--black); background: var(--gold-soft); }
.more-sub { display: block; max-width: 520px; margin: 6px auto 0; text-align: center; color: var(--muted); font-size: 12.5px; }
@media (min-width: 900px) { .more-angles, .more-sub { margin-left: 0; } }


/* Turnstile bot check: appears only if the visitor must click */
.bot-check { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; }
footer a, .note a { color: inherit; text-decoration: underline; }

