@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-700.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit-800.woff2") format("woff2");
}

:root {
  --cream: #fff8f1;
  --wine: #55203e;
  --pink: #ff1678;
  --ink: #6e5a64;
  --white: #ffffff;
  --shadow: 0 14px 28px rgba(255, 22, 120, 0.26);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--wine);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

.page {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 calc(1.5rem + env(safe-area-inset-bottom));
}

.layout {
  display: grid;
  grid-template-areas:
    "logo"
    "title"
    "lead"
    "stage"
    "cta";
  justify-items: center;
  text-align: center;
}

.logo-wrap {
  grid-area: logo;
  margin: 0 0 0.85rem;
}

.logo {
  width: auto;
  height: 4.35rem;
}

h1 {
  grid-area: title;
  margin: 0.35rem 0 0;
  max-width: 18em;
  font-size: clamp(1.6rem, 7.15vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  text-wrap: balance;
}

.line-wine {
  color: var(--wine);
}

.line-pink {
  color: var(--pink);
}

.lead {
  grid-area: lead;
  max-width: 22rem;
  margin: 0.7rem 0 0;
  color: #927d88;
  font-size: 0.98rem;
  line-height: 1.4;
}

.stage {
  grid-area: stage;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 0.35rem;
}

.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(92vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f6d4e3;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -42%);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(78vw, 20.5rem);
  margin-bottom: -18%;
  filter: drop-shadow(0 18px 28px rgba(85, 32, 62, 0.12));
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 80%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.phone-frame {
  display: block;
  width: 100%;
  height: auto;
}

.screen {
  position: absolute;
  z-index: 1;
  left: 19.4%;
  top: 18.15%;
  width: 54.9%;
  height: 61.6%;
  overflow: hidden;
  border-bottom-left-radius: 1.15rem;
  border-bottom-right-radius: 1.15rem;
}

.reel {
  width: 92%;
  margin: 0.28rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
}

.cta-block {
  grid-area: cta;
  position: relative;
  z-index: 2;
  width: min(84vw, 21.5rem);
  margin-top: -4.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.65rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  box-shadow: 0 0 0 6px #ff9bc4;
  position: relative;
  animation: cta-zoom 2.6s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 6px solid #ff9bc4;
  pointer-events: none;
  animation: cta-ring 2.6s ease-out infinite;
}

.cta svg {
  flex: 0 0 auto;
}

.cta:focus-visible,
.footer a:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}

.trust {
  margin: 0;
  color: #927d88;
  font-size: 0.92rem;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  color: #927d88;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-brand,
.footer a {
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
}

.article {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.article .logo {
  height: 2.8rem;
}

.article h1 {
  max-width: none;
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: left;
}

.article p,
.article li {
  color: var(--ink);
  font-size: 1rem;
}

.article h2 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.article ul {
  padding-left: 1.1rem;
}

.back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--wine);
  font-weight: 700;
}

@media (min-width: 960px) {
  .page {
    padding-top: 2.25rem;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo stage"
      "title stage"
      "lead stage"
      "cta stage";
    align-items: center;
    justify-items: start;
    column-gap: 3.5rem;
    text-align: left;
  }

  .logo-wrap {
    margin-bottom: 1.25rem;
  }

  .logo {
    height: 4.6rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.15rem, 2.35vw, 2.65rem);
  }

  .lead {
    margin-top: 1rem;
    font-size: 1.125rem;
  }

  .stage {
    margin-top: 0;
    align-self: center;
  }

  .stage::before {
    width: 28rem;
  }

  .phone {
    width: min(23.5rem, 68vh);
  }

  .cta-block {
    align-items: flex-start;
    margin-top: 1.6rem;
  }

  .footer {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 959px) {
  .page {
    padding-bottom: calc(12.5rem + env(safe-area-inset-bottom));
  }

  .cta-block {
    position: fixed;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 30px;
    width: 100%;
    margin-top: 0;
    padding: 1.4rem 1.15rem calc(0.55rem + env(safe-area-inset-bottom));
    gap: 0.55rem;
    background: linear-gradient(to bottom, rgba(255, 248, 241, 0) 0%, var(--cream) 28%);
  }

  .cta {
    width: min(84vw, 21.5rem);
  }
}

@media (max-width: 959px) and (max-height: 640px) {
  .logo {
    height: 3.4rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  .phone {
    width: min(68vw, 17rem);
  }
}

@media (max-width: 359px) {
  h1 {
    font-size: 1.35rem;
  }

  .phone {
    width: min(82vw, 16.5rem);
  }
}

@keyframes cta-zoom {
  0%,
  100% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.045);
  }
}

@keyframes cta-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  55% {
    transform: scale(1.12);
    opacity: 0;
  }

  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel {
    transform: none !important;
  }

  .cta,
  .cta::after {
    animation: none;
  }
}
