:root {
  --bg: #0f1115;
  --panel: #181b22;
  --panel-2: #1f232c;
  --line: #2b3039;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #e23b2e; /* mazda-ish red */
  --accent-2: #3a86ff;
  --great: #36c46f;
  --fair: #6ec1e4;
  --negotiate: #f5a623;
  --walk: #e23b2e;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,0.35);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #14171d, #0f1115);
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  background: var(--accent); color: #fff; font-weight: 800; letter-spacing: 1px;
  padding: 6px 10px; border-radius: 8px; font-size: 0.9rem;
}
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-tool {
  color: var(--muted); font-size: 0.78rem; border-left: 1px solid var(--line);
  padding-left: 12px; margin-left: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tagline { color: var(--muted); margin: 0; font-style: italic; font-size: 0.95rem; }

/* Intro */
.intro { padding: 34px 0 10px; }
.intro h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 12px; }
.intro h1 em { color: var(--accent); font-style: normal; }
.intro p { color: var(--muted); max-width: 760px; }
.intro strong { color: var(--text); }

/* Layout */
.layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; padding: 18px 0 60px; align-items: start; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 1.05rem; margin: 0 0 14px; }
.card h2:not(:first-child) { margin-top: 22px; }
.card h3 { font-size: 0.95rem; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.note { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }

/* Inputs */
.inputs { position: sticky; top: 16px; }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--muted); }
.field.checkbox label { display: flex; align-items: center; gap: 8px; color: var(--text); }
input[type="number"], input[type="email"], select {
  width: 100%; padding: 10px 12px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent-2); }

/* Verdict */
.verdict-card { border-color: #333a46; }
.verdict-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.verdict-label { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.verdict-badge {
  font-weight: 800; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px;
  background: #333; color: #fff;
}
.verdict-badge.great { background: var(--great); }
.verdict-badge.fair { background: var(--fair); color: #06222e; }
.verdict-badge.negotiate { background: var(--negotiate); color: #2a1c00; }
.verdict-badge.walkaway { background: var(--walk); }
.verdict-line { margin: 6px 0 14px; }

.scrap-warning {
  background: rgba(226,59,46,0.12); border: 1px solid var(--walk);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.9rem;
}

.price-ladder { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.rung {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.rung span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rung strong { font-size: 1.15rem; }
.rung.great { border-color: var(--great); }
.rung.fair { border-color: var(--fair); }
.rung.walk { border-color: var(--walk); }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 520px) { .metrics { grid-template-columns: repeat(2,1fr); } }
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.metric.big { grid-column: span 1; border-color: var(--accent-2); }
.metric-value { display: block; font-size: 1.5rem; font-weight: 800; }
.metric.big .metric-value { color: var(--accent-2); }
.metric-label { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* Reserve */
.reserve-row { display: flex; gap: 24px; }
.reserve-value { display: block; font-size: 1.4rem; font-weight: 800; color: var(--negotiate); }
.risk-list { list-style: none; padding: 0; margin: 0; }
.risk-list li {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.risk-list li:last-child { border-bottom: none; }
.risk-list .rk-meta { color: var(--muted); font-size: 0.8rem; }
.risk-list .rk-cost { font-weight: 700; }

/* Transparency */
.assumptions { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.assumptions li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.assumptions li:last-child { border-bottom: none; }
.assumptions .a-val { color: var(--muted); white-space: nowrap; }
.conf { font-size: 0.68rem; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.conf.H { background: rgba(54,196,111,0.2); color: var(--great); }
.conf.M { background: rgba(245,166,35,0.2); color: var(--negotiate); }
.conf.L { background: rgba(226,59,46,0.2); color: var(--walk); }

/* CTA */
.cta { border-color: var(--accent-2); }
.email-form { display: flex; gap: 8px; margin-top: 12px; }
.email-form input { flex: 1; }
.email-form button {
  background: var(--accent-2); color: #fff; border: none; border-radius: 8px;
  padding: 0 18px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.email-form button:hover { filter: brightness(1.1); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-brand { color: var(--text); font-weight: 700; margin: 0 0 6px; }
.site-footer p { color: var(--muted); font-size: 0.8rem; margin: 0; max-width: 760px; }


/* Shared top nav (matches site.css) */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,21,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.nav-mark { background: var(--accent); color: #fff; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; }
.nav-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.cta-link { color: var(--accent-2); font-weight: 700; }


/* Signup success + hidden MailerLite iframe */
.signup-success {
  background: rgba(54,196,111,0.12); border: 1px solid var(--great); color: var(--text);
  border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-weight: 600;
}
.ml-hidden-iframe { display: none; }


/* Logo in nav + hero header */
.nav-logo { height: 34px; width: 34px; display: block; }
.brand-logo { height: 40px; width: 40px; display: block; }


/* MailerLite injected form — restyled to match the site */
.ml-form-embedContainer { width: 100% !important; }
.ml-form-embedContainer .ml-form-embedContent { display: none; }
.ml-form-embedContainer .ml-form-fieldRow { margin: 0 0 10px 0; }
.ml-form-embedContainer input[type="email"] {
  width: 100%; padding: 12px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; box-sizing: border-box;
  font-family: inherit;
}
.ml-form-embedContainer input[type="email"]:focus { outline: none; border-color: var(--accent-2); }
.ml-form-embedContainer .ml-form-embedSubmit { margin: 0; }
.ml-form-embedContainer .ml-form-embedSubmit button.primary,
.ml-form-embedContainer .ml-form-embedSubmit button.loading {
  width: 100%; background: var(--accent-2); color: #fff; border: none; border-radius: 8px;
  padding: 12px 22px; font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: inherit;
}
.ml-form-embedContainer .ml-form-embedSubmit button.primary:hover { filter: brightness(1.1); }
.ml-form-embedContainer .ml-form-successContent h4 { color: var(--text); margin: 0 0 6px; }
.ml-form-embedContainer .ml-form-successContent p { color: var(--muted); margin: 0; }
.ml-form-embedContainer .ml-error input { border-color: var(--accent) !important; }
