:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6b76;
  --line: #d8e1e8;
  --paper: #fbfcf8;
  --soft: #eef5f4;
  --accent: #0d6b62;
  --accent-2: #bf4a30;
  --accent-3: #d7a326;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
}

* {
  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;
}

a {
  color: inherit;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

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

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.78) 46%, rgba(251, 252, 248, 0.22) 100%);
  z-index: -1;
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 92px;
}

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

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

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 30px;
  color: #33404a;
  font-size: 1.18rem;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
}

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

.trust-strip span {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.trust-strip span + span {
  border-left: 1px solid var(--line);
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

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

.tool-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(23, 33, 43, 0.06);
}

.tool-card.featured {
  border-color: rgba(13, 107, 98, 0.42);
  box-shadow: var(--shadow);
}

.tool-card.hidden {
  display: none;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag,
.price {
  font-size: 0.78rem;
  font-weight: 800;
}

.tag {
  color: var(--accent);
}

.price {
  color: var(--accent-2);
}

.tool-card p,
.split p,
.cta p,
.legal-note p {
  color: var(--muted);
}

.tool-card ul {
  margin: 12px 0 24px;
  padding-left: 20px;
  color: #394752;
}

.score {
  width: fit-content;
  margin: 0 0 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8edcf;
  color: #6f4d00;
  font-size: 0.82rem;
  font-weight: 900;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  background: var(--soft);
}

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

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

.program-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.program-card span,
.offer-list span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card strong,
.offer-list strong {
  display: block;
  margin: 8px 0;
  font-size: 1.08rem;
}

.program-card p,
.offer-list small {
  color: var(--muted);
}

.guide-list a {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.guide-list a:hover {
  border-color: var(--accent);
}

.guide-list span {
  color: var(--accent-2);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 24px 24px 24px 46px;
  border-left: 6px solid var(--accent-3);
  background: var(--white);
}

.steps li + li {
  margin-top: 14px;
}

.page-hero {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 34px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.keyword-list {
  margin: 0;
  padding: 24px 24px 24px 44px;
  background: var(--white);
  border-left: 6px solid var(--accent);
}

.keyword-list li + li {
  margin-top: 10px;
}

.offer-list {
  display: grid;
  gap: 12px;
}

.offer-list a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.comparison-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.comparison-table th {
  background: var(--soft);
}

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

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.editorial-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.editorial-note h2 {
  font-size: 1.35rem;
}

.editorial-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.faq {
  padding-top: 16px;
}

.faq h2 {
  margin-bottom: 18px;
}

.faq details {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.resource {
  display: grid;
  gap: 18px;
}

.resource article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.resource h2 {
  font-size: 1.45rem;
}

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

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.signup input {
  flex: 1 1 220px;
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.signup small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.legal-note {
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.legal-note h2 {
  font-size: 1.35rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .section-head,
  .split,
  .cta {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: 640px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 252, 248, 0.98) 0%, rgba(251, 252, 248, 0.82) 56%, rgba(251, 252, 248, 0.38) 100%);
  }

  .trust-strip,
  .tool-grid,
  .programmatic-grid,
  .editorial-note,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .trust-strip span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding-bottom: 62px;
  }

  .guide-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .button,
  .input-row button {
    width: 100%;
  }
}
