@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: hsl(40, 20%, 96%);
  color: hsl(220, 20%, 14%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.header {
  background: hsl(160, 22%, 22%);
  color: #fff;
  padding: 14px 0;
  text-align: center;
}
.header-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.header-star { color: hsl(43, 96%, 56%); font-size: 22px; }
.header-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

/* ── Hero ── */
.hero { text-align: center; padding: 32px 16px 24px; }
.hero-title {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 12px;
}
.hero-star { color: hsl(43, 96%, 56%); }
.hero-subtitle { color: hsl(220, 8%, 52%); font-size: 15px; margin-bottom: 16px; }
.hero-trust { color: hsl(220, 8%, 52%); font-size: 13px; max-width: 640px; margin: 0 auto; line-height: 1.6; }

@media (min-width: 768px) {
  .hero { padding: 48px 16px 32px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 16px; }
  .hero-trust { font-size: 14px; }
}

/* ── Listings ── */
.listings { padding-bottom: 40px; }
.listings .container { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
  .listings { padding-bottom: 56px; }
  .listings .container { gap: 24px; }
}

/* ── Card ── */
.card {
  background: #fff; border-radius: 16px;
  border: 1px solid hsl(220, 13%, 90%);
  overflow: visible; position: relative;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-top {
  border: 2px solid hsl(145, 48%, 42%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.top-badge {
  position: absolute; top: -12px; left: 20px;
  background: hsl(16, 90%, 50%); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.8px;
  z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
@media (min-width: 768px) { .top-badge { left: 32px; } }

/* ── Desktop Layout ── */
.desk {
  display: none; align-items: center;
  gap: 28px; padding: 28px 32px;
}
@media (min-width: 768px) { .desk { display: flex; } }

.d-rank {
  font-size: 22px; font-weight: 700;
  color: hsl(220, 8%, 52%); width: 40px;
  text-align: center; flex-shrink: 0;
}
.d-logo {
  width: 110px; height: 62px;
  background: hsl(220, 20%, 14%);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.d-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.d-info { flex: 1; min-width: 0; }
.d-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: hsl(43, 96%, 56%); font-size: 16px; line-height: 1; }
.star-e { color: hsl(220, 13%, 88%); }
.rat { font-size: 13px; color: hsl(220, 8%, 52%); font-weight: 500; }
.bonus { color: hsl(145, 55%, 38%); font-weight: 700; font-size: 15px; }

.d-details {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; color: hsl(220, 8%, 52%);
  flex-shrink: 0; min-width: 175px;
}
.det { display: flex; align-items: center; gap: 8px; }
.det-i { opacity: 0.6; width: 16px; text-align: center; font-size: 14px; }
.det.veri { color: hsl(145, 48%, 42%); font-weight: 500; }
.det.veri .det-i { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: hsl(145, 48%, 42%); color: #fff; font-weight: 700;
  padding: 12px 24px; border-radius: 12px; font-size: 15px;
  flex-shrink: 0; transition: filter 0.15s; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn:hover { filter: brightness(1.1); }

/* ── Mobile Layout ── */
.mob { display: block; padding: 20px 16px 16px; }
@media (min-width: 768px) { .mob { display: none; } }

.m-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.m-rank { font-size: 18px; font-weight: 700; color: hsl(220, 8%, 52%); width: 32px; flex-shrink: 0; }
.m-logo {
  width: 72px; height: 44px; background: hsl(220, 20%, 14%);
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.m-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.m-name h3 { font-size: 15px; font-weight: 700; line-height: 1.2; }
.m-name .rating-row { margin-bottom: 0; margin-top: 3px; }
.m-name .stars { font-size: 14px; gap: 1px; }
.m-name .rat { font-size: 12px; }

.m-bonus { color: hsl(145, 55%, 38%); font-weight: 700; font-size: 14px; margin-bottom: 10px; }

.m-details {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  font-size: 12px; color: hsl(220, 8%, 52%); margin-bottom: 14px;
}
.m-details .det { gap: 4px; }
.m-details .det-i { font-size: 12px; }

.btn-m {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: hsl(145, 48%, 42%); color: #fff; font-weight: 700;
  padding: 12px; border-radius: 12px; font-size: 14px; width: 100%;
  transition: filter 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-m:hover { filter: brightness(1.1); }

/* ── SEO ── */
.seo { padding: 48px 0; }
.seo .container { max-width: 800px; display: flex; flex-direction: column; gap: 32px; }
.seo h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.seo p { color: hsl(220, 8%, 52%); font-size: 14px; line-height: 1.7; }

/* ── Footer ── */
.footer { border-top: 1px solid hsl(220, 13%, 90%); padding: 32px 16px; text-align: center; }
.footer p { color: hsl(220, 8%, 52%); font-size: 12px; margin-bottom: 6px; }
.footer .copy { font-size: 13px; }
