/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Tektur:wght@400;600&display=swap');

:root {
  --bg: #f8f8f8;
  --surface: #f6ebf1;
  --accent: #ff9411;
  --text: #000000;
  --muted: #878787;
  --border: #a6a6a6;
  --font-head: 'Press Start 2P', monospace;
  --font-body: 'Tektur', 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; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 6rem; }

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

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

.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); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; transition: opacity 0.3s; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); transition: color 0.3s; }
.nav-link:hover { color: var(--accent); }

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

#mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; 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-size: 2rem; }

.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem 1.2rem; background: #000; border: 1px solid var(--border); border-radius: 0.6rem; overflow: hidden; transition: opacity 0.3s, box-shadow 0.3s; }
.store-btn:hover { opacity: 0.85; box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.3); }
.store-btn .store-icon { width: 3.1rem; height: 3.5rem; }
.store-btn .store-label { width: 11.3rem; height: 3.7rem; }
@keyframes store-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } }

.star { width: 3.2rem; height: 3.2rem; background: var(--accent); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

@media (max-width: 1024px) {
  .container { padding: 0 6rem; }
  .nav { width: 48rem; }
}

@media (max-width: 640px) {
  section[id] { scroll-margin-top: 8rem; }
  .container { padding: 0 1.6rem; }
  .header-inner { height: 8rem; align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; margin-top: 1.6rem; margin-right: 0; }
  .header .container { padding: 0 1.6rem; }
  #mobile-menu .nav-link { font-size: 2.4rem; }
  .star { width: 3.2rem; height: 3.2rem; }
}
/* /stp:base */
/* stp:header */

/* /stp:header */
/* stp:hero */
.hero { background: var(--surface); padding: 12.2rem 0 7.6rem; }
.hero-inner { display: grid; grid-template-columns: 54.4rem 1fr; grid-template-rows: auto 1fr; grid-template-areas: "text img" "btn img"; column-gap: 4.8rem; }
.hero-text { grid-area: text; padding-top: 2.8rem; }
.hero-title { font-family: var(--font-head); font-weight: 400; font-size: 7.2rem; line-height: 1.2; white-space: nowrap; }
.hero-subtitle { margin-top: 6.32rem; font-size: 2.8rem; font-weight: 600; line-height: 1.3; }
.hero-desc { margin-top: 1.52rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.hero-store { grid-area: btn; align-self: start; justify-self: start; margin-top: 4rem; }
.store-btn { animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { animation-play-state: paused; }
.hero-img { grid-area: img; justify-self: end; width: 48rem; height: 56.1rem; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 40rem; column-gap: 3.2rem; }
  .hero-title { font-size: 5.6rem; }
  .hero-subtitle { font-size: 2.4rem; margin-top: 4rem; }
  .hero-img { width: 40rem; height: 46.8rem; }
}

@media (max-width: 640px) {
  .hero { padding: 10rem 0 6rem; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "text" "img" "btn"; column-gap: 0; }
  .hero-text { padding-top: 0; }
  .hero-title { font-size: 6.4rem; }
  .hero-subtitle { margin-top: 5.24rem; font-size: 2.4rem; }
  .hero-desc { margin-top: 0.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero-img { justify-self: center; width: 16.5rem; height: 19.2rem; }
  .hero-store { justify-self: center; margin-top: 0.7rem; }
}
/* /stp:hero */
/* stp:about */
.title { font-family: var(--font-head); font-weight: 400; font-size: 4.8rem; line-height: 1.2; color: var(--muted); }
.about { padding: 8rem 0; }
.about-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 4.8rem; }
.about-content { width: 54.4rem; flex: 0 1 54.4rem; }
.about-text { margin-top: 6.4rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.about-img { width: 42.6rem; flex: 0 0 42.6rem; }
.about-img img { width: 100%; aspect-ratio: 426 / 424; object-fit: cover; }

@media (max-width: 1024px) {
  .about-img { width: 36rem; flex: 0 0 36rem; }
  .title { font-size: 4rem; }
}

@media (max-width: 640px) {
  .title { font-size: 3.6rem; }
  .about { padding: 6rem 0; }
  .about-inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .about-content { width: 100%; flex: none; }
  .about-text { margin-top: 4.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about-img { width: 100%; flex: none; }
}
/* /stp:about */
/* stp:features */
.features { padding: 8rem 0; }
.features-inner { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: 4.8rem; }
.features-content { width: 54.4rem; flex: 0 1 54.4rem; }
.features-list { display: flex; flex-direction: column; gap: 2.4rem; margin-top: 6.4rem; }
.feature-item { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--accent); }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.features-img { width: 48rem; flex: 0 0 48rem; }
.features-img img { width: 100%; aspect-ratio: 480 / 600; object-fit: cover; }

@media (max-width: 1024px) {
  .features-img { width: 36rem; flex: 0 0 36rem; }
}

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features-inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .features-content { width: 100%; flex: none; }
  .features-list { margin-top: 4.8rem; }
  .feature-title { font-size: 1.8rem; }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { width: 100%; flex: none; }
}
/* /stp:features */
/* stp:how-it-works */
.how { background: var(--surface); padding: 8rem 0; }
.how-title { text-align: center; }
.br-m { display: none; }
.how-items { display: flex; gap: 3.2rem; margin-top: 6.4rem; }
.how-item { flex: 1 1 0; display: flex; flex-direction: column; gap: 0.4rem; padding: 1.6rem; background: var(--accent); text-align: center; }
.how-item-title { font-size: 2rem; font-weight: 600; line-height: 1.5; color: var(--bg); }
.how-item-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--bg); }

