/* CarDealLens - one stylesheet, light + dark tokens, no external fonts. */
:root {
  --bg: #f6f7f4; --surface: #ffffff; --surface-2: #eef1ec; --text: #14201b; --muted: #55635c;
  --border: #d7ddd6; --brand: #0d6b4f; --brand-ink: #ffffff; --accent: #b35c00; --accent-bg: #fff1e0;
  --good: #0d6b4f; --good-bg: #e2f3ea; --warn: #8a4b00; --warn-bg: #fff1e0; --bad: #a3231c; --bad-bg: #fde9e7;
  --focus: #1b5fd1; --shadow: 0 1px 2px rgba(20, 32, 27, .06), 0 4px 14px rgba(20, 32, 27, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #17201c; --surface-2: #1f2a25; --text: #e8eee9; --muted: #a3b2aa;
    --border: #2d3a34; --brand: #4fc79a; --brand-ink: #062117; --accent: #ffb25c; --accent-bg: #3a2711;
    --good: #6fdcaf; --good-bg: #15362a; --warn: #ffc27a; --warn-bg: #3a2711; --bad: #ff8a80; --bad-bg: #3d1714;
    --focus: #8cb4ff; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #17201c; --surface-2: #1f2a25; --text: #e8eee9; --muted: #a3b2aa;
  --border: #2d3a34; --brand: #4fc79a; --brand-ink: #062117; --accent: #ffb25c; --accent-bg: #3a2711;
  --good: #6fdcaf; --good-bg: #15362a; --warn: #ffc27a; --warn-bg: #3a2711; --bad: #ff8a80; --bad-bg: #3d1714;
  --focus: #8cb4ff; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header + 7 Years by MADITECH lockup (same shape as getjoey.app) */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-name { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.brand-name b { color: var(--brand); }
.years-badge { display: inline-flex; align-items: baseline; gap: .16rem; margin-left: .1rem; padding-left: .6rem;
  border-left: 1.5px solid var(--border); line-height: 1; }
.years-num { font-size: 1.45rem; font-weight: 900; color: var(--brand); letter-spacing: -.03em; }
.years-word { font-size: .85rem; font-weight: 600; font-style: italic; color: var(--muted); transform: rotate(-5deg); transform-origin: left bottom; }
.brand-by { font-size: .85rem; color: var(--muted); text-decoration: none; }
.brand-by strong { color: var(--text); }
nav.top { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav.top a { color: var(--text); text-decoration: none; padding: 10px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
nav.top a:hover { background: var(--surface-2); }
.theme-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; min-height: 44px;
  min-width: 44px; cursor: pointer; font-size: 18px; }

/* hero */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; }
.hero p.lede { margin: 0 0 14px; color: var(--muted); max-width: 760px; font-size: 17px; }
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 14px;
  font-weight: 600; border: 1px solid var(--border); background: var(--surface); }
.pill.fresh { color: var(--good); background: var(--good-bg); border-color: transparent; }
.pill.stale { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill.dead { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.notice { background: var(--accent-bg); color: var(--text); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.notice strong { color: var(--accent); }

/* controls */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.controls label, .fieldset legend { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .04em; }
select, input[type=text], input[type=email], input[type=number], textarea {
  width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
  padding: 9px 11px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.bands { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 14px;
  min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip .n { opacity: .75; font-weight: 500; margin-left: 4px; }
.pains { display: flex; flex-wrap: wrap; gap: 8px; }
.pains label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; background: var(--surface); font-weight: 600; font-size: 15px; text-transform: none;
  letter-spacing: 0; color: var(--text); margin: 0; }
.pains input { width: 18px; height: 18px; accent-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 4px; min-height: 44px; text-decoration: underline; }

/* sections + cards */
section.block { margin: 28px 0; }
section.block > h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.01em; }
section.block > p.sub { margin: 0 0 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card.pick { border: 2px solid var(--brand); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.price { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.score { text-align: center; min-width: 64px; border-radius: 12px; padding: 6px 8px; background: var(--good-bg); color: var(--good); }
.score b { display: block; font-size: 24px; line-height: 1; }
.score span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.score.mid { background: var(--warn-bg); color: var(--warn); }
.score.low { background: var(--bad-bg); color: var(--bad); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 14.5px; margin: 0; padding: 0; list-style: none; }
.facts li { white-space: nowrap; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 3px 8px; background: var(--warn-bg); color: var(--warn); }
.flag.bad { background: var(--bad-bg); color: var(--bad); }
.flag.ok { background: var(--good-bg); color: var(--good); }
.card details { border-top: 1px solid var(--border); padding-top: 6px; }
.card summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.card details ul { margin: 4px 0 6px 18px; padding: 0; font-size: 14.5px; }
.fair, .recall { font-size: 14.5px; margin: 0; }
.recall ul { margin: 4px 0 0 18px; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.new-badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; }
.count { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }

/* forms */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.status { font-size: 15px; margin: 8px 0 0; min-height: 1.5em; }
.status.ok { color: var(--good); } .status.err { color: var(--bad); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tier { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); }
.tier h4 { margin: 0 0 4px; font-size: 16px; }
.tier .p { font-size: 22px; font-weight: 900; }
.tier .tag { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: .05em; }

/* prose pages */
.prose { max-width: 780px; padding: 24px 0 40px; }
.prose h1 { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.15; }
.prose h2 { margin-top: 28px; }
.prose li { margin: 6px 0; }
table.rules { border-collapse: collapse; width: 100%; font-size: 15px; }
table.rules th, table.rules td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }

footer.site { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; padding: 22px 0; font-size: 14.5px; color: var(--muted); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer.site a { color: var(--text); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer.site nav a { padding: 6px 0; display: inline-block; }

@media (max-width: 760px) {
  .two, .tiers { grid-template-columns: 1fr; }
  nav.top { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  nav.top a { white-space: nowrap; }
  .brand-by { display: none; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
