/* stp:base */
@import url("https://fonts.googleapis.com/css2?family=Coiny&family=Fredoka:wght@400;500&display=swap");

:root {
  --accent: #4fff27;
  --text: #002564;
  --bg: #fefffe;
  --primary: #0760b4;
  --surface: #95d8ff;
  --purple-from: #6230be;
  --purple-to: #c276fc;
  --store-border: #a6a6a6;
  --font-head: "Coiny", cursive;
  --font-body: "Fredoka", sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.menu-lock, html.menu-lock body { overflow: hidden; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background-color 0.3s, box-shadow 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; transition: color 0.3s, opacity 0.3s, background-color 0.3s, box-shadow 0.3s; }

main { display: block; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  -webkit-text-stroke: 0.6rem var(--text);
  paint-order: stroke fill;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }

.nav-link { transition: color 0.3s; }
.nav-link:hover { color: var(--primary); }

.burger-btn {
  display: none;
  position: relative;
  z-index: 110;
  width: 6.4rem;
  height: 6.4rem;
  background: transparent;
  border: 0;
}
.burger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 0.2rem;
  margin-top: -0.1rem;
  background: var(--text);
  border-radius: 0.1rem;
  transform: translate(-50%, 0);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.burger-btn span:nth-child(1) { transform: translate(-50%, -0.8rem); }
.burger-btn span:nth-child(3) { transform: translate(-50%, 0.8rem); }
.burger-btn:hover span { background: var(--primary); }
.burger-btn.act span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  padding: 8rem 1.6rem 4rem;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.3;
  color: var(--text);
}
#mobile-menu .nav-link:hover { color: var(--primary); }

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 18rem;
  height: 5.7rem;
  padding: 1rem 1.2rem;
  background: #000;
  border: 1px solid var(--store-border);
  border-radius: 0.6rem;
  overflow: hidden;
}
.store-btn:hover { background: #1c1c1c; box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35); }
.store-btn img { flex: none; }

@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}

@media (max-width: 1024px) {
  .container { padding: 0 6rem; }
  .section-title { font-size: 4.8rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 3.6rem; -webkit-text-stroke-width: 0.6rem; }
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .burger-btn { display: block; }
}
/* /stp:base */
/* stp:header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 0.6rem; overflow: hidden; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; }
.nav .nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); white-space: nowrap; }

@media (max-width: 1024px) {
  .nav { width: 54.4rem; }
}

@media (max-width: 640px) {
  .header__inner { align-items: flex-start; height: 8rem; }
  .logo { margin-top: 2rem; }
  .burger-btn { margin-top: 1.6rem; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:hero */
.hero {
  padding: 9.2rem 0 3.7rem;
  background: linear-gradient(180deg, var(--purple-from) 0%, var(--purple-to) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 61rem 47.1rem;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  padding: 0 19.9rem 0 16rem;
}
.hero__title {
  grid-column: 1;
  margin-top: 5.8rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 8rem;
  line-height: 1.2;
  color: var(--accent);
  -webkit-text-stroke: 0.8rem var(--text);
  paint-order: stroke fill;
}
.hero__subtitle {
  grid-column: 1;
  margin-top: 4.8rem;
  font-weight: 500;
  font-size: 2.8rem;
  line-height: 1.3;
  color: var(--bg);
}
.hero__text {
  grid-column: 1;
  max-width: 44.8rem;
  margin-top: 1.6rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--bg);
}
.hero__img { grid-column: 2; grid-row: 1 / 5; width: 47.1rem; height: auto; }
.store-btn.hero__store {
  grid-column: 1;
  align-self: start;
  justify-self: start;
  margin-top: 5.3rem;
  animation: store-float 3s ease-in-out infinite;
}
.store-btn.hero__store:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 40rem; column-gap: 2rem; padding: 0 6rem; }
  .hero__title { font-size: 6.4rem; }
  .hero__subtitle { font-size: 2.4rem; }
  .hero__img { width: 40rem; }
}

