:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6673;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #e3e7ee;
  --sage: #0f766e;
  --sage-dark: #115e59;
  --coral: #b45309;
  --amber: #ca8a04;
  --blue: #2563eb;
  --shadow: none;
  --radius: 8px;
}

* {
  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;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sage-dark), var(--coral));
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-links a:hover {
  border-bottom-color: var(--sage);
  background: transparent;
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.hero > img {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48vw, 580px);
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fff 0, #fff 46%, rgba(255, 255, 255, 0.78) 64%, rgba(255, 255, 255, 0.14) 100%),
    linear-gradient(180deg, rgba(247, 248, 251, 0), rgba(247, 248, 251, 0.78));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 66px;
  color: var(--ink);
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.hero-logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

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

.hero .eyebrow,
.result-box .eyebrow {
  color: var(--coral);
}

h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.amazon {
  background: #1f2f3d;
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.home-intro {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-intro-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: start;
}

.home-intro .hero-copy {
  max-width: 680px;
}

.diagnostic-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.diagnostic-panel > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.diagnostic-panel .finder-panel {
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section.compact {
  padding-top: 34px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.compact-strip {
  margin-top: 42px;
  max-width: 720px;
}

.compact-strip div:first-child {
  padding-left: 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.split-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 24px;
}

.split-heading .eyebrow {
  margin-top: 8px;
}

.split-heading h1,
.split-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
}

.split-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
}

.section-title p,
.page-title p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.fix-list,
.directory-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.fix-row,
.directory-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.directory-item {
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.fix-row h3,
.directory-item h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.16;
}

.fix-row p,
.directory-item p {
  margin: 0;
  color: var(--muted);
}

.fix-row .link,
.directory-item .link {
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.fix-row .link:hover,
.directory-item .link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.problem-card {
  position: relative;
  min-height: 244px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.problem-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.16;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
}

.problem-card .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: none;
}

.problem-card .link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.feature-card {
  position: relative;
  min-height: 228px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.14;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card .link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: auto;
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.pill.warning {
  background: #fff7ed;
  color: #8b3d28;
}

.pill.blue {
  background: #eff6ff;
  color: #315773;
}

.finder {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.finder-panel {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.finder-panel h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.04;
}

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

.choice {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.choice strong {
  display: block;
  font-size: 15px;
}

.choice span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.choice.active {
  border-color: var(--sage-dark);
  background: #f0fdfa;
  box-shadow: none;
}

.result-box {
  padding: 26px;
  min-height: 100%;
  background: #f8fafc;
  color: var(--ink);
}

.result-box p {
  color: var(--muted);
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.score {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.score span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.score strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 34px;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}

.content-block {
  margin-bottom: 30px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-block h3 {
  margin: 20px 0 8px;
}

.content-block p {
  color: var(--muted);
}

.content-block ul,
.content-block ol {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input,
.contact-form select {
  min-height: 44px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 160px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 93, 88, 0.16);
  border-color: var(--sage-dark);
}

.form-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e6;
  color: #59411a;
  font-weight: 700;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.product h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.product p {
  margin: 0 0 14px;
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-media.placeholder {
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--sage-dark);
  font-weight: 900;
  box-shadow: none;
}

.product-media.placeholder span {
  display: block;
  max-width: 120px;
  line-height: 1.1;
}

.product-media img.is-missing {
  display: none;
}

.image-fallback {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

.article-shell .content-block {
  margin-bottom: 34px;
}

.quick-nav {
  padding: 16px 18px;
}

.quick-nav a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.quick-nav a:hover {
  color: var(--ink);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.product-table th {
  background: #f8fafc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.callout.warning {
  border-color: #f1c9b7;
  background: #fff7f2;
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.amazon-widget {
  padding: 16px;
  overflow: hidden;
}

.amazon-widget-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.amazon-widget-header strong {
  color: var(--ink);
}

.product h3 span {
  color: var(--muted);
  font-weight: 600;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internal-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: none;
}

.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 18px;
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.sidebar ul {
  padding-left: 19px;
  color: var(--muted);
}

.disclosure {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: #fffbeb;
  color: #59411a;
  border-radius: 0 8px 8px 0;
}

.empty-state,
.roadmap-list {
  padding: 24px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.roadmap-list ul {
  columns: 2;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 260px;
  }

  .hero > img {
    inset: 0 0 auto;
    width: 100%;
    height: 270px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, #fff 270px, #fff 100%);
  }

  .home-intro-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .diagnostic-panel > img {
    height: 230px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .split-heading .eyebrow {
    margin-top: 0;
  }

  .fix-row,
  .directory-item {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .fix-row .link,
  .directory-item .link {
    white-space: normal;
  }

  .grid.three,
  .grid.two,
  .trust-strip,
  .contact-layout,
  .finder,
  .problem-layout,
  .scoreboard,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .roadmap-list ul {
    columns: 1;
  }

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

  .sidebar {
    position: static;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .nav {
    padding-inline: 16px;
  }

  .brand span {
    max-width: 218px;
    overflow-wrap: anywhere;
    line-height: 1.05;
  }

  .home-intro-inner {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .diagnostic-panel > img {
    height: 190px;
  }

  .compact-strip {
    margin-top: 32px;
  }

  .hero-inner,
  .section,
  .page-title {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding-top: 32px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

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

  .product-media {
    max-width: 180px;
  }
}
