@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/raleway-400.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/raleway-700.ttf") format("truetype");
}

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/josefin-sans-300.ttf") format("truetype");
}

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-700.ttf") format("truetype");
}

:root {
  --brand: #d21034;
  --brand-dark: #951b2c;
  --ink: #202020;
  --text: #626262;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
a {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(242, 41, 91, 0.08) 75%),
    var(--brand);
  color: var(--white);
}

.hero__inner {
  display: grid;
  width: min(1200px, 100% - 48px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 5vh 0;
}

.hero__art img {
  width: min(100%, 575px);
  margin-inline: auto;
}

.hero__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.app-icon {
  width: clamp(130px, 16vw, 200px);
  border-radius: 25px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  margin-bottom: 24px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.store-link {
  display: inline-block;
  border-radius: 6px;
}

.store-link:hover,
.store-link:focus-visible {
  outline: 3px solid rgba(210, 16, 52, 0.28);
  outline-offset: 4px;
}

.hero .store-link:hover,
.hero .store-link:focus-visible {
  outline-color: rgba(255, 255, 255, 0.55);
}

.feature {
  width: min(950px, 100% - 40px);
  margin-inline: auto;
  padding: clamp(55px, 7vw, 90px) clamp(0px, 4vw, 80px);
  text-align: center;
}

.feature__image {
  width: 300px;
  aspect-ratio: 3 / 2;
  margin: 0 auto 18px;
  border-radius: 25px;
  object-fit: cover;
}

.feature__logo {
  width: 100px;
  margin: 0 auto 34px;
}

.feature h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.2;
}

.divider {
  display: block;
  width: 80px;
  height: 3px;
  margin: 26px auto 44px;
  background: var(--brand);
}

.feature p {
  margin-bottom: 34px;
  font-size: 20px;
}

.feature__note {
  font-size: 13px !important;
}

.feature--signup {
  padding-top: 45px;
  padding-bottom: 62px;
}

.button {
  display: inline-block;
  padding: 9px 25px;
  border-radius: 100px;
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-dark);
  color: var(--white);
  text-decoration: none;
}

.testimonials {
  position: relative;
  display: grid;
  min-height: 400px;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  background: rgba(210, 16, 52, 0.8);
  color: var(--white);
}

.testimonial-stage {
  display: grid;
  align-items: center;
}

.testimonial {
  display: none;
  width: min(850px, 100%);
  margin: 0 auto;
  text-align: center;
}

.testimonial.is-active {
  display: block;
  animation: fade-in 280ms ease-out;
}

.testimonial figcaption {
  margin-bottom: 14px;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(38px, 4.3vw, 55px);
  font-weight: 700;
  line-height: 1.2;
}

.testimonial blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Josefin Sans", sans-serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.4;
}

.slider-button {
  width: 58px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: 300 62px/1 Arial, sans-serif;
}

.slider-button:hover,
.slider-button:focus-visible {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  padding: 66px max(24px, calc((100% - 1120px) / 2));
  background: var(--ink);
  color: #ddd;
  text-align: center;
}

.site-footer p {
  margin-bottom: 14px;
  line-height: 1.45;
}

.site-footer .copyright {
  margin-bottom: 0;
  font-size: 13px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    width: min(100% - 32px, 600px);
    grid-template-columns: 1fr;
    padding: 62px 0;
  }

  .hero__content {
    order: -1;
  }

  .hero__art img {
    width: min(100%, 440px);
  }

  .feature {
    padding-right: 20px;
    padding-left: 20px;
  }

  .feature p {
    font-size: 18px;
  }

  .testimonials {
    min-height: 460px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .testimonial blockquote {
    font-size: 18px;
  }

  .slider-button {
    width: 48px;
    font-size: 48px;
  }
}

@media (max-width: 520px) {
  .app-icon {
    width: 125px;
  }

  .feature {
    width: 100%;
    padding-right: 28px;
    padding-left: 28px;
  }

  .feature h2 {
    font-size: 30px;
  }

  .feature p {
    font-size: 16px;
  }

  .divider {
    width: 30%;
  }

  .testimonials {
    min-height: 560px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .testimonial figcaption {
    font-size: 30px;
  }

  .testimonial blockquote {
    font-size: 17px;
  }

  .slider-button {
    width: 38px;
    font-size: 40px;
  }

  .site-footer {
    padding-block: 48px;
    font-size: 15px;
  }
}

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

  .testimonial.is-active {
    animation: none;
  }
}
