:root {
  --ink: #172023;
  --muted: #617074;
  --line: #d9e2df;
  --paper: #f7f6f1;
  --white: #ffffff;
  --teal: #087d75;
  --teal-dark: #065e58;
  --amber: #c77b14;
  --graphite: #263033;
  --shadow: 0 20px 50px rgba(23, 32, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid rgba(217, 226, 223, 0.9);
  backdrop-filter: blur(18px);
}

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

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

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

.nav-links a,
.site-footer a,
.tool-card a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.tool-card a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 116px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 4vw, 56px) 34px;
}

.hero-copy {
  max-width: 700px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

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

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text,
.section-text,
.section-heading p,
.newsletter p,
.content-page p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
}

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

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

.button.primary,
.signup button {
  color: var(--white);
  background: var(--teal);
}

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

.hero-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.grid-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  background: #eef4f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c7d3d0;
  border-radius: 8px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(8, 125, 117, 0.18);
  border-color: var(--teal);
}

.result {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--graphite);
  border-radius: 8px;
}

.result span {
  color: #c9d7d3;
  font-weight: 700;
}

.result strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
}

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

.tool-card {
  min-height: 260px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-card p,
.article-list p {
  color: var(--muted);
}

.tool-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 800;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  color: #603b05;
  background: #f4d69d;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 850;
}

.ad-slot {
  display: grid;
  place-items: center;
  margin: 0 clamp(18px, 4vw, 56px);
  color: #7b8785;
  background: repeating-linear-gradient(135deg, #eef1ee, #eef1ee 10px, #e4ebe8 10px, #e4ebe8 20px);
  border: 1px dashed #a9b7b3;
  border-radius: 8px;
}

.ad-slot.wide {
  min-height: 96px;
}

.ad-slot.inline {
  min-height: 180px;
}

.ad-slot span {
  padding: 8px 12px;
  background: rgba(247, 246, 241, 0.8);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.guides {
  background: var(--white);
}

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

.article-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-list span {
  color: var(--amber);
  font-weight: 900;
  font-size: 1.3rem;
}

.article-list p {
  margin: 0;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: center;
  color: var(--white);
  background: var(--graphite);
}

.newsletter .eyebrow,
.newsletter p {
  color: #c9d7d3;
}

.signup {
  display: grid;
  gap: 10px;
}

.signup label {
  color: var(--white);
}

.signup div {
  display: flex;
  gap: 10px;
}

.signup input {
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #edf1ef;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.content-page {
  max-width: 820px;
  min-height: 70svh;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

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

.content-page h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

@media (max-width: 980px) {
  .hero,
  .grid-section,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .section-heading,
  .signup div {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

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

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

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


.signup-note {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.signup-note strong {
  color: var(--white);
  font-size: 1.05rem;
}

.signup-note span {
  color: #c9d7d3;
}

.article-list a {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.content-page ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--muted);
}

.content-page a {
  color: var(--teal-dark);
  font-weight: 750;
}
