:root {
  color-scheme: light;
  --bg: hsl(43 35% 97%);
  --surface: hsl(0 0% 100%);
  --surface-strong: hsl(205 25% 93%);
  --text: hsl(220 18% 11%);
  --muted: hsl(220 9% 42%);
  --line: hsl(213 18% 83%);
  --navy: hsl(220 46% 22%);
  --teal: hsl(178 55% 30%);
  --green: hsl(148 48% 36%);
  --amber: hsl(39 91% 50%);
  --red: hsl(3 70% 50%);
  --shadow: hsl(220 20% 18% / 0.12);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, hsl(206 46% 94%), var(--bg) 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
a { color: inherit; }
.site-header, .site-footer, main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header { padding: 1rem 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  font-weight: 790;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 860;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.84);
}
.nav a, .text-link {
  color: var(--muted);
  text-decoration: none;
}
.nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.92rem;
}
.nav a:hover, .text-link:hover {
  color: var(--teal);
  background: var(--surface-strong);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1rem;
  align-items: stretch;
  padding: 4rem 0 1rem;
}
.hero-copy {
  padding: 1rem 0;
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 790;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.simple-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.25rem;
}
.hero-panel, .tool-shell, .text-page, .monetization-band, .content-grid article, .result-card, .metric, .ad-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.88);
  box-shadow: 0 1rem 2rem var(--shadow);
}
.hero-panel {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}
.hero-panel strong {
  font-size: 1.08rem;
}
.hero-panel span {
  padding: 0.8rem 0.9rem;
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 680;
}
.simple-hero { padding: 3.6rem 0 1rem; }
.tool-shell {
  margin: 1rem 0 2rem;
  padding: 1.4rem;
}
.tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.tool-heading h2, .monetization-band h2, .content-grid h2, .text-page h2 {
  margin: 0 0 0.5rem;
}
.tool-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}
.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
}
label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 720;
}
input, select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  padding: 0.78rem 0.85rem;
}
input:focus, select:focus {
  outline: 3px solid hsl(178 55% 30% / 0.18);
  border-color: var(--teal);
}
.input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.input-unit input { border: 0; background: transparent; }
.input-unit span {
  padding-right: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0.78rem 1.05rem;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  align-self: end;
  background: var(--navy);
  color: white;
}
.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--teal);
}
.results {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.result-grid, .content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.result-card, .metric, .ad-card, .content-grid article, .text-page {
  padding: 1.15rem;
  box-shadow: none;
}
.result-card.highlight {
  border-color: hsl(148 48% 36% / 0.45);
  background: hsl(148 42% 96%);
}
.priority {
  display: inline-flex;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}
.priority.good { background: hsl(148 48% 88%); color: var(--green); }
.priority.warn { background: hsl(39 91% 88%); color: hsl(35 85% 31%); }
.priority.bad { background: hsl(3 70% 92%); color: var(--red); }
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 690;
}
.metric strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.45rem;
}
.checklist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}
.ad-card {
  border-style: dashed;
  background: hsl(39 91% 95%);
}
.monetization-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem;
  margin: 1rem 0 2rem;
}
.monetization-band p, .content-grid p, .text-page p, .text-page li, .result-card p {
  color: var(--muted);
  line-height: 1.65;
}
.content-grid {
  margin: 1rem 0 2rem;
}
.text-page {
  max-width: 860px;
  margin: 1rem 0 3rem;
}
.text-page a {
  color: var(--teal);
  font-weight: 720;
}
.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header, .site-footer, .hero, .tool-heading, .monetization-band {
    display: block;
  }
  .nav { margin-top: 0.8rem; }
  .hero { padding-top: 2.2rem; }
  .hero-panel { margin-top: 1rem; }
  .calculator-form, .result-grid, .content-grid {
    grid-template-columns: 1fr;
  }
  .button.primary { width: 100%; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.45rem); }
}
