/* Classic Source — premium dark: near-black surfaces, silver text, amber accent.
   Tuned for dense, scannable part data (high contrast, clear separators). */
:root {
  /* Editorial-heritage LIGHT theme: warm paper, near-black ink, amber + oxblood. */
  --bg: #f6f1e7;
  --bg-2: #efe8da;
  --surface: #fffdf8;
  --surface-2: #fbf7ee;
  --surface-3: #f3ecdd;
  --line: #e2d8c4;
  --line-soft: #ece3d3;
  --line-strong: #d2c4a8;
  --ink: #1a160f;
  --ink-soft: #5a5142;
  --muted: #7a6f5b;
  --amber: #c9821f;          /* fills, borders, dots, underlines */
  --amber-bright: #a96810;   /* amber TEXT (text-safe dark amber) */
  --amber-deep: #8a5510;
  --amber-bg: #f7ecd6;
  --green: #3f7d3a;
  --green-bg: #e6efdf;
  --red: #8c2f24;
  --img-bg: #f0e9da;
  --grad-amber: linear-gradient(180deg, #e8972b 0%, #c9821f 100%);
  --grad-head: linear-gradient(180deg, #fffdf8 0%, #f6f1e7 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 30, 12, .05), 0 4px 14px rgba(40, 30, 12, .06);
  --shadow-lg: 0 10px 30px rgba(40, 30, 12, .12), 0 2px 8px rgba(40, 30, 12, .07);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 50% -160px, rgba(201, 130, 31, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  background: var(--grad-head);
  color: var(--ink);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line-soft), 0 4px 18px rgba(40, 30, 12, .05);
}
.header-inner { display: flex; align-items: center; gap: 13px; padding: 13px 16px 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(40, 30, 12, .16)); }
.brand-name { font-weight: 800; letter-spacing: -.4px; font-size: 22px; line-height: 1; color: var(--ink); }
.brand-name .src { color: var(--amber); }
.tagline { margin: 0; color: var(--ink-soft); font-size: 13px; }

/* Account (header, right side) */
.account { margin-left: auto; display: flex; align-items: center; }
.acct-menu { display: flex; align-items: center; gap: 10px; }
.acct-name { font-size: 13px; font-weight: 700; color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-signin { white-space: nowrap; }
.acct-plan { border: 1px solid var(--amber); background: var(--amber-bg); color: var(--amber-bright); font: inherit; font-weight: 800; font-size: 11px; letter-spacing: .05em; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.acct-plan:hover { background: var(--amber); color: #1a1205; }

/* Auth modal */
.auth-card { max-width: 420px; }
.auth-body { padding: 18px; overflow-y: auto; }
.auth-sub { margin: 0 0 14px; color: var(--ink-soft); font-size: 13.5px; }
.google-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#googleBtn { min-height: 40px; display: flex; justify-content: center; }
.auth-or { position: relative; width: 100%; text-align: center; margin: 4px 0 10px; }
.auth-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-or span { position: relative; background: var(--surface); padding: 0 12px; color: var(--muted); font-size: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.auth-field input { font-size: 16px; padding: 11px 12px; } /* 16px keeps iOS from zooming on focus */
.auth-error { background: #fbeae6; color: var(--red); border: 1px solid #e7c3ba; border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13px; }
.auth-submit { margin-top: 2px; padding: 12px; font-size: 15px; }
.auth-toggle { margin: 14px 0 2px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.linkbtn { border: none; background: none; color: var(--amber-bright); font: inherit; font-weight: 700; cursor: pointer; padding: 0 2px; }
.linkbtn:hover { text-decoration: underline; }
.auth-card .modal-x { line-height: 1; }

/* Tabs */
.tabs { background: var(--bg-2); position: sticky; top: 0; z-index: 19; border-bottom: 1px solid var(--line); }
.tabs-inner { display: flex; gap: 6px; padding: 0 16px; }
.tab { background: none; border: none; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 14px; padding: 12px 14px; cursor: pointer; border-bottom: 2.5px solid transparent; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--amber); }
.tab-badge { display: inline-block; min-width: 18px; text-align: center; background: var(--amber); color: #1a1205; font-weight: 700; border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 2px; }
.tab-badge.zero { background: var(--surface-3); color: var(--ink-soft); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 16px 0; }

/* Vehicle picker */
.vehicle-active { font-size: 15px; }
.vehicle-active .veh { font-weight: 700; color: var(--amber-bright); }
.vehicle-picker { margin-top: 8px; }
.vehicle-picker summary { cursor: pointer; list-style: none; user-select: none; font-weight: 700; color: var(--amber); font-size: 14px; padding: 4px 0; }
.vehicle-picker summary::-webkit-details-marker { display: none; }
.chev { font-size: 11px; }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
/* min-width:0 lets each grid track shrink below its content — without it a <select> with a
   long option (e.g. "Bronco (6th gen)") forces its column wider than 1fr and the right column
   spills off the right edge of a phone, clipping the dropdown. */
.picker-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); font-weight: 600; min-width: 0; }
.picker-grid select, .manual-grid input { width: 100%; min-width: 0; }
select, input, .part-input { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px; transition: border-color .15s, box-shadow .15s; max-width: 100%; }
select:focus, input:focus, .part-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 169, 59, .18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
::placeholder { color: var(--muted); }
.picker-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* Garage */
.garage { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.garage-title { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 8px; }
.garage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.garage-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.garage-item.active { border-color: var(--amber); background: var(--amber-bg); }
.garage-item .g-label { flex: 1; cursor: pointer; }
.garage-item .g-use { font-size: 12px; color: var(--amber); font-weight: 600; cursor: pointer; }
.garage-item .g-del { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.garage-empty { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn { font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: var(--radius-sm); padding: 9px 15px; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--amber); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad-amber); color: #1a1205; border-color: transparent; box-shadow: 0 6px 18px rgba(247, 169, 59, .28); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(247, 169, 59, .4); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--amber); }
.btn.ghost:hover { background: var(--amber-bg); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* Search */
.search-card { position: sticky; top: 92px; z-index: 10; background: rgba(255, 253, 248, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search-row { display: flex; gap: 8px; }
.part-input { flex: 1; font-size: 16px; padding: 13px 14px; }
.filters { display: flex; align-items: center; gap: 16px; margin-top: 11px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.filters .chk { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.filters input[type=checkbox] { accent-color: var(--amber); }
.filters .sort { display: flex; align-items: center; gap: 6px; }
.filters select { padding: 6px 26px 6px 9px; font-size: 13px; }

/* "Ask AI about these results" panel (appears after a search) */
.ai-ask-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 2px 0 12px; }
.aiask-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.aiask-sub { color: var(--muted); font-size: 13px; }
.aiask-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.aiask-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.aiask-chip:hover { border-color: var(--amber); color: var(--amber-bright); background: var(--amber-bg); }
.aiask-form { display: flex; gap: 7px; }
.aiask-input { flex: 1; min-width: 0; font-size: 16px; padding: 9px 11px; }
.ai-q { font-size: 13.5px; font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.aiask-nudge { display: block; width: 100%; text-align: left; margin: 0 0 9px; border: 1px dashed var(--amber); background: var(--amber-bg); color: var(--amber-bright); font: inherit; font-weight: 700; font-size: 12.5px; padding: 8px 11px; border-radius: var(--radius-sm); cursor: pointer; }
.aiask-nudge:hover { background: var(--amber); color: #1a1205; }

/* AI answer card */
.ai-answer { background: linear-gradient(180deg, #fffaf0, var(--surface)); border: 1px solid var(--amber); border-radius: var(--radius); padding: 15px 16px; margin: 4px 0 14px; box-shadow: var(--shadow); }
.ai-answer.thinking { border-style: dashed; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-bright); background: var(--amber-bg); border-radius: 999px; padding: 3px 9px; }
.ai-usage { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ai-summary { font-size: 14.5px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
.ai-caution { font-size: 13px; color: var(--amber-deep); background: #fbf1dd; border-radius: var(--radius-sm); padding: 8px 11px; margin: 0 0 12px; }
.ai-picks { display: flex; flex-direction: column; gap: 9px; }
.ai-pick { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px; background: var(--surface-2); }
.ai-pick-rank { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1a1205; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ai-pick-body { flex: 1; min-width: 0; }
.ai-pick-name { font-weight: 700; font-size: 13.5px; color: var(--ink); margin: 0 0 3px; }
.ai-pick-meta { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 4px; }
.ai-pick-why { font-size: 13px; color: var(--ink-soft); margin: 0; }
.ai-pick-side { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.ai-pick-price { font-weight: 800; font-size: 15px; color: var(--amber-bright); }
.fit-badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; border-radius: 999px; padding: 2px 7px; }
.fit-badge.yes { background: var(--green-bg); color: var(--green); }
.fit-badge.likely { background: var(--amber-bg); color: var(--amber-bright); }
.fit-badge.verify { background: var(--surface-3); color: var(--muted); }
.fit-badge.fits { background: var(--green-bg); color: var(--green); }
.fit-badge.no { background: #fbeae6; color: var(--red); }
.ai-pick .o-buy { font-size: 12.5px; color: var(--amber); text-decoration: none; font-weight: 700; }
.ai-upgrade { text-align: center; padding: 6px 0 2px; }
.ai-upgrade .linkbtn { font-size: 13.5px; }
.ai-dots { display: inline-flex; gap: 4px; }
.ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; animation: ai-b 1s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-b { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-dots i { animation: none; } }

/* Search stage — a big, video-game style loading screen. Every number on it is REAL
   (sites completed, parts found so far); the only decoration is the rotating fact. */
.search-stage { background: linear-gradient(180deg, #fffdf8, var(--surface-2)); border: 1px solid var(--line-strong); border-radius: 18px; margin: 8px 0 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stage-inner { padding: 30px 22px 26px; text-align: center; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage-count { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--amber-bright); font-variant-numeric: tabular-nums; }
.stage-title { margin: 6px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.stage-bar { width: 100%; max-width: 460px; height: 9px; border-radius: 999px; background: var(--surface-3); margin: 18px 0 10px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(40,30,12,.10); }
.stage-bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad-amber); transition: width .5s cubic-bezier(.4,0,.2,1); }
.stage-found { font-size: 14px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stage-sites { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.stage-site { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border-radius: 999px; padding: 6px 13px; border: 1px solid var(--line); background: var(--surface); }
.stage-site.done { color: var(--green); background: var(--green-bg); border-color: transparent; font-weight: 700; }
.stage-site.pending { color: var(--muted); }
.stage-site.pending .stage-tick { animation: sl-pulse 1.2s ease-in-out infinite; }
.stage-fact-wrap { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-strong); width: 100%; max-width: 620px; }
.stage-fact-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-bright); }
.stage-fact { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink); opacity: 0; min-height: 54px; }
.stage-fact.in { animation: fact-in .55s ease forwards; }
@keyframes fact-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) { .stage-inner { min-height: 400px; padding: 44px 30px; } .stage-title { font-size: 32px; } .stage-fact { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .stage-fact.in { animation: none; opacity: 1; } .stage-site.pending .stage-tick { animation: none; } .stage-bar-fill { transition: none; } }

/* Status strip */
.status-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 2px; margin: 0 -16px; }
.vchip { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.5px; white-space: nowrap; }
.vchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.vchip.ok .dot { background: var(--green); }
.vchip.pending .dot { background: var(--amber); animation: pulse 1s infinite; }
.vchip.blocked .dot, .vchip.error .dot, .vchip.timeout .dot { background: var(--red); }
.vchip.disabled { opacity: .55; }
.vchip.idle { opacity: .6; }
.vchip .vname { font-weight: 600; }
.vchip .vmeta { color: var(--muted); font-variant-numeric: tabular-nums; }
.vchip.clickable { cursor: pointer; transition: border-color .12s, background .12s; }
.vchip.clickable:hover { border-color: var(--amber); }
.vchip.active { border-color: var(--amber); background: var(--amber-bg); }
.vchip.active .vname, .vchip.active .vmeta { color: var(--amber-bright); }
.results-meta .show-all { border-color: var(--amber); color: var(--amber); }
.results-meta .show-all:hover { background: var(--amber); color: #1a1205; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Results meta */
.results-meta { font-size: 13px; color: var(--ink-soft); margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.results-meta .pill { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.results-meta .cached { background: var(--green-bg); color: var(--green); border-color: transparent; }
.results-meta .meta-save { margin-left: auto; border-color: var(--amber); color: var(--amber); padding: 5px 11px; font-size: 12px; background: transparent; }
.results-meta .meta-save:hover { background: var(--amber); color: #1a1205; }
.results-meta .premium-pending { background: var(--amber-bg); color: var(--amber-bright); border-color: transparent; animation: pulse 1.3s infinite; }
.results-meta .verified-pill { background: var(--green-bg); color: var(--green); border-color: transparent; font-weight: 700; }
.results-meta .nofit-note { color: var(--muted); font-style: italic; font-size: 12px; }

/* View toggle (By platform / Compare prices) */
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 999px; margin: 2px 0 12px; }
.vt-btn { font: inherit; font-weight: 700; font-size: 13px; border: none; background: transparent; color: var(--ink-soft); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.vt-btn.active { background: var(--surface); color: var(--amber-bright); box-shadow: var(--shadow); }

/* Per-platform sections */
.platform-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.ps-head { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1.5px solid var(--line); }
.ps-vname { font-weight: 800; font-size: 15.5px; color: var(--ink); letter-spacing: -.2px; }
.ps-count { font-size: 12px; font-weight: 700; color: var(--amber-bright); background: var(--amber-bg); border-radius: 999px; padding: 1px 9px; }
.ps-viewall { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--amber); text-decoration: none; white-space: nowrap; }
.ps-viewall:hover { text-decoration: underline; }
.ps-foot { margin: 2px 2px 0; font-size: 12.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 3px; }
.ps-foot-line.muted { color: var(--muted); }
.platform-section.searching .ps-head { border-bottom-style: dashed; }
.ps-srch { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.srch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1s infinite; }

/* Side-by-side per-site columns (live search → native results → compare) */
.cmp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin: 2px 0 12px; font-size: 13px; }
.cmp-banner .cb-meta2 { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
/* Cheapest-so-far strip. The part name takes the leftover width and truncates — it must
   never wrap the strip into a tall block. */
.cmp-banner .cb-low { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cmp-banner .cb-low-lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-banner .cb-low-amt { font-size: 19px; font-weight: 800; color: var(--amber-bright); font-variant-numeric: tabular-nums; }
.cmp-banner .cb-low-who { flex: 1 1 140px; min-width: 0; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-banner .cb-cmp { margin-left: auto; border: 1px solid var(--amber); color: var(--amber); background: transparent; font: inherit; font-weight: 600; font-size: 12.5px; padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.cmp-banner .cb-cmp:hover { background: var(--amber); color: #1a1205; }
.cmp-banner .muted { color: var(--muted); }
.cols-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; }
.vcol { flex: 1 0 248px; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; scroll-snap-align: start; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.vcol.working { opacity: .96; }
.vcol-head { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.vcol-name { font-weight: 800; font-size: 14px; color: var(--ink); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcol-count { font-size: 11.5px; font-weight: 700; color: var(--amber-bright); background: var(--amber-bg); border-radius: 999px; padding: 1px 8px; }
.vcol-all { margin-left: auto; font-size: 11.5px; color: var(--amber); text-decoration: none; white-space: nowrap; }
.vcol-all:hover { text-decoration: underline; }
.vcol-srch { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
/* Placeholder cards keep a working column the same height as a finished one, so nothing
   below jumps when its results land. */
.vc-skel { height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: sk-slide 1.5s ease-in-out infinite; }
@keyframes sk-slide { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
.vcol-body { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.vcard { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 9px; background: var(--surface-2); }
.vc-top { display: flex; align-items: flex-start; gap: 8px; }
.vc-check input { width: 16px; height: 16px; accent-color: var(--amber); cursor: pointer; }
.vc-img { width: 46px; height: 46px; border-radius: 8px; object-fit: contain; background: var(--img-bg); border: 1px solid var(--line); flex: 0 0 auto; }
.vc-img.ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; }
.vc-name { font-size: 13px; line-height: 1.35; margin: 8px 0 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.vc-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.vc-amt { font-weight: 800; font-size: 15px; color: var(--ink); }
.vc-stock { font-size: 11px; white-space: nowrap; }
.vc-stock.in { color: var(--green); } .vc-stock.out { color: var(--red); } .vc-stock.note { color: var(--amber-bright); }
.vc-act { margin-top: 9px; display: flex; gap: 10px; align-items: center; }
.vc-act .o-buy { font-size: 12.5px; }

/* Results — rich, scannable rows */
.results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.row-main { display: grid; grid-template-columns: 22px 70px 1fr auto; gap: 13px; align-items: center; padding: 13px; cursor: pointer; }
.row-check { display: flex; align-items: center; justify-content: center; }
.row-check input { width: 18px; height: 18px; accent-color: var(--amber); cursor: pointer; }
.row-img { width: 70px; height: 70px; border-radius: 10px; object-fit: contain; background: var(--img-bg); border: 1px solid var(--line); }
.row-img.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; }
.row-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-name { font-weight: 650; font-size: 15px; line-height: 1.3; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-specs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.chip.pn { font-family: var(--mono); color: var(--amber-bright); background: var(--amber-bg); }
.chip.brand { color: var(--ink); background: var(--surface-3); }
.chip.cond { color: var(--ink-soft); background: var(--surface-3); text-transform: uppercase; letter-spacing: .3px; font-size: 10.5px; }
.chip.fit.verified { color: var(--green); background: var(--green-bg); font-weight: 700; }
.chip.fit.keyword { color: var(--muted); background: var(--surface-3); }
/* Four honest fitment levels, driven by the shared verdict (public/fitment.js). */
.chip.fit.fits { color: var(--green); background: var(--green-bg); font-weight: 700; }
.chip.fit.likely { color: var(--amber-bright); background: var(--amber-bg); font-weight: 700; }
.chip.fit.verify { color: var(--muted); background: var(--surface-3); }
.chip.fit.no { color: var(--red); background: #fbeae6; font-weight: 700; }
.row-avail { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.row-avail .sdot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.row-avail .sdot.in { background: var(--green); } .row-avail .sdot.out { background: var(--red); } .row-avail .sdot.note { background: var(--amber); }
.row-avail .stext.in { color: var(--green); } .row-avail .stext.out { color: var(--red); } .row-avail .stext.note { color: var(--amber-bright); }
.row-avail .vend { color: var(--ink); font-weight: 600; }
.row-avail .nv { color: var(--amber); font-weight: 600; }
.row-price { text-align: right; white-space: nowrap; align-self: center; }
.row-price .from { font-size: 10px; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .5px; }
.row-price .amt { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.row-price .amt.none { font-size: 13px; font-weight: 600; color: var(--muted); }
.row-price .range { font-size: 11px; color: var(--muted); display: block; font-variant-numeric: tabular-nums; }
.row-save { display: inline-block; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-bg); border-radius: 6px; padding: 1px 7px; margin-top: 3px; }
.row-expand { font-size: 11px; color: var(--muted); padding: 0 13px 9px 105px; }

/* Offer strip */
.offers { border-top: 1px solid var(--line); background: var(--bg-2); padding: 4px 13px 10px; }
.offer { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.offer:last-child { border-bottom: none; }
.offer .o-vendor { font-weight: 600; }
.offer .o-vendor .src { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.offer .o-stock { font-size: 12px; }
.offer .o-stock.in { color: var(--green); }
.offer .o-stock.out { color: var(--red); }
.offer .o-stock.note { color: var(--amber-bright); }
.offer .o-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.offer .o-price.best { color: var(--green); }
.offer .o-buy { font-size: 12px; font-weight: 600; color: #1a1205; background: var(--amber); border-radius: 8px; padding: 5px 11px; text-decoration: none; }
.offer .o-buy:hover { background: var(--amber-bright); }
.offer-best-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--green); border: 1px solid var(--green); border-radius: 5px; padding: 1px 5px; margin-left: 6px; }

/* States */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty h3 { color: var(--ink-soft); margin: 0 0 6px; }
.skeleton-row { height: 100px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface) 37%, var(--bg-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Compare tray */
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 14px; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 9px 10px 9px 20px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.compare-count { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.compare-bar-actions { display: flex; gap: 6px; }
.btn.small { padding: 7px 13px; font-size: 13px; }
.compare-bar .btn { background: var(--surface); color: var(--ink); border-color: var(--line); }
.compare-bar .btn:hover { border-color: var(--amber); }
.compare-bar .btn.ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.compare-bar .btn:disabled { opacity: .45; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(40, 30, 12, .42); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-card { background: var(--surface); border: 1px solid var(--line); width: 100%; max-width: 800px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .modal-card { border-radius: 18px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x { border: none; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.compare-body { overflow: auto; padding: 14px 18px; }
.cmp-grid { display: grid; gap: 10px; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); }
.cmp-col { border: 1px solid var(--line); border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 6px; position: relative; background: var(--surface-2); }
.cmp-col.best { border-color: var(--green); box-shadow: 0 0 0 2px rgba(52, 210, 127, .2); }
.cmp-col .cmp-win { position: absolute; top: -9px; left: 11px; background: var(--green); color: #06210f; font-size: 10px; font-weight: 700; letter-spacing: .4px; padding: 2px 8px; border-radius: 6px; }
.cmp-img { width: 100%; height: 98px; object-fit: contain; background: var(--img-bg); border-radius: 10px; }
.cmp-name { font-size: 13px; font-weight: 650; line-height: 1.3; }
.cmp-vendor { font-size: 12px; color: var(--ink-soft); }
.cmp-pn { font-family: var(--mono); font-size: 11.5px; color: var(--amber-bright); }
.cmp-price { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.cmp-price.best { color: var(--green); }
.cmp-stock { font-size: 12px; }
.cmp-stock.in { color: var(--green); } .cmp-stock.out { color: var(--red); } .cmp-stock.note { color: var(--amber-bright); }
.cmp-meta { font-size: 11px; color: var(--muted); }
.cmp-actions { margin-top: auto; display: flex; gap: 6px; }
.cmp-actions .btn { flex: 1; text-align: center; }

/* Saved searches */
.jobs-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; }
.jobs-head h2 { margin: 0; font-size: 21px; letter-spacing: -.4px; }
.jobs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s; }
.job-card:hover { border-color: var(--line-strong); }
.job-card .jc-info { flex: 1; min-width: 0; }
.job-card .jc-name { font-weight: 700; font-size: 16px; }
.job-card .jc-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.job-card .jc-total { display: flex; align-items: center; gap: 6px; }
.jobs-empty { color: var(--muted); padding: 34px 6px; text-align: center; }
.saved-run { border: 1px solid var(--amber); background: transparent; color: var(--amber); font: inherit; font-weight: 600; font-size: 12px; border-radius: 8px; padding: 7px 13px; cursor: pointer; }
.saved-run:hover { background: var(--amber); color: #1a1205; }
.job-card .l-del { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.btn.tiny { padding: 5px 10px; font-size: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 50; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink); padding: 11px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* On-demand "what's on the webpage" detail dropdown */
.offer-wrap { border-bottom: 1px solid var(--line-soft); }
.offer-wrap:last-child { border-bottom: none; }
.offer-wrap .offer { border-bottom: none; }
.det-toggle { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--amber); background: none; border: none; cursor: pointer; padding: 0; }
.det-toggle:hover { text-decoration: underline; }
.det-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 2px 0 10px; font-size: 13px; color: var(--ink-soft); }
.det-panel.hidden { display: none; }
.det-loading, .det-empty { color: var(--muted); font-size: 12.5px; }
.det-desc { margin: 0 0 8px; color: var(--ink); line-height: 1.5; }
.det-fit { margin: 0 0 8px; color: var(--amber-bright); font-size: 12.5px; }
.det-specs { display: grid; gap: 3px; margin-bottom: 8px; }
.det-spec { display: flex; gap: 8px; font-size: 12.5px; }
.det-spec .k { color: var(--muted); min-width: 96px; flex: 0 0 auto; }
.det-spec .v { color: var(--ink); }
.det-feats { margin: 0; padding-left: 18px; }
.det-feats li { margin: 2px 0; font-size: 12.5px; }
.cmp-col .det-panel { margin-top: 8px; }
.cmp-col .det-toggle { margin-top: 2px; }

/* Similar parts (loose discovery) */
.sim-foot { border-top: 1px solid var(--line-soft); padding: 8px 13px 6px; }
.sim-toggle { background: none; border: none; color: var(--amber); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.sim-toggle:hover { text-decoration: underline; }
.sims { display: flex; flex-direction: column; gap: 7px; padding: 6px 0 4px; }
.sims.hidden { display: none; }
.sim-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 11px; }
.sim-img { width: 46px; height: 46px; object-fit: contain; background: var(--img-bg); border: 1px solid var(--line); border-radius: 7px; }
.sim-info { min-width: 0; }
.sim-name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-sub { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; margin-top: 2px; }
.sim-sub .pn { font-family: var(--mono); color: var(--ink-soft); }
.sim-price { text-align: right; white-space: nowrap; }
.sim-price .amt { font-weight: 800; display: block; margin-bottom: 4px; }
.sim-card .det-panel { grid-column: 1 / -1; }
.sim-card .det-toggle { margin-top: 3px; }

.popover { display: none; }
.site-footer { color: var(--muted); font-size: 12px; padding: 18px 0 34px; text-align: center; border-top: 1px solid var(--line-soft); margin-top: 10px; }

@media (max-width: 560px) {
  .row-main { grid-template-columns: 20px 56px 1fr auto; gap: 10px; }
  .row-img { width: 56px; height: 56px; }
  .row-expand { padding-left: 86px; }
  .search-card { position: static; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .o-buy { grid-column: 2; }
}

/* ---- one status line ----
   Fixed height and always present once a search starts, so it never pushes the results
   up or down as it changes. Reads "N parts so far · still checking X" while working,
   then stays on screen as a permanent receipt of what was searched. */
.status-line { min-height: 30px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); padding: 0 2px; }
.status-line:empty { min-height: 0; }
.status-line strong { color: var(--ink); font-weight: 700; }
.status-line .sl-sep { color: var(--line-strong); }
.status-line .sl-wait { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-line.done .sl-wait { display: inline-flex; align-items: center; gap: 5px; }
.status-line .sl-none { color: var(--muted); }
.status-line .sl-check { color: var(--ok, #3f9c58); font-weight: 700; }
.sl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; animation: sl-pulse 1.1s ease-in-out infinite; }
@keyframes sl-pulse { 0%, 100% { opacity: .28; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sl-dot { animation: none; opacity: .8; }
  .vc-skel { animation: none; }
}

/* ---- part-type category chips ---- */
.cat-chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; margin: 2px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cat-chips.hidden { display: none; }
.cat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.cat-chip:hover { border-color: var(--amber); }
.cat-chip.active { background: var(--amber); border-color: var(--amber-bright); color: #fff; }
.cat-chip .cat-n { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; background: var(--img-bg); color: var(--ink); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.cat-chip.active .cat-n { background: rgba(255,255,255,.28); color: #fff; opacity: 1; }

/* ---- vehicle-fit header chip ---- */
.results-meta .fit { font-weight: 600; }
.results-meta .fit.dim { font-weight: 500; color: var(--amber-bright); }
.veh-chip { display: inline-flex; align-items: center; gap: 6px; background: #fbeed7; color: var(--amber-bright); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 6px 3px 10px; font: 700 13px/1 Georgia, serif; cursor: pointer; }
.veh-chip:hover { border-color: var(--amber); }
.veh-chip .veh-x { font-family: -apple-system, sans-serif; font-weight: 700; background: rgba(169,104,16,.16); border-radius: 999px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ps-foot-line.warn { color: var(--warn, #a8631f); }

/* ============================================================================
   TIER-ONE POLISH — elevation, tactility, depth.
   Layered low-alpha shadows (never one flat blur), buttons that physically press,
   cards that lift, and a single confident amber accent. Loaded last so it refines
   the existing layout rather than replacing it.
   ========================================================================== */
:root {
  --e1: 0 1px 2px rgba(48, 34, 12, .05);
  --e2: 0 1px 2px rgba(48, 34, 12, .05), 0 3px 8px rgba(48, 34, 12, .05);
  --e3: 0 1px 2px rgba(48, 34, 12, .04), 0 6px 16px rgba(48, 34, 12, .07), 0 16px 32px rgba(48, 34, 12, .05);
  --e4: 0 2px 4px rgba(48, 34, 12, .06), 0 14px 32px rgba(48, 34, 12, .11), 0 32px 64px rgba(48, 34, 12, .09);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, .85);
  --ring: 0 0 0 3.5px rgba(201, 130, 31, .20);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---- Cards: real elevation, subtle lift ---- */
.card { border-radius: 18px; box-shadow: var(--e3); border-color: var(--line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.search-card { border-radius: 18px; box-shadow: var(--e3); }

/* ---- Buttons: tactile. Highlight on top, shadow beneath, presses inward. ---- */
.btn {
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, var(--surface-2));
  box-shadow: var(--e2), var(--inset-hi);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--e3), var(--inset-hi); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(48, 34, 12, .13); }
.btn:focus-visible { outline: none; box-shadow: var(--e2), var(--ring); }
.btn.primary {
  background: linear-gradient(180deg, #eda23a 0%, #e8972b 45%, var(--amber) 100%);
  color: #23180a; border-color: transparent; font-weight: 700;
  box-shadow: 0 1px 2px rgba(133, 79, 9, .28), 0 6px 16px rgba(201, 130, 31, .34), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(133, 79, 9, .28), 0 12px 26px rgba(201, 130, 31, .42), inset 0 1px 0 rgba(255, 255, 255, .48); }
.btn.primary:active { transform: translateY(1px); box-shadow: inset 0 3px 7px rgba(120, 68, 4, .34); }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.ghost:hover { background: var(--amber-bg); box-shadow: none; transform: none; }
.btn:disabled { box-shadow: var(--e1); transform: none; opacity: .5; }

/* ---- Inputs: recessed, with a confident focus ring ---- */
select, input, .part-input {
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf7ef, var(--surface-2));
  box-shadow: inset 0 1px 2px rgba(48, 34, 12, .06);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
select:hover, input:hover, .part-input:hover { border-color: var(--line-strong); }
select:focus, input:focus, .part-input:focus { background: #fff; border-color: var(--amber); box-shadow: var(--ring), inset 0 1px 2px rgba(48, 34, 12, .04); }

/* ---- Result cards: float, and lift on hover ---- */
.vcol { border-radius: 16px; box-shadow: var(--e2); transition: box-shadow .25s var(--ease); }
.vcol:hover { box-shadow: var(--e3); }
.vcard { border-radius: 13px; box-shadow: var(--e1); transition: transform .18s var(--ease), box-shadow .22s var(--ease); }
.vcard:hover { transform: translateY(-2px); box-shadow: var(--e3); border-color: var(--line-strong); }
.ai-pick { border-radius: 13px; box-shadow: var(--e1); transition: transform .18s var(--ease), box-shadow .22s var(--ease); }
.ai-pick:hover { transform: translateY(-2px); box-shadow: var(--e3); }

/* ---- Chips / badges: crisper, slightly raised ---- */
.chip, .fit-badge, .stage-site, .aiask-chip { box-shadow: var(--e1); }
.aiask-chip { transition: transform .14s var(--ease), box-shadow .2s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.aiask-chip:hover { transform: translateY(-1px); box-shadow: var(--e2); }
.aiask-chip:active { transform: translateY(1px); box-shadow: none; }

/* ---- Header + panels: layered, not flat ---- */
.site-header { box-shadow: 0 1px 0 var(--line-soft), 0 6px 24px rgba(48, 34, 12, .06); }
.search-stage { box-shadow: var(--e4); }
.ai-answer { box-shadow: var(--e3); }
.ai-ask-panel { border-radius: 16px; box-shadow: var(--e2); }
.modal-card { box-shadow: var(--e4); }
.cmp-banner { border-radius: 14px; box-shadow: var(--e1); }
.compare-bar { box-shadow: var(--e4); }

/* ---- Typography polish ---- */
.brand-name { letter-spacing: -.6px; }
.stage-title { letter-spacing: -.6px; }
.vc-name { letter-spacing: -.1px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active, .vcard, .vcard:hover, .ai-pick, .ai-pick:hover, .aiask-chip, .aiask-chip:hover { transform: none; transition: none; }
}

/* ---- Pro upsell (the moment a free user taps Ask AI) ---- */
.pro-pitch-title { margin: 4px 0 3px; font-size: 20px; font-weight: 800; letter-spacing: -.35px; color: var(--ink); }
.pro-pitch-sub { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.pro-points { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pro-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.pro-points strong { color: var(--ink); font-weight: 700; }
.pro-check { flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pro-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.pro-buy { width: 100%; max-width: 340px; padding: 13px; font-size: 15.5px; }
.pro-fine { font-size: 12px; color: var(--muted); }
.stage-note { margin: 10px auto 0; max-width: 430px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---- site footer: identity + legal links ----
   Shared by index.html and the about / terms / privacy pages, so they all read as one product.
   Uses the same tokens as the rest of the sheet: --muted for the body, --amber-bright for links,
   --line-soft for the rule above. Keep .site-footer above this block as the base. */
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.footer-nav a { color: var(--amber-bright); font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-entity { margin: 0; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.footer-note { margin: 0; max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.5; }
