/*
 * huahualearning-my — TIER-1 MAXIMALIST REBUILD
 *
 * Color palette: Bamboo Green primary + Cinnabar Red + Imperial Gold + Sky Jade
 * + Soft Cream paper. Panda mascot lives across the page.
 *
 * Heavy motion stack: GSAP + ScrollTrigger + Motion One + Lottie + CSS 3D.
 * Variation: every section gets a unique layout AND a unique animation pattern.
 */

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand — vibrant panda + Mandarin-inspired */
  --green:        #16a34a;          /* bamboo */
  --green-deep:   #15803d;
  --green-soft:   #dcfce7;
  --green-glow:   rgba(22, 163, 74, 0.25);

  --red:          #dc2626;          /* cinnabar — Chinese ceremonial */
  --red-deep:     #991b1b;
  --red-soft:     #fee2e2;

  --gold:         #fbbf24;          /* imperial */
  --gold-deep:    #d97706;
  --gold-soft:    #fef3c7;

  --jade:         #06b6d4;          /* sky jade */
  --jade-deep:    #0891b2;
  --jade-soft:    #cffafe;

  --pink:         #ec4899;          /* Xiaobao energy */
  --pink-soft:    #fce7f3;

  --purple:       #8b5cf6;          /* roleplay magic */
  --purple-soft:  #ede9fe;

  /* Surfaces */
  --cream:        #fffbeb;          /* paper warm */
  --cream-2:      #fef9c3;
  --ivory:        #fefce8;
  --ink:          #0f172a;          /* deep slate-black */
  --ink-soft:     #334155;
  --ink-mid:      #64748b;
  --hairline:     #e2e8f0;
  --white:        #ffffff;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-2xl:  80px;
  --space-3xl:  120px;
  --space-4xl:  180px;

  /* Type */
  --font-display: 'Fredoka', 'Poppins', system-ui, sans-serif;       /* heading rounded */
  --font-body:    'Nunito', system-ui, sans-serif;                    /* body friendly */
  --font-serif:   'Cormorant Garamond', Georgia, serif;               /* editorial moments */
  --font-mono:    'Space Grotesk', ui-monospace, monospace;
  --font-cn:      'Noto Serif TC', 'Cormorant Garamond', serif;       /* hanzi */

  /* Motion */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic:   cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --ease-quint:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:       150ms;
  --dur-mid:        300ms;
  --dur-slow:       600ms;
  --dur-very-slow:  1200ms;

  --width-content: 1180px;
  --width-max:     1400px;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(251, 191, 36, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(22, 163, 74, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 110% 70%, rgba(220, 38, 38, 0.05), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: 0; }
ul { padding: 0; list-style: none; margin: 0; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

/* ─── Floating bamboo decoration (background ambient) ───────────────── */
.bamboo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bamboo-bg::before,
.bamboo-bg::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  animation: drift 36s ease-in-out infinite;
}
.bamboo-bg::before {
  background: var(--green);
  top: -260px;
  left: -240px;
}
.bamboo-bg::after {
  background: var(--gold);
  bottom: -260px;
  right: -240px;
  animation-delay: -18s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(80px, -60px); }
  66%      { transform: translate(-60px, 80px); }
}

/* ─── Floating panda emojis (depth layer) ───────────────────────────── */
.float-panda {
  position: fixed;
  font-size: 40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  animation: float-loop 28s ease-in-out infinite;
  filter: blur(0.5px);
}
.float-panda:nth-child(1) { top: 14%;  left: 4%;  animation-delay: 0s; }
.float-panda:nth-child(2) { top: 38%;  right: 6%; animation-delay: -7s; font-size: 56px; }
.float-panda:nth-child(3) { top: 62%;  left: 10%; animation-delay: -14s; font-size: 28px; }
.float-panda:nth-child(4) { top: 84%;  right: 4%; animation-delay: -20s; font-size: 48px; }
@keyframes float-loop {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50%      { transform: translate(20px, -30px) rotate(5deg); }
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 235, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: all var(--dur-mid) var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--space-md);
  max-width: var(--width-max);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  position: relative;
  transition: transform var(--dur-mid) var(--ease-bounce);
}
.logo:hover {
  transform: scale(1.05) rotate(-3deg);
}
.logo:hover .logo-img {
  animation: panda-bop 600ms var(--ease-bounce);
}
@keyframes panda-bop {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(-12deg) scale(1.1); }
  75%      { transform: rotate(12deg) scale(1.1); }
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav a:not(.btn) {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color var(--dur-mid) var(--ease);
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-mid) var(--ease);
}
.nav a:not(.btn):hover {
  color: var(--green);
}
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              background var(--dur-mid) var(--ease),
              border-color var(--dur-mid) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  box-shadow:
    0 0 0 0 rgba(22, 163, 74, 0.5),
    0 8px 24px rgba(22, 163, 74, 0.45),
    0 16px 48px rgba(22, 163, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 6px rgba(22, 163, 74, 0.18),
    0 16px 40px rgba(22, 163, 74, 0.55),
    0 24px 64px rgba(22, 163, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.3);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.12),
    0 24px 64px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.95);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow:
    0 0 0 0 rgba(251, 191, 36, 0.5),
    0 8px 24px rgba(251, 191, 36, 0.55),
    0 16px 48px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover {
  box-shadow:
    0 0 0 6px rgba(251, 191, 36, 0.22),
    0 16px 40px rgba(251, 191, 36, 0.65),
    0 24px 64px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-block { width: 100%; }
.btn-sm    { padding: 10px 20px; font-size: 0.85rem; }

/* ─── Hero — kinetic, 3D, panda mascot, demo phone ──────────────────── */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
  perspective: 1200px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); }
}

