:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --ink: #1f2923;
  --muted: #627067;
  --line: #d9ddd5;
  --panel: #ffffff;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --warn: #b35c1e;
  --soft: #e8eee8;
  --shadow: 0 18px 48px rgba(31, 41, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(247, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand-mark {
  align-items: center;
  background: var(--accent-dark);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 44px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

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

.home-hero,
.sales-hero,
.tool-hero {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 5vw, 68px);
}

.home-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.sales-hero {
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.tool-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.home-hero > *,
.sales-hero > *,
.tool-hero > *,
.product-band > * {
  min-width: 0;
}

.sales-hero img,
.hero-proof img,
.product-band img {
  border: 1px solid #bcc7bd;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  width: 100%;
}

.hero-proof,
.tool-panel,
.result-panel,
.content-grid article,
.tool-card,
.feature-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-proof,
.tool-panel,
.result-panel {
  box-shadow: var(--shadow);
}

.hero-proof,
.tool-panel {
  padding: clamp(22px, 4vw, 42px);
}

.hero-proof strong {
  display: block;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-proof p {
  color: var(--muted);
  line-height: 1.55;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 940px;
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
}

h3 {
  font-size: 20px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 740px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  padding: 12px 16px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.section {
  padding: clamp(28px, 5vw, 64px);
}

.section.compact {
  padding-top: clamp(18px, 4vw, 48px);
}

.card-grid,
.feature-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

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

.preview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.preview-grid figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.preview-grid img {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  height: auto;
  width: 100%;
}

.preview-grid figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
}

.tool-card,
.feature-list article {
  color: inherit;
  padding: 22px;
  text-decoration: none;
}

.tool-card span {
  color: var(--warn);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tool-card p,
.feature-list p,
.article-section p,
.article-page p,
.price-box span {
  color: var(--muted);
  line-height: 1.6;
}

.tool-card.disabled {
  cursor: default;
}

.product-band {
  align-items: center;
  background: var(--soft);
  border-block: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  padding: clamp(28px, 5vw, 64px);
}

.product-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
}

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

.content-grid article {
  box-shadow: none;
  padding: 22px;
}

.content-grid ul {
  color: var(--muted);
  line-height: 1.8;
  margin: 18px 0 0;
  padding-left: 20px;
}

.content-grid a {
  color: var(--accent-dark);
  font-weight: 700;
}

.calculator {
  margin-top: 26px;
}

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

.field-grid.two-col {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

input {
  border: 1px solid #cbd2ca;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  min-height: 46px;
  padding: 9px 11px;
  width: 100%;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(45, 106, 79, 0.16);
}

.result-panel {
  align-self: start;
  padding: 24px;
}

.result-card {
  background: var(--accent-dark);
  border-radius: 8px;
  color: #fff;
  padding: 22px;
}

.result-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  opacity: 0.78;
  text-transform: uppercase;
}

#bid-total,
#margin-bid-total {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.breakdown {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.breakdown div {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
}

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

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

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.article-section,
.article-page,
.legal-page {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(28px, 5vw, 72px);
}

.article-section h2,
.article-page h2 {
  margin-top: 30px;
}

.inline-cta,
.price-box {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 26px;
  padding: 18px;
}

.price-box {
  align-items: flex-start;
  display: grid;
  justify-content: start;
}

.price-box strong {
  font-size: 20px;
}

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

.footer span {
  color: var(--ink);
  font-weight: 800;
}

.footer a {
  text-decoration: none;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .home-hero,
  .sales-hero,
  .tool-hero,
  .product-band,
  .content-grid,
  .card-grid,
  .feature-list,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .field-grid,
  .field-grid.two-col {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .sales-hero,
  .tool-hero,
  .section,
  .article-section,
  .article-page,
  .legal-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .home-hero > div,
  .sales-hero > div,
  .hero-proof,
  .tool-panel,
  .result-panel,
  .price-box,
  .inline-cta {
    max-width: min(342px, calc(100vw - 48px));
    width: 100%;
  }

  .sales-hero img,
  .hero-proof img,
  .product-band img,
  .preview-grid img {
    max-width: min(342px, calc(100vw - 48px));
  }

  #bid-total,
  #margin-bid-total {
    font-size: 34px;
  }
}
