:root {
  --yellow: #ffd23f;
  --surface: #fff3c4;
  --ink: #111111;
  --muted: #3d3a2e;
  --accent: #c2185b;
  --secondary: #1b3a4b;
  --rule: 6px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--yellow);
  padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--wide { display: block; text-align: center; }
.btn--light { border-color: var(--yellow); box-shadow: 5px 5px 0 var(--yellow); }
.btn--light:hover { box-shadow: 7px 7px 0 var(--yellow); }
.btn--light:active { box-shadow: 2px 2px 0 var(--yellow); }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1rem var(--pad);
  border-bottom: var(--rule) solid var(--ink);
}
.top__logo { display: block; }
.top__logo svg { width: clamp(190px, 50vw, 280px); height: auto; }
.top__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.top__nav a {
  font-weight: 700; text-decoration: none; padding: .25rem 0;
  border-bottom: 3px solid transparent;
}
.top__nav a:hover { border-bottom-color: var(--ink); }

/* Hero */
.hero { padding: clamp(1.75rem, 5vw, 4rem) var(--pad) 0; }
.hero__title {
  font-size: clamp(3.1rem, 14vw, 9.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__row {
  display: grid;
  gap: 2rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.hero__lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.hero__art { width: 100%; max-width: 440px; height: auto; justify-self: end; }

@media (min-width: 860px) {
  .hero__row { grid-template-columns: 1fr 1fr; margin-top: -2rem; }
  .hero__copy { padding-bottom: 3rem; }
}

/* Calculator */
.calc-wrap { padding: 0 var(--pad) clamp(3rem, 8vw, 6rem); }
.calc {
  background: var(--surface);
  border: var(--rule) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
}
.calc__form { padding: clamp(1.25rem, 4vw, 3rem); }
.calc__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.calc__intro { margin: .75rem 0 1.75rem; color: var(--muted); max-width: 46ch; }
.fields { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 0;
  padding: .75rem .85rem;
  min-height: 3.25rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: calc(100% - 1.4rem) 55%, calc(100% - .9rem) 55%;
  background-size: .5rem .5rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input::placeholder { color: #6b6656; }
.calc__note { margin-top: 1rem; font-size: .9375rem; color: var(--muted); max-width: 52ch; }

.calc__out {
  background: var(--ink);
  color: var(--yellow);
  padding: clamp(1.25rem, 4vw, 3rem);
  border-top: var(--rule) solid var(--ink);
}
.out__title { font-size: 1.35rem; line-height: 1.1; margin-bottom: 1.25rem; color: #fff; }
.out { margin: 0; }
.out__row { padding: 1rem 0; border-top: 3px solid var(--yellow); }
.out__row dt { font-weight: 600; color: #fff; max-width: 30ch; }
.out__row dd {
  margin: .25rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (min-width: 700px) {
  .fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .calc { grid-template-columns: 1.6fr 1fr; }
  .calc__out { border-top: 0; }
}

/* Poster headline shared */
.poster-title {
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
}

/* Steps */
.steps {
  background: var(--surface);
  border-top: var(--rule) solid var(--ink);
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
}
.steps__list { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  border-top: var(--rule) solid var(--ink);
  padding: 1.5rem 0 2rem;
}
.step__n {
  font-family: var(--display);
  font-size: clamp(5.5rem, 22vw, 11rem);
  line-height: .78;
  letter-spacing: -0.05em;
  min-width: .7em;
}
.step h3 { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.05; margin: .2rem 0 .6rem; }
.step p { max-width: 36ch; }

@media (min-width: 960px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step { grid-template-columns: 1fr; gap: 1rem; }
}

/* Loud black poster */
.loud {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad);
}
.loud__title {
  color: var(--yellow);
  font-size: clamp(2.6rem, 10.5vw, 8.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.loud__lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 40ch; margin: 1.75rem 0 2.5rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 1rem; align-items: start; }
.facts p { max-width: 40ch; }
.facts strong { color: var(--yellow); }
.loud :focus-visible { outline-color: var(--yellow); }

@media (min-width: 960px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* Area */
.area {
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  display: grid;
  gap: 2rem;
  align-items: end;
}
.area__cities {
  font-family: var(--display);
  font-size: clamp(3.4rem, 16vw, 10rem);
  line-height: .86;
  letter-spacing: -0.04em;
}
.area__cities span { display: block; }
.area__cities span:nth-child(2) { padding-left: .6em; }
.area__cities span:nth-child(3) { padding-left: 1.2em; }
.area__text { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 30ch; }
.area__next {
  margin-top: 1rem; font-weight: 700;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
}
@media (min-width: 960px) {
  .area { grid-template-columns: auto 1fr; gap: 4rem; }
}

/* Installers band */
.pros {
  background: var(--secondary);
  color: #fff;
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
}
.pros__inner { display: grid; gap: 1.75rem; }
.pros__title {
  color: var(--yellow);
  font-size: clamp(2.1rem, 6.5vw, 4.75rem);
  line-height: .95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.pros__body p { max-width: 46ch; font-size: 1.125rem; margin-bottom: 1.75rem; }
.pros :focus-visible { outline-color: var(--yellow); }
@media (min-width: 960px) {
  .pros__inner { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; }
}

/* Footer */
.foot {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 2rem;
}
.foot__title {
  color: var(--yellow);
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: .95;
  letter-spacing: -0.03em;
}
.foot__mail {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 5.2vw, 3.25rem);
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration-thickness: 4px;
  text-underline-offset: .18em;
  text-decoration-color: var(--accent);
}
.foot__mail:hover { color: var(--yellow); }
.foot :focus-visible { outline-color: var(--yellow); }
.foot__base {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 3px solid var(--yellow);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
  font-size: .9375rem;
}
.foot__copy { margin-left: auto; color: #d9d4c2; }

/* The one orchestrated moment: heat rising from the pump */
@media (prefers-reduced-motion: no-preference) {
  .waves path {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .waves path:nth-child(2) { animation-delay: .18s; }
  .waves path:nth-child(3) { animation-delay: .36s; }
  @keyframes rise { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
