/* ==========================================================================
   RVBidFind — mobile-first stylesheet.

   Built thumb-first: everything interactive sits in the lower two thirds
   of the screen, tap targets are at least 44px, and the layout assumes a
   phone held one-handed in a truck yard. Wider screens get a grid, but
   they are the adaptation, not the baseline.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  color-scheme: dark light;

  /* Near-black canvas with layered, hairline-separated surfaces. */
  --bg: #0b0c10;
  --bg-raised: #111318;
  --bg-sunken: #07080b;
  --surface: #14171d;
  --surface-hover: #1b1f27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --highlight: rgba(255, 255, 255, 0.05);

  --text: #f4f6f9;
  --text-muted: #9aa3b2;
  --text-faint: #646d7c;

  --accent: #ff9d3d;
  --accent-2: #ffb86a;
  --accent-soft: rgba(255, 157, 61, 0.14);
  --accent-glow: rgba(255, 157, 61, 0.35);
  --accent-text: #1a1205;

  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.14);

  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow: 0 1px 1px rgba(0, 0, 0, 0.35), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 8px 30px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);

  --tap: 46px;
  --gutter: 16px;
  --app-bar-height: 116px;
  --tab-bar-height: calc(72px + env(safe-area-inset-bottom, 0px));

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Pro Display", "Inter", var(--font);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --bg-raised: #ffffff;
    --bg-sunken: #eeeff2;
    --surface: #ffffff;
    --surface-hover: #f3f4f6;
    --border: rgba(16, 24, 40, 0.08);
    --border-strong: rgba(16, 24, 40, 0.16);
    --highlight: rgba(255, 255, 255, 0.6);

    --text: #0f1319;
    --text-muted: #5d6675;
    --text-faint: #8a93a3;

    --accent: #ea7a10;
    --accent-2: #ff9d3d;
    --accent-soft: rgba(234, 122, 16, 0.12);
    --accent-glow: rgba(234, 122, 16, 0.28);
    --accent-text: #ffffff;

    --good: #059669;
    --good-soft: rgba(5, 150, 105, 0.12);
    --warn: #b45309;
    --warn-soft: rgba(180, 83, 9, 0.12);
    --bad: #dc2626;
    --bad-soft: rgba(220, 38, 38, 0.12);

    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 28px -8px rgba(16, 24, 40, 0.14);
    --shadow-float: 0 8px 30px -6px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.06);
  }
}

/* --- Reset ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  /* Stops iOS rubber-banding revealing white behind the fixed bars. */
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Several components set an explicit `display`, which outranks the user
   agent's `[hidden] { display: none }`. The app toggles visibility with
   the hidden attribute, so make it win. */
[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: var(--accent);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
}

/* --- App bar ----------------------------------------------------------- */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--gutter) 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.app-bar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.app-bar__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.app-bar__title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-bar__back,
.app-bar__action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
}

.app-bar__back:active,
.app-bar__action:active {
  background: var(--surface-hover);
}

.app-bar__action.is-busy svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Search ------------------------------------------------------------ */

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.search__icon {
  position: absolute;
  left: 11px;
  color: var(--text-faint);
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: var(--tap);
  padding: 0 40px 0 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  /* 16px keeps iOS from zooming the viewport on focus. */
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search__clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-faint);
}

/* --- Chips ------------------------------------------------------------- */

