:root {
  --ink: #151515;
  --muted: #5d6465;
  --paper: #fbfbf8;
  --paper-strong: #ffffff;
  --line: #d9ded9;
  --coal: #101111;
  --acid: #d8ff3e;
  --teal: #0f7b73;
  --red: #d94a35;
  --blue: #3157d5;
  --shadow: 0 18px 48px rgba(16, 17, 17, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--acid);
  color: var(--coal);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

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

.disclosure-bar {
  background: var(--coal);
  color: var(--paper-strong);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0;
  padding: 0.55rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--acid);
  color: var(--coal);
  border: 1px solid var(--coal);
  font-size: 0.78rem;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding: clamp(7rem, 12vw, 10rem) clamp(1rem, 4vw, 3rem) 2rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 11, 11, 0.88) 0%, rgba(10, 11, 11, 0.58) 42%, rgba(10, 11, 11, 0.16) 100%),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 11, 11, 0.78), transparent);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

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

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--acid);
  color: var(--coal);
  border-color: var(--acid);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 3rem;
  color: var(--coal);
}

.hero-strip span {
  background: rgba(216, 255, 62, 0.92);
  border: 1px solid rgba(16, 17, 17, 0.45);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 900;
}

.signal-band {
  background: var(--red);
  color: #fff;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
}

.signal-band p {
  width: min(var(--max), 100%);
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.editor-rating {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.45rem;
  row-gap: 0.25rem;
  max-width: 100%;
}

.rating-label {
  grid-column: 1 / -1;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-stars {
  position: relative;
  display: inline-block;
  width: 5.85em;
  color: #b7beb7;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  color: #e09920;
  overflow: hidden;
  white-space: nowrap;
}

.editor-rating strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.rating-reason {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 0.85rem;
  margin: 0 0 1.2rem;
  padding: 1rem;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 17, 17, 0.08);
}

.search-field,
.sort-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.search-field span,
.sort-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

.filter-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--coal);
}

.filter-chip[aria-pressed="true"] {
  background: var(--coal);
  color: #fff;
  border-color: var(--coal);
}

.catalog-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-meta p {
  margin: 0;
}

.catalog-meta p:first-child {
  color: var(--ink);
  font-weight: 900;
}

.empty-state {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.empty-state p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-rows: 16rem 1fr auto;
  min-width: 0;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: #e6ebe8;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
  background: #fff;
  transition: transform 260ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  max-width: calc(100% - 1.6rem);
  background: var(--acid);
  color: var(--coal);
  border: 1px solid rgba(16, 17, 17, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-body .editor-rating {
  margin-top: -0.15rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.proof-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.proof-list li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--teal);
}

.product-actions {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.product-actions .button {
  width: 100%;
}

.product-actions .button-secondary {
  background: var(--paper-strong);
  color: var(--ink);
  border-color: var(--line);
}

.section-compare {
  width: 100%;
  max-width: none;
  background: var(--coal);
  color: #fff;
  padding-left: max(1rem, calc((100vw - var(--max)) / 2));
  padding-right: max(1rem, calc((100vw - var(--max)) / 2));
}

.section-compare .section-intro p,
.section-compare .eyebrow {
  color: var(--acid);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

th {
  color: var(--acid);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: rgba(255, 255, 255, 0.84);
}

td:first-child {
  color: #fff;
  font-weight: 900;
}

.table-link {
  color: var(--acid);
  font-weight: 900;
  text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
  text-decoration: underline;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.standards-grid article {
  min-height: 16rem;
  display: grid;
  align-content: space-between;
  gap: 1.4rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.standard-number {
  color: var(--red);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.standards-grid p {
  margin: 0;
  color: var(--muted);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.newsletter p {
  max-width: 620px;
  color: var(--muted);
}

.signup-form {
  display: grid;
  gap: 0.65rem;
}

.signup-form label {
  font-weight: 900;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.signup-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: var(--coal);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  max-width: 58ch;
  margin: 0.5rem 0 0;
}

.site-footer strong {
  color: #fff;
}

.product-dialog {
  width: min(680px, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(16, 17, 17, 0.58);
}

.dialog-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.dialog-layout img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem;
}

.dialog-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dialog-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.dialog-panel h3 {
  margin-bottom: 0.65rem;
}

.dialog-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.dialog-panel li + li {
  margin-top: 0.45rem;
}

@media (max-width: 980px) {
  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standards-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: 72vh;
    padding-top: 5rem;
  }

  .hero-strip {
    margin-top: 2rem;
  }

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

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .signup-row,
  .site-footer,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }
}