/* Kinetic title — each word gets entrance + sticker rotation */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 999px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: var(--space-md);
  box-shadow:
    0 4px 16px rgba(22, 163, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.hero-eyebrow:hover {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--space-md);
  perspective: 600px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero-title .accent-green {
  color: var(--green);
  text-shadow: 0 0 32px rgba(22, 163, 74, 0.4);
}
.hero-title .accent-red {
  color: var(--red);
  text-shadow: 0 0 32px rgba(220, 38, 38, 0.35);
}
.hero-title .word {
  display: inline-block;
  position: relative;
  margin-right: 0.2em;
  transform-style: preserve-3d;
}
.hero-title .accent-green { color: var(--green); }
.hero-title .accent-red   { color: var(--red); }
.hero-title .accent-gold  { color: var(--gold-deep); }
.hero-title .squiggle {
  position: relative;
  display: inline-block;
}
.hero-title .squiggle::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6px;
  height: 14px;
  background: var(--gold);
  z-index: -1;
  transform: rotate(-1deg) skewX(-12deg);
  border-radius: 4px;
  opacity: 0.7;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}
.hero-lede em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(0deg, var(--gold-soft) 50%, transparent 50%);
  padding: 0 4px;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  border-top: 2px dashed var(--hairline);
  border-bottom: 2px dashed var(--hairline);
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-stats .stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  margin-bottom: 4px;
  display: inline-block;
  transition: transform var(--dur-mid) var(--ease-bounce), text-shadow var(--dur-mid) var(--ease);
  text-shadow: 0 0 24px rgba(22, 163, 74, 0.35);
}
.hero-stats .stat:hover strong { text-shadow: 0 0 40px rgba(22, 163, 74, 0.6); }
.hero-stats .stat:hover strong {
  transform: scale(1.15) rotate(-3deg);
}
.hero-stats .stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stats .stat:nth-child(2) strong { color: var(--red); }
.hero-stats .stat:nth-child(3) strong { color: var(--gold-deep); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero side — Phone mockup with animated chat */
.hero-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  perspective: 1000px;
}

/* PANDA MASCOT — refined, less punchy halo */
.mascot {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, rgba(255,255,255,0.9) 30%, var(--green-soft) 80%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  z-index: 4;
  box-shadow:
    0 0 60px rgba(22, 163, 74, 0.22),
    0 0 120px rgba(22, 163, 74, 0.12),
    0 16px 48px rgba(15, 23, 42, 0.12),
    inset 0 -8px 24px rgba(22, 163, 74, 0.08);
  animation: breathe 4s ease-in-out infinite;
  transform-style: preserve-3d;
}
.mascot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(22, 163, 74, 0.0) 0deg,
    rgba(22, 163, 74, 0.4) 90deg,
    rgba(251, 191, 36, 0.4) 180deg,
    rgba(22, 163, 74, 0.4) 270deg,
    rgba(22, 163, 74, 0.0) 360deg);
  animation: spin 14s linear infinite;
  z-index: -1;
  filter: blur(8px);
}
.mascot:hover { animation: jump 0.6s var(--ease-bounce); }
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.06) rotate(3deg); }
}
@keyframes jump {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-30px) rotate(8deg); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Speech bubble for mascot */
.mascot-speech {
  position: absolute;
  bottom: 140px;
  left: 100px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 5;
  animation: bubble-pop 4s ease-in-out infinite;
}
@keyframes bubble-pop {
  0%, 90%, 100% { transform: scale(0); opacity: 0; }
  10%, 80%      { transform: scale(1); opacity: 1; }
}

