:root {
  --green: #2fae68;
  --green-soft: #e7f6ed;
  --ink: #111111;
  --ink-text: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --bg: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #4cc985;
    --green-soft: rgba(76, 201, 133, 0.14);
    --ink: #f5f5f7;
    --ink-text: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --card: #1c1c1e;
    --bg: #000000;
    --line: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.lang { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* Hero */
.hero { padding: 56px 0 24px; text-align: center; }
.hero-mascot { width: 220px; height: 210px; margin: 0 auto 4px; }
.eyebrow {
  display: inline-block; margin: 6px 0 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; margin: 0 auto 18px; letter-spacing: -0.035em; max-width: 820px; }
h1 .hl { color: var(--green); }
.lead { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px 11px 18px;
  background: var(--ink); color: var(--ink-text); border-radius: 999px;
  font-weight: 600; line-height: 1.15; transition: transform 0.2s ease;
}
.store-badge:hover { text-decoration: none; transform: scale(1.03); }
.store-badge svg { width: 24px; height: 24px; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; text-align: left; }
.store-badge span { font-size: 18px; }
.meta { font-size: 14px; color: var(--muted); }

.hero-phone { margin: 56px auto 0; width: min(330px, 82%); }
.hero-phone img {
  display: block; width: 100%; border-radius: 48px; border: 10px solid #111; background: #111;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
}

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; letter-spacing: -0.025em; line-height: 1.12; }
.section-title p { color: var(--muted); font-size: 18px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step, .feature, .plan, .faq details {
  background: var(--card); border-radius: var(--radius); padding: 28px;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--ink-text); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img { width: 100%; border-radius: 22px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 16px; }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 15px; color: var(--muted); margin: 4px 0 16px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan ul li { margin: 6px 0; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--green); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--ink-text); background: var(--ink); border-radius: 999px; vertical-align: middle; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 18px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final {
  text-align: center; background: var(--card); border-radius: 36px; padding: 40px 24px 56px; margin: 0 auto;
}
.final .mascot { width: 150px; height: 144px; margin: 0 auto 8px; }
.final h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -0.025em; }
.final p { margin: 0 0 26px; color: var(--muted); font-size: 18px; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc h2 { margin-top: 36px; font-size: 22px; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; }
.doc .updated { font-size: 14px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Mascot */
.mascot { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mascot .m-body { transform-origin: 50px 100px; animation: m-breathe 1.4s ease-in-out infinite alternate; }
.mascot .m-sway { transform-origin: 50px 100px; animation: m-sway 7s ease-in-out infinite; }
.mascot .m-eye { transform-box: fill-box; transform-origin: center; animation: m-blink 3.6s infinite; }
.mascot .m-eye + .m-eye { animation-delay: 0.02s; }
.mascot .m-pupil { animation: m-look 9s ease-in-out infinite; }
.mascot .m-arm-l { transform-origin: 26.5px 45.5px; animation: m-arm-l 1.4s ease-in-out infinite alternate; }
.mascot .m-arm-r { transform-origin: 73.5px 45.5px; animation: m-arm-r 1.4s ease-in-out infinite alternate; }
.mascot .m-happy { opacity: 0; }
.mascot .m-open, .mascot .m-happy { transition: opacity 0.15s ease; }
.mascot:hover .m-open, .mascot.happy .m-open, .mascot.always-happy .m-open { opacity: 0; }
.mascot:hover .m-happy, .mascot.happy .m-happy, .mascot.always-happy .m-happy { opacity: 1; }
.mascot.greet .m-arm-r { animation: m-wave 0.32s ease-in-out 6 alternate; }
.mascot .m-hop, .mascot .m-shadow { transform-origin: 50px 100px; }
.mascot.hop .m-hop { animation: m-hop 0.62s cubic-bezier(.3, .7, .4, 1); }
.mascot.hop .m-shadow { transform-box: fill-box; transform-origin: center; animation: m-shadow 0.62s ease; }

@keyframes m-breathe { from { transform: scale(1.018, 0.974); } to { transform: scale(0.982, 1.026); } }
@keyframes m-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes m-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
@keyframes m-look {
  0%, 100% { transform: translate(0, 0); }
  18%, 34% { transform: translate(1.6px, 0.5px); }
  48%, 62% { transform: translate(-1.6px, -0.7px); }
  76%, 88% { transform: translate(-0.8px, 0.8px); }
}
@keyframes m-arm-l { from { transform: rotate(34deg); } to { transform: rotate(42deg); } }
@keyframes m-arm-r { from { transform: rotate(-34deg); } to { transform: rotate(-42deg); } }
@keyframes m-wave { from { transform: rotate(-123deg); } to { transform: rotate(-163deg); } }
@keyframes m-hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.14, 0.82); }
  45% { transform: translateY(-26px) scale(0.92, 1.12); }
  70% { transform: translateY(0) scale(1.1, 0.9); }
  86% { transform: translateY(0) scale(0.97, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes m-shadow { 45% { transform: scale(0.6); opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  .mascot * { animation: none !important; }
}

@media (max-width: 860px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery img { scroll-snap-align: center; }
  .hero { padding-top: 32px; }
  .hero-mascot { width: 180px; height: 172px; }
  .nav-links a:not(.lang) { display: none; }
}