.chip-row {
  display: flex;
  gap: 8px;
  margin: 10px -16px 0;
  padding: 0 var(--gutter) 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip-row:empty {
  display: none;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chip[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chip__count {
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  font-weight: 500;
}

.chip[aria-pressed='true'] .chip__count {
  color: inherit;
  opacity: 0.75;
}

/* --- Layout ------------------------------------------------------------ */

.main {
  padding: 12px var(--gutter) calc(var(--tab-bar-height) + 24px);
  outline: none;
}

.view-root {
  max-width: 780px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select {
  height: 34px;
  padding: 0 30px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center / 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  -webkit-appearance: none;
  appearance: none;
}

/* --- Listing cards ----------------------------------------------------- */

.card-list {
  display: grid;
  gap: 12px;
}

@media (min-width: 620px) {
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  width: 100%;
  transition: transform 0.12s ease, background 0.12s ease;
}

.card:active {
  transform: scale(0.985);
  background: var(--surface-hover);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__media svg {
  width: 28px;
  height: 28px;
  color: var(--text-faint);
  opacity: 0.5;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.card__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--text-faint);
}

.card__specs span::after {
  content: '·';
  margin-left: 8px;
  opacity: 0.5;
}

.card__specs span:last-child::after {
  content: none;
}

.card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card__bid {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.card__comp {
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* --- Score pill -------------------------------------------------------- */

.score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.score--good {
  background: var(--good-soft);
  color: var(--good);
}

.score--fair {
  background: var(--warn-soft);
  color: var(--warn);
}

.score--poor {
  background: var(--bad-soft);
  color: var(--bad);
}

.score--unknown {
  background: var(--surface-hover);
  color: var(--text-faint);
}

.score__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--warn {
  background: var(--warn-soft);
  border-color: transparent;
  color: var(--warn);
}

.badge--bad {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}

.badge--live {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

/* --- Detail view ------------------------------------------------------- */

.detail__hero {
  position: relative;
  margin: -12px calc(var(--gutter) * -1) 0;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Plenty of auction lots have no usable photo in the search results. A
   full-bleed 16:10 box of nothing pushes the comp value — the reason
   the page exists — below the fold, so collapse it to a marker. */
.detail__hero--empty {
  aspect-ratio: auto;
  height: 96px;
}

.detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__hero svg {
  width: 44px;
  height: 44px;
  color: var(--text-faint);
  opacity: 0.4;
}

.gallery {
  display: flex;
  gap: 8px;
  margin: 8px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  flex: 0 0 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.detail__title {
  margin: 16px 0 8px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.detail__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px;
  margin-bottom: 12px;
}

.panel__title {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

@media (min-width: 480px) {
  .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.spec {
  min-width: 0;
}

.spec__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec__value {
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* --- Comp value block (the headline feature) --------------------------- */

.value-hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-raised), var(--surface));
  padding: 16px;
  margin-bottom: 12px;
}

.value-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.value-hero__top > .confidence {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.3;
}

.value-hero__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.value-hero__figure {
  font-family: var(--font-num);
  font-size: 33px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.value-hero__sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* Range bar: where the current bid sits inside the comp spread. */
.range {
  margin-top: 4px;
}

.range__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  overflow: visible;
}

.range__band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  opacity: 0.55;
}

.range__marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
}

.range__marker--bid {
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent);
}

/* Holds the track plus the bid callout, which is absolutely positioned
   to sit directly beneath its own marker. */
.range__scale {
  position: relative;
  /* Reserves a lane for the bid callout so it never collides with the
     low/high labels underneath it. */
  padding-bottom: 26px;
}

.range__callout {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
}

.confidence__bars {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}

.confidence__bar {
  width: 3px;
  border-radius: 1px;
  background: var(--border-strong);
}

.confidence__bar:nth-child(1) { height: 6px; }
.confidence__bar:nth-child(2) { height: 9px; }
.confidence__bar:nth-child(3) { height: 12px; }

.confidence__bar.is-on { background: currentColor; }

.confidence--high { color: var(--good); }
.confidence--medium { color: var(--warn); }
.confidence--low,
.confidence--very-low,
.confidence--none { color: var(--text-faint); }

/* --- Money rows -------------------------------------------------------- */

.money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.money-row:last-child {
  border-bottom: none;
}

.money-row--total {
  border-top: 1px solid var(--border-strong);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 11px;
  font-weight: 750;
  font-size: 15px;
}

.money-row__label {
  color: var(--text-muted);
  min-width: 0;
}

.money-row--total .money-row__label {
  color: var(--text);
}

.money-row__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.money-row__note {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 400;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.verdict--good { background: var(--good-soft); color: var(--good); }
.verdict--fair { background: var(--warn-soft); color: var(--warn); }
.verdict--poor { background: var(--bad-soft); color: var(--bad); }

.verdict strong {
  display: block;
  font-size: 14.5px;
}

/* --- Comp list --------------------------------------------------------- */

.comp {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.comp:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comp__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comp__title {
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comp__price {
  font-family: var(--font-num);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.comp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-faint);
}

.comp__adjust {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.comp__adjust span {
  display: inline-block;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.similarity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.similarity__track {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-sunken);
  overflow: hidden;
}

.similarity__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* --- Disclosure -------------------------------------------------------- */

details.disclosure {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 12px;
}

details.disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-muted);
  min-height: 32px;
}

details.disclosure > summary::-webkit-details-marker {
  display: none;
}

details.disclosure > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

details.disclosure[open] > summary::after {
  transform: rotate(-135deg);
}

.disclosure__body {
  padding: 8px 0 2px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.disclosure__body p {
  margin: 0 0 8px;
}

/* --- Buttons ----------------------------------------------------------- */

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 16px 0 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button--icon {
  width: var(--tap);
  padding: 0;
}

.button:active {
  transform: scale(0.98);
}

.button[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button[aria-pressed='true'] svg {
  fill: currentColor;
}

/* --- Forms ------------------------------------------------------------- */

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* --- Tab bar ----------------------------------------------------------- */

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 58px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab[aria-current='page'] {
  color: var(--accent);
}

/* --- States ------------------------------------------------------------ */

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--text-faint);
  opacity: 0.5;
  margin-bottom: 12px;
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 680;
  color: var(--text);
}

.empty p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skeleton-card {
  height: 102px;
}

.notice {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice--info {
  background: var(--accent-soft);
  color: var(--accent);
}

.footnote {
  margin: 20px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
}

/* --- Toast ------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-bar-height) + 12px);
  z-index: 60;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ------------------------------------------------------------------ */
/* SaaS layer: progress bar, paywall, ads                              */
/* ------------------------------------------------------------------ */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}

#progress-bar.is-active {
  opacity: 1;
  animation: progress-sweep 1s ease-in-out infinite;
}

@keyframes progress-sweep {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

.app-bar__action {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--text-muted);
  border-radius: 10px;
}

.app-bar__action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paywall {
  text-align: left;
}

.paywall__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.paywall__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
}

.paywall__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.paywall__list svg {
  color: var(--accent);
  flex-shrink: 0;
}

.paywall .button {
  width: 100%;
  margin-top: 6px;
}

.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 750;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.lock-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 84px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 14px 16px;
  margin: 4px 0 14px;
  text-align: left;
  color: var(--text-muted);
  font-size: 13px;
}

.ad-slot--house strong {
  color: var(--text);
  font-size: 14.5px;
}

.ad-slot__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Images ease in instead of popping — perceived smoothness. */
.card__media img,
.detail__hero img {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card__media img.is-loaded,
.detail__hero img.is-loaded {
  opacity: 1;
}


/* ------------------------------------------------------------------ */
/* Zip-radius bar                                                      */
/* ------------------------------------------------------------------ */

.area-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-muted);
}

.area-bar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.area-bar__zip {
  width: 72px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.area-bar__zip.is-invalid {
  border-color: #e0563f;
}

.area-bar__scope {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.area-bar__note {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.area-bar__note--warn {
  color: #e0563f;
}

/* ================================================================== */
/* Modern refresh — override layer                                     */
/*                                                                     */
/* Product-app idiom: near-black canvas, hairline-bordered surfaces    */
/* with a faint top-light, big tight-tracked numerals, pill controls,  */
/* glass bars, one warm accent used sparingly. Same DOM throughout.    */
/* ================================================================== */

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 157, 61, 0.08), transparent 70%),
    var(--bg);
}

/* --- App bar: quieter glass, no hard rule ---------------------------- */
.app-bar {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--highlight) inset;
}

.app-bar__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-bar__logo {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

/* --- Search: pill ---------------------------------------------------- */
.search__input {
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--highlight) inset;
  padding-left: 42px;
}

.search__icon {
  left: 15px;
}

.search__input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 1px 0 var(--highlight) inset;
}

/* --- Chips: pill, solid when active ---------------------------------- */
.chip {
  height: 36px;
  padding: 0 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.chip[aria-pressed='true'] .chip__count {
  color: inherit;
  opacity: 0.6;
}

/* --- Area bar: matches the pill language ----------------------------- */
.area-bar__zip,
.area-bar__scope {
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  padding: 9px 14px;
}

/* --- Result meta ------------------------------------------------------ */
.result-meta {
  font-size: 13px;
  color: var(--text-faint);
}

.sort-select {
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-weight: 650;
}

/* --- Cards: image-forward, hairline, top-light ----------------------- */
.card-list {
  gap: 12px;
}

.card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--highlight), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:active {
  transform: scale(0.98);
  border-color: var(--border-strong);
}

.card__media {
  border-radius: 14px;
  background: var(--bg-sunken);
  box-shadow: 0 0 0 1px var(--border) inset;
}

.card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card__specs {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}

.card__bid {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card__comp {
  font-size: 12.5px;
  font-weight: 500;
}

.card__footer {
  font-size: 11.5px;
  font-weight: 500;
}

/* --- Score / badges: rings, not fills ------------------------------- */
.score {
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 750;
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent) inset;
}

.badge {
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  padding: 3px 9px;
}

.lock-chip {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent) inset;
}

