:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #63706d;
  --line: #dbe3df;
  --paper: #fbfcfa;
  --soft: #eef5f1;
  --mint: #2c8f72;
  --mint-dark: #17634e;
  --coral: #f28a64;
  --gold: #f6c45e;
  --white: #ffffff;
  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;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  height: 32px;
  width: 32px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  align-items: stretch;
  background:
    linear-gradient(105deg, rgba(23, 32, 31, 0.88), rgba(23, 32, 31, 0.42)),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  min-height: 640px;
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  align-self: end;
  max-width: 760px;
  padding-bottom: 18px;
}

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

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

h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 850px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 16px;
}

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

.lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 720px;
}

.lede.dark {
  color: var(--ink);
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border 140ms ease;
}

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

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

.button.primary:hover {
  background: var(--mint-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

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

.button.wide,
.button.full {
  width: 100%;
}

.market-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: var(--ink);
  padding: 26px;
}

.market-panel span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.market-panel strong {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin-bottom: 16px;
}

.market-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.tool-band,
.ad-band,
.content-band {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.calculator {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  margin: 0 auto;
  max-width: 1180px;
}

.estimate-form,
.result-panel,
.guide-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.estimate-form {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 34px);
}

.section-heading,
fieldset,
.full {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #cbd7d2;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.segmented label,
.consent {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.segmented input,
.consent input {
  min-height: auto;
  width: auto;
}

.result-panel {
  align-self: start;
  padding: clamp(22px, 4vw, 34px);
  position: sticky;
  top: 84px;
}

.price {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.confidence {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.breakdown {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 18px 0;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
}

.breakdown dt {
  color: var(--muted);
}

.breakdown dd {
  font-weight: 850;
  margin: 0;
}

.content-band {
  margin: 0 auto;
  max-width: 1220px;
}

.ad-band {
  background: var(--soft);
  padding-bottom: 32px;
  padding-top: 32px;
}

.ad-slot {
  align-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(44, 143, 114, 0.08),
      rgba(44, 143, 114, 0.08) 10px,
      rgba(255, 255, 255, 0.8) 10px,
      rgba(255, 255, 255, 0.8) 20px
    );
  border: 1px dashed #a9bbb4;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  margin: 0 auto;
  max-width: 970px;
  min-height: 96px;
  text-transform: uppercase;
}

.ad-slot.small {
  margin-top: 24px;
  min-height: 250px;
}

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

.guide-grid article {
  padding: 24px;
}

.guide-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.article-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.long-guide,
.related-panel,
.faq-band details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.long-guide {
  padding: clamp(24px, 4vw, 42px);
}

.long-guide p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.long-guide h3 {
  margin-top: 30px;
}

.related-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 22px;
  position: sticky;
  top: 84px;
}

.related-panel a {
  border-bottom: 1px solid var(--line);
  color: var(--mint-dark);
  font-weight: 850;
  padding-bottom: 12px;
}

.faq-band {
  margin: 0 auto;
  max-width: 980px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.faq-band details {
  margin-top: 12px;
  padding: 18px 20px;
}

.faq-band summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-band details p {
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 0;
}

.seo-page {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 72px);
}

.cost-table {
  border-collapse: collapse;
  margin: 18px 0 28px;
  width: 100%;
}

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

.cost-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--mint-dark);
  font-weight: 850;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.policy-page {
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 72px);
}

.policy-page h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
}

.policy-page h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 32px;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero,
  .calculator,
  .article-layout,
  .seo-page,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
  }

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

  .result-panel,
  .related-panel {
    position: static;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

}