/* Phone frame — 3D tilt, chat replay */
.phone {
  width: 290px;
  height: 580px;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 80px rgba(22, 163, 74, 0.35),
    0 0 160px rgba(251, 191, 36, 0.18),
    0 50px 100px -20px rgba(0, 0, 0, 0.3),
    0 30px 60px -30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(255, 255, 255, 0.05);
  transform: rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: phone-tilt 8s ease-in-out infinite, phone-glow 5s ease-in-out infinite;
}
@keyframes phone-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 0 24px rgba(22, 163, 74, 0.25)); }
}
@keyframes phone-tilt {
  0%, 100% { transform: rotateY(-12deg) rotateX(4deg); }
  50%      { transform: rotateY(-8deg) rotateX(-2deg); }
}
.phone::before {
  /* notch */
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #d4dde0 0%, #e6ecef 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-statusbar {
  height: 44px;
  background: #075e54;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
}
.phone-statusbar::before {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft) url('https://imagedelivery.net/xaKlCos5cTg_1RWzIu_h-A/b2d33db4-fe0e-4f86-6e01-5d5eec9d3900/public') center/cover;
  border: 2px solid white;
}
.phone-statusbar .typing-dot {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.85;
  margin-left: -2px;
}
.phone-chat {
  flex: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.5), transparent 40%),
    linear-gradient(180deg, #ece5dd 0%, #e3dccf 100%);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
.bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
  position: relative;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.bubble.show { animation: bubble-in 0.45s var(--ease-bounce) forwards; }
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-out {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 4px;
}
.bubble-in {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 0.6rem;
  color: var(--ink-mid);
  margin-top: 2px;
  text-align: right;
}
.bubble-typing {
  display: inline-flex;
  gap: 3px;
  padding: 10px 12px;
}
.bubble-typing span {
  width: 6px; height: 6px;
  background: var(--ink-mid);
  border-radius: 50%;
  animation: typing-dot 1.2s var(--ease) infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Floating sticker characters around phone */
.phone-sticker {
  position: absolute;
  font-size: 48px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
  animation: float-loop 6s ease-in-out infinite;
  z-index: 5;
}
.phone-sticker.s1 { top: 8%;  right: -10px; animation-delay: 0s;   }
.phone-sticker.s2 { top: 38%; right: -50px; animation-delay: -2s;  font-size: 64px; }
.phone-sticker.s3 { bottom: 12%; right: -20px; animation-delay: -4s; font-size: 42px; }

/* ─── Mobile hero pass ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: var(--space-2xl) 0 var(--space-xl); }
  .hero-grid { gap: var(--space-xl); }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-side { min-height: 500px; }
  .phone {
    width: 240px;
    height: 480px;
    transform: rotateY(-6deg) rotateX(2deg);
  }
  .phone-statusbar { height: 38px; font-size: 0.75rem; }
  .phone-statusbar::before { width: 28px; height: 28px; }
  .bubble { font-size: 0.7rem; padding: 6px 10px; }
  .mascot {
    width: 120px; height: 120px;
    font-size: 80px;
    bottom: -10px; left: -5px;
  }
  .mascot-speech {
    bottom: 100px;
    left: 70px;
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  .phone-sticker.s1 { top: 4%; right: 0; font-size: 32px; }
  .phone-sticker.s2 { top: 30%; right: -10px; font-size: 40px; }
  .phone-sticker.s3 { bottom: 8%; right: 0; font-size: 28px; }
  .hero-stats { gap: var(--space-md); }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .marquee-item { font-size: 1rem; }
  .pain::before, .ai-laoshi::before { display: none; }
  .laoshi-card { height: 320px; }
  .laoshi-emoji-big { font-size: 72px; }
  .feature-row { font-size: 0.9rem; }
  .why-row .num { font-size: 2.6rem !important; }
  .price-card { padding: var(--space-lg); }
  .section { padding: var(--space-2xl) 0; }
}

/* ─── Marquee — ticker across hero bottom ───────────────────────────── */
.marquee {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  box-shadow:
    inset 0 0 60px rgba(251, 191, 36, 0.08),
    0 8px 24px rgba(251, 191, 36, 0.18),
    0 0 80px rgba(251, 191, 36, 0.12);
}
.marquee-item .han {
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}
.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
}
.marquee-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.marquee-item .han {
  font-family: var(--font-cn);
  color: var(--gold);
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section base ──────────────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  position: relative;
}
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.section-head h2 .accent { color: var(--green); }
.section-head h2 .underline {
  position: relative;
  display: inline-block;
}
.section-head h2 .underline::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 2px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.55) 20%, rgba(251, 191, 36, 0.55) 80%, transparent);
  z-index: -1;
  border-radius: 4px;
  filter: blur(2px);
}
.section-head p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Pain — staggered tilted cards (variation #1: tilt grid) ────────── */
.pain {
  background: var(--cream);
  position: relative;
}
.pain::before {
  /* giant background han */
  content: '问题';
  position: absolute;
  top: 0; right: -80px;
  font-family: var(--font-cn);
  font-size: 22rem;
  font-weight: 700;
  color: rgba(220, 38, 38, 0.04);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  position: relative;
}
.pain-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -8px rgba(15, 23, 42, 0.08),
    0 24px 64px -16px rgba(22, 163, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform var(--dur-mid) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-mid) var(--ease);
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.3);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 16px 40px -12px rgba(15, 23, 42, 0.12),
    0 32px 80px -20px rgba(22, 163, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-md);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  position: relative;
}
.pain-card:hover .pain-icon { transform: scale(1.06); }
.pain-card:nth-child(1) .pain-icon { background: linear-gradient(135deg, var(--red-soft), rgba(220,38,38,0.18)); box-shadow: 0 4px 16px rgba(220,38,38,0.22); }
.pain-card:nth-child(2) .pain-icon { background: linear-gradient(135deg, var(--gold-soft), rgba(251,191,36,0.22)); box-shadow: 0 4px 16px rgba(251,191,36,0.28); }
.pain-card:nth-child(3) .pain-icon { background: linear-gradient(135deg, var(--purple-soft), rgba(139,92,246,0.18)); box-shadow: 0 4px 16px rgba(139,92,246,0.22); }
.pain-card:nth-child(4) .pain-icon { background: linear-gradient(135deg, var(--jade-soft), rgba(6,182,212,0.18)); box-shadow: 0 4px 16px rgba(6,182,212,0.22); }
.pain-card:nth-child(5) .pain-icon { background: linear-gradient(135deg, var(--pink-soft), rgba(236,72,153,0.18)); box-shadow: 0 4px 16px rgba(236,72,153,0.22); }
.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.pain-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ─── AI Laoshi — 3D flip cards (variation #2: flippable) ────────────── */
.ai-laoshi {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.ai-laoshi::before {
  content: '老師';
  position: absolute;
  top: 5%; left: -100px;
  font-family: var(--font-cn);
  font-size: 28rem;
  font-weight: 300;
  color: rgba(22, 163, 74, 0.05);
  line-height: 0.8;
  pointer-events: none;
}
.laoshi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  perspective: 1200px;
  position: relative;
}
.laoshi-card {
  position: relative;
  height: 360px;
  transform-style: preserve-3d;
  transition: transform 800ms var(--ease);
  cursor: pointer;
}
.laoshi-card:hover { transform: rotateY(180deg); }

.laoshi-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.laoshi-front {
  background: linear-gradient(135deg, var(--white), var(--cream));
  border: 3px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.laoshi-front[data-color="green"]   { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.laoshi-front[data-color="pink"]    { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.laoshi-front[data-color="red"]     { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.laoshi-front[data-color="gold"]    { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.laoshi-emoji-big {
  font-size: 96px;
  margin-bottom: var(--space-sm);
  transition: transform var(--dur-mid) var(--ease-bounce);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}
.laoshi-card:not(:hover) .laoshi-emoji-big {
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.laoshi-front h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.laoshi-front .han {
  font-family: var(--font-cn);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.laoshi-front .tag {
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border-radius: 999px;
}
.laoshi-front .flip-hint {
  position: absolute;
  bottom: 16px;
  font-size: 0.7rem;
  color: var(--ink-mid);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.laoshi-back {
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--ink);
  transform: rotateY(180deg);
}
.laoshi-back h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--gold);
}
.laoshi-back p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}
.laoshi-back .examples {
  list-style: none;
  font-size: 0.85rem;
  text-align: left;
  width: 100%;
}
.laoshi-back .examples li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 8px;
}
.laoshi-back .examples li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
}

/* ─── Features — diagonal scroll storyboard (variation #3) ──────────── */
.features {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red), var(--jade), var(--pink));
}
.features::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--jade), var(--red), var(--gold), var(--green));
}
.features .section-head .eyebrow {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}
.features .section-head h2 { color: var(--white); }
.features .section-head h2 .accent { color: var(--gold); }
.features .section-head p { color: rgba(255,255,255,0.7); }

