:root {
  color-scheme: light;
  --background: #f0fdfa;
  --surface: #ffffff;
  --surface-soft: #f4f8f7;
  --foreground: #134e4a;
  --muted: #4f6b68;
  --primary: #0d766e;
  --accent: #c2470d;
  --border: #b9d8d4;
  --good: #176b45;
  --good-bg: #e7f6ee;
  --review: #8a4b08;
  --review-bg: #fff3df;
  font-family: "Noto Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-size: 16px;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

a {
  color: var(--primary);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: white;
  background: var(--foreground);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
main,
footer {
  width: min(1600px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  padding: 48px 0 30px;
}

.eyebrow,
.lane-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.budget-card {
  display: grid;
  min-width: 210px;
  padding: 18px 22px;
  border: 2px solid var(--primary);
  background: var(--surface);
}

.budget-card span {
  color: var(--muted);
  font-size: 13px;
}

.budget-card strong {
  font-family: "Figtree", sans-serif;
  font-size: 23px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.facts span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  background: var(--surface);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter:hover,
.filter:focus-visible {
  border-color: var(--primary);
  background: var(--good-bg);
}

.filter.active {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
}

.lane {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.lane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 3px 4px 12px;
}

.lane-heading h2 {
  font-size: 20px;
}

.lane-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

.lane-count {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--foreground);
  background: var(--surface);
  font-weight: 700;
}

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

.card,
.watch-card {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.card {
  transition: border-color 180ms ease, opacity 180ms ease;
}

.card.dragging {
  opacity: 0.45;
}

.card-list.drag-over {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.card:hover {
  border-color: var(--primary);
}

.card[hidden] {
  display: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.source,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.source {
  color: white;
  background: #345;
}

.finn {
  background: #0875c1;
}

.qasa {
  background: #7a3f9c;
}

.facebook {
  background: #1767c8;
}

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

.review {
  color: var(--review);
  background: var(--review-bg);
}

.older {
  color: #755000;
  background: #fff5cc;
}

.card h3 {
  font-size: 22px;
}

.address {
  margin: 5px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

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

.price-row strong {
  font-family: "Figtree", sans-serif;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.price-row small,
.price-row span {
  color: var(--muted);
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  font-size: 13px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 600;
}

.why {
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.card > a,
.watch-card > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-weight: 700;
  text-underline-offset: 4px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.stage-select {
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--foreground);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}

.drag-handle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  cursor: grab;
  font-size: 18px;
}

.empty-lane {
  padding: 22px 16px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  text-align: center;
}

.watch-card {
  background: #f5f0ff;
  border-color: #cfbee8;
}

.watch-card h3 {
  font-size: 18px;
}

.watch-card p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.next-steps {
  margin: 24px 0 48px;
  padding: 26px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.next-steps h2 {
  font-size: 25px;
}

.next-steps ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.next-steps li {
  padding-left: 6px;
  color: var(--muted);
}

footer {
  padding: 22px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .board {
    grid-template-columns: repeat(4, minmax(280px, 82vw));
  }
}

@media (max-width: 720px) {
  .hero,
  main,
  footer {
    width: min(100% - 24px, 1600px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-row,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .budget-card {
    min-width: 0;
  }

  .board {
    grid-template-columns: repeat(4, minmax(82vw, 82vw));
    scroll-snap-type: x proximity;
  }

  .lane {
    scroll-snap-align: start;
  }

  .next-steps ol {
    grid-template-columns: 1fr;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .filter {
    transition: none;
  }
}
