:root {
  color-scheme: light;
  --ink: #15201f;
  --muted: #60706d;
  --line: #dbe5e2;
  --paper: #f7faf8;
  --panel: #ffffff;
  --mint: #37b88d;
  --mint-dark: #10785c;
  --gold: #e7b447;
  --coral: #e86e55;
  --blue: #326fca;
  --shadow: 0 18px 50px rgba(21, 32, 31, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  align-items: center;
  gap: 44px;
  padding: 48px;
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(21, 32, 31, 0.88), rgba(21, 32, 31, 0.44)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #8ff1ca;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.tracker-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(55, 184, 141, 0.2);
  border-color: var(--mint);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--mint);
  color: #06271d;
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  background: #5bd3aa;
}

button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.metrics div,
.product-card,
.activity > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(21, 32, 31, 0.06);
}

.metrics div {
  padding: 18px;
}

.metrics span {
  display: block;
  min-height: 38px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
}

.metrics p,
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard,
.activity {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 18px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.45;
}

.status {
  flex: 0 0 auto;
  height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f6f1;
  color: var(--mint-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.price {
  font-size: 2rem;
  font-weight: 950;
}

.score {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 7px solid var(--mint);
  border-radius: 50%;
  color: var(--mint-dark);
  font-weight: 950;
}

.meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.reasons li {
  padding-left: 16px;
  position: relative;
}

.reasons li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: 0.65em;
  border-radius: 50%;
  background: var(--gold);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.card-actions a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.activity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.activity > div {
  padding: 18px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline-item {
  border-left: 3px solid var(--mint);
  padding-left: 12px;
  color: var(--ink);
  font-size: 0.9rem;
}

.empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .metrics,
  .activity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
    padding: 22px;
  }

  .section-head,
  .product-top,
  .price-row,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .status {
    width: fit-content;
  }
}
