/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #EAE8FE;
  --text: #4B09A4;
  --primary: #676378;
  --surface: #DBBEFD;
  --footer-bg: #4B09A4;
  --footer-text: #DBBEFD;
  --font-h: 'Paytone One', cursive;
  --font-b: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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.hide #preloader { display: none; }
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
#preloader img { width: 6rem; height: 6rem; }

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  top: 6rem;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2.4rem;
  padding: 4rem 2rem;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-size: clamp(14px, 2rem, 2rem);
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}
#mobile-menu .nav-link:hover { color: var(--primary); }

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

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 4.4rem;
  height: 4.4rem;
  z-index: 110;
  position: relative;
}
.burger-btn span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  border-radius: 0.2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(0.7rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.7rem) rotate(-45deg); }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(75, 9, 164, 0.15);
}

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

.store-btn {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.store-btn:hover { opacity: 0.85; }

main { padding-top: 6rem; }
/* /stp:base */
/* stp:header */
.header { background: var(--bg); height: 6rem; }
.header-inner {
  max-width: 144rem;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16rem;
}
.logo {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  overflow: hidden;
  flex: 0 0 auto;
  transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.2rem;
}
.nav .nav-link {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav .nav-link:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .header-inner { padding: 0 4rem; }
  .nav { display: none; }
  .burger-btn { display: flex; }
}

@media (max-width: 640px) {
  .header { height: 8rem; }
  .header-inner { padding: 0 1.6rem; }
  .logo { left: 1.6rem; width: 4.4rem; height: 4.4rem; }
}
/* /stp:header */
/* stp:hero */
#hero {
  background: radial-gradient(ellipse 120% 160% at 72% 48%, #DEC0FC 0%, #B095F2 100%);
}
#hero .hero-inner {
  max-width: 144rem;
  margin: 0 auto;
  position: relative;
  padding: 12rem 16rem 8rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  min-height: 68.9rem;
}
#hero .hero-copy { max-width: 54.4rem; flex: 0 0 auto; }
#hero h1 {
  font-family: var(--font-h);
  font-size: clamp(32px, 8rem, 8rem);
  line-height: 1.2;
  color: var(--bg);
  -webkit-text-stroke: 0.02em var(--text);
  white-space: nowrap;
  margin-bottom: 4.4rem;
}
#hero .hero-subtitle {
  font-size: clamp(16px, 2.8rem, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bg);
  margin-bottom: 1.6rem;
}
#hero .hero-body {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--bg);
  max-width: 54.4rem;
}
#hero .store-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  width: fit-content;
  position: absolute;
  left: 16rem;
  top: 55.2rem;
  animation: store-float 3s ease-in-out infinite;
}
#hero .store-btn:hover { animation-play-state: paused; opacity: 0.85; }
#hero .store-btn img:first-child { width: 3.1rem; height: 3.5rem; }
#hero .store-btn img:last-child { width: 11.3rem; height: 3.7rem; }
#hero .hero-media { flex: 0 0 auto; width: 43.8rem; }
#hero .hero-media img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  #hero .hero-inner { padding: 10rem 4rem 6rem; flex-wrap: wrap; }
  #hero h1 { font-size: 6rem; white-space: normal; }
  #hero .hero-media { width: 32rem; }
  #hero .store-btn { position: static; margin-top: 3rem; }
}

@media (max-width: 640px) {
  #hero .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10rem 1.6rem 4rem;
    gap: 0;
    min-height: 0;
  }
  #hero .hero-copy { max-width: none; order: 1; width: 100%; }
  #hero h1 { font-size: 4.8rem; white-space: normal; margin-bottom: 1.6rem; }
  #hero .hero-subtitle { font-size: clamp(14px, 2.4rem, 2.4rem); margin-bottom: 0.8rem; }
  #hero .hero-body { font-size: clamp(14px, 1.6rem, 1.6rem); margin-bottom: 0; }
  #hero .hero-media { width: 23.8rem; align-self: center; order: 2; margin: 2.4rem 0; }
  #hero .store-btn { position: static; order: 3; align-self: center; margin-top: 0; }
}
/* /stp:hero */
/* stp:about */
#about {
  background: var(--bg);
  padding: 8rem 0;
}
#about .about-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
#about .about-copy { max-width: 54.4rem; flex: 0 0 auto; }
#about h2 {
  font-family: var(--font-h);
  font-size: clamp(32px, 5.6rem, 5.6rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6.4rem;
}
#about p {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--primary);
}
#about .about-media { flex: 0 0 auto; width: 19rem; }
#about .about-media img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  #about .about-inner { padding: 0 4rem; flex-wrap: wrap; text-align: center; }
  #about .about-copy { text-align: left; max-width: 64rem; }
}

