* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  /* font-family: sans-serif; */
}
:root {
  --pink: hsl(322, 100%, 66%);
  --light-pink: hsl(321, 100%, 78%);
  --hot-pink: hsl(317, 100%, 50%);
  --light-red: hsl(0, 100%, 63%);

  --dark-cyan: hsl(192, 100%, 9%);
  --pale-blue: hsl(207, 100%, 98%);

  --accent-clr: var(--hot-pink);
  --accent-clr-light: var(--pink);
  --active-clr: var(--light-pink);
  --dark-neutral: var(--dark-cyan);
  --light-neutral: var(--pale-blue);

  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
}
/* body {
  background: #eee;
} */
#nav {
  margin: 28px 6% 125px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top-logo {
  height: 16px;
}
#nav a {
  padding: 5px 15px;
  border: 1px solid var(--accent-clr);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--accent-clr);

  box-shadow: 0 0 2px hsla(321, 100%, 78%, 0.6);

  &:hover {
    color: var(--active-clr);
    border-color: var(--active-clr);
  }
}
#hero {
  margin-inline: 10%;
  margin-bottom: 100px;
  text-align: center;
}
h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  max-width: 19ch;
  color: var(--dark-neutral);
  margin-inline: auto;
}
#hero p {
  margin: 36px auto 50px auto;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-neutral);
}
#hero a {
  padding: 0.8rem 2rem;
  background: var(--accent-clr);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pale-blue);
  box-shadow: 0 2px 5px hsla(0, 0%, 20%, 0.5);

  &:hover {
    background: var(--active-clr);
  }
}
/* #mockup-wrapper {
  display: grid;
  place-items: center;
} */
#screen-mockup {
  width: 80%;
  margin-inline: auto;
  display: block;
}
#stats-wrapper {
  margin-top: 123px;
}
#stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}
#stats-wrapper img {
  width: 30px;
  pointer-events: none;
}
#stats-wrapper figcaption {
  text-align: center;
}
#stats-wrapper h2 {
  font-size: 3.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--dark-neutral);
}
#stats-wrapper p {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: hsl(210, 4%, 58%);
}
#copy {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 195px;
}
/* .wave-1 :is(::before, ::after) {
  content: "";
  width: 100%;
} */
/* .wave-1::before,
.wave-1:after,
.wave-2::before,
.wave-2::after */
.wave::before,
.wave::after,
.wave-footer::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 150px;
}
.wave-1::before,
.wave-1:after,
.wave-2::before,
.wave-2::after {
  background: var(--light-neutral);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-position: center 50%;
  -webkit-mask-position: center 50%;
}
.wave-1::before {
  bottom: 100%;
  -webkit-mask-image: url(./images/bg-section-top-mobile-1.svg);
  mask-image: url(/images/bg-section-top-mobile-1.svg);
}
.wave-1::after {
  top: 100%;
  -webkit-mask-image: url(./images/bg-section-bottom-mobile-1.svg);
  mask-image: url(/images/bg-section-bottom-mobile-1.svg);
}
/* .wave-1,
.wave-2*/
.wave,
.wave-footer {
  position: relative;
}
.wave-2::before {
  bottom: 100%;

  -webkit-mask-image: url(./images/bg-section-top-mobile-2.svg);
  mask-image: url(/images/bg-section-top-mobile-2.svg);
}
.wave-2::after {
  top: 100%;

  -webkit-mask-image: url(./images/bg-section-bottom-mobile-2.svg);
  mask-image: url(/images/bg-section-bottom-mobile-2.svg);
}
#copy figure {
  padding: 48px 0 82px;
  display: grid;
  place-items: center;
}
#copy figure:not(.not-reverse) {
  background: var(--light-neutral);
}
#copy img {
  width: 70%;
}
#copy h2 {
  margin: 90px 0 25px;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--dark-cyan);
}
#copy figcaption {
  margin-inline: 10%;
  text-align: center;
}
#copy p {
  margin-inline: auto;
  text-align: center;
  max-width: 41ch;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--font-body);
  color: var(--dark-neutral);
}
.cta {
  margin: 180px 0 305px;
  margin-inline: auto;
  text-align: center;
  max-width: 30ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}