/* --- Panels ----------------------------------------------------------- */
.panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--highlight), transparent 36%), var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel__title,
.section-heading {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --- Value hero: the numeral is the design ---------------------------- */
.value-hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 160px at 0% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--highlight), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.value-hero__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.value-hero__figure {
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 6px;
}

.value-hero__sub {
  font-size: 13px;
  margin-top: 6px;
}

.range__track {
  height: 10px;
  background: var(--bg-sunken);
  box-shadow: 0 0 0 1px var(--border) inset;
}

.range__band {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 999px;
}

/* --- Buttons: gradient primary with glow, hairline ghost ------------- */
.button {
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s ease, background 0.15s ease;
}

.button--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px -8px var(--accent-glow);
}

.button--ghost {
  background: var(--bg-raised);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--highlight) inset;
}

.button:active {
  transform: scale(0.97);
}

/* --- Tab bar: floating glass dock ------------------------------------ */
.tab-bar {
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  padding: 6px;
  padding-bottom: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-raised) 78%, transparent);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  box-shadow: var(--shadow-float);
}

.tab {
  height: 52px;
  border-radius: var(--radius-pill);
  gap: 3px;
  font-size: 10.5px;
  font-weight: 650;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
}

.main {
  padding-bottom: calc(var(--tab-bar-height) + 12px);
}

