/* metrixa css v4 */
:root{
  --bg:#0b0b0b;
  --panel:#121212;
  --text:#f2f2f2;
  --muted:#b9b9b9;
  --line:#232323;
  --accent:#ffffff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
}

a{ color:var(--text); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 10px 0 22px 0;
  border-bottom:1px solid var(--line);
}

.brand{
  font-weight:700;
  letter-spacing:0.2px;
}

.navlinks{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.hero{
  padding: 48px 0 18px 0;
}

.h1{
  font-size: clamp(34px, 5vw, 54px);
  line-height:1.08;
  margin: 0 0 14px 0;
  letter-spacing:-0.6px;
}

.sub{
  color:var(--muted);
  font-size: 18px;
  max-width: 72ch;
  margin: 0 0 22px 0;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
}

.ctaRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight:600;
}

.btn.primary{
  background: var(--accent);
  color:#000;
  border-color: transparent;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin: 26px 0 8px 0;
}

.card{
  grid-column: span 12;
  padding: 16px 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
}

@media (min-width: 860px){
  .card.span6{ grid-column: span 6; }
  .card.span4{ grid-column: span 4; }
}

.card h3{
  margin:0 0 8px 0;
  font-size:16px;
}

.card p{
  margin:0;
  color:var(--muted);
}

.hr{
  border:none;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}

.footer{
  border-top:1px solid var(--line);
  margin-top: 32px;
  padding: 18px 0 28px 0;
  color: var(--muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size: 13px;
}

.pageTitle{
  font-size: 28px;
  margin: 28px 0 10px 0;
  letter-spacing:-0.3px;
}

.prose{
  max-width: 80ch;
  color: var(--muted);
}

.prose h2{
  color: var(--text);
  font-size: 16px;
  margin: 20px 0 6px 0;
}

.prose ul{
  margin: 8px 0 14px 20px;
}


/* Car Checker Section */
.carChecker {
  margin: 60px 0;
  padding: 40px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.carChecker h2 {
  margin-top: 0;
  font-size: 32px;
}

.checkerForm {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.urlInput {
  flex: 1;
  min-width: 300px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}

.urlInput:focus {
  outline: none;
  border-color: var(--accent);
}

.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  padding: 16px;
  background: #3d1a1a;
  border: 1px solid #6b2020;
  border-radius: 8px;
  color: #ff6b6b;
  margin: 16px 0;
}

.result {
  margin-top: 24px;
}

.resultCard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.resultCard h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--muted);
}

.carDetails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail .label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.fairnessBox {
  margin: 24px 0;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid;
}

.fairnessBox.below {
  background: #1a3d2a;
  border-color: #2d6b47;
}

.fairnessBox.around {
  background: #2a3a3d;
  border-color: #4a6b70;
}

.fairnessBox.above {
  background: #3d2a1a;
  border-color: #6b4720;
}

.fairnessBox.unknown {
  background: var(--panel);
  border-color: var(--line);
}

.fairnessLabel {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fairnessText {
  color: var(--muted);
  line-height: 1.6;
}

.riskFlags {
  margin: 24px 0;
  padding: 16px;
  background: #3d2a1a;
  border: 1px solid #6b4720;
  border-radius: 8px;
}

.riskFlags h4 {
  margin-top: 0;
  font-size: 16px;
}

.riskFlags ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.riskFlags li {
  margin: 8px 0;
  color: var(--muted);
}

.searchForm {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.searchForm input {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}

.searchResults {
  margin: 24px 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.searchItem {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s;
}

.searchItem:hover {
  background: rgba(255,255,255,0.05);
}

.searchItem:last-child {
  border-bottom: none;
}

.searchItemTitle {
  font-weight: 600;
  margin-bottom: 4px;
}

.searchItemDetails {
  color: var(--muted);
  font-size: 14px;
}

.divider {
  text-align: center;
  color: var(--muted);
  margin: 24px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line);
}

.divider::before { left: 0; }
.divider::after { right: 0; }