.cta h3 {
  font-size: 1.5rem;
  color: var(--dark-neutral);
  font-family: var(--font-body);
}
.cta a {
  padding: 0.8rem 2rem;
  background: var(--accent-clr);
  border-radius: 100px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--pale-blue);
  box-shadow: 0 2px 5px hsla(0, 0%, 20%, 0.5);

  &:hover {
    background: var(--active-clr);
  }
}
.wave-footer::before {
  bottom: 100%;
  background: url(./images/bg-footer-top-mobile.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: left;
}
footer {
  background: var(--dark-cyan);
  padding: 64px 7% 45px;
  display: grid;
  gap: 100px;
}
/* footer section {
  width: 85%;
  margin-inline: auto;
} */
footer h4 {
  margin-bottom: 31.5px;
  font-size: 1.3rem;
  color: var(--light-neutral);
  font-family: var(--font-heading);
}
footer form > div {
  margin-top: 43px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
footer label {
  display: grid;
  line-height: 1.5;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--light-neutral);
  cursor: text;
}
.input-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}
footer input {
  outline: none;
  border: 0;
  width: 100%;
  padding: 0.9rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;

  &:invalid {
    box-shadow: 0 0 0 1px #df9f9f;
  }
}
.input-wrapper span {
  top: calc(100% + 10.5px);
  left: 0;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: #df9f9f;
  visibility: hidden;
  position: absolute;
}
.input-wrapper input:invalid + span {
  visibility: visible;
}
footer button {
  align-self: end;
  border: 0;
  font-weight: 700;

  padding: 0.9rem 2.25rem;
  background: var(--accent-clr);
  border-radius: 5px;
  font-size: 1.16rem;
  color: var(--light-neutral);

  &:hover {
    background: var(--active-clr);
  }
}
footer button:hover {
  cursor: pointer;
}
footer section:last-of-type {
  display: grid;
  gap: 46px;
}
footer p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--light-neutral);
}
#about img {
  height: 32px;
  margin-bottom: 22px;
}
#about p {
  font-weight: 600;
}
#contact {
  display: grid;
  gap: 22px;
}
#contact p {
  display: flex;
  align-items: center;
}
#contact > p img {
  pointer-events: none;
}
#contact img {
  margin-right: 1rem;
}
#socials {
  display: flex;
  gap: 1.5rem;
}
#socials li {
  list-style: none;
}
#socials a:hover svg {
  color: var(--active-clr);
}
#socials svg {
  width: 28px;
  height: 28px;
  color: var(--light-neutral);
}

@media (width >= 720px) {
  #nav {
    margin: 77px 5% 88px;
  }
  #top-logo {
    height: 40px;
  }
  #nav a {
    padding: 0.4rem 1.25rem;
    font-size: 1rem;
  }
  h1 {
    max-width: none;
    font-size: 2.5rem;
  }
  #hero {
    margin-bottom: 120px;
  }
  #hero p {
    max-width: 50ch;
    font-size: 1.25rem;
  }
  #hero a {
    padding: 1.12rem 4.5rem;
    font-size: 1.3rem;
  }
  #screen-mockup {
    width: 72%;
  }
  #stats-wrapper {
    width: 80%;
    margin-inline: auto;
  }
  #stats-wrapper h2 {
    font-size: 4.5rem;
  }
  #stats-wrapper p {
    font-size: 1.5rem;
  }
  #stats {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  #copy {
    margin-top: 200px;
  }
  #copy figure {
    display: flex;
    justify-content: space-between;
    padding: 63.5px 9.5% 45px;
  }
  #copy figure:not(.not-reverse) {
    flex-direction: row-reverse;
  }
  #copy figure img {
    width: 39%;
  }
  #copy figcaption {
    margin-inline: 0;
  }
  #copy :is(h2, p) {
    text-align: start;
  }
  #copy h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
  }
  #copy p {
    max-width: 59ch;
    font-size: 1rem;
  }
  .wave-1::before {
    -webkit-mask-image: url(./images/bg-section-top-desktop-1.svg);
    mask-image: url(./images/bg-section-top-desktop-1.svg);
  }
  .wave-1::after {
    -webkit-mask-image: url(./images/bg-section-bottom-desktop-1.svg);
    mask-image: url(./images/bg-section-bottom-desktop-1.svg);
  }
  .wave-2::before {
    -webkit-mask-image: url(./images/bg-section-top-desktop-2.svg);
    mask-image: url(./images/bg-section-top-desktop-2.svg);
  }
  .wave-2::after {
    -webkit-mask-image: url(./images/bg-section-bottom-desktop-2.svg);
    mask-image: url(./images/bg-section-bottom-desktop-2.svg);
  }
  .wave-footer::before {
    background: url(./images/bg-footer-top-desktop.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: left;
  }
  .cta {
    margin: 290px auto;
    max-width: none;
    gap: 30px;
  }
  .cta h3 {
    font-size: 2.5rem;
  }
  .cta a {
    padding: 1.12rem 4.5rem;
    font-size: 1.3rem;
  }

  #about img {
    height: 39px;
    margin-bottom: 34px;
  }
  #about p {
    max-width: 40ch;
  }

  footer button {
    padding: 0.62rem 1.8rem;
    font-size: 1rem;
  }
  #socials svg {
    width: 32px;
    height: 32px;
  }
}
@media (width >= 800px) {
  footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "about form"
      "social social";
    padding: 100px 5rem 80px;
    column-gap: 0;
    row-gap: 83px;
    align-items: start;
  }
  footer section {
    width: 100%;
  }
  #form {
    grid-area: form;
  }
  footer section:last-of-type {
    grid-area: about;
  }
  footer input {
    width: 238px;
    padding: 0.62rem;
  }
  footer form > div {
    flex-direction: row;
    gap: 40px;
  }
  footer label {
    max-width: 42ch;
  }
  #socials {
    grid-area: social;
  } 
}
@media (width >= 900px) {
  #nav {
    margin-bottom: 245px;
  }
  h1 {
    font-size: 3rem;
  }
  #hero p {
    margin: 32px auto 50px auto;
  }
  #stats-wrapper {
    margin-top: 132px;
  }
  #stats-wrapper h2 {
    font-size: 5.9rem;
  }
  #copy {
    margin-top: 300px;
    gap: 300px;
  }
  .cta {
    margin: 300px auto;
    gap: 50px;
  }
  footer {
    padding: 125px 8.3% 102px;
  }
}