.features-stack {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
}
.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.feature-row:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
}
.feature-row .num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  -webkit-text-stroke: 2px var(--gold);
  -webkit-text-fill-color: transparent;
  transition: -webkit-text-fill-color var(--dur-mid) var(--ease);
}
.feature-row:hover .num {
  -webkit-text-fill-color: var(--gold);
}
.feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-row p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.feature-row code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(251,191,36,0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 6px;
}
.feature-row .icon-anim {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  transition: transform var(--dur-mid) var(--ease-bounce);
}
.feature-row:hover .icon-anim {
  transform: rotate(-15deg) scale(1.1);
}

/* ─── Why — split-scroll asymmetric (variation #4) ───────────────────── */
.why {
  background: var(--cream);
  padding: var(--space-3xl) 0;
}
.why-stack {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2xl);
}
.why-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .why-row { grid-template-columns: 1fr 1fr; }
  .why-row:nth-child(even) > .why-text { order: 2; }
}
.why-illust {
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 60px -16px rgba(22, 163, 74, 0.22),
    0 48px 120px -32px rgba(22, 163, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.why-row:nth-child(2) .why-illust { box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 24px 60px -16px rgba(220,38,38,0.22), 0 48px 120px -32px rgba(220,38,38,0.16), inset 0 1px 0 rgba(255,255,255,0.9); }
.why-row:nth-child(3) .why-illust { box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 24px 60px -16px rgba(251,191,36,0.28), 0 48px 120px -32px rgba(251,191,36,0.2), inset 0 1px 0 rgba(255,255,255,0.9); }
.why-row:nth-child(4) .why-illust { box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 24px 60px -16px rgba(6,182,212,0.22), 0 48px 120px -32px rgba(6,182,212,0.16), inset 0 1px 0 rgba(255,255,255,0.9); }
.why-illust:hover { transform: translateY(-6px); }
.why-illust .glyph {
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
  transition: transform var(--dur-slow) var(--ease-bounce);
}
.why-illust:hover .glyph { transform: scale(1.2) rotate(-8deg); }
.why-illust .han-bg {
  position: absolute;
  font-family: var(--font-cn);
  font-size: 14rem;
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
}
.why-text .num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--green);
  margin-bottom: var(--space-sm);
  -webkit-text-stroke: 2px var(--ink);
}
.why-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.why-text h3 mark {
  background: var(--gold);
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink);
}
.why-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ─── Pricing — animated 3D cards with confetti hover (variation #5) ── */
.pricing {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  perspective: 1400px;
  position: relative;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } }

