:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero,
.panel,
.meta > div,
.card {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 24px;
  box-shadow: 0 16px 50px rgb(15 23 42 / 8%);
}

.hero {
  padding: 40px;
  margin-bottom: 20px;
}

.eyebrow {
  color: #246bfe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  font-size: 20px;
}

.hero p:last-child {
  max-width: 720px;
  color: #5b6475;
  font-size: 18px;
  margin-bottom: 0;
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #4b5565;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid #cad3e1;
  border-radius: 14px;
  padding: 13px 14px;
  color: #172033;
  font: inherit;
}

button {
  align-self: end;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #246bfe;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.secondary-button {
  background: #ffffff;
  color: #246bfe;
  border: 1px solid #cad3e1;
}

.meta {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  margin-bottom: 20px;
}

.meta > div {
  padding: 24px;
}

.sources {
  display: grid;
  gap: 12px;
}

.source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf1f7;
}

.badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef4ff;
  color: #246bfe;
  font-size: 12px;
  font-weight: 800;
}

.summary {
  color: #5b6475;
}

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

.feed-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.card {
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #edf1f7;
}

.card-body {
  padding: 22px;
}

.source-tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 11px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.price {
  color: #0f9f6e;
  font-size: 24px;
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.stat {
  border-radius: 16px;
  background: #f5f7fb;
  padding: 12px;
}

.stat span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 4px;
}

.card a {
  color: #246bfe;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .filters,
  .meta,
  .results {
    grid-template-columns: 1fr;
  }
}
