/* CarsWorthIt — "CW Midnight" theme (charcoal + electric lime).
   Every selector from the previous stylesheet is kept; only the look changes.
   Readability: Lexend body text (designed for reading fluency), generous line height,
   no italics, no justified text, off-white on charcoal (not pure white on black). */
:root {
  --bg: #111518; --bg-2: #0c0f11; --s1: #182024; --s2: #1f282d; --s3: #273238;
  --line: #2b363c; --line-2: #3a474e;
  --ink: #eef2f3; --ink-2: #c8d1d5; --mut: #9daab1;
  --lime: #c6f432; --lime-2: #a9d61c; --lime-ink: #0f1408; --lime-soft: rgba(198, 244, 50, .12);
  --red: #ff8a80; --amber: #ffc861; --green: #c6f432;
  /* legacy names, kept so nothing that references them breaks */
  --paper: var(--bg); --card: var(--s1); --navy: var(--bg-2); --navy-2: var(--s2); --teal: var(--lime);
  --head: 'Sora', 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Lexend', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--head);
  --r: 16px; --r-sm: 11px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.7 var(--sans); letter-spacing: .005em; word-spacing: .03em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
em, i:not([style]) { font-style: normal; }
a { color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
img, svg { max-width: 100%; }
p { max-width: 70ch; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Header */
.top {
  background: rgba(12, 15, 17, .88); color: var(--ink);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.top-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 21px/1 var(--head); letter-spacing: -.025em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--lime); font-weight: 800; }
.brand .cw-mark { width: 38px; height: 38px; flex: none; }
.foot .brand { color: #fff; }
.top nav { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.top nav > a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; padding: 8px 11px; border-radius: 10px; }
.top nav > a:hover { color: #fff; background: var(--s2); }
.top nav > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.top nav .cta { background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 11px; font-weight: 700; margin-left: 6px; box-shadow: 0 0 0 1px rgba(198,244,50,.35), 0 6px 20px rgba(198,244,50,.18); }
.top nav .cta:hover { background: #d4ff4a; color: var(--lime-ink); }
.search { position: relative; flex: 1; max-width: 400px; }
.search::before { content: ""; position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); background: var(--mut); pointer-events: none;
  -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s1); color: var(--ink); font: 15px var(--sans); min-height: 44px; }
.search input::placeholder { color: #8695a0; }
.search input:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px var(--lime-soft); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); overflow: hidden; z-index: 40; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.suggest a span { color: var(--mut); font-weight: 400; font-size: 13.5px; }
.suggest a:hover, .suggest a.on { background: var(--s3); box-shadow: inset 3px 0 0 var(--lime); }

/* Destination / currency picker */
.prefs { display: flex; gap: 6px; }
.prefs select { background: var(--s1); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: 500 14px var(--sans); min-height: 40px; cursor: pointer; }
.prefs select:hover { border-color: #55646c; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(198,244,50,.16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(198,244,50,.07), transparent 60%),
    linear-gradient(180deg, #0c0f11 0%, #121719 100%);
  color: var(--ink); padding: 72px 0 84px; border-bottom: 1px solid var(--line);
}
.hero::after { /* speed lines, like the road in the brand image */
  content: ""; position: absolute; inset: auto -10% -1px 40%; height: 140px; z-index: -1; opacity: .55;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(198,244,50,.07) 46px 47px);
  -webkit-mask: linear-gradient(180deg, transparent, #000); mask: linear-gradient(180deg, transparent, #000);
}
.hero-sm { padding: 44px 0 40px; }
.hero-sm::after { display: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--lime); margin: 0 0 18px; padding: 6px 12px; border: 1px solid rgba(198,244,50,.3); border-radius: 999px; background: var(--lime-soft); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -.015em; line-height: 1.18; color: #fff; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 0 0 20px; max-width: 16ch; }
.hero-sm h1 { font-size: clamp(30px, 4vw, 46px); margin: 0; max-width: none; }
.hero h1 em {
  font-style: normal; color: var(--lime); padding-bottom: .12em;
  background: var(--i-swoosh) left bottom / 100% .22em no-repeat;
}
.hero h1 span { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .4em; color: var(--mut); letter-spacing: 0; margin-left: 10px; vertical-align: middle; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.hero .lede { color: var(--ink-2); font-size: 18.5px; max-width: 58ch; }
.crumb { margin: 0 0 8px; font-size: 14.5px; color: var(--mut); } .crumb a { color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--lime-ink); padding: 13px 22px; min-height: 48px; border-radius: 12px; text-decoration: none; border: 0; font: 700 15.5px var(--sans); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; box-shadow: 0 8px 24px rgba(198,244,50,.18); }
.btn:hover { background: #d4ff4a; transform: translateY(-1px); filter: none; }
.btn:active { transform: none; }
.btn.ghost { background: rgba(255,255,255,.03); color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--lime); background: var(--lime-soft); }
.fine { font-size: 14px; color: var(--mut); }
.hero .fine { color: var(--mut); }

/* Example panel on the home page: styled as the analysis dashboard */
.mock { position: relative; background: linear-gradient(180deg, var(--s2), var(--s1)); color: var(--ink); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(198,244,50,.06); transform: none; font-size: 14px; margin: 0; }
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(198,244,50,.6), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mock-hd { background: rgba(0,0,0,.25); color: #fff; padding: 13px 18px; font: 800 15px var(--head); letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.mock-hd::before { content: ""; width: 24px; height: 24px; flex: none; background: var(--i-cw) center / contain no-repeat; }
.mock-hd b { color: var(--lime); } .mock-hd .tag { margin-left: auto; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px 6px; }
.mock-row > div { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-row small { display: block; color: var(--mut); font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.mock-row b { font: 700 20px var(--head); font-variant-numeric: tabular-nums; color: #fff; }
.mock-row b.pos { color: var(--lime); }
.mock svg { display: block; padding: 8px 18px 2px; }
.mock svg path[stroke] { stroke: var(--lime); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(198,244,50,.45)); }
.mock svg stop { stop-color: var(--lime); }
.mock svg circle, .mock svg rect { fill: var(--lime); }
.mock svg text { fill: var(--ink-2); }
.mock table { width: calc(100% - 36px); margin: 6px 18px 10px; border-collapse: collapse; }
.mock td { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); } .mock td:last-child { text-align: right; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.mock tr:last-child td { color: var(--lime); }
.mock figcaption { font-size: 12px; color: var(--mut); text-align: right; padding: 0 18px 12px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.kpis div { background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; }
.kpis b { display: block; font: 800 28px/1.1 var(--head); color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpis span { font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------------- Strip + blocks */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -34px; position: relative; z-index: 2; }
.strip div { background: var(--s1); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.strip b { display: block; font: 800 30px/1.1 var(--head); font-variant-numeric: tabular-nums; color: var(--lime); letter-spacing: -.02em; }
.strip span { color: var(--ink-2); font-size: 14.5px; }
.block { margin-top: 64px; }
.block h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; letter-spacing: -.025em; }
.block-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.block-hd a { font-weight: 600; }
.lede { color: var(--ink-2); max-width: 70ch; margin-top: 0; }
.empty { background: var(--s1); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 30px; color: var(--ink-2); }
.empty a { font-weight: 600; margin: 0 4px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features div { position: relative; background: linear-gradient(180deg, var(--s1), #151b1f); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px 22px 22px; transition: border-color .15s, transform .15s; }
.features div:hover { border-color: rgba(198,244,50,.45); transform: translateY(-2px); }
.features div::before { content: ""; display: block; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 13px; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 50%, var(--s3), var(--s2)); }
.features div::after { content: ""; position: absolute; top: 37px; left: 35px; width: 24px; height: 24px; background: var(--lime);
  -webkit-mask: var(--fi, var(--i-trend)) center / contain no-repeat; mask: var(--fi, var(--i-trend)) center / contain no-repeat; }
.features div:nth-child(1) { --fi: var(--i-trend); }
.features div:nth-child(2) { --fi: var(--i-gauge); }
.features div:nth-child(3) { --fi: var(--i-globe); }
.features div:nth-child(4) { --fi: var(--i-coins); }
.features div:nth-child(5) { --fi: var(--i-bell); }
.features div:nth-child(6) { --fi: var(--i-car); }
.features h3 { margin: 0 0 8px; font-size: 19px; }
.features p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: rgba(198,244,50,.45); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.card b { font: 700 17px var(--head); color: #fff; }
.card span { color: var(--mut); font-size: 14px; }
.card strong { margin-top: 8px; font: 800 24px var(--head); color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.card strong small, .card strong s { font: 400 13px var(--sans); color: var(--mut); letter-spacing: 0; }
.tag { display: inline-block; align-self: flex-start; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 999px; background: var(--s3); color: var(--ink-2); }
.tag.good { background: var(--lime); color: var(--lime-ink); }

/* ---------------------------------------------------------------- Tables + charts */
.tablewrap { overflow-x: auto; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.data th { text-align: right; font-size: 12.5px; letter-spacing: .03em; color: var(--mut); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: rgba(0,0,0,.18); }
.data td { text-align: right; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink); }
.data th:first-child, .data td:first-child { text-align: left; }
.data td:first-child { white-space: normal; }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: rgba(255,255,255,.025); }
.data tr.best td { background: rgba(198,244,50,.1); font-weight: 700; }
.data tr.best td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.data a { color: var(--ink); text-decoration: none; font-weight: 500; } .data a:hover { color: var(--lime); text-decoration: underline; }
.pos { color: var(--lime); font-weight: 700; } .neg { color: var(--red); font-weight: 700; }
.chart { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; width: 100%; height: auto; }
.chart .grid { stroke: #263137; } .chart .ax { font: 12px var(--sans); fill: var(--mut); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.bar { display: inline-block; width: 90px; height: 8px; background: var(--s3); border-radius: 4px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--amber), var(--red)); background-size: 90px 100%; }
.inline { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
select, input, textarea { font: 15.5px var(--sans); padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: #12181b; color: var(--ink); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
input::placeholder { color: #7f8e97; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 7px 13px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--lime); color: #fff; }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.sites p { color: var(--ink-2); line-height: 1.95; max-width: 90ch; }
.sites p b { color: #fff; margin-right: 6px; }
.prose { max-width: 70ch; } .prose h2 { font-size: 23px; margin-top: 32px; }
.prose li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.form fieldset { border: 1px solid var(--line); background: var(--s1); border-radius: var(--r); padding: 18px 20px 8px; margin: 0 0 14px; }
.form legend { font: 700 18px var(--head); color: #fff; padding: 0 8px; } .form legend small { font: 400 13px var(--sans); color: var(--mut); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result { background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid rgba(198,244,50,.35); border-radius: var(--r); padding: 22px 24px; position: sticky; top: 88px; box-shadow: var(--shadow); }
.result h2 { font-size: 24px; margin: 0 0 14px; }
.ln { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ln.t { border-top: 0; border-bottom: 0; margin-top: 10px; padding: 14px 16px; font-weight: 800; font-size: 19px; color: #fff; background: var(--lime-soft); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(198,244,50,.35); }
.ln.t > :last-child { color: var(--lime); }
.big { font: 700 19px var(--head); color: #fff; }

/* ---------------------------------------------------------------- Web checker + watchlist */
.checker { display: flex; gap: 10px; margin: 22px 0 10px; max-width: 840px; padding: 8px; background: var(--s1); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.checker:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft), 0 16px 40px rgba(0,0,0,.35); }
.checker input { flex: 1; padding: 13px 14px; border-radius: 10px; border: 0; background: transparent; font-size: 17px; min-width: 0; box-shadow: none; }
.checker input:focus { box-shadow: none; }
.checker .btn { white-space: nowrap; }
.check-status { margin: 0 0 12px; font-weight: 500; color: var(--ink-2); }
.check-status.err { color: var(--red); } .check-status.warn { color: var(--amber); } .check-status.ok { color: var(--lime); }
#cardHost { max-width: 800px; }
.manual { max-width: 800px; }
.btn.bm { cursor: grab; }
.watch-list { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); margin: 12px 0 24px; }
.watch-item { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.watch-item:last-child { border-bottom: 0; }
.watch-item a { color: #fff; text-decoration: none; font-weight: 600; } .watch-item .fine a { color: var(--lime); font-weight: 500; }
.watch-item > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.watch-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.link-btn { all: unset; cursor: pointer; color: var(--mut); font-size: 13px; text-decoration: underline; }
.link-btn:hover { color: var(--red); } .link-btn:focus-visible { outline: 2px solid var(--lime); }
.alert-form { background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; max-width: 640px; }
.alert-form h3 { margin: 0 0 4px; font-size: 20px; }
.alert-form .two input { padding: 12px 14px; border-radius: 12px; }
.hero-check { display: flex; gap: 8px; margin: 24px 0 6px; max-width: 580px; padding: 7px; background: var(--s1); border: 1px solid var(--line-2); border-radius: 16px; }
.hero-check:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.hero-check input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 0; background: transparent; font-size: 16.5px; box-shadow: none; }
.hero-check input:focus { box-shadow: none; }
.dest-note { display: inline-flex; gap: 6px; align-items: center; background: var(--lime-soft); border: 1px solid rgba(198,244,50,.35); color: var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 500; }

/* ---------------------------------------------------------------- Footer */
.foot { margin-top: 88px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 24px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.foot-in a:not(.brand) { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.foot-in a:not(.brand):hover { color: var(--lime); }
.foot p { color: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.foot p.fine { max-width: none; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mut); font-size: 13px; }

/* ---------------------------------------------------------------- Global search */
.search-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.search-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.search-filters fieldset { margin: 0; }
.search-filters .btn { width: 100%; margin: 4px 0 12px; }
.side-box { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.side-box h3 { margin: 0 0 6px; font-size: 17px; }
.site-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.site-links a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: rgba(255,255,255,.02); border: 1px solid transparent; }
.site-links a:hover { border-color: rgba(198,244,50,.45); color: #fff; }
.site-links a::after { content: "↗"; margin-left: auto; color: var(--mut); font-size: 13px; }
.search-markets { margin: 0 0 14px; }
.search-tip { display: block; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 14.5px; }
.data.results td:first-child a { font-weight: 600; color: #fff; }
.data.results .sub { display: block; margin-top: 2px; white-space: normal; }
.data.results td:nth-child(4) b { color: var(--lime); }
.search-save { margin-top: 22px; max-width: none; }
.search-save .two { grid-template-columns: 1fr auto; }
@media (max-width: 640px) { .search-save .two { grid-template-columns: 1fr; } }
.tag.deal-great { background: var(--lime); color: var(--lime-ink); }
.tag.deal-good { background: #2a3a12; color: var(--lime); }
.tag.deal-fair { background: var(--s3); color: var(--ink-2); }
.tag.deal-high { background: #4a3618; color: #ffd48a; }
.tag.deal-overpriced { background: #4d2421; color: #ffb0a8; }
@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-side { position: static; order: 2; }
  .search-main { order: 1; }
}
@media (max-width: 640px) {
  .data.results thead { display: none; }
  .data.results, .data.results tbody, .data.results tr, .data.results td { display: block; width: 100%; }
  .data.results tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .data.results td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .data.results td:first-child { grid-column: 1 / -1; }
  .data.results td:nth-child(2) { color: var(--mut); font-size: 14px; }
  .data.results td:nth-child(3)::before { content: "Asking "; color: var(--mut); font-size: 13px; }
  .data.results td:nth-child(4) { grid-column: 1; }
  .data.results td:nth-child(4)::before { content: "Registered "; color: var(--mut); font-size: 13px; }
  .data.results td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; align-self: center; text-align: right; }
}

/* ---------------------------------------------------------------- Valuation */
.value-big { font: 800 44px/1.1 var(--head); color: var(--lime); letter-spacing: -.03em; margin: 4px 0 10px; }
.inline-pair { display: flex; gap: 6px; } .inline-pair input { flex: 1; min-width: 0; } .inline-pair select { flex: 0 0 auto; }

/* ---------------------------------------------------------------- MOT history */
.strip.mot-facts { margin: 14px 0 18px; }
.mot-warn { background: #3a2f1d; border: 1px solid #7d5f2f; border-radius: var(--r); padding: 12px 16px; margin: 0 0 18px; color: #ffe2ad; }
.mot-warn p { margin: 4px 0; max-width: none; }
.mot-tests { display: grid; gap: 10px; margin: 8px 0 14px; }
.mot-test { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.mot-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mot-test ul { margin: 10px 0 2px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.mot-test li { margin: 4px 0; }
.mot-test li.neg { color: var(--red); font-weight: 400; }

/* ---------------------------------------------------------------- Mobile tab bar (same tabs idea as the app) */
.tabbar { display: none; }

@media (max-width: 1080px) {
  .top nav > a:not(.cta) { padding: 8px 7px; font-size: 14.5px; }
  .search { max-width: 300px; }
}
@media (max-width: 900px) {
  .hero-in, .calc { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .mock { transform: none; max-width: 560px; }
  .features { grid-template-columns: 1fr 1fr; }
  .top nav > a:not(.cta) { display: none; }
  .result { position: static; }
  .prefs { order: 4; } .top nav .prefs { display: flex; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(12,15,17,.94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 52px; color: var(--mut); text-decoration: none; font-size: 11.5px; font-weight: 500; border-radius: 10px; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--lime); background: var(--lime-soft); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { position: relative; }
  .top-in { flex-wrap: wrap; padding: 12px 0; gap: 10px; min-height: 0; }
  .brand { font-size: 19px; } .brand .cw-mark { width: 34px; height: 34px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .top nav { width: auto; margin-left: auto; }
  .top nav .cta { display: none; }
  .prefs select { padding: 7px 6px; font-size: 13.5px; min-height: 40px; max-width: 116px; }
  .prefs select[name="cur"] { max-width: 70px; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; padding: 5px 10px; }
  .mock td { font-size: 12.5px; padding: 7px 0; } .mock td:last-child { padding-left: 8px; }
  .hero { padding: 36px 0 56px; }
  .hero-sm { padding: 30px 0 28px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero h1 span { display: block; margin: 10px 0 0; width: max-content; }
  .hero .lede { font-size: 17.5px; }
  .kpis, .strip { grid-template-columns: 1fr 1fr; }
  .strip { margin-top: -28px; }
  .features, .foot-in, .two { grid-template-columns: 1fr; }
  .features div { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: start; padding: 18px; }
  .features div::before { grid-row: span 2; margin: 0; }
  .features div::after { top: 31px; left: 31px; }
  .mock-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px 12px 4px; }
  .mock-row > div { padding: 8px; } .mock-row b { font-size: 16px; }
  .mock svg { padding: 6px 12px 2px; } .mock table { width: calc(100% - 24px); margin: 4px 12px 8px; }
  .data { font-size: 14.5px; } .data th, .data td { padding: 10px 12px; }
  .checker, .hero-check { flex-direction: column; }
  .checker .btn, .hero-check .btn { width: 100%; }
  .block { margin-top: 48px; }
  .watch-item { flex-direction: column; } .watch-num { align-items: flex-start; }
  .foot { margin-top: 64px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; gap: 7px; } .brand .cw-mark { width: 30px; height: 30px; }
  .prefs select { max-width: 100px; }
  .kpis b, .strip b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Icons (masks, so they take currentColor / lime) */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --i-trend: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
  --i-gauge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 18a9 9 0 1 1 17 0'/%3E%3Cpath d='M12 14l4.5-5'/%3E%3Ccircle cx='12' cy='14' r='1.6'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
  --i-coins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6'/%3E%3Cpath d='M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E");
  --i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 1 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E");
  --i-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16v-3.5L5.2 7h13.6L21 12.5V16z'/%3E%3Cpath d='M5.5 16v2.5M18.5 16v2.5'/%3E%3Ccircle cx='7.5' cy='12.8' r='.6'/%3E%3Ccircle cx='16.5' cy='12.8' r='.6'/%3E%3C/svg%3E");
  --i-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9C60 2 140 1 197 6' fill='none' stroke='%23c6f432' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-cw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M30.5 19.6A16.5 16.5 0 1 0 30.5 44.4' fill='none' stroke='%23fff' stroke-width='9.5'/%3E%3Cpath d='M24 25.5 31.5 46 39 33.5 46.5 46 58 18' fill='none' stroke='%23c6f432' stroke-width='7.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M33 17 42.5 8.5 52 13' fill='none' stroke='%23c6f432' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%23c6f432'%3E%3Ccircle cx='33' cy='17' r='3.4'/%3E%3Ccircle cx='42.5' cy='8.5' r='3.4'/%3E%3Ccircle cx='52' cy='13' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- running costs, cheapest, import guides ---- */
.tax-tables{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}
.tax-tables caption{text-align:left;font-family:var(--head);font-weight:700;padding:0 0 8px;color:#fff}
.guide-ex{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.guide-ex .result{position:static}
.guide-ex .result h3{margin-top:0}
.guide-steps{padding-left:1.4em;display:grid;gap:12px;max-width:72ch}
.guide-steps li{line-height:1.6}
.guide-docs{columns:2 260px;column-gap:32px;padding-left:1.2em;line-height:1.7}
.cheap-table td .fine{white-space:nowrap}
@media (max-width:640px){.cheap-table td .fine{white-space:normal;display:block}}
.calc > *, .two > * { min-width: 0; }
.form select, .form input { max-width: 100%; }
@media (max-width: 480px) { .form .two { grid-template-columns: 1fr; } }
.tools-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.tools-grid a{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--line);border-radius:var(--r);background:var(--s1);color:inherit;text-decoration:none;transition:border-color .15s}
.tools-grid a:hover,.tools-grid a:focus-visible{border-color:var(--lime)}
.tools-grid b{font-family:var(--head);color:#fff;font-size:17px}
.tools-grid span{color:var(--mut);font-size:15px;line-height:1.5}
@media (max-width: 1080px) { .top nav { gap: 2px; } .top nav .cta { padding: 10px 13px; } }