.price-card {
  position: relative;
  padding: var(--space-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px -12px rgba(22, 163, 74, 0.16),
    0 32px 80px -24px rgba(22, 163, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform var(--dur-mid) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-mid) var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 56px -16px rgba(22, 163, 74, 0.28),
    0 48px 120px -32px rgba(22, 163, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.price-card-featured {
  background: linear-gradient(180deg, rgba(254,243,199,0.85), rgba(255,255,255,0.8));
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 56px -16px rgba(251, 191, 36, 0.32),
    0 48px 120px -24px rgba(251, 191, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% {
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 24px 56px -16px rgba(251, 191, 36, 0.32),
      0 48px 120px -24px rgba(251, 191, 36, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.06),
      0 32px 72px -16px rgba(251, 191, 36, 0.42),
      0 64px 160px -32px rgba(251, 191, 36, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}
.price-card-featured:hover {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 32px 72px -16px rgba(251, 191, 36, 0.5),
    0 64px 160px -32px rgba(251, 191, 36, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(217, 119, 6, 0.6);
}
.price-card-featured::after { content: none; }
.price-badge {
  position: absolute;
  top: -14px;
  left: var(--space-lg);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--white);
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow:
    0 6px 16px rgba(220, 38, 38, 0.35),
    0 12px 32px rgba(220, 38, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.price-tier {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--space-sm);
}
.price-amount .currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.price-amount .value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.04em;
}
.price-card-featured .price-amount .value { color: var(--gold-deep); }
.price-amount .period {
  font-size: 0.95rem;
  color: var(--ink-mid);
  font-weight: 600;
}
.price-savings {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-xl);
  display: grid;
  gap: 10px;
}
.price-features li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  transition: transform var(--dur-fast) var(--ease);
}
.price-features li:hover { transform: translateX(4px); }
.price-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
}
.price-card-featured .price-features li::before { color: var(--gold-deep); }
.pricing-note {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: var(--ink-mid);
}

/* ─── CTA — full-bleed dark with floating mascots (variation #6) ────── */
.cta {
  background: linear-gradient(135deg, var(--green-deep), var(--green) 60%, var(--jade-deep));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: '🐼';
  position: absolute;
  font-size: 200px;
  opacity: 0.15;
  pointer-events: none;
  animation: float-loop 12s ease-in-out infinite;
}
.cta::before { top: 10%; left: -40px; animation-delay: 0s; }
.cta::after  { bottom: 10%; right: -40px; animation-delay: -6s; }
.cta .section-head h2 { color: var(--white); }
.cta .section-head h2 .underline::after { background: var(--gold); }
.cta .section-head .eyebrow { background: rgba(255,255,255,0.15); color: var(--gold); }
.cta .section-head p { color: rgba(255,255,255,0.85); }
.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.cta .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}
.cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--gold);
}
.cta .btn-secondary:hover { box-shadow: 6px 6px 0 var(--gold); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 0;
}
.footer-inner {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-2xl);
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); }
}
.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color var(--dur-mid) var(--ease), padding var(--dur-mid) var(--ease);
}
.footer-col a:hover {
  color: var(--gold);
  padding-left: 8px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-top: var(--space-md);
  max-width: 28ch;
  font-weight: 600;
}
.footer .logo { color: var(--white); }
.footer .logo-text span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