@media (max-width: 640px) {
  #about { padding: 6rem 0; }
  #about .about-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.6rem;
    gap: 0;
  }
  #about .about-copy { max-width: none; width: 100%; }
  #about h2 { font-size: 3.6rem; margin-bottom: 4.8rem; }
  #about .about-media { width: 19rem; align-self: center; margin-top: 4.8rem; }
}
/* /stp:about */
/* stp:features */
#features {
  background: var(--bg);
  padding: 8rem 0;
}
#features .features-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}
#features .features-copy { max-width: 54.4rem; flex: 0 0 auto; }
#features h2 {
  font-family: var(--font-h);
  font-size: clamp(32px, 5.6rem, 5.6rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6.4rem;
}
#features .features-list { list-style: none; display: flex; flex-direction: column; gap: 2.4rem; }
#features .feature-item { display: flex; flex-direction: column; gap: 0.8rem; }
#features h3 {
  font-size: clamp(14px, 2rem, 2rem);
  font-weight: 600;
  color: var(--text);
}
#features .feature-item p {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--primary);
}
#features .features-media { flex: 0 0 auto; width: 54.4rem; }
#features .features-media img { width: 100%; height: auto; border-radius: 1.2rem; }

@media (max-width: 1024px) {
  #features .features-inner { padding: 0 4rem; flex-wrap: wrap; }
  #features .features-media { width: 36rem; margin: 0 auto; }
}

@media (max-width: 640px) {
  #features { padding: 6rem 0; }
  #features .features-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.6rem;
    gap: 0;
  }
  #features .features-copy { max-width: none; width: 100%; }
  #features h2 { font-size: 3.6rem; margin-bottom: 4.8rem; }
  #features h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  #features .feature-item p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #features .features-media { width: 34.3rem; align-self: center; margin-top: 4.8rem; }
}
/* /stp:features */
/* stp:how-it-works */
#how-it-works {
  background: var(--bg);
  padding: 8rem 0;
}
#how-it-works .hiw-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}
#how-it-works .hiw-copy { max-width: 54.4rem; flex: 0 0 auto; }
#how-it-works h2 {
  font-family: var(--font-h);
  font-size: clamp(32px, 5.6rem, 5.6rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6.4rem;
}
#how-it-works .hiw-list { list-style: none; display: flex; flex-direction: column; gap: 2.4rem; counter-reset: step; }
#how-it-works .hiw-step { display: flex; flex-direction: column; gap: 0.8rem; }
#how-it-works h3 {
  font-size: clamp(14px, 2rem, 2rem);
  font-weight: 600;
  color: var(--text);
}
#how-it-works .hiw-step p {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--primary);
}
#how-it-works .hiw-media { flex: 0 0 auto; width: 40rem; }
#how-it-works .hiw-media img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  #how-it-works .hiw-inner { padding: 0 4rem; flex-wrap: wrap; }
  #how-it-works .hiw-media { width: 28rem; margin: 0 auto; }
}

@media (max-width: 640px) {
  #how-it-works { padding: 6rem 0; }
  #how-it-works .hiw-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.6rem;
    gap: 0;
  }
  #how-it-works .hiw-copy { max-width: none; width: 100%; }
  #how-it-works h2 { font-size: 3.6rem; margin-bottom: 4.8rem; }
  #how-it-works h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  #how-it-works .hiw-step p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #how-it-works .hiw-media { width: 23.4rem; align-self: center; margin-top: 4.8rem; }
}
/* /stp:how-it-works */
/* stp:faq */
#faq {
  background: var(--bg);
  padding: 8rem 0;
}
#faq .faq-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
}
#faq h2 {
  font-family: var(--font-h);
  font-size: clamp(32px, 5.6rem, 5.6rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6.4rem;
}
#faq .faq-list { display: flex; flex-direction: column; gap: 1.6rem; }
#faq .faq-item {
  border-bottom: 1px solid rgba(75, 9, 164, 0.2);
  padding-bottom: 1.6rem;
}
#faq .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  list-style: none;
  cursor: pointer;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
#faq .faq-item summary::-webkit-details-marker { display: none; }
#faq .faq-item summary:hover { color: var(--primary); }
#faq .faq-icon {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
}
#faq .faq-icon::before,
#faq .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#faq .faq-icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
#faq .faq-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
#faq .faq-item[open] .faq-icon::after { opacity: 0; }
#faq .faq-item p {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--primary);
  margin-top: 0.8rem;
}

@media (max-width: 1024px) {
  #faq .faq-inner { padding: 0 4rem; }
}

