:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #60716a;
  --line: #d8e1dc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --mist: #eef6f2;
  --sea: #12746a;
  --sea-dark: #0a514a;
  --leaf: #6c9f52;
  --sun: #f4b740;
  --coral: #e56f51;
  --sky: #6aa6c8;
  --shadow: 0 18px 50px rgba(30, 51, 44, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a,
.site-footer a,
.guide-grid a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.guide-grid a:hover {
  color: var(--sea-dark);
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  min-height: calc(100vh - 67px);
  padding: clamp(30px, 4vw, 56px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 16% 20%, rgba(143, 212, 202, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(18, 116, 106, 0.09), transparent 46%),
    var(--paper);
}

.tool-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  width: min(340px, 78vw);
  margin: 0 0 clamp(22px, 4vw, 34px);
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 6px;
}

.hero-primary {
  min-width: 210px;
  padding: 0 18px;
}

.text-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  color: var(--sea-dark);
  font-weight: 850;
  text-decoration: none;
}

.text-action:hover {
  color: var(--sea);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.trust-row span,
.tag,
.filter-chip,
.score-pill,
.product-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--sea-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.quiz-panel,
.product-card,
.compare-panel,
.legal-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quiz-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 24px);
  border-top: 5px solid var(--sea);
}

.quiz-header {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.quiz-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.quiz-header .eyebrow {
  margin-bottom: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

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

.choice-card,
.check-row label,
.segmented label {
  cursor: pointer;
}

.choice-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}

.choice-card:has(input:checked),
.segmented label:has(input:checked) {
  border-color: var(--sea);
  background: var(--mist);
  color: var(--sea-dark);
}

.choice-card input,
.segmented input,
.check-row input {
  accent-color: var(--sea);
}

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

select,
input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}

.primary-action,
.secondary-action,
.product-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary-action,
.product-cta {
  background: var(--sea-dark);
  color: #fff;
}

.product-cta.disabled {
  background: #dce5e8;
  color: #50606a;
  cursor: not-allowed;
  pointer-events: none;
}

.primary-action:hover,
.product-cta:hover {
  background: var(--sea);
}

.secondary-action {
  margin: 24px auto 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--sea-dark);
}

.secondary-action[hidden] {
  display: none;
}

.result-band,
.catalog-section,
.guide-band,
.page-main {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.result-band {
  background: #eef6f2;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading-small {
  margin-top: 34px;
}

.warning-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.warning-item {
  min-height: 70px;
  padding: 14px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #fff;
  color: #583224;
  line-height: 1.45;
}

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

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

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card.compact {
  box-shadow: none;
}

.product-image {
  height: 180px;
  background: var(--mist);
  object-fit: cover;
  width: 100%;
}

.product-content {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.product-topline,
.product-actions,
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-label {
  color: var(--sea-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-pill {
  padding: 6px 9px;
  color: var(--sea-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.price-line strong {
  color: var(--ink);
  font-size: 1.16rem;
}

.tag-row,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag,
.product-meta span {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.52;
}

.opinion-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.avoid {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff5eb;
  color: #68462b;
}

.affiliate-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
}

.catalog-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--sea);
  background: var(--sea-dark);
  color: #fff;
}

.filter-chip span {
  margin-left: 5px;
  opacity: 0.75;
}

.toolbar-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: end;
}

.search-box span,
.sort-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.compare-panel {
  margin-top: 34px;
  padding: 18px;
}

.empty-compare {
  color: var(--muted);
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.guide-band {
  background: #f7f2e9;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.guide-grid a {
  min-height: 110px;
  padding: 16px;
  border: 1px solid #e1d7c7;
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
  line-height: 1.25;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #17201d;
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #c7d6d0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  color: #dce9e3;
}

.page-main {
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero {
  padding: 48px 0 22px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
}

.legal-card,
.guide-card {
  padding: 22px;
  box-shadow: none;
}

.guide-card + .guide-card,
.legal-card + .legal-card {
  margin-top: 16px;
}

.guide-card ul,
.legal-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.guide-card p,
.legal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.aside-box {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

@media (max-width: 1080px) {
  .tool-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .tool-copy {
    min-height: 0;
  }

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

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

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

  .site-nav,
  .filter-row {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .choice-grid,
  .quiz-columns,
  .bundle-grid,
  .product-grid,
  .mini-grid,
  .warning-list,
  .toolbar-controls,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

  .product-image {
    height: 160px;
  }

  .hero-logo {
    width: min(260px, 82vw);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-primary,
  .text-action {
    width: 100%;
    justify-content: center;
  }
}
