/* belivety — tokens from design-direction.md */
:root {
  --bg: #F8FAFC;
  --fg: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --card: #FFFFFF;
  --primary: #0B5F5A;
  --primary-hover: #134E4A;
  --primary-soft: #ECFDF5;
  --primary-soft-ink: #134E4A;
  --focus: #0F766E;
  --media-bg: #F1F5F9;
  --danger: #DC2626;
  --touch: 44px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --font: "Be Vietnam Pro", Inter, system-ui, sans-serif;
  --max: 720px;
  --max-wide: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 1rem;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, .choice:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.site-header, .site-footer, .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
}
@media (min-width: 1024px) {
  .site-header, .site-footer, .wrap { max-width: var(--max-wide); }
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: var(--card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  max-width: none; padding-left: max(1rem, calc((100% - var(--max-wide)) / 2 + 1rem));
  padding-right: max(1rem, calc((100% - var(--max-wide)) / 2 + 1rem));
}
.logo {
  font-weight: 700; font-size: 1.2rem; color: var(--primary);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo-sub { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-left: 0.45rem; }
.header-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  color: var(--primary-soft-ink); background: var(--primary-soft);
  padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.lede { color: var(--muted); margin: 0 0 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: var(--touch); padding: 0.65rem 1.15rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .progress > span { transition: none; }
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.hero-grid { display: grid; gap: 1.25rem; margin: 1rem 0 1.5rem; }
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
  .hero-actions .btn { width: auto; min-width: 160px; }
}
.hero-media {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: var(--media-bg); box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.img-cap { font-size: 0.75rem; color: var(--muted); margin: 0.4rem 0 0; }
.hero-actions { display: flex; flex-direction: column; gap: 0.65rem; }
@media (min-width: 768px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
.trust-grid {
  display: grid; gap: 0.75rem; margin: 1.5rem 0;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.trust-card h2 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.trust-card p { margin: 0; font-size: 0.875rem; color: var(--muted); }
.ask-list { display: grid; gap: 0.5rem; margin: 1rem 0 1.5rem; }
@media (min-width: 768px) { .ask-list { grid-template-columns: 1fr 1fr; } }
.ask-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-height: var(--touch);
}
.ask-num {
  flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-soft-ink);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.section-title { margin-top: 1.5rem; }

/* Quiz */
.progress-meta {
  display: flex; justify-content: space-between; color: var(--muted); font-size: 0.875rem; margin-bottom: 0.35rem;
}
.progress {
  height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 0 0 1.25rem;
}
.progress > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width 0.2s ease; }
.quiz-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.15rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.step-hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.choice-grid { display: grid; gap: 0.6rem; }
@media (min-width: 768px) {
  .choice-grid.short { grid-template-columns: 1fr 1fr; }
}
.choice {
  min-height: var(--touch); text-align: left; padding: 0.75rem 0.9rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--card); font: inherit; cursor: pointer; color: var(--fg);
}
.choice.selected {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary-soft-ink);
}
.nav-row { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.25rem; }
.nav-row .btn { flex: 1 1 140px; }
.field-extra { margin-top: 0.85rem; }
.field-extra label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--muted); }
.field-extra input {
  width: 100%; min-height: var(--touch); padding: 0.55rem 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius); font: inherit;
  background: var(--card); color: var(--fg);
}
.err { color: var(--danger); margin: 0.5rem 0 0; font-size: 0.9rem; }

