/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;500&family=Wendy+One&display=swap');

:root {
  --text: #2e2e4e;
  --accent: #847916;
  --surface: #f9f1df;
  --outline: #898681;
  --bg: #fcf7f1;
  --logo-bg: #332c2c;
  --font-head: 'Wendy One', sans-serif;
  --font-body: 'Encode Sans', 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;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

#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-family: var(--font-head);
  font-weight: 400;
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--text);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 6rem;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(46, 46, 78, 0.15); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 4.4rem;
  height: 4.4rem;
  overflow: hidden;
  border-radius: 2.2rem;
  background: var(--logo-bg);
  transition: opacity 0.3s, transform 0.3s;
}
.logo img {
  position: absolute;
  left: -0.5rem;
  top: -0.45rem;
  width: 5.4rem;
  height: 5.3rem;
  max-width: none;
  object-fit: cover;
}
.logo:hover { opacity: 0.8; transform: scale(1.05); }

.nav { display: flex; align-items: center; justify-content: space-between; width: 44.8rem; }
.nav-link {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.nav-link:hover { color: var(--accent); text-decoration: underline; }

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

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  padding: 8rem 1.6rem 1.6rem;
  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: clamp(14px, 2.4rem, 2.4rem); }

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

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

@media (max-width: 640px) {
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .container { padding: 0 1.6rem; }
  .section-title { font-size: 4rem; }
  .header { height: 8rem; }
  .header__inner { align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; margin-top: 1.6rem; }
}
/* /stp:base */
/* stp:header */

/* /stp:header */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: var(--text);
  color: var(--bg);
  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, opacity 0.3s; }