/* ─── Demo stage — interactive feature demos ────────────────────────── */
.feature-row {
  font: inherit;
  text-align: left;
  width: 100%;
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255,255,255,0.1);
}
.feature-row:focus-visible { border-color: var(--gold); }
.tap-hint {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.feature-row:hover .tap-hint { opacity: 1; transform: translateX(4px); }
.feature-row.is-active {
  background: rgba(251, 191, 36, 0.12);
  border-color: var(--gold);
  transform: translateX(8px);
}

/* Accordion item: row + inline demo panel below it */
.feature-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  transition: border-color var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease);
}
.feature-item:has(.feature-row[aria-expanded="true"]),
.feature-item.is-open {
  background: rgba(251, 191, 36, 0.06);
  border-color: var(--gold);
}
.feature-item .feature-row { border: 0; border-radius: 0; background: transparent; }
.feature-item .feature-row:hover { background: rgba(255,255,255,0.04); }

.tap-hint {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.feature-row:hover .tap-hint { opacity: 1; }
.feature-row[aria-expanded="true"] .tap-hint {
  opacity: 1;
  color: var(--green);
  transform: rotate(180deg);
}

.feature-demo {
  border-top: 1px solid rgba(251,191,36,0.3);
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.08));
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: demo-slide 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-demo[hidden] { display: none; }
@keyframes demo-slide {
  from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
  to   { opacity: 1; max-height: 1200px; }
}
.feature-demo .demo-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}
.feature-demo .demo-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  width: 0%;
  transition: width 80ms linear;
}

/* DEMO #1 — Chat bubbles */
.d-chat {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-lg);
  background: linear-gradient(180deg, #ece5dd 0%, #d9d0c0 100%);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.d-chat .b {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  animation: bubble-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.d-chat .b.you   { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.d-chat .b.them  { align-self: flex-start; background: white;  border-bottom-left-radius: 4px; }
.d-chat .b:nth-child(1) { animation-delay: 0.1s; }
.d-chat .b:nth-child(2) { animation-delay: 1.0s; }
.d-chat .b:nth-child(3) { animation-delay: 2.0s; }
.d-chat .b:nth-child(4) { animation-delay: 3.0s; }
.d-chat .b:nth-child(5) { animation-delay: 4.0s; }
.d-chat .b:nth-child(6) { animation-delay: 5.0s; }

/* DEMO #2 — Voice waveform + tone bars */
.d-voice {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}
.d-voice .voice-card {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: var(--space-md);
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.wave i {
  display: block;
  width: 3px;
  background: var(--green);
  border-radius: 2px;
  animation: wave-pulse 1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.wave i:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.wave i:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.wave i:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.wave i:nth-child(5) { height: 75%; animation-delay: 0.4s; }
.wave i:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.wave i:nth-child(7) { height: 85%; animation-delay: 0.6s; }
.wave i:nth-child(8) { height: 60%; animation-delay: 0.7s; }
.wave i:nth-child(9) { height: 30%; animation-delay: 0.8s; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
.tone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.tone-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}
.tone-bar .tone-fill {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.tone-bar .tone-fill::before {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  width: 0;
  animation: tone-grow 1.4s var(--ease) forwards;
}
.tone-bar:nth-child(1) .tone-fill::before { animation-delay: 0.5s; --w: 92%; }
.tone-bar:nth-child(2) .tone-fill::before { animation-delay: 0.7s; --w: 78%; }
.tone-bar:nth-child(3) .tone-fill::before { animation-delay: 0.9s; --w: 65%; }
.tone-bar:nth-child(4) .tone-fill::before { animation-delay: 1.1s; --w: 88%; }
@keyframes tone-grow { to { width: var(--w); } }
.score-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  background: conic-gradient(var(--green) 0deg, rgba(255,255,255,0.1) 0deg);
  animation: score-fill 2s var(--ease) forwards;
}
@keyframes score-fill {
  0%   { background: conic-gradient(var(--green) 0deg, rgba(255,255,255,0.1) 0deg); }
  100% { background: conic-gradient(var(--green) 324deg, rgba(255,255,255,0.1) 324deg); }
}
.score-circle::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.score-circle span { position: relative; z-index: 1; }

/* DEMO #3 — Photo Hanzi scan */
.d-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #2a1810 0%, #1a0f08 100%);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}
.d-photo .menu-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  font-family: var(--font-cn);
  color: rgba(255, 220, 180, 0.95);
  font-size: 1.2rem;
  line-height: 1.8;
  gap: 6px;
  background: radial-gradient(ellipse at top, #4a2918, #1a0f08 70%);
}
.d-photo .menu-bg .han {
  position: relative;
  display: inline-block;
}
.d-photo .menu-bg .ann {
  position: absolute;
  left: 110%;
  top: 50%;
  font-family: var(--font-body);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
  animation: ann-pop 0.5s var(--ease-bounce) forwards;
  box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}
@keyframes ann-pop {
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.d-photo .menu-bg .han:nth-child(1) .ann { animation-delay: 1.4s; }
.d-photo .menu-bg .han:nth-child(2) .ann { animation-delay: 2.0s; }
.d-photo .menu-bg .han:nth-child(3) .ann { animation-delay: 2.6s; }
.d-photo .menu-bg .han:nth-child(4) .ann { animation-delay: 3.2s; }
.d-photo .scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  box-shadow: 0 0 24px var(--gold), 0 0 48px var(--gold);
  animation: scan 4s ease-in-out forwards;
}
@keyframes scan {
  0%   { top: 0%; }
  100% { top: 100%; }
}
.d-photo .scan-frame {
  position: absolute;
  inset: 16px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  pointer-events: none;
  animation: frame-pulse 2s ease-in-out infinite;
}
@keyframes frame-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold); }
  50%      { box-shadow: 0 0 24px var(--gold); }
}