/* Results */
.summary-bar {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin: 0.75rem 0 1rem; box-shadow: var(--shadow);
}
.summary-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 0.35rem;
}
.banner-missing {
  background: var(--primary-soft); color: var(--primary-soft-ink);
  border: 1px solid #A7F3D0; border-radius: var(--radius);
  padding: 0.85rem 1rem; margin: 0 0 1rem; font-size: 0.95rem;
}
.result-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1rem; margin: 0 0 1rem; box-shadow: var(--shadow);
}
.badge-best {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  background: var(--primary); color: #fff; padding: 0.25rem 0.55rem;
  border-radius: 999px; margin-bottom: 0.5rem;
}
/* .result-media layout: see bottom of file */
/* thumb base — size overridden by layout rules below */
.thumb, .thumb-ph {
  border-radius: 10px; border: 1px solid var(--border); background: var(--media-bg);
  object-fit: contain;
}
.thumb-ph {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.25rem;
  font-size: 0.8rem; color: var(--muted); text-align: center; padding: 0.75rem; overflow: hidden;
}
.thumb-ph .ph-brand { font-weight: 700; font-size: 0.95rem; color: var(--fg); }
.thumb-ph .ph-model { font-size: 0.75rem; line-height: 1.3; word-break: break-word; }
.price {
  font-size: 1.35rem; font-weight: 700; margin: 0.35rem 0 0.15rem; letter-spacing: -0.01em;
}
.price-note { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.5rem; }
.bullets { margin: 0.4rem 0 0.75rem; padding-left: 1.15rem; }
.bullets li { margin: 0.2rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.35rem; }
.actions .btn { flex: 1 1 140px; }
.chip-aff { font-size: 0.75rem; color: var(--muted); margin: 0.45rem 0 0; }
.footnote { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.site-footer {
  font-size: 0.8125rem; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 1.5rem;
  max-width: none;
  padding-left: max(1rem, calc((100% - var(--max-wide)) / 2 + 1rem));
  padding-right: max(1rem, calc((100% - var(--max-wide)) / 2 + 1rem));
}
.site-footer p { margin: 0.4rem 0; max-width: var(--max-wide); }
.brand-foot { font-weight: 700; color: var(--primary); }

/* —— Lucide icons (self-hosted SVG) —— */
.icon {
  width: 1.25rem; height: 1.25rem;
  display: inline-block; vertical-align: middle;
  color: var(--primary); flex-shrink: 0;
}
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-wrap .icon { width: 20px; height: 20px; }
.choice {
  display: flex; align-items: center; gap: 0.65rem;
}
.choice .choice-label { flex: 1; }
.trust-card h2, .ask-item {
  display: flex; align-items: center; gap: 0.5rem;
}
.ask-item .icon-wrap { width: 32px; height: 32px; }

/* Summary chips */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0 0.35rem;
}
.chip {
  display: inline-flex; align-items: center;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--primary-soft-ink); background: var(--primary-soft);
  border: 1px solid #A7F3D0; border-radius: 999px;
  padding: 0.3rem 0.7rem; min-height: 28px;
}

/* Result card: mobile stack, desktop horizontal ≥900px */
.result-media {
  display: flex; flex-direction: column; gap: 0.85rem; align-items: stretch;
}
.result-media .media-col { flex: 0 0 auto; }
.result-media .body-col { flex: 1 1 auto; min-width: 0; }
.thumb, .thumb-ph {
  width: 100%; max-width: 200px; height: auto; aspect-ratio: 1;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .result-media {
    flex-direction: row; align-items: flex-start; gap: 1.25rem;
  }
  .result-media .media-col { flex: 0 0 160px; width: 160px; }
  .thumb, .thumb-ph {
    width: 160px; height: 160px; max-width: none; margin: 0;
  }
}

/* Hero graphic (no raster) */
.hero-graphic {
  border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--primary-soft), var(--card) 60%);
  box-shadow: var(--shadow); padding: 1.25rem 1.1rem;
  display: grid; gap: 0.85rem;
}
.hero-graphic-top {
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-graphic-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
}
.hero-graphic-mark .icon { color: #fff; width: 28px; height: 28px; }
.hero-points {
  display: grid; gap: 0.5rem;
}
.hero-point {
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.65rem 0.75rem;
  font-size: 0.9rem; font-weight: 500; min-height: var(--touch);
}
.btn .icon { color: currentColor; }
.btn-ghost .icon { color: var(--fg); }

#step-title { display: flex; align-items: center; gap: 0.5rem; }
#step-title .icon-wrap { background: var(--primary-soft); }
.btn-primary .icon { filter: brightness(0) invert(1); }
.hero-graphic-mark .icon { filter: brightness(0) invert(1); }
