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

:root {
  --text: #112C63;
  --primary: #1D5EA0;
  --accent: #1EE62C;
  --surface: #FDFDFD;
  --bg: #F4F2E6;
  --line: #A6A6A6;
  --font-body: 'Lexend', sans-serif;
  --font-display: 'Jersey 10', 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; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
body {
  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;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
section { margin: 0; }

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

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

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; height: 6rem; background: var(--surface); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(17, 44, 99, 0.15); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.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%; 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); white-space: nowrap; }
.nav-link:hover { color: var(--primary); }

.burger-btn { display: none; position: relative; width: 6.4rem; height: 6.4rem; padding: 0; background: transparent; border: 0; z-index: 101; }
.burger-btn span { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: 0.2rem; margin-left: -1.2rem; margin-top: -0.1rem; 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; padding-top: 8rem; background: var(--surface); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .menu-list { display: flex; flex-direction: column; align-items: center; gap: 3rem; padding: 4rem 1.6rem; }
#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(--line); border-radius: 0.6rem; overflow: hidden; }
.store-btn:hover { opacity: 0.85; box-shadow: 0 0.4rem 1.2rem rgba(17, 44, 99, 0.3); }
.store-btn .store-icon { width: 3.1rem; height: 3.5rem; }
.store-btn .store-text { width: 11.3rem; height: 3.7rem; }

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

.section-title-wrap { border-bottom: 1px solid var(--primary); }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 6.4rem; line-height: 1.2; color: var(--accent); -webkit-text-stroke: 0.4rem var(--text); paint-order: stroke fill; }
.sec-title { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.sec-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

.footer { background: var(--text); color: var(--surface); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 16rem 1.6rem; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); }

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

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .header { height: 8rem; }
  .header-inner { align-items: flex-start; padding-top: 2rem; position: relative; }
  .nav { display: none; }
  .burger-btn { display: block; position: absolute; right: 1.6rem; top: 1.6rem; }
  .section-title { font-size: 4.8rem; }
  .sec-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .sec-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-inner { gap: 4rem; 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:base */
/* stp:hero */
#hero { padding: 12rem 0 8rem; }
#hero .hero-inner { display: flex; align-items: flex-start; justify-content: space-between; }
#hero .hero-left { width: 50rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
#hero .hero-logo { width: 35.2rem; height: 17.6rem; }
#hero .hero-title { margin-top: 4.4rem; font-weight: 600; font-size: 2.8rem; line-height: 1.3; white-space: nowrap; color: var(--text); }
#hero .hero-text { margin-top: 1.56rem; width: 44.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
#hero .store-btn { margin-top: 3.2rem; animation: store-float 3s ease-in-out infinite; }
#hero .store-btn:hover { animation-play-state: paused; }
#hero .hero-image { width: 51rem; height: 47rem; margin-top: -1rem; flex: 0 0 auto; }
#hero .mob-br { display: none; }

@media (max-width: 1024px) {
  #hero .hero-image { width: 40rem; height: auto; }
}

@media (max-width: 640px) {
  #hero { padding: 10rem 0 6rem; }
  #hero .hero-inner { flex-direction: column; align-items: center; }
  #hero .hero-left { display: contents; }
  #hero .hero-logo { width: 22.1rem; height: 11rem; order: 1; }
  #hero .hero-title { order: 2; margin-top: 4rem; font-size: clamp(14px, 2.4rem, 2.4rem); text-align: center; }
  #hero .mob-br { display: inline; }
  #hero .hero-text { order: 3; margin-top: 0.8rem; width: 34.3rem; font-size: clamp(14px, 1.6rem, 1.6rem); text-align: center; }
  #hero .hero-image { order: 4; width: 23rem; height: 21.3rem; margin-top: 1.8rem; }
  #hero .store-btn { order: 5; margin-top: 2.4rem; }
}
/* /stp:hero */
/* stp:features */
#features { padding: 8rem 0; }
#features .features-grid { margin-top: 8rem; display: flex; align-items: flex-start; justify-content: space-between; }
#features .features-col { width: 35.2rem; display: flex; flex-direction: column; gap: 8rem; }
#features .feature { display: flex; flex-direction: column; gap: 0.4rem; }
#features .features-image { width: 21.6rem; height: 36.4rem; flex: 0 0 auto; }

@media (max-width: 1024px) {
  #features .features-col { width: 28rem; }
  #features .features-image { width: 18rem; height: auto; }
}

@media (max-width: 640px) {
  #features { padding: 6rem 0; }
  #features .features-grid { margin-top: 6rem; flex-direction: column; align-items: stretch; gap: 2.4rem; }
  #features .features-col { display: contents; }
  #features .features-image { display: none; }
  #features .feature:nth-child(1) { order: 1; }
  #features .features-col:first-child .feature:nth-child(1) { order: 1; }
  #features .features-col:first-child .feature:nth-child(2) { order: 2; }
  #features .features-col:last-child .feature:nth-child(1) { order: 3; }
  #features .features-col:last-child .feature:nth-child(2) { order: 4; }
}
/* /stp:features */
/* stp:how-it-works */
#how-it-works { padding: 8rem 0; }
#how-it-works .how-grid { margin-top: 8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: start; }
#how-it-works .how-steps { display: flex; flex-direction: column; gap: 2.4rem; }
#how-it-works .feature { display: flex; flex-direction: column; gap: 0.4rem; }
#how-it-works .how-image { width: 100%; height: auto; }

@media (max-width: 640px) {
  #how-it-works { padding: 6rem 0; }
  #how-it-works .how-grid { margin-top: 6rem; grid-template-columns: 1fr; gap: 3.2rem; }
}
/* /stp:how-it-works */
/* stp:reviews */
#reviews { padding: 8rem 0; }
#reviews .reviews-row { margin-top: 8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; }
#reviews .review { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.6rem; background: var(--surface); }
#reviews .review-rating { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); }
#reviews .review-name { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); text-align: right; }

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

@media (max-width: 640px) {
  #reviews { padding: 6rem 0; }
  #reviews .reviews-row { margin: 6rem -1.6rem 0; padding: 0 1.6rem; display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.6rem; scrollbar-width: none; }
  #reviews .reviews-row::-webkit-scrollbar { display: none; }
  #reviews .review { flex: 0 0 30rem; scroll-snap-align: start; }
  #reviews .review-rating, #reviews .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:reviews */
/* stp:about */
#about { padding: 8rem 0; }
#about .about-row { margin-top: 8rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 3.2rem; }
#about .about-text { width: 54.4rem; flex: 0 0 auto; }
#about .about-image { width: 35.2rem; height: 17.6rem; flex: 0 0 auto; }

@media (max-width: 1024px) {
  #about .about-text { width: 50rem; }
  #about .about-image { width: 30rem; height: auto; }
}

@media (max-width: 640px) {
  #about { padding: 6rem 0; }
  #about .about-row { margin-top: 6rem; flex-direction: column; align-items: center; gap: 4.8rem; }
  #about .about-text { width: 100%; }
  #about .about-image { width: 32rem; height: 16rem; }
}
/* /stp:about */
/* 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; color: var(--text); }
.legal-content h1 { font-family: var(--font-display); font-weight: 400; font-size: 6.4rem; line-height: 1.2; color: var(--text); }
.legal-content h2 { margin-top: 2.7rem; font-weight: 600; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.legal-content h3, .legal-content h4 { margin-top: 2.7rem; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--text); }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content p { margin-top: 1.8rem; }
.legal-content ul, .legal-content ol { margin-top: 1.8rem; padding-left: 2.8rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--text); }
.legal-content strong { font-weight: 600; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }

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

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0 6rem; }
  .legal-content { padding: 0 1.6rem; }
  .legal-content h1 { font-size: 4.8rem; }
  .legal-content h2 { margin-top: 2.4rem; font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { margin-top: 2.4rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content p { margin-top: 1.6rem; }
  .legal-content ul, .legal-content ol { margin-top: 1.6rem; padding-left: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-hero { --ta-step: 0.8rem; --ta-gap: 0.035s; }
.anim-on .ta-l { display: inline-block; position: relative; opacity: 0; animation: ta-snap 0.36s calc(0.85s + var(--i) * var(--ta-gap)) both; }
.anim-on .ta-l::after { content: ''; position: absolute; left: 100%; top: 50%; width: 0.8rem; height: 1.6rem; margin-top: -0.8rem; background: var(--accent); opacity: 0; pointer-events: none; clip-path: polygon(0 0, 25% 0, 25% 12.5%, 50% 12.5%, 50% 25%, 75% 25%, 75% 37.5%, 100% 37.5%, 100% 62.5%, 75% 62.5%, 75% 75%, 50% 75%, 50% 87.5%, 25% 87.5%, 25% 100%, 0 100%); animation: ta-head 0.06s calc(0.85s + var(--i) * var(--ta-gap)) forwards; }
.anim-on .section-title .ta-wipe { display: inline-block; clip-path: inset(-0.6rem 100% -0.6rem -0.6rem); }
.anim-on .section-title.is-in .ta-wipe { animation: ta-wipe 0.56s steps(8) forwards; }
.anim-on .section-title-wrap { position: relative; clip-path: inset(-2rem -2rem -2rem -0.2rem); }
.anim-on .section-title-wrap::after { content: ''; position: absolute; left: 0; bottom: -0.8rem; width: 100%; height: 1.6rem; background: var(--accent); opacity: 0; pointer-events: none; transform: translateX(-100%); clip-path: polygon(0 0.6rem, calc(100% - 1.6rem) 0.6rem, calc(100% - 1.6rem) 0, calc(100% - 1.2rem) 0, calc(100% - 1.2rem) 0.2rem, calc(100% - 0.8rem) 0.2rem, calc(100% - 0.8rem) 0.4rem, calc(100% - 0.4rem) 0.4rem, calc(100% - 0.4rem) 0.6rem, 100% 0.6rem, 100% 1rem, calc(100% - 0.4rem) 1rem, calc(100% - 0.4rem) 1.2rem, calc(100% - 0.8rem) 1.2rem, calc(100% - 0.8rem) 1.4rem, calc(100% - 1.2rem) 1.4rem, calc(100% - 1.2rem) 1.6rem, calc(100% - 1.6rem) 1.6rem, calc(100% - 1.6rem) 1rem, 0 1rem); }
.anim-on .section-title-wrap.is-in::after { animation: ta-run 1.2s forwards; }

@keyframes ta-snap {
  0% { opacity: 0; transform: translate(calc(var(--dx) * var(--ta-step)), calc(var(--dy) * var(--ta-step))); color: var(--accent); animation-timing-function: steps(1, end); }
  1% { opacity: 1; transform: translate(calc(var(--dx) * var(--ta-step)), calc(var(--dy) * var(--ta-step))); color: var(--accent); animation-timing-function: steps(3, end); }
  55% { opacity: 1; transform: translate(0, 0); color: var(--accent); animation-timing-function: steps(2, end); }
  100% { opacity: 1; transform: translate(0, 0); color: var(--text); }
}
@keyframes ta-head {
  0%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes ta-wipe {
  from { clip-path: inset(-0.6rem 100% -0.6rem -0.6rem); }
  to { clip-path: inset(-0.6rem -0.6rem -0.6rem -0.6rem); }
}
@keyframes ta-run {
  0% { opacity: 1; transform: translateX(-100%); animation-timing-function: steps(32, end); }
  75% { opacity: 1; transform: translateX(0); animation-timing-function: steps(3, end); }
  100% { opacity: 0; transform: translateX(0); }
}

@media (max-width: 640px) {
  .anim-on .ta-hero { --ta-step: 0.5rem; --ta-gap: 0.028s; }
  .anim-on .section-title.is-in .ta-wipe { animation-duration: 0.44s; }
  .anim-on .section-title-wrap.is-in::after { animation-duration: 0.8s; }
}
.anim-on .section-title-wrap.ta-done { clip-path: none; }
.anim-on .section-title-wrap.ta-done::after { content: none; }
/* /stp:title-anim */
