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

:root {
  --bg: #0f2c1a;
  --surface: #166534;
  --primary: #4ade80;
  --accent: #a3e635;
  --text: #f0fdf4;
  --logo-bg: #332c2c;
  --font: 'Comic Neue', cursive;
}

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 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

#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; }

.section-title {
  font-size: 4.8rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 6rem;
  background: var(--surface);
  transition: box-shadow 0.3s ease-in-out;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.25); }

.burger-btn {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 6.4rem;
  height: 6.4rem;
  background: transparent;
  border: 0;
  transition: opacity 0.3s ease-in-out;
}
.burger-btn:hover { opacity: 0.7; }
.burger-btn span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.burger-btn.act span:nth-child(1) { transform: translateY(0.8rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.8rem) 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-top: 6rem;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-size: 2.4rem;
  font-weight: 700;
  transition: color 0.3s ease-in-out;
}
#mobile-menu .nav-link:hover { color: var(--accent); }

.nav-link { transition: color 0.3s ease-in-out; }
.nav-link:hover { color: var(--accent); }

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

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

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 4rem; }
  .header { height: 8rem; }
  .burger-btn { display: flex; }
  #mobile-menu { padding-top: 8rem; }
}
/* /stp:base */
/* stp:header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
}
.logo {
  position: relative;
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--logo-bg);
  transition: opacity 0.3s ease-in-out;
}
.logo:hover { opacity: 0.8; }
.logo img {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 5.4rem;
  height: 5.4rem;
  max-width: none;
  transform: translateX(-50%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 54.4rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
}

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

@media (max-width: 640px) {
  .header__inner { align-items: flex-start; padding: 0 1.6rem; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { margin-top: 1.6rem; }
}
/* /stp:header */
/* stp:hero */
.hero { position: relative; height: 64.7rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; display: block; }
.hero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left top; }
.hero__content { position: relative; max-width: 144rem; margin: 0 auto; padding: 10rem 16rem 0; }
.hero__title { font-size: 9.6rem; line-height: 1.2; font-weight: 700; color: var(--accent); }
.hero__subtitle { margin-top: 4.76rem; font-size: 2.8rem; line-height: 1.3; font-weight: 700; }
.hero__text { width: 44.8rem; max-width: 100%; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); }

@media (max-width: 1024px) {
  .hero__content { padding: 10rem 4rem 0; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; }
  .hero__content { padding: 10rem 1.6rem 0; }
  .hero__title { margin-left: 0.2rem; font-size: 8rem; }
  .hero__subtitle { margin-top: 2.4rem; font-size: 2.4rem; }
  .hero__text { width: 100%; margin-top: 0.78rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:features */
.features { padding: 8rem 0; }
.features__list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 3.2rem; margin-top: 8rem; }
.features__col { display: flex; flex-direction: column; gap: 2.4rem; }
.feature { display: flex; flex-direction: column; gap: 0.4rem; }
.feature__title { font-size: 2rem; line-height: 1.5; font-weight: 700; color: var(--primary); }
.feature__text { font-size: clamp(14px, 1.8rem, 1.8rem); }
.features__img { width: 100%; height: auto; margin-top: 6.4rem; }

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features__list { grid-template-columns: 1fr; gap: 2.4rem; margin-top: 6.4rem; }
  .feature__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features__img { margin-top: 3.2rem; }
}
/* /stp:features */
/* stp:how-it-works */
.hiw { padding: 8rem 0; }
.hiw__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 8rem; }
.hiw-item { display: flex; flex-direction: column; gap: 0.4rem; }
.hiw-item__title { font-size: 2rem; line-height: 1.5; font-weight: 700; color: var(--primary); }
.hiw-item__frame { position: relative; overflow: hidden; aspect-ratio: 352 / 230; border-radius: 0.8rem; background: var(--surface); }
.hiw-item__frame img { position: absolute; max-width: none; height: auto; }
.hiw-item:nth-child(1) img { left: 0; top: -11.74%; width: 223.86%; }
.hiw-item:nth-child(2) img { left: -100.85%; top: -72.61%; width: 301.7%; }
.hiw-item:nth-child(3) img { left: -122.44%; top: -10.43%; width: 222.44%; }
.hiw-item__text { font-size: clamp(14px, 1.8rem, 1.8rem); }