/* --- Paywall & ads: on-brand surfaces --------------------------------- */
.paywall {
  background:
    radial-gradient(360px 160px at 100% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--highlight), transparent 36%),
    var(--surface);
}

.paywall__badge {
  border-radius: var(--radius-pill);
  letter-spacing: 0.14em;
}

.paywall h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.ad-slot {
  border-radius: var(--radius);
  border-style: solid;
  background: linear-gradient(180deg, var(--highlight), transparent 40%), var(--bg-raised);
}

/* --- States ----------------------------------------------------------- */
.skeleton,
.skeleton-card {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.notice {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.toast {
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
}

/* --- Progress bar picks up the accent gradient ----------------------- */
#progress-bar {
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-card {
    animation: none;
  }
}

/* Panel headings sit flush to the top; badges lead by a small gap. */
.panel > h2:first-child,
.panel > .panel__title:first-child {
  margin-top: 0;
}

.paywall__badge + h2,
.panel > h2 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.paywall > .paywall__badge {
  margin-bottom: 4px;
}

/* --- Sponsored placements ----------------------------------------------- */
.ad-slot--sponsored {
  text-decoration: none;
  color: var(--text-muted);
}

.ad-slot__cta {
  margin-top: 4px;
  font-weight: 700;
  color: var(--accent);
}

.next-steps__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.next-steps__blurb {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.next-steps__cta {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
}

/* ==================================================================== */
/* Countdown clocks                                                     */
/* ==================================================================== */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.4;
}

.countdown svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.countdown--urgent {
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  color: var(--bad);
  animation: countdown-pulse 2s ease-in-out infinite;
}

.countdown--closed {
  opacity: 0.7;
  text-decoration: line-through;
  animation: none;
}

.countdown--large {
  font-size: 13.5px;
  padding: 5px 12px 5px 9px;
}

.countdown--large svg {
  width: 15px;
  height: 15px;
}

@keyframes countdown-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 30%, transparent); }
  50% { box-shadow: 0 0 0 4px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown--urgent { animation: none; }
}

