:root {
  --ink: #17211f;
  --muted: #5f6f6a;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d9ded8;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e75d42;
  --sun: #f5b84b;
  --shadow: 0 20px 55px rgba(24, 34, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 22, 25, 0.78), rgba(8, 22, 25, 0));
}

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

.brand {
  gap: 10px;
  width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.15);
}

.main-nav {
  gap: 8px;
  justify-content: center;
}

.main-nav a,
.header-action {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.header-action {
  justify-self: end;
  width: max-content;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero img {
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 26, 28, 0.84), rgba(9, 26, 28, 0.35) 58%, rgba(9, 26, 28, 0.06)),
    linear-gradient(0deg, rgba(9, 26, 28, 0.62), rgba(9, 26, 28, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 130px 0 58px;
  color: #fff;
}

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

.hero .eyebrow {
  color: #ffd07a;
}

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

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  max-width: 820px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
}

label span {
  font-size: 0.78rem;
  font-weight: 800;
  color: inherit;
}

select,
input,
button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
}

select,
input {
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

button,
.affiliate-link,
.header-action {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.affiliate-link:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.search-panel button,
.calculator button {
  padding: 0 22px;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 112px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #fff;
}

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

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.guide-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:last-child,
.guide-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.filter-button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

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

.deal-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 25px rgba(24, 34, 32, 0.07);
}

.deal-card[hidden] {
  display: none;
}

.deal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.deal-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.tag {
  width: max-content;
  margin: 0;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: #dff0ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.deal-body h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.15;
}

.deal-body p:not(.tag) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.affiliate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 4px;
  color: #fff;
  background: var(--teal);
  text-decoration: none;
  font-weight: 900;
}

.guide-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: 76px clamp(18px, 6vw, 86px);
  color: #fff;
  background: var(--teal-dark);
}

.guide-copy p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

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

.guide-list a {
  display: block;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 850;
}

.tools {
  padding-bottom: 90px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.calculator,
.estimate {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(24, 34, 32, 0.07);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.calculator label span {
  color: var(--muted);
}

.calculator input {
  border-color: var(--line);
}

.estimate {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 166px;
  padding: 24px;
}

.estimate span {
  color: var(--muted);
  font-weight: 800;
}

.estimate strong {
  color: var(--coral);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
}

.estimate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(260px, 1fr) auto;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #17211f;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.disclosure {
  justify-self: end;
  max-width: 720px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 800;
}

.page-header {
  position: sticky;
  background: #17211f;
}

.article-page {
  padding: 76px 0 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(247, 245, 239, 0) 360px),
    var(--paper);
}

.article-shell {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 82px;
}

.slim-article {
  width: min(760px, calc(100% - 36px));
}

.article-shell h1 {
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.96;
}

.article-intro {
  max-width: 780px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 32px 0 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(24, 34, 32, 0.16);
}

.article-shell h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.article-shell p {
  color: #34413e;
  font-size: 1.04rem;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  background: #fff;
  color: #34413e;
  box-shadow: 0 8px 18px rgba(24, 34, 32, 0.06);
}

.check-list a {
  color: var(--teal-dark);
  font-weight: 900;
}

.product-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.product-pick {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 34, 32, 0.06);
}

.product-pick strong,
.product-pick span {
  display: block;
}

.product-pick span {
  color: var(--muted);
  line-height: 1.5;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 38px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
}

.article-cta strong,
.article-cta span {
  display: block;
}

.article-cta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.article-cta .affiliate-link {
  background: var(--coral);
}

.compact-footer {
  align-items: center;
  grid-template-columns: minmax(220px, 1fr) auto;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .search-panel,
  .section-heading,
  .guide-band,
  .tool-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

  .calculator button {
    grid-column: 1 / -1;
  }

  .disclosure {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 34px;
  }

  .search-panel,
  .trust-strip,
  .deal-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: auto;
    padding: 20px 18px;
  }

  .section-shell {
    width: calc(100% - 28px);
    padding: 54px 0;
  }

  .article-page {
    padding-top: 64px;
  }

  .article-shell,
  .slim-article {
    width: calc(100% - 28px);
    padding: 38px 0 58px;
  }

  .article-hero {
    aspect-ratio: 4 / 3;
  }
}
