:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f0eee8;
  --border: #e4e2da;
  --border-strong: #cfccc0;
  --ink: #111622;
  --muted: #5a6275;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --fail: #dc2626;
  --fail-soft: #fef2f2;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}
.brand-text strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; color: var(--muted); }

.topnav { display: flex; gap: 26px; }
.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.16s;
}
.topnav a:hover { color: var(--ink); }

.live-stat {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 62px 0 54px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% -20%, rgba(29, 78, 216, 0.08), transparent 60%);
}
.hero-wrap {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
}
.hero h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 30px;
}

.scan-form {
  display: flex;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 7px;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(17, 22, 34, 0.06);
}
.input-shell {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 14px;
}
.input-prefix {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  margin-right: 4px;
}
.input-shell input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
  padding: 10px 6px;
  min-width: 0;
}

.btn-primary, .btn-ghost, .btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  border-radius: 11px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-success {
  background: var(--ok);
  color: #fff;
}
.btn-success:hover { background: #047857; transform: translateY(-1px); }

.btn-lg { padding: 14px 24px; font-size: 15px; width: 100%; }
.btn-full { width: 100%; }

.example-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.example-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s;
}
.example-chip:hover { border-color: var(--accent); color: var(--accent); }

.scan-error {
  max-width: 700px;
  margin: 16px auto 0;
  background: var(--fail-soft);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--fail);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  text-align: left;
}

/* Progress Card */
.progress-card {
  max-width: 700px;
  margin: 24px auto 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(17, 22, 34, 0.06);
}
.progress-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.progress-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.progress-steps li {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-steps li::before { content: '○'; font-family: var(--mono); }
.progress-steps li.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.progress-steps li.active::before { content: '◐'; }
.progress-steps li.done {
  background: var(--ok-soft);
  color: var(--ok);
}
.progress-steps li.done::before { content: '✓'; font-weight: 800; }

/* Cards & Report */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.report-section {
  padding: 46px 0 60px;
  border-bottom: 1px solid var(--border);
}
.report-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.report-topbar h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mono-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.mono-mini {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
  margin-bottom: 20px;
}
.score-card {
  display: flex;
  align-items: center;
  gap: 24px;
}
.gauge-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: var(--surface-soft); stroke-width: 10; }
.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-num { font-size: 32px; font-weight: 800; line-height: 1; }
.gauge-denom { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

.grade-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.grade-ok { background: var(--ok-soft); color: var(--ok); }
.grade-warn { background: var(--warn-soft); color: var(--warn); }
.grade-fail { background: var(--fail-soft); color: var(--fail); }

.risk-line { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 7px;
  color: var(--ink);
}

.shot-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.shot-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.shot-frame {
  height: 175px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* FixPack Banner */
.fixpack-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.fb-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #93c5fd;
  display: block;
  margin-bottom: 6px;
}
.fixpack-banner h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.fixpack-banner p { color: #cbd5e1; font-size: 14px; margin-bottom: 12px; }
.fb-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #e2e8f0;
}
.fb-price-box, .fb-unlocked-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.fb-price { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.fb-price span { font-size: 14px; font-weight: 500; color: #94a3b8; }
.fb-note { font-size: 12px; color: #94a3b8; margin-top: 10px; }
.fb-note code { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.unlocked-badge {
  display: inline-block;
  background: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Checks Accordion Cards */
.checks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.checks-legend { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.checks-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.check-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.check-item.st-fail { border-left: 4px solid var(--fail); }
.check-item.st-warn { border-left: 4px solid var(--warn); }
.check-item.st-pass { border-left: 4px solid var(--ok); }

.check-summary-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.check-left { display: flex; align-items: flex-start; gap: 12px; }
.st-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pill-pass { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-fail { background: var(--fail-soft); color: var(--fail); }

.check-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.check-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.check-right { text-align: right; flex-shrink: 0; }
.fine-tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: block; }

.check-body {
  display: none;
  padding: 0 20px 18px 20px;
  border-top: 1px solid var(--border);
  background: #fcfcfa;
  font-size: 13.5px;
}
.check-item.open .check-body { display: block; padding-top: 14px; }
.check-details-ul { margin: 8px 0 12px 18px; color: var(--ink); }
.check-fix-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

/* Table */
.table-card { margin-top: 20px; }
.muted-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.table-scroll { overflow-x: auto; margin-top: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marketing Sections */
.section { padding: 68px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 15.5px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}
.feat-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; color: var(--muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  max-width: 920px;
}
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 20px 44px rgba(29, 78, 216, 0.08); }
.price-tag { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.price-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.price-val { font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.price-val span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  margin-bottom: 24px;
  flex: 1;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 28px;
  align-items: start;
}
.faq-layout h2 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-item summary { font-weight: 700; font-size: 14.5px; cursor: pointer; }
.faq-item p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.recent-head h3 { font-size: 16px; font-weight: 700; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  border: 1px solid transparent;
}
.recent-row:hover { border-color: var(--accent); }

/* Footer */
.footer { padding: 30px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 34, 0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 26px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-head h3 { font-size: 20px; font-weight: 800; }
.close-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); cursor: pointer;
}
.modal-form { display: flex; flex-direction: column; gap: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.field input:focus { border-color: var(--accent); }
.modal-error {
  background: var(--fail-soft);
  color: var(--fail);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 200;
  display: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.toast.show { display: block; }

@media (max-width: 900px) {
  .topnav { display: none; }
  .summary-grid, .fixpack-banner, .faq-layout { grid-template-columns: 1fr; }
  .score-card { flex-direction: column; text-align: center; }
  .scan-form { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
}
