@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/barlowcondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/barlowcondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }

:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --ink: #17171a;
  --muted: #6b6b74;
  --faint: #9a9aa2;
  --line: #e8e8e4;
  --red: #d92c2c;
  --red-deep: #b91c1c;
  --green: #16794c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23,23,26,.05), 0 8px 24px rgba(23,23,26,.06);
  --shadow-lift: 0 2px 4px rgba(23,23,26,.06), 0 14px 34px rgba(23,23,26,.10);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header { display: flex; justify-content: center; padding: 18px 20px 4px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 12px;
}
.brand:hover { background: rgba(23,23,26,.05); }
.brand img { border-radius: 8px; display: block; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .05em; color: var(--ink); }
.brand-name em { color: var(--red); font-style: normal; }

/* Main */
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 20px 60px; }

/* Hero */
.hero { text-align: center; margin: 18px 0 26px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 9vw, 58px);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
}
.hero h1 .accent { color: var(--red); }
.hero .sub { color: var(--muted); font-size: 16px; margin-top: 10px; }

/* Progress */
.progress { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.progress .bar { flex: 1; height: 5px; background: #e4e4df; border-radius: 3px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; transition: width .25s ease; }
.progress .label { font-size: 12.5px; color: var(--faint); white-space: nowrap; font-weight: 500; }

/* Question */
.question h2 {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(26px, 6vw, 34px);
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px;
}
.question .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

.opts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.opts.cols { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 500;
  padding: 18px 18px; cursor: pointer; min-height: 62px;
  box-shadow: var(--shadow);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.opt:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.opt:active { transform: translateY(0); }
.opt .opt-label { display: block; font-weight: 600; }
.opt .opt-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.opt img.brand-logo { height: 20px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.opt img.b-canon { height: 22px; }
.opt img.b-sony { height: 17px; }
.opt img.b-nikon { height: 44px; margin: -8px 0; }
.back-row { margin-top: 16px; }
.back-btn { background: none; border: none; color: var(--faint); font-size: 14px; cursor: pointer; padding: 6px 0; font-family: var(--font-body); }
.back-btn:hover { color: var(--muted); }
h1:focus, h2:focus { outline: none; }

/* Result */
.result-badge {
  display: inline-block; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; margin-bottom: 12px;
}
.match-note { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }

.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; box-shadow: var(--shadow); text-align: center; margin-bottom: 14px;
}
.product-shot { display: flex; justify-content: center; align-items: center; height: 240px; margin-bottom: 14px; }
.product-shot img { max-height: 100%; max-width: 82%; object-fit: contain; }
.result-card h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 7vw, 40px); line-height: 1.05; text-transform: uppercase; }
.price-line { margin: 4px 0 10px; font-size: 15px; color: var(--muted); }
.price-line strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.pick-label { color: var(--red-deep); font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.why-list { list-style: none; margin: 0 auto 18px; max-width: 420px; text-align: left; }
.why-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14.5px; margin-bottom: 7px; }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.buy-btn {
  display: block; width: 100%; background: var(--red); color: #fff;
  border: none; border-radius: 14px; padding: 17px 20px;
  font-size: 17px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(217,44,44,.28);
  transition: background .12s, transform .12s, box-shadow .12s;
}
.buy-btn:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(217,44,44,.34); }
.bh-btn {
  display: block; width: 100%; margin-top: 9px;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 20px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; text-align: center;
  transition: border-color .12s, background .12s;
}
.bh-btn:hover { border-color: var(--ink); background: #fafaf8; }
.intl-row { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.intl-row a { color: var(--muted); }

/* Secondary cards */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.next-card {
  display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; color: var(--ink); font-family: var(--font-body);
  box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s, transform .12s;
}
.next-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.next-thumb { position: relative; flex: none; width: 92px; border-radius: 10px; overflow: hidden; background: #fff; }
.next-thumb img { display: block; width: 100%; height: 56px; object-fit: cover; }
.next-thumb.product img { object-fit: contain; }
.next-thumb .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(217,44,44,.92); color: #fff; font-size: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
.next-tag { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.next-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.next-price { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* Actions + disclosure */
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.ghost-btn {
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-size: 13px; padding: 8px 16px; cursor: pointer; font-family: var(--font-body);
}
.ghost-btn:hover { color: var(--ink); border-color: var(--faint); }
.disclosure { font-size: 11.5px; color: var(--faint); text-align: center; line-height: 1.6; max-width: 460px; margin: 0 auto; }

@media (max-width: 480px) {
  .opts.cols { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
  .product-shot { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress .bar i, .opt, .buy-btn, .next-card { transition: none; }
}
