/* Peekta official site — light kid-friendly theme (tokens from PeektaTheme) */
:root {
  --bg: #ffffff;
  --bg-elev: #f7f9fc;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --faint: #9ca3af;
  --accent: #2f80ed;
  --accent-2: #2e6fe0;
  --coral: #ff7066;
  --selected: #b8d4f0;
  --line: rgba(47, 128, 237, 0.16);
  --shadow: 0 16px 48px rgba(47, 128, 237, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(47, 128, 237, 0.14), transparent 55%),
    radial-gradient(800px 420px at 0% 20%, rgba(255, 112, 102, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .02em; }
.brand img, .brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(47, 128, 237, .2);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: .78rem; font-weight: 700;
}
.lang-toggle button { padding: .35rem .65rem; color: var(--faint); }
.lang-toggle button.active { background: rgba(47, 128, 237, .14); color: var(--accent-2); }
.menu-btn {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); align-items: center; justify-content: center;
}
.menu-btn span { display:block; width:18px; height:2px; background:var(--ink); position:relative; }
.menu-btn span::before, .menu-btn span::after {
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--ink);
}
.menu-btn span::before { top:-6px; }
.menu-btn span::after { top:6px; }

.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(47, 128, 237, .1);
  border: 1px solid rgba(47, 128, 237, .28);
  color: var(--accent-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  margin: 1rem 0 .8rem;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 0 0 1.4rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 128, 237, .28);
}
.btn-primary.is-disabled, .btn-primary[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
  pointer-events: none;
}
.btn-ghost {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 112, 102, .25);
}

.meta-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pill {
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--muted); font-size: .8rem; font-weight: 600;
}

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage .glow {
  position: absolute; inset: 10% 15%;
  background: radial-gradient(circle, rgba(47,128,237,.35), transparent 70%);
  filter: blur(24px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: linear-gradient(160deg, #e8f1fc, #f7f9fc);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

section { padding: 3.5rem 0; }
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-label {
  color: var(--accent); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem;
}
.section-head h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}
.card .ico { font-size: 1.5rem; margin-bottom: .5rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.ages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.age-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.age-card.is-primary {
  background: linear-gradient(160deg, rgba(47,128,237,.12), rgba(184,212,240,.35));
  border-color: rgba(47,128,237,.35);
}
.age-card h3 { margin: 0 0 .4rem; }
.age-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.gallery-placeholder {
  border: 1px dashed rgba(47,128,237,.35);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-elev);
}

.download { padding-bottom: 4rem; }
.download-box {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, #f0f6ff, #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.download-box h2 { margin: 0 0 .4rem; font-size: 1.5rem; }
.download-box p { margin: 0; color: var(--muted); max-width: 34rem; }
.store-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

.notify-block {
  margin-top: .25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
}
.notify-block--download { width: 100%; }
.notify-micro { margin: 0 0 .65rem; color: var(--muted); font-size: .88rem; }
.notify-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.notify-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 180px;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
}
.notify-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,128,237,.18);
}
.notify-form .hp-wrap,
.notify-form .hp-wrap .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0;
}
.notify-form .btn { white-space: nowrap; }
.notify-form .btn:disabled { opacity: .6; cursor: wait; }
.notify-form .btn.is-loading { pointer-events: none; }
.notify-status { margin: .55rem 0 0; font-size: .88rem; font-weight: 600; }
.notify-status.is-ok { color: #059669; }
.notify-status.is-err { color: #dc2626; }
.notify-privacy { margin: .55rem 0 0; font-size: .78rem; color: var(--faint); }
.notify-privacy a { color: var(--accent-2); text-decoration: underline; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand { display: flex; gap: .75rem; align-items: flex-start; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 1.2rem; }
.footer-brand strong { display:block; color: var(--ink); margin-bottom: .25rem; }
.footer h4 { margin: 0 0 .7rem; color: var(--ink); font-size: .95rem; }
.footer a { color: var(--muted); display: inline-block; margin: .25rem 0; }
.footer a:hover { color: var(--accent-2); }
.legal { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .8rem; color: var(--faint); }
.legal code { font-size: .78rem; }

.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 { margin: 0 0 1rem; font-size: 2rem; }
.legal-page h2 { margin: 1.8rem 0 .6rem; font-size: 1.15rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 1.2rem; }
.legal-page .draft-banner {
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: .9rem; font-weight: 600;
}
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--accent); font-weight: 600; }

[data-lang="en"] .zh-only { display: none !important; }
[data-lang="zh"] .en-only { display: none !important; }

@media (max-width: 860px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .features, .ages-grid { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem 0; }
  .notify-form input[type="email"] { flex: 1 1 100%; min-width: 0; width: 100%; }
  .notify-form .btn { width: 100%; }
}
