:root {
  --bg: #0b0d12;
  --surface: #131720;
  --surface-2: #191f2d;
  --border: #262e42;
  --red: #e40521;
  --red-hover: #ff1f3b;
  --green: #22c55e;
  --text: #f3f5f9;
  --muted: #9aa4b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: radial-gradient(circle at 50% 0%, #171d2b 0%, var(--bg) 52%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  line-height: 1.55;
  font-size: 15px;
}

a { color: #f87171; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.87em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 52px;
}
.page-narrow { max-width: 580px; }

/* Navbar */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.3px;
}
.logo em { font-style: normal; color: var(--red); }
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.nav-links a { color: #d5dce8; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.nav-btn:hover { border-color: #435070; }

/* Hero */
.hero {
  padding: 38px 0 26px;
  text-align: center;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(228, 5, 33, 0.12);
  border: 1px solid rgba(228, 5, 33, 0.32);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.hero h1 span { color: #cbd5e1; }
.lead {
  max-width: 640px;
  margin: 0 auto 22px;
  color: #c7d0df;
  font-size: 16px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.media {
  margin: 0 auto 26px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.media video { width: 100%; max-height: 420px; display: block; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; padding: 6px; background: var(--surface); }
.photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}
.hl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
}
.hl-card strong { display: block; font-size: 14.5px; margin-bottom: 4px; color: #fff; }
.hl-card p { font-size: 13.5px; color: var(--muted); }

/* Sections & 4 Steps */
.section { margin-top: 34px; }
.section h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.steps-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px;
}
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card strong { font-size: 15px; }
.step-card p { font-size: 13.5px; color: var(--muted); }
.step-illust {
  margin-bottom: 10px;
  background: #0c0f16;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
}

/* W1: Check My Car Wizard */
.wizard-card {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid #303a52;
  border-radius: 14px;
  padding: 24px;
}
.wiz-step {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.wiz-step:first-of-type { border-top: none; padding-top: 8px; }
.wiz-q { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.wiz-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.wiz-opt {
  text-align: left;
  background: #0d1018;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  font-family: inherit;
}
.wiz-opt:hover { border-color: #465375; }
.wiz-opt.selected {
  border-color: var(--red);
  background: rgba(228, 5, 33, 0.1);
}
.wiz-opt.selected-ok {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}
.wiz-opt strong { display: block; font-size: 14px; margin-bottom: 2px; }
.wiz-opt span { font-size: 12.5px; color: var(--muted); display: block; }

.hh-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0b0e15;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.hh-screen {
  flex-shrink: 0;
  width: 118px;
  background: #141926;
  border: 2px solid #374151;
  border-radius: 6px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 8px;
  color: #cbd5e1;
}
.hh-tile { background: #1f273a; border-radius: 3px; padding: 4px 2px; }
.hh-tile.hh-active { background: rgba(228, 5, 33, 0.28); border: 1px solid var(--red); color: #fff; font-weight: 700; }

.wiz-callout {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #0e131d;
  border: 1px solid #3b4866;
  font-size: 14px;
}
.wiz-callout strong { display: block; margin-bottom: 6px; color: #fff; }

/* Checkout Card */
.checkout-card {
  margin-top: 20px;
  background: linear-gradient(180deg, #171d2b 0%, #121620 100%);
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.checkout-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag-green {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}
.tag-amber {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 9px;
  border-radius: 999px;
}
.checkout-top h2 { font-size: 22px; font-weight: 800; margin-bottom: 3px; }
.price-box { text-align: right; white-space: nowrap; }
.price { font-size: 32px; font-weight: 900; line-height: 1.05; }
.price-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid #313a50;
  background: #0a0c11;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.input:focus { outline: none; border-color: var(--red); }

.pay-grid { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.pay-alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-pay-main { padding: 14px 18px; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { background: var(--surface-2); border-color: #353f57; color: #fff; }
.btn-secondary:hover { background: #232a3b; }
.btn-paypal { background: #ffc439; color: #111827; font-weight: 800; }
.btn-paypal:hover { background: #ffd05b; }
.btn-crypto { background: #1c2436; border-color: #354569; color: #e2e8f0; }
.btn-crypto:hover { background: #243048; }

.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pay-badges span {
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
}

.buy-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.msg { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; background: rgba(34, 197, 94, 0.14); color: #bbf7d0; }
.msg.error { background: rgba(239, 68, 68, 0.15); color: #fecaca; }

/* Tables & Cards for Subpages */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-top: 20px;
}
.unit-pill {
  font-family: Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 12px 16px;
  background: #090c12;
  border: 1px solid #35415c;
  border-radius: 8px;
  text-align: center;
  color: #93c5fd;
  margin: 12px 0;
}
.code-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.code-table th, .code-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.code-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.guide-drawer {
  margin-top: 14px;
  background: #0e121a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
}
.guide-drawer summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #d5dce8; }
.guide-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.guide-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.footer-links a { color: #d5dce8; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}
.modal-box {
  background: var(--surface);
  border: 1px solid #323b52;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 20px;
}
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 16px; }
.close-btn { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.stack { display: flex; flex-direction: column; gap: 9px; }
.legal { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: #d1d8e5; }

@media (max-width: 680px) {
  .highlights, .steps-4, .pay-alt-row, .wiz-select-grid { grid-template-columns: 1fr; }
  .checkout-top { flex-direction: column; }
  .price-box { text-align: left; }
  .nav-links a.hide-sm { display: none; }
}
