:root {
  color-scheme: light;
  --bg: #f4efe5;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --text: #223126;
  --muted: #6b7280;
  --forest: #1f6f43;
  --forest-dark: #164f31;
  --moss: #8fae57;
  --lake: #237c91;
  --sand: #e8d8b5;
  --line: rgba(34, 49, 38, 0.14);
  --shadow: 0 18px 60px rgba(42, 55, 39, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(143, 174, 87, 0.35), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(35, 124, 145, 0.22), transparent 25rem),
    linear-gradient(135deg, #f8f1df 0%, var(--bg) 48%, #dfead5 100%);
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 30px;
  background:
    linear-gradient(rgba(24, 63, 42, 0.68), rgba(24, 63, 42, 0.54)),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, #1f6f43, #237c91);
  color: white;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  right: 7%;
  bottom: -36px;
  width: 220px;
  height: 120px;
  border-radius: 55% 55% 0 0;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: -160px 26px 0 rgba(255, 255, 255, 0.08), -70px -18px 0 rgba(255, 255, 255, 0.1);
}

.hero::after {
  right: 58px;
  top: 48px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 221, 133, 0.55);
  box-shadow: 0 0 50px rgba(255, 221, 133, 0.48);
}

.eyebrow {
  margin: 0 0 10px;
  color: #f7e7b1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 770px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

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

.summary article,
.results,
.group,
.chart-card,
.seo-text,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 116px;
  margin: 20px 0;
  padding: 18px;
  text-align: center;
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
}

.ad-slot span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--forest-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.ad-slot p {
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

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

.summary article {
  padding: 18px;
}

.summary span,
.result-row span,
.chart-heading p,
.seo-text p {
  color: var(--muted);
}

.summary strong {
  display: block;
  margin-top: 6px;
  color: var(--forest-dark);
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

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

.group {
  padding: 22px;
}

.group h2,
.results h2,
.chart-card h2,
.seo-text h2 {
  color: var(--forest-dark);
  letter-spacing: -0.03em;
}

label {
  display: block;
  margin-top: 14px;
  color: #374151;
  font-weight: 700;
  line-height: 1.35;
}

input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid rgba(31, 111, 67, 0.22);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 111, 67, 0.12);
}

.results {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-row strong {
  color: var(--forest-dark);
  white-space: nowrap;
}

.tip {
  margin-top: 18px;
  padding: 15px;
  border-radius: 16px;
  color: #314236;
  background: #eef6df;
  border: 1px solid rgba(143, 174, 87, 0.36);
  line-height: 1.55;
}

.chart-card,
.seo-text {
  margin-top: 22px;
  padding: 24px;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.chart-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.chart-heading .eyebrow {
  color: var(--lake);
}

#costChart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(31, 111, 67, 0.1), rgba(35, 124, 145, 0.08));
  border: 1px solid var(--line);
}

.seo-text p {
  max-width: 900px;
  line-height: 1.75;
  font-size: 1.05rem;
}

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

  .results {
    position: static;
  }

  .chart-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .hero,
  .group,
  .results,
  .chart-card,
  .seo-text,
  .ad-slot {
    border-radius: 18px;
    padding: 18px;
  }

  .summary article {
    border-radius: 16px;
  }
}
