:root {
  --bg: #0b0e14; --card: #121826; --card2: #0f1520; --line: #1f2a3d; --line2: #2a3850;
  --text: #e6edf7; --mute: #a3b0c4; --dim: #8997ae;
  --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --blue: #3b82f6; --blue-d: #2563eb; --violet: #a78bfa;
  --radius: 14px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body { font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: #7fb0ff; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: rgba(11,14,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-name { font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand-by { font-size: 11px; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; }
.badge-preview { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(245,158,11,.5); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--mute); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang-btn { background: none; border: 0; color: var(--mute); padding: 7px 10px; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--blue-d); color: #fff; }

.disclaimer-bar { margin: 14px auto 0; max-width: 1120px; padding: 9px 14px; border: 1px solid rgba(245,158,11,.35); background: rgba(245,158,11,.08); color: #f6d28b; border-radius: 10px; font-size: 13px; width: calc(100% - 44px); }
.disclaimer-bar strong { margin-right: 6px; color: var(--amber); }

main { max-width: 1120px; margin: 0 auto; padding: 0 22px 40px; }
.hero { padding: 34px 0 20px; max-width: 820px; }
.eyebrow { color: var(--violet); font-weight: 700; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--mute); font-size: 17px; margin-top: 14px; max-width: 720px; }
.privacy-pill { display: inline-flex; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.4); color: #8be9b0; font-weight: 600; font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.demo { margin-top: 10px; }
.demo-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 22px; align-items: start; }
.demo-left, .demo-right { min-width: 0; }
.step-title { font-size: 13px; font-weight: 700; color: var(--mute); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line2); border-radius: 12px; background: var(--card2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--blue); background: rgba(59,130,246,.08); outline: none; }
.drop-icon { font-size: 24px; color: var(--blue); }
.drop-text { font-weight: 700; }
.drop-sub { color: var(--dim); font-size: 12.5px; }
.preview { position: relative; margin-top: 12px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #000; }
.preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.sample-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(245,158,11,.92); color: #1a1200; }
.status { margin-top: 10px; font-size: 13px; color: var(--mute); }
.status.err { color: #ff8a8a; }
.bar { height: 5px; border-radius: 99px; background: var(--card2); overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.mini { font-size: 12.5px; color: var(--dim); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { background: var(--card2); border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--violet); color: #fff; background: rgba(167,139,250,.14); }
.link { background: none; border: 0; padding: 0; margin-top: 12px; color: #7fb0ff; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.scans.over { color: var(--amber); }

.empty-stage { display: flex; align-items: center; justify-content: center; min-height: 260px; border: 1px dashed var(--line); border-radius: 12px; color: var(--dim); }
.privacy-big { font-weight: 600; color: #8be9b0; }

.hint { color: var(--dim); font-size: 12.5px; margin-bottom: 10px; }
.hint-s { font-size: 11.5px; color: var(--dim); }
.warnings { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.warnings li { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.4); color: #f6d28b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.flabel { font-weight: 600; color: var(--mute); font-size: 12px; }
input[type=text], input[type=email], select {
  background: var(--card2); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 15px; width: 100%; outline: none; min-width: 0;
}
input:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.25); outline: none; }
input.low { border-color: var(--amber); background: rgba(245,158,11,.07); }
input.miss { border-color: var(--red); background: rgba(239,68,68,.07); }
.fstat { font-size: 11px; color: var(--dim); min-height: 14px; }
.fstat.ok { color: #6fd39a; } .fstat.low { color: var(--amber); } .fstat.miss { color: #ff8a8a; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--mute); margin: 4px 0 10px; }
.check input { margin-top: 3px; }
.error { color: #ff8a8a; font-size: 13px; margin-bottom: 8px; }
.ok { color: #8be9b0; font-size: 13px; margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg-btn { background: none; border: 0; color: var(--mute); padding: 8px 8px; border-radius: 7px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.seg-btn.active { background: var(--line); color: var(--text); }
.seg-btn.long.active { background: rgba(34,197,94,.16); color: var(--green); box-shadow: inset 0 0 0 1px rgba(34,197,94,.5); }
.seg-btn.short.active { background: rgba(239,68,68,.16); color: var(--red); box-shadow: inset 0 0 0 1px rgba(239,68,68,.5); }
.seg-small .seg-btn { padding: 5px 10px; font-size: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn { border: 1px solid var(--line2); background: var(--card2); color: var(--text); padding: 11px 18px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn.primary { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost:hover { border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* results */
.results { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 14px; }
.headline { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); }
.headline.high { border-color: rgba(239,68,68,.6); background: rgba(239,68,68,.07); }
.headline.mid { border-color: rgba(245,158,11,.6); background: rgba(245,158,11,.07); }
.headline.low { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.06); }
.headline h3 { font-size: clamp(20px, 3vw, 27px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.headline p { color: var(--mute); margin-top: 8px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.panel h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.tbl-wrap { overflow-x: auto; }
.tbl th { overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; padding: 4px 6px 6px 0; }
.tbl td { padding: 6px 6px 6px 0; border-top: 1px solid var(--line); }
.tbl td.num, .tbl th.num { text-align: right; }
.big { font-weight: 800; font-size: 16px; }
.p-high { color: var(--red); } .p-mid { color: var(--amber); } .p-low { color: var(--green); }
.note { font-size: 12px; color: var(--dim); margin-top: 8px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.curve { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mute); margin-top: 4px; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 14px 16px; border: 1px solid rgba(167,139,250,.4); background: rgba(167,139,250,.08); border-radius: 12px; }
.over-note { padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.08); color: #f6d28b; font-size: 13px; }

/* sections */
.section { margin-top: 44px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.section-sub { color: var(--mute); margin-bottom: 16px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps h3 { font-size: 16px; margin: 8px 0 6px; } .steps p { color: var(--mute); font-size: 14px; }
.stepnum { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--blue-d); color: #fff; font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border-color: rgba(59,130,246,.6); }
.plan.founding { border-color: rgba(167,139,250,.6); }
.plan h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag-planned { font-size: 11px; font-weight: 700; color: var(--amber); border: 1px solid rgba(245,158,11,.5); border-radius: 999px; padding: 1px 8px; }
.price { font-size: 32px; font-weight: 800; } .price small { font-size: 14px; color: var(--mute); font-weight: 600; }
.plan-note { font-size: 12.5px; color: var(--green); min-height: 18px; }
.plan-desc { color: var(--mute); font-size: 14px; }
.plan ul, .plain { margin: 0; padding-left: 18px; color: var(--text); display: grid; gap: 6px; font-size: 14px; }
.plan .btn { margin-top: auto; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--mute); margin-top: 8px; font-size: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.small { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.footer { max-width: 1120px; margin: 0 auto; padding: 24px 22px 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.footer p + p { margin-top: 6px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { position: relative; width: min(440px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; display: grid; gap: 10px; max-height: 92vh; overflow: auto; }
.modal h2 { font-size: 20px; padding-right: 28px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--mute); font-size: 24px; cursor: pointer; }
#stats-body table { max-width: 560px; }

@media (max-width: 860px) {
  .preview img { max-height: 300px; }
  .demo-grid, .cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar { padding: 10px 14px; } .lang { margin-left: auto; }
  main { padding: 0 14px 30px; } .disclaimer-bar { width: calc(100% - 28px); }
}
@media (max-width: 480px) {
  .tbl { font-size: 12.5px; } .tbl th, .tbl td { padding-right: 4px; } .big { font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .brand-by { display: none; }
}
mark { background: rgba(245,158,11,.18); color: #ffd488; padding: 1px 5px; border-radius: 4px; }

/* ---- v2: hero + example, a11y, share, positions ---- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue-d); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.drop:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: center; max-width: none; padding: 30px 0 22px; }
.hero-text { min-width: 0; }
.bullets { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--mute); font-size: 15px; }
.bullets li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.hero-cta { margin-top: 16px; }
.example { padding: 16px; align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-head .step-title { margin: 0; }
.sample-badge.static { position: static; }
.ex-pos { color: var(--mute); font-weight: 600; font-size: 13px; }
.ex-head-line { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; line-height: 1.2; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ex-cell { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.ex-cell .l { display: block; font-size: 12px; color: var(--mute); font-weight: 700; }
.ex-cell .v { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; }
.drop-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.cam-only { display: none; }
@media (pointer: coarse) { .cam-only { display: inline-block; } }
.saved-note { margin-top: 8px; }
.saved-note .link { margin-top: 0; }
.pos-picker { margin-bottom: 12px; }
.seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fstat.high { color: #6fd39a; } .fstat.medium { color: #f6d28b; } .fstat.alt { color: var(--mute); }
input.medium { border-color: rgba(245,158,11,.55); }
input[aria-invalid="true"] { border-color: var(--red); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sig-grid p { color: var(--text); font-size: 14.5px; }
.sister { margin-top: 8px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.modal.share { width: min(600px, 100%); }
.modal.share img { width: 100%; max-width: 540px; height: auto; border-radius: 12px; margin: 0 auto; display: block; border: 1px solid var(--line2); }
.timing { color: var(--dim); font-size: 12px; margin-left: 6px; }
.status .spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line2); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .status .spinner { animation: none; border-top-color: var(--blue); }
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 18px; } }
@media (forced-colors: active) { .btn, .chip, .seg-btn { border: 1px solid ButtonText; } }

.lg-blue { background: #3b82f6; } .lg-dim { background: #8997ae; }
.mt6 { margin-top: 6px; } .mt12 { margin-top: 12px; }
.narrow { max-width: 760px; } .disclaimer-bar.wide { width: 100%; margin-top: 18px; }
.imp-h1 { font-size: 32px; margin-top: 22px; } .imp-draft { color: var(--amber); font-size: 14px; } .imp-lead { font-size: 15px; } .imp-h2 { font-size: 18px; }