@media (max-width: 640px) {
  #faq { padding: 6rem 0; }
  #faq .faq-inner { padding: 0 1.6rem; }
  #faq h2 { font-size: 3.6rem; margin-bottom: 4.8rem; }
  #faq .faq-item summary { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #faq .faq-item p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #faq .faq-icon { width: 2.4rem; height: 2.4rem; }
}
/* /stp:faq */
/* stp:footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
}
.footer-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 4rem 16rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.footer-links a {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.footer-links a:hover { color: var(--bg); text-decoration: underline; }
.footer-copy {
  font-size: clamp(11px, 1.2rem, 1.2rem);
  white-space: nowrap;
}

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

@media (max-width: 640px) {
  .footer-inner { padding: 4rem 1.6rem 1.6rem; gap: 4rem; }
  .footer-links { gap: 1.6rem; }
  .footer-links a { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-copy { font-size: clamp(11px, 1.1rem, 1.1rem); white-space: normal; }
}
/* /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 {
  max-width: 144rem;
  margin: 0 auto;
  padding: 8rem 16rem;
}
.legal-content { max-width: 112rem; margin: 0 auto; }
.legal-content h1 {
  font-family: var(--font-h);
  font-size: clamp(28px, 4.8rem, 4.8rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 3.2rem;
}
.legal-content h2 {
  font-family: var(--font-h);
  font-size: clamp(20px, 2.8rem, 2.8rem);
  line-height: 1.3;
  color: var(--text);
  margin: 4rem 0 1.6rem;
}
.legal-content h3 {
  font-size: clamp(16px, 2.2rem, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin: 3.2rem 0 1.2rem;
}
.legal-content h4 {
  font-size: clamp(14px, 1.9rem, 1.9rem);
  font-weight: 600;
  color: var(--text);
  margin: 2.4rem 0 0.8rem;
}
.legal-content p {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 1.6rem;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 1.6rem;
  padding-left: 2.4rem;
  color: var(--primary);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.6;
}
.legal-content li { margin-bottom: 0.8rem; }
.legal-content a { color: var(--text); text-decoration: underline; transition: color 0.3s ease; }
.legal-content a:hover { color: var(--primary); }
.legal-content strong, .legal-content b { font-weight: 700; color: var(--text); }
.legal-content em, .legal-content i { font-style: italic; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 1.6rem; }
  .legal-content h1 { font-size: 3.2rem; margin-bottom: 2.4rem; }
  .legal-content h2 { font-size: clamp(14px, 2.2rem, 2.2rem); margin: 3.2rem 0 1.2rem; }
  .legal-content h3 { font-size: clamp(14px, 1.8rem, 1.8rem); margin: 2.4rem 0 0.8rem; }
  .legal-content p, .legal-content ul, .legal-content ol { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-l { display: inline-block; }
.ta-hero { --ta-d: 3.2rem; --ta-step: 0.045s; --ta-dur: 0.75s; }
.ta-sec { --ta-d: 1.6rem; --ta-step: 0.04s; --ta-dur: 0.55s; }
.anim-on .ta-hero .ta-l {
  animation: ta-snake-l var(--ta-dur) both;
  animation-delay: calc(0.8s + var(--i) * var(--ta-step));
}
.anim-on .ta-hero .ta-l.ta-rev { animation-name: ta-snake-r; }
.anim-on .ta-sec .ta-l { opacity: 0; }
.anim-on .ta-sec.is-in .ta-l {
  opacity: 1;
  animation: ta-trail var(--ta-dur) both;
  animation-delay: calc(var(--i) * var(--ta-step));
}
@keyframes ta-snake-l {
  0% { opacity: 0; transform: translateX(calc(var(--ta-d) * -1)); color: var(--text); clip-path: inset(-1rem 100% -1rem -1rem); animation-timing-function: steps(5, end); }
  55% { opacity: 1; transform: translateX(0); color: var(--text); clip-path: inset(-1rem -1rem -1rem -1rem); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  100% { opacity: 1; transform: translateX(0); color: var(--bg); clip-path: inset(-1rem -1rem -1rem -1rem); }
}
@keyframes ta-snake-r {
  0% { opacity: 0; transform: translateX(var(--ta-d)); color: var(--text); clip-path: inset(-1rem -1rem -1rem 100%); animation-timing-function: steps(5, end); }
  55% { opacity: 1; transform: translateX(0); color: var(--text); clip-path: inset(-1rem -1rem -1rem -1rem); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  100% { opacity: 1; transform: translateX(0); color: var(--bg); clip-path: inset(-1rem -1rem -1rem -1rem); }
}
@keyframes ta-trail {
  0% { opacity: 0; transform: translateX(calc(var(--ta-d) * -1)); color: var(--surface); clip-path: inset(-1rem 100% -1rem -1rem); animation-timing-function: steps(4, end); }
  50% { opacity: 1; transform: translateX(0); color: var(--surface); clip-path: inset(-1rem -1rem -1rem -1rem); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translateX(0); color: var(--text); clip-path: inset(-1rem -1rem -1rem -1rem); }
}
@media (max-width: 640px) {
  .ta-hero { --ta-d: 1.8rem; --ta-step: 0.035s; --ta-dur: 0.6s; }
  .ta-sec { --ta-d: 1rem; --ta-step: 0.03s; --ta-dur: 0.45s; }
}
/* /stp:title-anim */