@media (max-width: 640px) {
  .hiw { padding: 6rem 0; }
  .hiw__list { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 6.4rem; }
  .hiw-item__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .hiw-item__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hiw-item:nth-child(1) img { left: 1.72%; }
  .hiw-item:nth-child(2) img { left: -100.77%; }
  .hiw-item:nth-child(3) img { left: -123.9%; }
}
/* /stp:how-it-works */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq__list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 8rem; }
.faq-item + .faq-item { padding-top: 1.6rem; border-top: 1px solid var(--surface); }
.faq-toggle { position: absolute; opacity: 0; pointer-events: none; }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; cursor: pointer; }
.faq-q__text { font-size: 2rem; line-height: 1.5; font-weight: 700; color: var(--primary); transition: color 0.3s ease-in-out; }
.faq-q:hover .faq-q__text { color: var(--accent); }
.faq-toggle:focus-visible + .faq-q { outline: 0.2rem solid var(--accent); }
.faq-icon { position: relative; flex: none; width: 2.8rem; height: 2.8rem; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
}
.faq-icon::before { width: 1.6rem; height: 0.2rem; margin: -0.1rem 0 0 -0.8rem; }
.faq-icon::after { width: 0.2rem; height: 1.6rem; margin: -0.8rem 0 0 -0.1rem; }
.faq-toggle:checked + .faq-q .faq-icon::after { display: none; }
.faq-a { display: none; margin-top: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.faq-toggle:checked ~ .faq-a { display: block; }

@media (max-width: 640px) {
  .faq { padding: 6rem 0; }
  .faq__list { margin-top: 6.4rem; }
  .faq-q__text { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:about */
.about { padding: 8rem 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.2rem; }
.about__desc { margin-top: 8rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.about__img { width: 100%; height: auto; margin: -2.9rem 0; }

@media (max-width: 640px) {
  .about { padding: 6rem 0; }
  .about__inner { grid-template-columns: 1fr; gap: 3.2rem; }
  .about__desc { margin-top: 6.4rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about__img { margin: 0; }
}
/* /stp:about */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: 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); }
.footer a { transition: color 0.3s ease-in-out; }
.footer a:hover { color: var(--accent); }
.footer__copy { font-size: clamp(12px, 1.2rem, 1.2rem); }

@media (max-width: 1024px) {
  .footer { padding: 4rem 4rem 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 16rem; }
.legal-content { max-width: 112rem; margin: 0 auto; font-size: clamp(14px, 1.8rem, 1.8rem); }
.legal-content h1 { margin-bottom: 2.7rem; font-size: 4.8rem; line-height: 1.2; font-weight: 700; }
.legal-content h2, .legal-content h3, .legal-content h4 { margin-bottom: 2.7rem; font-size: 2.8rem; line-height: 1.3; font-weight: 700; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.7rem; }
.legal-content ul { padding-left: 2.4rem; list-style: disc; }
.legal-content ol { padding-left: 2.4rem; list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); text-decoration: underline; transition: color 0.3s ease-in-out; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong { font-weight: 700; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }
.legal-content > :last-child { margin-bottom: 0; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 1.6rem; }
  .legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 2.4rem; font-size: 4rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { margin-bottom: 2.4rem; font-size: 2.4rem; }
  .legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title { --ta-step: 0.075s; --ta-start: 0.9s; }
.anim-on .section-title { --ta-step: 0.16s; }
.anim-on .ta-w { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.anim-on .ta-l { display: inline-block; }
.anim-on .ta-stroke {
  position: absolute;
  z-index: -1;
  left: -0.4rem;
  right: -0.4rem;
  bottom: 16%;
  height: 36%;
  border-radius: 50% 45% 50% 40% / 70% 60% 70% 60%;
  background: var(--surface);
  transform: rotate(-2deg) skewX(-12deg);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.anim-on .hero__title .ta-l {
  animation:
    ta-ink 0.32s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--ta-start) + var(--i) * var(--ta-step)) both,
    ta-dry 1.2s ease-out calc(var(--ta-start) + 0.1s + var(--i) * var(--ta-step)) both,
    ta-glint 5s ease-in-out calc(var(--ta-start) + 2.4s + var(--i) * 0.06s) infinite;
}
.anim-on .hero__title .ta-stroke {
  animation: ta-swipe calc(var(--n) * var(--ta-step) + 0.5s) cubic-bezier(0.6, 0.1, 0.3, 1) calc(var(--ta-start) - 0.06s + var(--i) * var(--ta-step)) both;
}
.anim-on .section-title .ta-w { clip-path: inset(-30% 100% -30% -10%); }
.anim-on .section-title.is-in .ta-w {
  animation:
    ta-ink 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) calc(0.12s + var(--i) * var(--ta-step)) both,
    ta-dry 1s ease-out calc(0.2s + var(--i) * var(--ta-step)) both;
}
.anim-on .section-title.is-in .ta-stroke {
  animation: ta-swipe 0.85s cubic-bezier(0.6, 0.1, 0.3, 1) calc(var(--w) * var(--ta-step)) both;
}
@keyframes ta-ink {
  from { clip-path: inset(-30% 100% -30% -10%); transform: translateY(0.3rem); }
  to { clip-path: inset(-30% -10% -30% -10%); transform: none; }
}
@keyframes ta-dry {
  from { color: var(--primary); filter: drop-shadow(0 0 0.8rem var(--primary)) brightness(1.2); }
  to { color: var(--accent); filter: drop-shadow(0 0 0 transparent) brightness(1); }
}
@keyframes ta-glint {
  0%, 14%, 100% { filter: drop-shadow(0 0 0 transparent) brightness(1); }
  6% { filter: drop-shadow(0 0 0.9rem var(--primary)) brightness(1.18); }
}
@keyframes ta-swipe {
  0% { clip-path: inset(0 100% 0 0); }
  68% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
@media (max-width: 640px) {
  .anim-on .hero__title { --ta-step: 0.06s; }
  .anim-on .section-title { --ta-step: 0.12s; }
  @keyframes ta-ink {
    from { clip-path: inset(-30% 100% -30% -10%); transform: translateY(0.2rem); }
    to { clip-path: inset(-30% -10% -30% -10%); transform: none; }
  }
}
/* /stp:title-anim */