/* ==================================================================== */
/* Load more                                                            */
/* ==================================================================== */
.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
}

.load-more .button {
  min-width: 200px;
}

/* ==================================================================== */
/* Landing page                                                         */
/* ==================================================================== */
body.is-home .app-bar {
  --app-bar-height: 60px;
}

.app-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.app-bar__brand .app-bar__title {
  flex: 1;
}

.landing {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 16px;
}

.hero {
  position: relative;
  padding: 26px 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(520px 260px at 100% -20%, var(--accent-soft), transparent 70%),
    radial-gradient(360px 220px at -10% 110%, color-mix(in srgb, var(--good) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--highlight), transparent 40%),
    var(--surface);
  overflow: hidden;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.hero__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.hero__search {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero__search input {
  flex: 1;
  min-width: 0;
  height: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 15px;
}

.hero__search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hero__search .button {
  flex-shrink: 0;
  padding: 0 14px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-raised) 70%, transparent);
  border: 1px solid var(--border);
  text-align: center;
}

.stat strong {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span {
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--text-faint);
}

.landing__section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.landing__section h2 + h2 {
  margin-top: 18px;
}

.landing__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.landing__section-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.landing__blurb {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.landing__blurb a {
  color: var(--text);
}

/* --- Slider --- */
.slider {
  display: flex;
  overflow-x: auto;
  /* No scroll-snap: it re-snaps after every programmatic scroll and
     pins the auto-scroll to the first slide. */
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider__track {
  display: flex;
  gap: 10px;
  /* The track must be as wide as its slides, or the overflow lives in
     the track (unscrollable) instead of the container. */
  flex: 0 0 auto;
  width: max-content;
}

.slide,
.slide-skeleton {
  flex: 0 0 168px;
  width: 168px;
}

.slide-skeleton {
  height: 214px;
  border-radius: var(--radius);
}

.slide {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease;
}

.slide:active {
  transform: scale(0.98);
}

.slide__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide__media svg {
  width: 26px;
  height: 26px;
  color: var(--text-faint);
  opacity: 0.5;
}

.slide__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px 10px;
}

.slide__title {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.slide__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.slide__bid {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.slide__source {
  font-size: 10.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Steps --- */
.steps {
  display: grid;
  gap: 10px;
}

.step {
  position: relative;
  padding: 16px 16px 16px 54px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step__num {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 750;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Sources --- */
.source-groups {
  display: grid;
  gap: 8px;
}

.source-group {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.source-group h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.source-group p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Pro --- */
.landing__pro {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    radial-gradient(360px 160px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.landing__pro h2 {
  font-size: 24px;
}

.landing__checks {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.landing__checks li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.45;
}

.landing__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 800;
}

/* --- Link lists, FAQ, footer --- */
.seo-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-links li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.seo-links small {
  color: var(--text-faint);
  font-weight: 600;
}

.landing__footer {
  padding: 18px 0 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.landing__footer a {
  color: var(--text);
}

/* ==================================================================== */
/* Server-rendered pages (lot, category, guides)                        */
/* ==================================================================== */
.seo-nav,
.seo-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.seo-nav a,
.seo-states a {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.seo-states a small {
  color: var(--accent);
}

.crumbs {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.seo-page h1,
.seo-lot h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.seo-page h2 {
  margin: 22px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.seo-page__intro {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.card--static {
  text-decoration: none;
  color: inherit;
}

.seo-lot__bid {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

/* Guides are plain documents on the same design system. */
.app-bar--static {
  position: static;
  height: auto;
  padding-bottom: 12px;
}

.guide-page .main {
  padding-bottom: 32px;
}

.guide {
  max-width: 720px;
  margin: 0 auto;
}

.guide h1 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.guide__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.guide h2 {
  margin: 26px 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.guide p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
}

.guide a {
  color: var(--accent);
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .source-groups { grid-template-columns: repeat(2, 1fr); }
  .slide, .slide-skeleton { flex-basis: 196px; width: 196px; }
  .hero { padding: 40px 32px 32px; }
}
