:root {
  --blue: #159bf3;
  --lime: #efff9b;
  --pink: #f7b8f2;
  --paper: #faf7f2;
  --text: #111111;
  --muted: #383838;
  --border: #d9d3cc;
  --content: 1360px;
  --narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.site-header {
  display: flex;
  justify-content: center;
  padding: 62px 24px 10px;
}

.brand {
  display: block;
  width: clamp(230px, 22vw, 430px);
}

.hero {
  min-height: 635px;
  display: flex;
  align-items: center;
  padding: 40px 56px 92px;
}

.hero__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: 40px;
}

.hero__content { max-width: 760px; }

h1, h2 {
  margin: 0;
  font-family: "Parkinsans", "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 { font-size: clamp(48px, 4.25vw, 74px); }

h1 span,
.signup h2 span,
.about h2 span {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__intro {
  max-width: 680px;
  margin: 30px 0 26px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.42;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blue);
  font-weight: 600;
}

.benefits li { display: flex; align-items: center; gap: 8px; }

.benefits li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  font-size: 15px;
  line-height: 1;
}

.hero__visual { justify-self: end; width: min(100%, 540px); }

.section-inner { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.section-inner--narrow { width: min(calc(100% - 48px), var(--narrow)); }

.signup {
  background: var(--paper);
  padding: 108px 24px 112px;
}

.signup h2,
.about h2 { font-size: clamp(35px, 3vw, 48px); }

.signup h2 span,
.about h2 span { background-image: linear-gradient(transparent 66%, var(--pink) 66%); }

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 56px;
}

.signup-form input,
.signup-form button {
  min-height: 56px;
  border-radius: 0;
  font: inherit;
}

.signup-form input {
  min-width: 0;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.signup-form input::placeholder { color: #b8b8b8; }
.signup-form input:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.signup-form button {
  padding: 0 28px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.signup-form button:hover { filter: brightness(.96); }
.signup-form button:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

.legal {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.form-status { min-height: 1.5em; margin: 10px 0 -10px; font-size: 15px; }
.form-status.is-error { color: #b00020; }
.form-status.is-success { color: #176b36; }

.about { padding: 118px 24px 170px; }
.about h2 { margin-bottom: 34px; }
.about p { margin: 0 0 24px; color: var(--muted); font-size: 20px; line-height: 1.48; }
.about .about__strong { color: var(--text); font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  .site-header { padding-top: 48px; }

  .hero {
    min-height: 0;
    padding: 54px 20px 76px;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 52px;
  }

  .hero__content { width: 100%; }
  h1 { font-size: clamp(38px, 10.2vw, 52px); }
  .hero__intro { margin-top: 22px; font-size: 20px; }

  .benefits {
    flex-direction: column;
    gap: 8px;
    font-size: 17px;
  }

  .hero__visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    align-self: center;
  }

  .signup { padding: 55px 20px 60px; }
  .section-inner--narrow { width: 100%; }
  .signup h2, .about h2 { font-size: 30px; }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .signup-form input,
  .signup-form button { min-height: 56px; }

  .legal { font-size: 18px; }
  .about { padding: 58px 20px 110px; }
  .about h2 { margin-bottom: 24px; }
  .about p { font-size: 18px; }
}

@media (max-width: 420px) {
  .site-header { padding: 48px 20px 0; }
  .brand { width: 235px; }
  .hero { padding-top: 47px; }
  .hero__intro { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
