/* MyCarInspector — design system
   A deliberately different world from the old navy-and-gold: near-black ink on
   warm paper, one vivid "cleared" green, geometric sans throughout, generous
   radii. Reads as a modern consumer service, not a dealership. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600&display=swap');

:root {
  --ink:      #14161A;
  --ink-2:    #262A31;
  --paper:    #FBFAF7;
  --paper-2:  #F2F1EC;
  --card:     #FFFFFF;
  --lime:     #C8F250;
  --lime-2:   #B5E23A;
  --lime-dk:  #5E7A12;
  --forest:   #16352A;
  --sky:      #2B6BE4;
  --warn:     #E8890C;
  --fault:    #DC3A3A;
  --ok:       #1B9E5A;
  --gray:     #64707E;
  --gray-2:   #97A2AE;
  --line:     #E4E2DC;
  --line-d:   rgba(255,255,255,.12);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'Space Grotesk', ui-monospace, monospace;

  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pad:  clamp(20px, 5vw, 64px);

  --sh-sm: 0 1px 2px rgba(20,22,26,.05);
  --sh:    0 6px 16px -6px rgba(20,22,26,.12);
  --sh-lg: 0 24px 48px -18px rgba(20,22,26,.20);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--ink); color: #E9ECF0; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------------------------------- type --------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 700; margin: 0 0 .4em;
  line-height: 1.08; letter-spacing: -.028em;
}
h1 { font-size: clamp(40px, 7.5vw, 78px); }
h2 { font-size: clamp(29px, 4.6vw, 46px); }
h3 { font-size: clamp(19px, 2.3vw, 24px); letter-spacing: -.018em; }
p  { margin: 0 0 1em; }

.accent { color: var(--lime-dk); }
.hl { background: var(--lime); padding: 0 .18em; border-radius: 4px; color: var(--ink); }

.section-label, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
  margin-bottom: 16px;
}
.section-label::before, .eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
}
body.dark .section-label, body.dark .eyebrow { color: var(--gray-2); }
.section-line { display: none; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }

.num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(17px, 1.9vw, 21px); color: var(--gray); max-width: 60ch; }
body.dark .lede { color: var(--gray-2); }
.legal { font-size: 13.5px; color: var(--gray); line-height: 1.6; }
body.dark .legal { color: var(--gray-2); }

/* --------------------------------- layout -------------------------------- */

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section.tint { background: var(--paper-2); }
body.dark .section.tint { background: var(--ink-2); }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3,1fr); } }

/* ---------------------------------- nav ---------------------------------- */

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body.dark .topbar { background: rgba(20,22,26,.9); border-bottom-color: rgba(255,255,255,.08); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,242,80,.28); }
.topbar nav { margin-left: auto; display: flex; gap: 26px; align-items: center; font-size: 15.5px; font-weight: 450; }
.topbar nav a { text-decoration: none; color: var(--gray); }
.topbar nav a:hover, .topbar nav a.on { color: var(--ink); }
body.dark .topbar nav a:hover, body.dark .topbar nav a.on { color: #fff; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1.5px solid var(--line);
  border-radius: 10px; width: 42px; height: 38px; cursor: pointer; color: inherit;
  align-items: center; justify-content: center; gap: 4px; flex-direction: column;
}
.menu-btn span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }
body.dark .menu-btn { border-color: rgba(255,255,255,.2); }