.footer a:hover { color: var(--surface); text-decoration: underline; opacity: 0.8; }
.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:hero */
.hero {
  position: relative;
  min-height: 65.7rem;
  padding: 11rem 0 6.4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  left: 0;
  top: -2.1rem;
  width: 100%;
  height: 78.5rem;
  max-width: none;
  object-fit: cover;
}
.hero__inner { position: relative; }
.hero__text { width: 44.8rem; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 9.6rem;
  line-height: 1.2;
  color: var(--text);
}
.hero__subtitle {
  margin-top: 4.8rem;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.hero__desc {
  margin-top: 1.4rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .hero { min-height: 52rem; }
  .hero__bg { top: 0; height: 100%; object-position: 75% 50%; }
  .hero__text { width: 42%; }
  .hero__title { font-size: 7.2rem; }
  .hero__subtitle { margin-top: 3.2rem; font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .hero { height: 81.2rem; min-height: 0; padding: 10rem 0 0; }
  .hero__bg {
    left: -1.3rem;
    top: 9.3rem;
    width: 39.9rem;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 16.8%, #000 64.4%);
    mask-image: linear-gradient(to bottom, transparent 16.8%, #000 64.4%);
  }
  .hero__inner { padding: 0 0.7rem 0 2.5rem; }
  .hero__text { width: 100%; }
  .hero__title { font-size: 6.4rem; }
  .hero__subtitle { margin-top: 1rem; font-size: 2.4rem; }
  .hero__desc { margin-top: 0.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:about */
.about { padding: 8rem 0 7.7rem; }
.about__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.2rem;
  align-items: start;
}
.about__desc {
  margin-top: 4.8rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}
.about__name { font-size: 2rem; font-weight: 500; }
.about__img {
  width: 100%;
  aspect-ratio: 544 / 304;
  object-fit: cover;
}

@media (max-width: 640px) {
  .about { padding: 6rem 0; }
  .about__inner { grid-template-columns: 1fr; row-gap: 3.2rem; }
  .about__desc { margin-top: 3.2rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about__name { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .about__img { aspect-ratio: 343 / 192; }
}
/* /stp:about */
/* stp:features */
.features { padding: 8rem 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
  margin-top: 4.8rem;
}
.feature { display: flex; flex-direction: column; gap: 0.8rem; }
.feature__title {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
}
.feature__img {
  width: 100%;
  aspect-ratio: 544 / 297;
  object-fit: cover;
}
.feature__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }

@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features__grid { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 3.2rem; }
  .feature__title { font-size: 2.4rem; }
  .feature__img { aspect-ratio: 343 / 187; }
  .feature__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:features */
/* stp:reviews */
.reviews { padding: 8rem 0; }
.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  align-items: start;
  margin-top: 4.8rem;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: calc(1.6rem - 1px);
  background: var(--surface);
  border: 1px solid var(--outline);
}
.review__stars { display: flex; align-items: center; gap: 0.6rem; }
.star {
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61.2% 34.5%, 97.6% 34.5%, 68.2% 55.9%, 79.4% 90.5%, 50% 69.1%, 20.6% 90.5%, 31.8% 55.9%, 2.4% 34.5%, 38.8% 34.5%);
}
.review__text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.review__name {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .reviews__list { gap: 2rem; }
}

@media (max-width: 640px) {
  .reviews { padding: 6rem 0; }
  .reviews__list {
    display: flex;
    gap: 1.6rem;
    margin: 3.2rem -1.6rem 0;
    padding: 0 1.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 30rem; }
  .review__text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review__name { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:reviews */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq__list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 4.8rem; }
.faq__item {
  padding: calc(1.6rem - 1px);
  background: var(--surface);
  border: 1px solid var(--outline);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  list-style: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent);
  transition: opacity 0.3s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { opacity: 0.7; }
.faq__arrow {
  flex-shrink: 0;
  width: 1.8rem;
  height: auto;
  margin: 0 0.5rem;
  transition: transform 0.3s;
}
.faq__item[open] .faq__arrow { transform: rotate(180deg); }
.faq__answer {
  margin-top: 1.6rem;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .faq { padding: 6rem 0; }
  .faq__list { margin-top: 3.2rem; }
  .faq__question { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq__answer { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 14rem; padding-bottom: 8rem; }
.legal-page { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.legal-content { color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; word-wrap: break-word; }
.legal-content h1 {
  margin-bottom: 2.7rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 5.6rem;
  line-height: 1.2;
}
.legal-content h2 {
  margin: 4rem 0 2.7rem;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.3;
}
.legal-content h3 {
  margin: 2.7rem 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
}
.legal-content h4 {
  margin: 2.7rem 0;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
}
.legal-content p { margin: 0 0 2.7rem; }
.legal-content ul, .legal-content ol { margin: 0 0 2.7rem; padding-left: 2.7rem; }
.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(--accent); text-decoration: underline; transition: color 0.3s, opacity 0.3s; }
.legal-content a:hover { color: var(--text); }
.legal-content > :last-child { margin-bottom: 0; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 12rem; padding-bottom: 4rem; }
  .legal-page { padding: 0 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 { margin: 3.2rem 0 2.4rem; font-size: 2.4rem; }
  .legal-content h3 { margin: 2.4rem 0; font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content h4 { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content p { margin-bottom: 2.4rem; }
  .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; padding-left: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero__title .ta-l {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(100deg, #e5679a 0%, #f2a33a 22%, #8cc63f 44%, #3fb2d8 66%, #8e6bd8 88%, #e5679a 100%);
  background-size: 600% 100%;
  background-position: calc(var(--i) * 8%) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(-15% 100% -15% -10%);
  transform: translateY(0.4rem) rotate(-2deg);
  filter: blur(0.3rem);
}
.anim-on .hero__title.is-in .ta-l {
  animation: ta-ink-draw 1.3s cubic-bezier(0.33, 1, 0.68, 1) calc(0.9s + var(--i) * 0.075s) forwards;
}
.anim-on .hero__title.is-in .ta-w--loop .ta-l {
  animation:
    ta-ink-draw 1.3s cubic-bezier(0.33, 1, 0.68, 1) calc(0.9s + var(--i) * 0.075s) forwards,
    ta-ink-reink 6.5s ease-in-out calc(4.2s + var(--k) * 0.07s) infinite;
}
@keyframes ta-ink-draw {
  0% { clip-path: inset(-15% 100% -15% -10%); color: transparent; transform: translateY(0.4rem) rotate(-2deg); filter: blur(0.3rem); }
  35% { clip-path: inset(-15% -10% -15% -10%); color: transparent; transform: translateY(0) rotate(0deg); filter: blur(0); }
  55% { clip-path: inset(-15% -10% -15% -10%); color: transparent; transform: none; filter: blur(0); }
  100% { clip-path: inset(-15% -10% -15% -10%); color: var(--text); transform: none; filter: blur(0); }
}
@keyframes ta-ink-reink {
  0%, 84% { clip-path: inset(-15% -10% -15% -10%); color: var(--text); transform: none; filter: blur(0); }
  89% { clip-path: inset(-15% -10% -15% -10%); color: transparent; transform: translateY(-0.3rem) rotate(-1.5deg); filter: blur(0); }
  94% { clip-path: inset(-15% -10% -15% -10%); color: transparent; transform: none; filter: blur(0); }
  100% { clip-path: inset(-15% -10% -15% -10%); color: var(--text); transform: none; filter: blur(0); }
}
.anim-on .section-title .ta-sw { position: relative; display: inline-block; isolation: isolate; }
.anim-on .section-title .ta-sw::after {
  content: '';
  position: absolute;
  left: -0.3em;
  right: -0.3em;
  top: 22%;
  bottom: 4%;
  z-index: -1;
  border-radius: 0.6em 0.25em 0.7em 0.3em;
  background: linear-gradient(95deg, rgba(132, 121, 22, 0.15), rgba(132, 121, 22, 0.42) 40%, rgba(132, 121, 22, 0.3));
  transform: scaleX(0) skewX(-8deg);
  transform-origin: left center;
}
.anim-on .section-title .ta-sw__t {
  display: inline-block;
  clip-path: inset(-20% 100% -20% -10%);
}
.anim-on .section-title.is-in .ta-sw::after { animation: ta-marker-swipe 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards; }
.anim-on .section-title.is-in .ta-sw__t { animation: ta-marker-text 0.75s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards; }
@keyframes ta-marker-swipe {
  0% { transform: scaleX(0) skewX(-8deg); transform-origin: left center; }
  45% { transform: scaleX(1) skewX(-8deg); transform-origin: left center; }
  60% { transform: scaleX(1) skewX(-8deg); transform-origin: right center; }
  100% { transform: scaleX(0) skewX(-8deg); transform-origin: right center; }
}
@keyframes ta-marker-text {
  0% { clip-path: inset(-20% 100% -20% -10%); }
  100% { clip-path: inset(-20% -10% -20% -10%); }
}
@media (max-width: 640px) {
  .anim-on .hero__title .ta-l { transform: translateY(0.2rem) rotate(-1deg); filter: blur(0.2rem); }
  .anim-on .hero__title.is-in .ta-l { animation-duration: 1s; animation-delay: calc(0.8s + var(--i) * 0.06s); }
  .anim-on .hero__title.is-in .ta-w--loop .ta-l {
    animation:
      ta-ink-draw 1s cubic-bezier(0.33, 1, 0.68, 1) calc(0.8s + var(--i) * 0.06s) forwards,
      ta-ink-reink 6.5s ease-in-out calc(3.4s + var(--k) * 0.07s) infinite;
  }
  .anim-on .section-title.is-in .ta-sw::after { animation-duration: 1.1s; }
  .anim-on .section-title.is-in .ta-sw__t { animation-duration: 0.6s; animation-delay: 0.25s; }
}
/* /stp:title-anim */
