/* CarXMarket — shared stylesheet
 *
 * One file, no build step, no framework. Everything here is plain CSS that a
 * browser reads directly, because the site is uploaded to shared hosting by
 * dragging a folder — there is nothing to compile and nothing to install.
 *
 * Colours mirror Theme.swift so the site and the app look like the same
 * product. If the app's palette changes, change it here in the same commit.
 */

:root {
  --navy:        #0F172A;
  --navy-soft:   #1E293B;
  --navy-mid:    #1E3A5F;
  --accent:      #F59E0B;
  --accent-deep: #D97706;
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --surface-alt: #F1F5F9;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --text-2:      #475569;
  --text-3:      #94A3B8;
  --ok:          #16A34A;
  --ok-wash:     #DCFCE7;
  --bad:         #DC2626;
  --bad-wash:    #FEE2E2;
  --wrap:        1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent-deep); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}

.nav a.navlink {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a.navlink:hover,
.nav a.navlink[aria-current="page"] { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(150deg, var(--navy), var(--navy-mid) 62%, var(--navy-soft));
  color: #fff;
  padding: 84px 0 92px;
}

.hero h1 {
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 17ch;
}

.hero p.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin: 0 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.page-head {
  background: linear-gradient(150deg, var(--navy), var(--navy-mid) 62%, var(--navy-soft));
  color: #fff;
  padding: 54px 0 46px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin: 14px 0 0;
}

/* ── Stats strip ────────────────────────────────────────────────────────── */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

section { padding: 76px 0; }
section.alt { background: var(--surface-alt); }

h2 {
  font-size: clamp(24px, 3.2vw, 33px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h3 { font-size: 19px; margin: 0 0 7px; }

.section-lede {
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 40px;
  font-size: 17px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}

.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 20px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ── Question list ──────────────────────────────────────────────────────── */

.qlist {
  counter-reset: q;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.qlist li {
  counter-increment: q;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 16px 13px 50px;
  position: relative;
  font-size: 15.5px;
}

.qlist li::before {
  content: counter(q);
  position: absolute;
  left: 15px;
  top: 13px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Callouts, tables, FAQ ──────────────────────────────────────────────── */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0;
}

.callout p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15.5px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { background: var(--surface-alt); font-weight: 650; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 0;
  font-size: 16.5px;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after { content: "\2212"; }

details p:last-child { margin-bottom: 18px; }

main.doc { padding: 54px 0 76px; }
main.doc h2 { margin-top: 42px; }
main.doc p, main.doc li { color: var(--text-2); }
main.doc strong { color: var(--text); }

/* ── Status card (confirmation page) ────────────────────────────────────── */

.status-page {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 38px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.status-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 36px;
}

.status-mark.ok  { background: var(--ok-wash);  color: var(--ok); }
.status-mark.bad { background: var(--bad-wash); color: var(--bad); }

.status-card h1 { font-size: 27px; margin: 0 0 10px; letter-spacing: -0.02em; }
.status-card p  { color: var(--text-2); margin: 0 0 14px; }

.next-steps {
  text-align: left;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 24px;
}

.next-steps p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--text-3);
  margin: 0 0 10px;
}

.next-steps ol { margin: 0; padding-left: 20px; }
.next-steps li { margin-bottom: 6px; color: var(--text-2); font-size: 15.5px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .62);
  padding: 46px 0 40px;
  font-size: 14.5px;
}

footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.foot-links { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 20px; }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  max-width: 78ch;
}

@media (max-width: 620px) {
  section { padding: 54px 0; }
  .hero { padding: 60px 0 66px; }
  .stats { gap: 26px; }
  .nav-inner { gap: 14px; }
  .nav a.navlink { font-size: 14px; }
}