@media (max-width: 640px) {
  .hero { padding: 10rem 0 4.4rem; }
  .hero__inner { display: flex; flex-direction: column; align-items: flex-start; padding: 0 1.6rem; }
  .hero__title { margin-top: 0; font-size: 5.2rem; }
  .hero__subtitle { max-width: 21rem; margin-top: 4.8rem; font-size: 2.4rem; }
  .hero__text { max-width: none; margin-top: 0.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero__img { align-self: center; width: 26.9rem; margin-top: 3.2rem; }
  .store-btn.hero__store { justify-self: auto; align-self: center; margin-top: 3.7rem; }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0; }
.about__inner { display: flex; align-items: flex-start; justify-content: space-between; }
.about__content { display: flex; flex-direction: column; gap: 6.4rem; width: 54.4rem; }
.about__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.about__img { flex: none; width: 44.8rem; height: auto; }

@media (max-width: 1024px) {
  .about__inner { gap: 4rem; }
  .about__content { flex: 1; width: auto; }
  .about__img { width: 36rem; }
}

@media (max-width: 640px) {
  .about { padding: 6rem 0; }
  .about__inner { flex-direction: column; align-items: center; gap: 3.2rem; }
  .about__content { gap: 4.8rem; width: 100%; }
  .about__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about__img { width: 27.1rem; }
}
/* /stp:about */
/* stp:features */
.features { padding: 8rem 0; }
.features__inner { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; }
.features__content { display: flex; flex-direction: column; gap: 6.4rem; width: 44.8rem; }
.features__list { display: flex; flex-direction: column; gap: 2.4rem; }
.feature { display: flex; flex-direction: column; gap: 0.4rem; }
.feature__title { font-weight: 500; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.feature__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features__img { flex: none; width: 54.4rem; height: auto; }

@media (max-width: 1024px) {
  .features__inner { gap: 4rem; }
  .features__content { flex: 1; width: auto; }
  .features__img { width: 40rem; }
}

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features__inner { flex-direction: column; align-items: center; gap: 3.2rem; }
  .features__content { gap: 4.8rem; width: 100%; }
  .feature__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features__img { width: 27.1rem; }
}
/* /stp:features */
/* stp:how-it-works */
.steps { padding: 8rem 0; background: var(--surface); }
.steps__inner { display: flex; flex-direction: column; align-items: center; gap: 6.4rem; }
.steps__title { text-align: center; }
.steps__list { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; gap: 3.2rem; }
.step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 35.2rem;
  padding: 1.4rem 2.2rem;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 2.4rem;
}
.step__title { font-weight: 500; font-size: 2.8rem; line-height: 1.3; color: var(--primary); }
.step__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .steps__list { gap: 2.4rem; }
  .step { flex: 1 1 0; min-width: 0; padding: 1.4rem; }
  .step__title { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .steps { padding: 6rem 0; }
  .steps__inner { gap: 4.8rem; }
  .steps__list { flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .step { flex: none; padding: 1.4rem; }
  .step__title { font-size: 2.4rem; }
  .step__text { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { position: relative; padding: 8rem 0; overflow: hidden; }
.reviews__inner { display: flex; flex-direction: column; gap: 6.4rem; }
.reviews__list { display: flex; flex-direction: column; gap: 2.4rem; width: 54.4rem; }
.review {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 2.2rem;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 2.4rem;
}
.review__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem; }
.review__stars, .review__name { font-weight: 500; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.review__stars { font-size: 1.8rem; }
.review__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.reviews__img { position: absolute; right: 18.7rem; bottom: 0; width: 46.5rem; height: auto; }

@media (max-width: 1024px) {
  .reviews__list { width: 52rem; max-width: 100%; }
  .reviews__img { right: 4rem; width: 36rem; }
}

@media (max-width: 640px) {
  .reviews { padding: 6rem 0 23rem; }
  .reviews__inner { gap: 4.8rem; }
  .reviews__list { gap: 1.6rem; width: 100%; max-width: none; }
  .review { padding: 1.4rem; }
  .review__stars, .review__name { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review__stars { font-size: 1.5rem; }
  .review__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .reviews__img { right: 1.7rem; width: 18.9rem; }
}
/* /stp:reviews */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  text-align: center;
  background: var(--text);
  color: var(--surface);
}
.footer__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.footer a:hover { color: var(--bg); }
.footer__copy { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }

@media (max-width: 1024px) {
  .footer { padding: 4rem 6rem 1.6rem; }
}

@media (max-width: 640px) {
  .footer { padding: 4rem 1.6rem 1.6rem; }
  .footer__links { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer__copy { font-size: clamp(11px, 1.1rem, 1.1rem); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.legal-content h1 { margin: 0 0 2.7rem; font-family: var(--font-head); font-weight: 400; font-size: 5.6rem; line-height: 1.2; color: var(--text); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.7rem 0 1rem; font-weight: 500; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.legal-content p { margin: 0 0 2.7rem; }
.legal-content ul, .legal-content ol { margin: 0 0 2.7rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin: 0; }
.legal-content strong, .legal-content b { font-weight: 500; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--text); }
.legal-content > :last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .legal-content { padding: 0 6rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0; }
  .legal-content { padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 2.4rem; font-size: 3.6rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { margin: 2.4rem 0 1rem; font-size: 2.4rem; }
  .legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-word { display: inline-block; white-space: nowrap; }
.anim-on .ta-ch, .anim-on .ta-in { display: inline-block; }
.anim-on .hero__title { --ta-sx: 0.9em; --ta-sy: 0.32em; --ta-t: 0.62s; }
.anim-on .hero__title .ta-ch { opacity: 0; }
.anim-on .hero__title.is-in .ta-ch {
  animation: ta-swap var(--ta-t) cubic-bezier(0.22, 1, 0.36, 1) calc(0.8s + var(--i) * 0.06s) both;
}
.anim-on .hero__title.is-in .ta-in {
  animation: ta-match 0.5s ease-out calc(1.6s + var(--g) * 0.15s) both;
}
.anim-on .hero__title.is-in .ta-accent .ta-in {
  animation: ta-match 0.5s ease-out calc(1.6s + var(--g) * 0.15s) both, ta-combo 5s ease-in-out calc(4.4s + var(--w) * 0.09s) infinite;
}
.anim-on .section-title { --ta-rx: -100deg; --ta-t: 0.7s; }
.anim-on .section-title .ta-ch { opacity: 0; }
.anim-on .section-title.is-in .ta-ch {
  animation: ta-flip var(--ta-t) cubic-bezier(0.25, 0.9, 0.35, 1) calc(var(--g) * 0.13s) both;
}
.anim-on .section-title.is-in .ta-in {
  animation: ta-glint 0.45s ease-out calc(var(--ta-t) * 0.6 + var(--g) * 0.13s) both;
}
@keyframes ta-swap {
  0% { opacity: 0; transform: translate(calc(var(--d) * var(--ta-sx)), 0.12em) scale(0.5) rotate(calc(var(--d) * -14deg)); }
  45% { opacity: 1; transform: translate(calc(var(--d) * var(--ta-sx) * 0.35), calc(var(--ta-sy) * -1)) scale(1.06) rotate(calc(var(--d) * 6deg)); }
  78% { opacity: 1; transform: translate(calc(var(--d) * -0.04em), 0.05em) scale(1.06, 0.92) rotate(0deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes ta-match {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1) drop-shadow(0 0 0 rgba(79, 255, 39, 0)); }
  40% { transform: scale(1.24) rotate(-5deg); filter: brightness(1.3) drop-shadow(0 0 0.9rem var(--accent)); }
  70% { transform: scale(0.94) rotate(2deg); filter: brightness(1.1) drop-shadow(0 0 0.4rem var(--accent)); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1) drop-shadow(0 0 0 rgba(79, 255, 39, 0)); }
}
@keyframes ta-combo {
  0%, 14%, 100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(79, 255, 39, 0)); }
  4% { transform: translateY(-0.16em) scale(1.12); filter: brightness(1.25) drop-shadow(0 0 0.8rem var(--accent)); }
  8% { transform: translateY(0.02em) scale(1.04, 0.95); filter: brightness(1.1) drop-shadow(0 0 0.3rem var(--accent)); }
}
@keyframes ta-flip {
  0% { opacity: 0; transform: perspective(40rem) translateY(0.3em) rotateX(var(--ta-rx)); }
  55% { opacity: 1; transform: perspective(40rem) translateY(-0.04em) rotateX(16deg); }
  80% { opacity: 1; transform: perspective(40rem) translateY(0) rotateX(-6deg); }
  100% { opacity: 1; transform: perspective(40rem) translateY(0) rotateX(0deg); }
}
@keyframes ta-glint {
  0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(79, 255, 39, 0)); }
  45% { transform: scale(1.12); filter: brightness(1.35) drop-shadow(0 0 0.7rem var(--accent)); }
}
@media (max-width: 640px) {
  .anim-on .hero__title { --ta-sx: 0.55em; --ta-sy: 0.2em; --ta-t: 0.5s; }
  .anim-on .section-title { --ta-rx: -80deg; --ta-t: 0.55s; }
}
/* /stp:title-anim */
