:root {
  --ink: #14171f;
  --ink-2: #4a5160;
  --ink-3: #7b8292;
  --line: #e3e6ec;
  --bg: #fbfbfc;
  --card: #ffffff;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --ok: #0f8a5f;
  --warn: #b26b00;
  --identical: #0f8a5f;
  --partial: #b26b00;
  --similar: #6b6f80;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 23, 31, .04), 0 8px 24px rgba(20, 23, 31, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header / footer */
.site-head { border-bottom: 1px solid var(--line); background: rgba(251, 251, 252, .9); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 5px 7px 7px 5px; border: 2px solid #fff; border-radius: 50%; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.demo-banner { background: #fff7e6; color: #6b4300; font-size: 14px; text-align: center; padding: 8px 12px; border-bottom: 1px solid #f3dfb5; }

/* hero */
.hero { padding: 56px 0 24px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* upload card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.uploader { padding: 18px; }
.drop { display: block; border: 2px dashed #c9cfdb; border-radius: 12px; padding: 34px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: #fcfcfe; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { display: block; font-size: 17px; margin-bottom: 4px; }
.drop span { color: var(--ink-3); font-size: 14px; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; margin-top: 14px; max-height: 190px; overflow: auto; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: #eef0f4; }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-2); }
.summary { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 4px; }
.summary .count { color: var(--ink-2); }
.summary .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-note { color: var(--ink-3); font-size: 13px; margin: 0 2px 14px; min-height: 1.2em; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input { font: inherit; padding: 11px 12px; border: 1px solid #cfd4de; border-radius: 10px; background: #fff; }
.field input:focus, .btn:focus-visible { outline: 3px solid rgba(31, 94, 255, .25); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 2px 14px; }
.check input { margin-top: 3px; }
.btn { text-decoration: none; text-align: center; appearance: none; border: 0; border-radius: 10px; font: inherit; font-weight: 600; padding: 13px 18px; cursor: pointer; background: var(--accent); color: var(--accent-ink); width: 100%; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: #eef0f4; color: var(--ink); width: auto; }
.fineprint { color: var(--ink-3); font-size: 13px; margin: 10px 2px 0; text-align: center; }
.error { color: #b42318; font-size: 14px; margin: 8px 2px 0; min-height: 1em; }

/* sections */
section.block { padding: 56px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.step { padding: 20px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 0; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.price-table td:last-child { font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { padding: 22px; }
.panel ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.panel.no { border-color: #f1d3cf; background: #fffaf9; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.use { padding: 22px; text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.use:hover { border-color: var(--accent); transform: translateY(-2px); }
.use p { color: var(--ink-2); margin: 0 0 10px; }
.use .go { color: var(--accent); font-weight: 600; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* prose (niche + legal) */
.prose { padding-top: 48px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 40px; }
.draft { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); background: #fff4e0; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; letter-spacing: .04em; }
.cta-box { padding: 24px; margin: 36px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.cta-box .btn { width: auto; text-decoration: none; display: inline-block; }

/* results */
.res-head { padding: 40px 0 10px; }
.res-meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.private-note { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.progress { height: 8px; border-radius: 999px; background: #e9ecf2; overflow: hidden; margin: 18px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.state-box { padding: 22px; margin-top: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: #f1f2f5; }
.img-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; margin-bottom: 14px; }
.img-card .src img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; background: #eef0f4; }
.img-card .src .fn { font-size: 12px; color: var(--ink-3); margin-top: 6px; word-break: break-all; }
.img-card h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.counts { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.matches { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.match { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.match img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #eef0f4; }
.match .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .d { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match a { color: var(--ink); text-decoration: none; }
.match a:hover .t { color: var(--accent); }
.badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.badge.identical { color: var(--identical); background: #e3f5ee; }
.badge.partial { color: var(--partial); background: #fff1dc; }
.badge.similar { color: var(--similar); background: #eef0f4; }
.none { color: var(--ink-3); font-size: 15px; margin: 8px 0 0; }
.more-btn { margin-top: 8px; }

/* video: one tile per video in the uploader, one card per video in the results */
.thumbs .vtag { position: absolute; left: 3px; bottom: 3px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); border-radius: 4px; padding: 1px 4px; }
.thumbs .t.vid { outline: 2px solid var(--accent); outline-offset: -2px; }
.img-card .src .fn.sub { margin-top: 2px; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.frames figure { margin: 0; position: relative; opacity: .55; }
.frames figure.hit { opacity: 1; }
.frames figure.hit img { outline: 2px solid var(--identical); outline-offset: -2px; }
.img-card .frames img { width: 100%; height: 34px; object-fit: cover; border-radius: 4px; }
.frames figcaption { font-size: 10px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.match .at { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* mock checkout */
.mock { max-width: 440px; margin: 64px auto; padding: 28px; }
.mock .amount { font-size: 34px; font-weight: 700; margin: 6px 0 18px; }
.mock .fake-card { font-family: var(--mono); background: #f4f5f8; border-radius: 10px; padding: 12px 14px; color: var(--ink-2); margin-bottom: 16px; font-size: 14px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; gap: 28px; }
  .steps, .uses { grid-template-columns: 1fr; }
  .nav { display: none; }
  .img-card { grid-template-columns: 1fr; }
  .img-card .src img { width: 100%; height: 200px; }
  .frames { grid-template-columns: repeat(6, 1fr); }
  .img-card .frames img { height: 40px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
