/* WAPI — public site. Light, fast, no external fonts. */

:root {
  --bg: #f8f7f4;
  --panel: #ffffff;
  --panel-2: #fbfaf8;
  --ink: #17171c;
  --ink-2: #3c3c46;
  --muted: #74747f;
  --muted-2: #9c9ca6;
  --line: #e7e3dc;
  --line-strong: #d8d3ca;
  --accent: #6a5af9;
  --accent-2: #b9b1ff;
  --accent-soft: #efecff;
  --mint: #0b7a52;
  --mint-soft: #e5f6ee;
  --pink: #ff8fa3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(23, 23, 28, .10), 0 2px 8px rgba(23, 23, 28, .05);
  --shadow-sm: 0 1px 2px rgba(23, 23, 28, .05);
  --shell: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(106, 90, 249, .28); }
.btn-primary:hover { background: #5b4cf0; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b33; }
.btn-outline { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: #c4bfb6; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: #efede8; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f0ff; }
.btn-block { width: 100%; }

/* ── header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 247, 244, .82);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: #efece6; color: var(--ink); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel);
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: var(--ink-2);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: #c4bfb6; }
.globe {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.6px solid currentColor; position: relative; opacity: .7;
}
.globe::before, .globe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.4px solid currentColor; }
.globe::before { inset: 3px 0; border-width: 0 1.4px; border-radius: 0; opacity: .8; }
.globe::after { inset: 0 4px; border-width: 0 1.4px; border-radius: 0; opacity: .8; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  width: 232px; padding: 6px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2);
}
.lang-menu a em { font-style: normal; font-size: 10px; color: var(--muted-2); letter-spacing: .04em; }
.lang-menu a:hover { background: var(--panel-2); color: var(--ink); }
.lang-menu a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang-menu a.is-active em { color: var(--accent); }

/* ── hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 54px 0 20px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 30% auto -10%; height: 620px;
  background: radial-gradient(closest-side, rgba(106, 90, 249, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(11, 122, 82, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 32px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero h1 { margin: 18px 0 0; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; letter-spacing: -.045em; }
.grad {
  background: linear-gradient(100deg, #6a5af9 10%, #a99bff 55%, #0b7a52 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 18px; max-width: 54ch; font-size: 18px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-mascot { width: min(400px, 88%); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.4deg); } }
.sticker {
  position: absolute; z-index: 3; padding: 7px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 600;
  color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.sticker-a { top: 12%; inset-inline-start: 4%; transform: rotate(-7deg); }
.sticker-b { top: 30%; inset-inline-end: 2%; transform: rotate(6deg); background: var(--accent-soft); border-color: #ddd7ff; color: var(--accent); }
.sticker-c { bottom: 18%; inset-inline-start: 8%; transform: rotate(4deg); }
.speech {
  position: absolute; bottom: 6%; inset-inline-end: 0; z-index: 3;
  max-width: 210px; padding: 10px 13px; border-radius: 14px 14px 4px 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12px; color: var(--ink-2);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 46px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats dt { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.stats dd { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 24ch; }

/* ── sections ────────────────────────────────────────── */
.section { padding: 84px 0 0; scroll-margin-top: 84px; }
.section-soft { margin-top: 84px; padding: 84px 0; background: #f2f0ec; border-block: 1px solid var(--line); }
.section-soft + .section { padding-top: 84px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.04em; }
.section-lead { margin-top: 10px; font-size: 16.5px; color: var(--muted); max-width: 62ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }

/* ── channels ────────────────────────────────────────── */
.channels { padding: 64px 0 0; }
.channels h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.marquee {
  margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 10px; width: max-content; padding: 6px 0 10px;
  animation: scroll-x 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.channel {
  padding: 10px 18px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--ink-2);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* ── benefits bento ──────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.b-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.b-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.b-card h3 { font-size: 17.5px; }
.b-card p { font-size: 14px; color: var(--muted); }
.b-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #ded9ff;
  margin-bottom: 4px;
}
.b-icon .i { width: 19px; height: 19px; }
.b-card-mascot {
  background: linear-gradient(160deg, #1b1b22, #2c2c38);
  border-color: #1b1b22; color: #fff; justify-content: space-between; overflow: hidden;
}
.b-card-mascot .mini { width: 130px; align-self: center; margin: -6px 0 -10px; }
.b-mascot-line { font-size: 15px; font-weight: 550; letter-spacing: -.02em; }

/* ── steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
}
.step::after {
  content: ""; position: absolute; top: 44px; inset-inline-end: -14px; width: 14px;
  border-top: 2px dashed var(--line-strong);
}
.step:last-child::after { display: none; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 650; margin-bottom: 14px;
}
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ── mascot band ─────────────────────────────────────── */
.mascot-band {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: center;
  background: var(--accent-soft); border: 1px solid #ddd7ff; border-radius: 26px;
  padding: 34px 40px; overflow: hidden; position: relative;
}
.mascot-band::before {
  content: ""; position: absolute; inset: auto -60px -120px auto; width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(106, 90, 249, .18), transparent 70%);
}
.mascot-band-art { display: grid; place-items: center; position: relative; }
.band-mascot { width: 250px; animation: float 8s ease-in-out infinite; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mascot-band h2 { font-size: clamp(22px, 2.6vw, 32px); margin-top: 10px; max-width: 26ch; }
.quips { margin-top: 18px; display: grid; gap: 8px; }
.quip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 13px; border-radius: 12px; background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(106, 90, 249, .16); font-size: 13.5px; color: var(--ink-2);
}
.quip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.quip.is-first { background: #fff; font-weight: 550; }

/* ── pricing ─────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px;
}
.plan-hot { border-color: var(--accent); box-shadow: 0 18px 40px rgba(106, 90, 249, .16); }
.plan-flag {
  position: absolute; top: -11px; inset-inline-start: 22px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.plan-price { font-size: 34px; font-weight: 650; letter-spacing: -.04em; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-tagline { font-size: 12.5px; color: var(--muted); min-height: 34px; }
.plan-list { display: grid; gap: 8px; margin: 8px 0 18px; font-size: 13px; color: var(--ink-2); }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list .i { width: 15px; height: 15px; color: var(--mint); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ── faq ─────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 8px; }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 14px; height: 14px; position: relative; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--ink);
  border-radius: 2px; transform: translateY(-50%); transition: transform .2s ease;
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translateY(-50%) rotate(0); }
.faq-item p { padding: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 80ch; }

/* ── blog teaser ─────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-tag {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid #ded9ff; border-radius: 999px; padding: 3px 9px;
}
.post h3 { font-size: 18px; letter-spacing: -.02em; }
.post p { font-size: 13.5px; color: var(--muted); }
.post-meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.post-meta .i { width: 14px; height: 14px; }

/* ── cta band ────────────────────────────────────────── */
.cta-band {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 28px; padding: 46px 48px;
  overflow: hidden; position: relative;
}
.cta-band::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(106, 90, 249, .55), transparent 70%);
}
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.04em; max-width: 22ch; }
.cta-copy p { margin-top: 12px; color: #c9c7d2; font-size: 15.5px; max-width: 46ch; }
.cta-copy .btn { margin-top: 24px; }
.cta-art { position: relative; display: grid; place-items: center; }
.cta-mascot { width: 250px; animation: float 9s ease-in-out infinite; }

/* ── footer ──────────────────────────────────────────── */
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .8fr); gap: 30px; }
.footer-brand p { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 30ch; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.footer-social a:hover { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 640px; }
.footer-langs a { font-size: 12px; color: var(--muted); }
.footer-langs a:hover { color: var(--ink); }
.footer-langs a.is-active { color: var(--accent); font-weight: 600; }
.footer-legal { font-size: 11.5px; color: var(--muted-2); max-width: 46ch; text-align: end; }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-mascot { width: min(300px, 74%); }
  .speech { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mascot-band { grid-template-columns: 1fr; padding: 28px 24px; }
  .mascot-band-art { order: -1; }
  .band-mascot { width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 34px 26px; }
  .cta-art { order: -1; }
  .cta-mascot { width: 190px; }
  .section, .section-soft { padding-top: 60px; }
  .section-soft { padding-bottom: 60px; margin-top: 60px; }
  .footer-bottom { flex-direction: column; }
  .footer-legal { text-align: start; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .header-inner { height: 60px; gap: 12px; }
  .brand-text em { display: none; }
  .header-actions .btn-dark { display: none; }
  .bento, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .stats dt { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