/* DEMO #4 — Quiz flashcard flip */
.d-quiz {
  width: 100%;
  max-width: 380px;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flashcard {
  width: 100%;
  aspect-ratio: 3 / 2;
  position: relative;
  transform-style: preserve-3d;
  animation: flip-quiz 6s ease-in-out infinite;
}
@keyframes flip-quiz {
  0%, 40%   { transform: rotateY(0deg); }
  50%, 90%  { transform: rotateY(180deg); }
  100%      { transform: rotateY(0deg); }
}
.flash-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}
.flash-front {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.flash-front .qlabel {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 12px;
}
.flash-front .qbig {
  font-family: var(--font-cn);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.flash-front .qsmall {
  font-size: 0.9rem;
  margin-top: 12px;
  font-weight: 600;
}
.flash-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.flash-back .checkmark {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.flash-back .answer {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.flash-back .pinyin {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.85;
}
.quiz-score {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.quiz-score .bar {
  width: 120px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-score .bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0;
  animation: quiz-fill 5s ease-in-out forwards;
}
@keyframes quiz-fill {
  0%   { width: 20%; }
  100% { width: 80%; }
}

/* DEMO #5 — Weekly report dashboard */
.d-report {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.d-report .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.d-report .head .date { color: var(--gold); }
.d-report .stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--white);
}
.d-report .big-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
  animation: count-up 2s ease-out forwards;
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.d-report .chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  height: 100px;
  align-items: flex-end;
  padding-bottom: 22px;
}
.d-report .chart i {
  background: linear-gradient(180deg, var(--gold), var(--green));
  border-radius: 4px 4px 0 0;
  height: 0;
  animation: bar-grow 1.6s var(--ease) forwards;
  position: relative;
}
.d-report .chart i::after {
  content: attr(data-day);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}
.d-report .chart i:nth-child(1) { animation-delay: 0.2s; --h: 35%; }
.d-report .chart i:nth-child(2) { animation-delay: 0.4s; --h: 60%; }
.d-report .chart i:nth-child(3) { animation-delay: 0.6s; --h: 45%; }
.d-report .chart i:nth-child(4) { animation-delay: 0.8s; --h: 80%; }
.d-report .chart i:nth-child(5) { animation-delay: 1.0s; --h: 70%; }
.d-report .chart i:nth-child(6) { animation-delay: 1.2s; --h: 50%; }
.d-report .chart i:nth-child(7) { animation-delay: 1.4s; --h: 95%; }
@keyframes bar-grow { to { height: var(--h); } }
.d-report .summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 1.6s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

/* DEMO #6 — Roleplay split-screen */
.d-roleplay {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rp-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  opacity: 0;
  transform: translateX(-30px);
  animation: rp-in 0.5s var(--ease) forwards;
}
.rp-row.you { flex-direction: row-reverse; transform: translateX(30px); }
.rp-row:nth-child(1) { animation-delay: 0.2s; }
.rp-row:nth-child(2) { animation-delay: 1.2s; }
.rp-row:nth-child(3) { animation-delay: 2.2s; }
.rp-row:nth-child(4) { animation-delay: 3.2s; }
.rp-row:nth-child(5) { animation-delay: 4.2s; }
@keyframes rp-in { to { opacity: 1; transform: translateX(0); } }
.rp-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.rp-row.you .rp-avatar { background: var(--gold-soft); }
.rp-bubble {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--white);
  position: relative;
}
.rp-row.you .rp-bubble {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  font-weight: 600;
}
.rp-bubble .speaker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  display: block;
}
.rp-row.you .rp-bubble .speaker { color: var(--ink); opacity: 0.7; }
.rp-bubble .han {
  font-family: var(--font-cn);
  display: block;
  margin-top: 2px;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* DEMO #7 — Memory bank */
.d-memory {
  width: 100%;
  max-width: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.d-memory .brain {
  width: 100px;
  height: 100px;
  background: var(--green-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  animation: breathe 3s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(22,163,74,0.4);
}
.d-memory .brain::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.memory-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: mem-in 0.5s var(--ease) forwards;
}
.mem-row:nth-child(1) { animation-delay: 0.5s; }
.mem-row:nth-child(2) { animation-delay: 1.2s; }
.mem-row:nth-child(3) { animation-delay: 1.9s; }
.mem-row:nth-child(4) { animation-delay: 2.6s; }
.mem-row:nth-child(5) { animation-delay: 3.3s; }
@keyframes mem-in { to { opacity: 1; transform: translateY(0); } }
.mem-row .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(251,191,36,0.15);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.mem-row .text {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .demo-canvas { padding: var(--space-lg) var(--space-md); }
  .d-photo .menu-bg { font-size: 1rem; padding: 18px 14px; }
  .d-photo .menu-bg .ann { font-size: 0.55rem; padding: 3px 6px; }
  .flash-front .qbig { font-size: 3rem; }
  .d-report .big-number { font-size: 2.4rem; }
  .d-report .chart { height: 80px; }
  .feature-row { grid-template-columns: 60px 1fr 50px !important; gap: var(--space-sm) !important; padding: var(--space-md) !important; }
  .feature-row .num { font-size: 2rem !important; }
  .feature-row h3 { font-size: 1.1rem !important; }
  .feature-row .icon-anim { width: 48px !important; height: 48px !important; font-size: 24px !important; }
  .tap-hint { display: block; margin-left: 0; margin-top: 4px; }
}

/* ─── Reveal — pure CSS transition driven by .in-view class ─────────── */
/* Initial hidden state applies ONLY when js-motion class is set on <html>.
 * Inline IO script adds .in-view to fire transition. Failsafe shows all. */
.js-motion .reveal,
.js-motion .reveal-x-left,
.js-motion .reveal-x-right,
.js-motion .reveal-rotate,
.js-motion .reveal-flip {
  will-change: opacity, transform;
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-motion .reveal         { opacity: 0; transform: translateY(40px); }
.js-motion .reveal-x-left  { opacity: 0; transform: translateX(-60px); }
.js-motion .reveal-x-right { opacity: 0; transform: translateX(60px); }
.js-motion .reveal-rotate  { opacity: 0; transform: translateY(40px) rotate(-8deg) scale(0.9); }
.js-motion .reveal-flip    { opacity: 0; transform: rotateX(60deg) translateY(40px); transform-origin: center top; }

.js-motion .reveal.in-view,
.js-motion .reveal-x-left.in-view,
.js-motion .reveal-x-right.in-view,
.js-motion .reveal-rotate.in-view,
.js-motion .reveal-flip.in-view {
  opacity: 1;
  transform: none;
}

/* Failsafe: force everything visible if JS or IO not running */
.motion-fallback .reveal,
.motion-fallback .reveal-x-left,
.motion-fallback .reveal-x-right,
.motion-fallback .reveal-rotate,
.motion-fallback .reveal-flip {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── Legal pages ───────────────────────────────────────────────────── */
.legal { padding: var(--space-3xl) 0; background: var(--cream); }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: var(--space-md); }
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: var(--space-xl) 0 var(--space-sm); color: var(--green); }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; margin-bottom: 8px; }
.legal ul { padding-left: var(--space-md); }
.legal ul li { list-style: '🐼  '; padding-left: 4px; }
.legal a { color: var(--green); border-bottom: 2px solid var(--green-soft); font-weight: 600; }
.legal a:hover { color: var(--green-deep); border-bottom-color: var(--green); }
