:root {
  --ink: #17201b;
  --muted: #66756c;
  --line: #d9e2dc;
  --paper: #f7faf8;
  --surface: #ffffff;
  --mint: #c9f4df;
  --green: #1f7a4d;
  --coral: #ee6c4d;
  --gold: #f7c948;
  --sky: #4d96ff;
  --shadow: 0 18px 44px rgba(28, 47, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 253, 251, 0.9);
  border-bottom: 1px solid rgba(217, 226, 220, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
}

nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 250px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 27, 20, 0.82), rgba(13, 27, 20, 0.34)),
    linear-gradient(0deg, rgba(13, 27, 20, 0.18), rgba(13, 27, 20, 0));
}

.hero picture {
  z-index: -2;
}

.hero-copy {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  font-size: 22px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 18px;
  font-size: clamp(17px, 2vw, 21px);
}

button,
select {
  border-radius: 8px;
  font: inherit;
}

#answers {
  scroll-margin-top: 86px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 16px;
  width: min(1060px, 100%);
}

.hero .controls {
  width: min(420px, 100%);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero label {
  color: #ffffff;
}

select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
}

.answers-band {
  padding: 18px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
}

.top-brands {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.top-brands h2 {
  max-width: 620px;
  font-size: clamp(28px, 4vw, 44px);
}

.brand-rankings {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.rank-card {
  display: grid;
  min-height: 96px;
  align-content: space-between;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(28, 47, 37, 0.08);
}

a.rank-card:hover,
a.rank-card:focus-visible {
  border-color: var(--green);
  background: var(--mint);
}

.rank-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
}

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

.answer-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.answer-table {
  min-width: 1180px;
}

.table-head {
  min-height: 74px;
  background: #f1f7f3;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) repeat(4, minmax(220px, 1fr));
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-cell {
  min-height: 148px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: #2f3f36;
  font-size: 16px;
}

.brand-hit {
  padding: 1px 5px 2px;
  color: #0f4d32;
  background: var(--mint);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

a.brand-hit:hover,
a.brand-hit:focus-visible {
  color: #ffffff;
  background: var(--green);
}

.table-cell:last-child {
  border-right: 0;
}

.table-head .table-cell {
  min-height: 74px;
  color: var(--ink);
  font-weight: 900;
}

.question-cell {
  background: #fbfdfb;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.model-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-label img,
.model-icon {
  width: 28px;
  height: 28px;
}

.model-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.model-label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .answer-table {
    min-width: 1040px;
  }

  .top-brands,
  .brand-rankings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 300px;
  }

  .hero-copy {
    width: calc(100% - 36px);
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .top-brands,
  .brand-rankings {
    grid-template-columns: 1fr;
  }

  .answer-table {
    min-width: 0;
  }

  .table-row {
    display: block;
    border-bottom: 18px solid #edf8f1;
  }

  .table-head {
    display: none;
  }

  .table-cell {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-cell::before {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .question-cell::before {
    content: "";
  }
}