@media (max-width: 640px) {
  .how { padding: 6rem 0; }
  .br-m { display: inline; }
  .how-items { flex-direction: column; gap: 2.4rem; margin-top: 4.8rem; }
  .how-item-title { font-size: 1.8rem; }
  .how-item-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.review-list { display: flex; align-items: flex-start; gap: 3.2rem; margin-top: 6.4rem; }
.review { flex: 1 1 0; display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem; background: var(--surface); }
.stars { display: flex; align-items: center; gap: 0.4rem; }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.review-name { font-size: 2rem; font-weight: 600; line-height: 1.5; text-align: right; color: var(--accent); }

@media (max-width: 640px) {
  .reviews { padding: 6rem 0; }
  .review-list { gap: 1.6rem; margin: 4.8rem -1.6rem 0; padding: 0 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .review-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 30rem; scroll-snap-align: start; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review-name { font-size: 1.8rem; }
}
/* /stp:reviews */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 16rem 1.6rem; background: #000; color: var(--surface); text-align: center; }
.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-links a { transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.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; }
.legal-content > * + * { margin-top: 2.7rem; }
.legal-content h1 { font-family: var(--font-head); font-weight: 400; font-size: 4.8rem; line-height: 1.2; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2.8rem; font-weight: 600; line-height: 1.3; }
.legal-content h3, .legal-content h4 { font-size: 2rem; }
.legal-content ul, .legal-content ol { padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li + li { margin-top: 0.8rem; }
.legal-content a { text-decoration: underline; transition: color 0.3s; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0 4rem; }
  .legal-content { padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content > * + * { margin-top: 2.4rem; }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2 { font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { font-size: 1.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-l { position: relative; z-index: 0; display: inline-block; }
.anim-on .ta-l::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: inset(0 100% 0 0); }
.anim-on .ta-x { position: absolute; inset: 24%; z-index: -1; opacity: 0; background: linear-gradient(to top right, transparent 44%, var(--muted) 44% 56%, transparent 56%), linear-gradient(to bottom right, transparent 44%, var(--muted) 44% 56%, transparent 56%); }
.anim-on .ta-g { position: absolute; inset: 0; z-index: -2; opacity: 0; box-shadow: inset 0 0 0 0.1rem var(--border); background-image: linear-gradient(to right, var(--border) 0.1rem, transparent 0.1rem), linear-gradient(to bottom, var(--border) 0.1rem, transparent 0.1rem); background-size: 25% 25%; }

.anim-on .hero-title { --ta-start: 1.1s; --ta-step: 0.1s; --ta-dur: 0.8s; }
.anim-on .hero-title .ta-l { animation: ta-ink var(--ta-dur) linear both; animation-delay: calc(var(--ta-start) + var(--i) * var(--ta-step)); }
.anim-on .hero-title .ta-x { animation: ta-mark var(--ta-dur) linear both; animation-delay: calc(var(--ta-start) + var(--i) * var(--ta-step)); }
.anim-on .hero-title .ta-l::after { animation: ta-fill var(--ta-dur) linear both; animation-delay: calc(var(--ta-start) + var(--i) * var(--ta-step)); }
.anim-on .hero-title .ta-g { animation: ta-board 2.5s linear both; animation-delay: calc(0.7s + var(--n) * 0.02s); }

.anim-on .title { --ta-step: 0.05s; --ta-dur: 0.6s; }
.anim-on .title:not(.is-in) .ta-l { color: transparent; }
.anim-on .title.is-in .ta-l { animation: ta-ink var(--ta-dur) linear both; animation-delay: calc(var(--i) * var(--ta-step)); }
.anim-on .title.is-in .ta-x { animation: ta-mark var(--ta-dur) linear both; animation-delay: calc(var(--i) * var(--ta-step)); }
.anim-on .title.is-in .ta-l::after { animation: ta-fill var(--ta-dur) linear both; animation-delay: calc(var(--i) * var(--ta-step)); }

@keyframes ta-board {
  0% { opacity: 0; }
  8%, 86% { opacity: 0.6; }
  90% { opacity: 0.4; }
  95% { opacity: 0.2; }
  100% { opacity: 0; }
}
@keyframes ta-mark {
  0%, 4% { opacity: 0; }
  5%, 34% { opacity: 1; }
  35%, 100% { opacity: 0; }
}
@keyframes ta-fill {
  0%, 34% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(4, end); }
  54%, 72% { clip-path: inset(0 0 0 0); animation-timing-function: linear; }
  73% { clip-path: inset(0 0 0 0); animation-timing-function: steps(4, end); }
  96%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes ta-ink {
  0%, 54% { color: transparent; }
  55%, 100% { color: inherit; }
}

@media (max-width: 640px) {
  .anim-on .hero-title { --ta-step: 0.08s; --ta-dur: 0.7s; }
  .anim-on .title { --ta-step: 0.04s; --ta-dur: 0.5s; }
}
/* /stp:title-anim */