@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .topbar nav {
    position: fixed; inset: 66px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 0 14px; box-shadow: var(--sh-lg);
    max-height: calc(100vh - 66px); overflow-y: auto;
    display: none;
  }
  body.dark .topbar nav { background: var(--ink-2); border-bottom-color: rgba(255,255,255,.1); }
  .topbar nav.open { display: flex; }
  .topbar nav a {
    padding: 15px var(--pad); font-size: 17px; font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  body.dark .topbar nav a { border-bottom-color: rgba(255,255,255,.07); }
  .topbar nav a:last-child { border-bottom: 0; }
  .topbar nav a.hide-sm { display: block; }
  .topbar nav a.on { color: var(--ink); background: rgba(200,242,80,.16); }
  body.dark .topbar nav a.on { color: #fff; }
}

/* --------------------------------- hero ---------------------------------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; top: -22%; right: -14%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(200,242,80,.34), transparent 66%);
  border-radius: 50%; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--gray);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px; box-shadow: var(--sh-sm);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(138px,1fr)); margin-top: 52px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.stat-card .n { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.stat-card .l { font-size: 13.5px; color: var(--gray); margin-top: 2px; }

/* -------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--sh); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--lime-2); border-color: var(--lime-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); box-shadow: none; }
body.dark .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
body.dark .btn.ghost { background: transparent; color: #E9ECF0; border-color: rgba(255,255,255,.22); }
.btn.danger { background: transparent; border-color: var(--fault); color: var(--fault); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 18px; font-size: 14.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn-row .grow { flex: 1; }

/* --------------------------------- cards --------------------------------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
body.dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.09); }
.step { padding: 28px 26px; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}

/* ------------------------------- packages -------------------------------- */

.packages { display: grid; gap: 22px; }
@media (min-width: 880px) { .packages { grid-template-columns: 1fr 1fr; align-items: start; } }
.pkg {
  position: relative; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-xl); padding: 32px 28px; transition: all .16s ease;
}
.pkg:hover { border-color: var(--ink); box-shadow: var(--sh-lg); }
.pkg.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--sh); }
.pkg-silver { background: var(--forest); border-color: var(--forest); color: #EAF3EC; }
.pkg-silver .pkg-band, .pkg-silver .pkg-features li { color: #B9CFC0; }
.pkg-silver .pkg-price, .pkg-silver .pkg-badge { color: #fff; }
.pkg-silver .pkg-divider { background: rgba(255,255,255,.14); }
.pkg-silver .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pkg-badge { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pkg-band { font-size: 14.5px; color: var(--gray); margin-top: 3px; }
.pkg-price { font-family: var(--display); font-weight: 700; font-size: 62px; line-height: 1; letter-spacing: -.045em; margin: 16px 0 2px; }
.pkg-price sup { font-size: 26px; top: -.85em; }
.pkg-divider { height: 1px; background: var(--line); margin: 24px 0; }
.pkg-features { list-style: none; margin: 0; padding: 0; }
.pkg-features li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 15.5px; }
.check { flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pkg-flag { position: absolute; top: -12px; right: 26px; background: var(--lime); color: var(--ink); font-family: var(--display); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }

/* --------------------------------- forms --------------------------------- */

label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 7px; color: var(--ink); }
body.dark label { color: #D6DBE2; }
label .opt { font-weight: 400; color: var(--gray); }
input, select, textarea {
  width: 100%; font-family: var(--body); font-size: 16.5px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink);
  transition: border-color .14s, box-shadow .14s;
}
body.dark input, body.dark select, body.dark textarea { background: var(--ink); border-color: rgba(255,255,255,.14); color: #E9ECF0; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--gray-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200,242,80,.4); }
input.big { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 20px 14px; }
input.err, select.err { border-color: var(--fault); box-shadow: 0 0 0 4px rgba(220,58,58,.12); }
.err-msg { color: var(--fault); font-size: 14px; margin: 7px 0 0; }
.field { margin-bottom: 18px; }
.row { display: grid; gap: 16px; }
@media (min-width: 620px) { .row.r2 { grid-template-columns: 1fr 1fr; } .row.r3 { grid-template-columns: 1fr 1fr 1fr; } }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--gray); margin-bottom: 15px; line-height: 1.55; }
.check-row input { width: auto; flex: none; margin-top: 4px; }
body.dark .check-row { color: var(--gray-2); }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); padding: 0 0 14px; }

/* ------------------------------ wizard rail ------------------------------ */

.rail { display: flex; align-items: center; margin: 0 0 36px; }
.rail-step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rail-step:last-child { flex: 0; }
.rail-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--card); color: var(--gray); border: 1.5px solid var(--line); transition: all .2s ease;
}
.rail-label { font-size: 14.5px; font-weight: 500; color: var(--gray); white-space: nowrap; }
.rail-line { flex: 1; height: 2px; background: var(--line); margin: 0 12px; min-width: 12px; }
.rail-step.done .rail-dot { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rail-step.done .rail-line { background: var(--lime); }
.rail-step.done .rail-label { color: var(--ink); }
.rail-step.on .rail-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 5px rgba(200,242,80,.35); }
.rail-step.on .rail-label { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .rail-label { display: none; } .rail-line { margin: 0 6px; } }
.step-panel { display: none; }
.step-panel.on { display: block; animation: slideIn .26s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------- tiles --------------------------------- */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.tile { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; background: var(--card); transition: all .14s ease; }
.tile:hover { border-color: var(--ink); }
.tile.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tile.on .tile-sub { color: #A9B3BF; }
.tile b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; }
.tile-sub { font-size: 14px; color: var(--gray); margin-top: 2px; }
body.dark .tile { background: var(--ink-2); border-color: rgba(255,255,255,.12); }
body.dark .tile.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* -------------------------------- verdict -------------------------------- */

.verdict { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--card); }
.verdict-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.verdict.green { border-color: rgba(27,158,90,.4); background: rgba(27,158,90,.06); }
.verdict.green .verdict-icon { background: var(--lime); color: var(--ink); }
.verdict.amber { border-color: rgba(232,137,12,.4); background: rgba(232,137,12,.06); }
.verdict.amber .verdict-icon { background: rgba(232,137,12,.16); color: var(--warn); }
.verdict.red, .verdict.black { border-color: rgba(220,58,58,.3); background: rgba(220,58,58,.05); }
.verdict.red .verdict-icon, .verdict.black .verdict-icon { background: rgba(220,58,58,.12); color: var(--fault); }
.verdict h4 { font-family: var(--display); font-size: 19px; margin: 0 0 4px; }
.verdict p { margin: 0; font-size: 15.5px; color: var(--gray); }

/* -------------------------------- summary -------------------------------- */

.summary { position: sticky; bottom: 0; z-index: 20; background: var(--ink); color: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 -10px 30px rgba(20,22,26,.16); }
.summary .lbl { font-size: 14px; color: #A9B3BF; }
.summary .amt { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--lime); letter-spacing: -.03em; }

/* -------------------------------- statuses ------------------------------- */

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; }
.pill.green { color: var(--ok); }
.pill.amber { color: var(--warn); }
.pill.red   { color: var(--fault); }
.pill.black { color: var(--gray); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ------------------------------ trust + faq ------------------------------ */

.trustbar { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust { display: flex; gap: 13px; align-items: center; }
.trust-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.trust b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; }
.trust span { font-size: 14px; color: var(--gray); }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 19px 40px 19px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-family: var(--display); font-size: 26px; color: var(--gray); font-weight: 400; }
details.faq[open] summary::after { content: '\2013'; }
details.faq p { color: var(--gray); font-size: 16px; padding-bottom: 10px; margin: 0; }

/* ------------------------------ trace + table ---------------------------- */

.trace { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; }
.trace .line { display: grid; grid-template-columns: 64px 180px 1fr; gap: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.trace .t { color: var(--gray-2); }
.trace .k { color: var(--lime); font-weight: 600; }
.trace .d { color: #C3CBD4; font-family: var(--body); font-size: 14px; word-break: break-word; }
.trace .line.hit .k { color: var(--ok); }
.trace .line.miss .k { color: var(--fault); }
@media (max-width: 660px) { .trace .line { grid-template-columns: 56px 1fr; } .trace .d { grid-column: 1/-1; padding-left: 68px; } }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--display); font-size: 13px; letter-spacing: .04em; color: var(--gray); font-weight: 600; padding: 10px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
body.dark th, body.dark td { border-bottom-color: rgba(255,255,255,.09); }
body.dark th { color: var(--gray-2); }
tbody tr:hover td { background: rgba(200,242,80,.08); }

/* --------------------------------- misc ---------------------------------- */

.strip { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
body.dark .stat b { color: var(--lime); }
.stat span { font-size: 13.5px; color: var(--gray); }
body.dark .stat span { color: var(--gray-2); }
.empty { padding: 40px 22px; text-align: center; color: var(--gray); font-size: 15.5px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
body.dark .empty { border-color: rgba(255,255,255,.14); color: var(--gray-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 15px 24px; border-radius: 999px; font-size: 15px; z-index: 90; max-width: 92vw; box-shadow: var(--sh-lg); }
footer { background: var(--ink); color: #98A3B0; font-size: 15px; padding: 56px 0 42px; }
footer a { color: #D3D9E0; }
footer .brand { color: #fff; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
