/* ═════════════════════════════════════════════════════════════════════
   1. RESET
   ═════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═════════════════════════════════════════════════════════════════════
   2. DESIGN TOKENS
   Dark page chrome with brand purple. App-interior tokens preserved
   for iPhone mockups, flashcards, etc.
   ═════════════════════════════════════════════════════════════════════ */
:root {
    /* Primary purple scale (mirrors lyrin-mobile) */
    --primary-50:  #efecfd;
    --primary-100: #e2dbfc;
    --primary-200: #c5b5f9;
    --primary-300: #ab90f6;
    --primary-400: #936af2;
    --primary-500: #7c3aed;
    --primary-600: #6722ce;
    --primary-700: #4e189f;
    --primary-800: #360e72;
    --primary-900: #22064c;
    --primary-950: #140332;

    /* Neutral scale (purple-tinted) */
    --neutral-50:  #faf9ff;
    --neutral-100: #f3f2fa;
    --neutral-200: #e5e3ed;
    --neutral-300: #d4d2de;
    --neutral-400: #a29fad;
    --neutral-500: #757281;
    --neutral-600: #555361;
    --neutral-700: #403e4a;
    --neutral-800: #292731;
    --neutral-900: #181720;
    --neutral-950: #0a0911;

    --success-50:  #DCFBE5;
    --success-100: #B2F8C7;
    --success-200: #7DEAA3;
    --success-300: #6FD292;
    --success-400: #63BD83;
    --success-500: #57A773;
    --success-600: #43845A;
    --success-700: #306141;

    --streak-400: #fca467;
    --streak-500: #f58f29;

    /* Light page chrome */
    --bg:            #ffffff;
    --bg-elev:       #faf9ff;
    --bg-section:    #f6f4fc;
    --fg:            #0a0911;
    --fg-muted:      #555361;
    --fg-subtle:     #757281;
    --border:        rgba(10, 9, 17, 0.08);
    --border-strong: rgba(10, 9, 17, 0.14);
    --card:          rgba(10, 9, 17, 0.03);
    --card-hover:    rgba(10, 9, 17, 0.06);

    /* App-interior aliases (iPhone mockup, flashcards) — kept light */
    --primary-color: var(--primary-500);
    --primary-hover: var(--primary-600);
    --accent-color:  #EC4899;
    --text-primary:   var(--neutral-950);
    --text-secondary: var(--neutral-500);
    --text-muted:     var(--neutral-400);
    --bg-primary:     #ffffff;
    --bg-secondary:   var(--neutral-50);
    --bg-accent:      var(--neutral-100);
    --border-color:   var(--neutral-200);
    --success-color:  var(--success-600);
    --chip-muted:     var(--neutral-200);
    --chip-muted-foreground: var(--neutral-600);

    /* Gradient palettes for benefit tiles */
    --grad-purple:      linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
    --grad-pink:        linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    --grad-blue:        linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    --grad-purple-dark: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);

    /* Hero / CTA atmospheric wallpaper — soft pastel tints on white */
    --wallpaper:
        radial-gradient(1200px 600px at 20% 10%, rgba(124, 58, 237, 0.10), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(236, 72, 153, 0.08), transparent 60%),
        radial-gradient(1100px 700px at 50% 90%, rgba(37, 99, 235, 0.06), transparent 55%);

    /* Type */
    --font-display: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    --font-mono:    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Radii */
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 999px;
    --radius:    0.75rem;
    --radius-lg: 1rem;

    /* Shadows — soft drops for light bg */
    --shadow-sm:      0 1px 2px 0 rgb(10 9 17 / 0.06);
    --shadow-md:      0 4px 12px -2px rgb(10 9 17 / 0.08);
    --shadow-lg:      0 8px 24px -4px rgb(10 9 17 / 0.10);
    --shadow-xl:      0 30px 80px -20px rgb(10 9 17 / 0.15);
    --shadow-colored: 0 8px 24px -4px rgb(124 58 237 / 0.20);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═════════════════════════════════════════════════════════════════════
   3. BASE
   ═════════════════════════════════════════════════════════════════════ */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle film grain over the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.chinese {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* ═════════════════════════════════════════════════════════════════════
   4. TYPOGRAPHY
   ═════════════════════════════════════════════════════════════════════ */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin: 0 0 18px;
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #7c3aed 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Offset anchor scroll targets so they clear the floating nav pill. */
section[id] {
    scroll-margin-top: 88px;
}

/* ═════════════════════════════════════════════════════════════════════
   5. NAV — floating pill
   ═════════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 8px 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: background 0.3s var(--ease);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    padding-right: 14px;
    border-right: 1px solid var(--border);
    margin-right: 6px;
}

.nav-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-brand-text {
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-muted);
    padding: 8px 12px;
    border-radius: var(--r-pill);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
    color: var(--fg);
    background: var(--card-hover);
}

.nav-cta {
    margin-left: 6px;
}

.nav-cta.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 0 0 1px rgba(124, 58, 237, 0.25),
        0 8px 22px -6px rgba(124, 58, 237, 0.5);
}

.nav-cta.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 0 0 1px rgba(124, 58, 237, 0.3),
        0 12px 28px -6px rgba(124, 58, 237, 0.6);
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav {
        padding-left: 14px;
    }

    .nav-brand {
        padding-right: 10px;
        margin-right: 2px;
    }
}

/* ═════════════════════════════════════════════════════════════════════
   6. BUTTONS — shimmer primary + ghost
   ═════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-pill);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px -10px rgba(10, 9, 17, 0.3);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: shimmer 3.4s var(--ease) infinite;
}

@keyframes shimmer {
    0%, 25%   { left: -80%; }
    60%, 100% { left: 160%; }
}

.btn-ghost {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--card-hover);
    border-color: var(--border-strong);
}

/* Legacy CTA button kept for backwards-compat where used */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--fg);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.02);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ═════════════════════════════════════════════════════════════════════
   7. STORE BADGES
   ═════════════════════════════════════════════════════════════════════ */
.store-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--fg);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
    border: 1px solid var(--fg);
    width: 210px;
    box-shadow: 0 8px 20px -10px rgba(10, 9, 17, 0.35);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Ambient color glow behind content on hover */
.store-badge::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(124, 58, 237, 0.55) 0%,
        rgba(236, 72, 153, 0.25) 35%,
        transparent 65%);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
    pointer-events: none;
    z-index: 0;
}

/* Diagonal gloss stripe that sweeps across on hover */
.store-badge::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 45%;
    height: 140%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 100%);
    transform: skewX(-22deg);
    pointer-events: none;
    z-index: 2;
}

.store-badge > * {
    position: relative;
    z-index: 1;
}

.store-badge:hover {
    transform: translateY(-3px) scale(1.015);
    background: #1c1b25;
    box-shadow:
        0 18px 34px -14px rgba(10, 9, 17, 0.55),
        0 0 0 1px rgba(124, 58, 237, 0.35);
}

.store-badge:hover::before {
    animation: gloss-sweep 1.1s var(--ease);
}

.store-badge:hover::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes gloss-sweep {
    0%   { left: -60%; }
    100% { left: 160%; }
}

.store-badge:active {
    transform: translateY(0);
}

.store-badge-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-badge-small {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
}

.store-badge-large {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}

/* ═════════════════════════════════════════════════════════════════════
   8. HERO
   ═════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 170px 0 120px;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        padding: 180px 0 140px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--wallpaper);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 13px;
    color: var(--fg-muted);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 0 28px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6.5vw, 84px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    color: var(--fg);
}

.hero-subtitle {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.5;
    color: var(--fg-muted);
    max-width: 56ch;
    margin: 0 auto;
}

/* ═════════════════════════════════════════════════════════════════════
   9. SECTION HEADERS
   ═════════════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header .eyebrow {
    margin-bottom: 14px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: var(--fg);
}

.section-header p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--fg-muted);
    max-width: 60ch;
    margin: 0 auto;
}

/* Hairline section divider */
.hr {
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    max-width: 1200px;
}

/* ═════════════════════════════════════════════════════════════════════
  10. FEATURES SECTION (lesson iPhone mockup)
   ═════════════════════════════════════════════════════════════════════ */
.features {
    padding: 100px 0;
    position: relative;
}

.features-mockup {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    position: relative;
}

/* Two-column layout on large screens */
@media (min-width: 1024px) {
    .features {
        padding: 140px 0;
    }

    .features > .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .features .section-header {
        text-align: left;
        margin: 0;
    }

    .features .section-header p {
        margin: 0;
    }

    .features .features-mockup {
        margin-top: 0;
    }
}

/* ═════════════════════════════════════════════════════════════════════
  11. iPHONE MOCKUP — frame stays dark, screen interior stays light (app-like)
   ═════════════════════════════════════════════════════════════════════ */
.iphone-frame {
    width: 100%;
    max-width: 280px;
    background: #08070d;
    border-radius: 50px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 30px 80px -20px rgba(124, 58, 237, 0.30),
        0 10px 30px -10px rgba(10, 9, 17, 0.18);
}

.iphone-notch {
    width: 120px;
    height: 28px;
    background: #08070d;
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.iphone-screen {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

@media (min-width: 480px) {
    .iphone-frame {
        max-width: 320px;
    }

    .iphone-screen {
        height: 600px;
    }
}

@media (min-width: 1200px) {
    .iphone-frame {
        max-width: 380px;
    }

    .iphone-screen {
        height: 720px;
    }
}

/* ─── Lesson Header (inside phone) ─── */
.lesson-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.lesson-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 1rem 0.5rem;
}

.lesson-header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    pointer-events: none;
}

.lesson-header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lesson-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-avatar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.lesson-flow-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.lesson-progress-track {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 1rem 0.75rem;
}

.lesson-progress-fill {
    height: 100%;
    background: var(--primary-500);
    border-radius: 9999px;
}

/* ─── Lesson Chat Area ─── */
.lesson-chat-area {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.lesson-bot-card-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-bot-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    color: var(--text-primary);
    gap: 0 4px;
}

.lesson-bot-card .segment-text {
    font-size: 1.125rem;
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.lesson-bot-card .chinese-word,
.lesson-student-task .chinese-word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
    vertical-align: bottom;
    padding-top: 0;
    position: relative;
}

.lesson-bot-card .chinese-word .pinyin,
.lesson-student-task .chinese-word .pinyin {
    position: static;
    transform: none;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.lesson-bot-card .chinese-word .pinyin {
    color: var(--text-secondary);
}

.lesson-bot-card .chinese-word .hanzi,
.lesson-student-task .chinese-word .hanzi {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Student task pill */
.lesson-student-task {
    background: var(--primary-100);
    border-radius: 0.75rem;
    overflow: hidden;
    align-self: center;
    color: var(--primary-700);
}

.lesson-student-task-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    gap: 0.5rem;
}

.lesson-student-task .chinese-word .pinyin {
    color: var(--primary-500);
}

.lesson-student-task .chinese-word .hanzi {
    color: var(--primary-700);
}

.student-task-listen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--primary-500);
    pointer-events: none;
    padding: 0 1rem 0.5rem;
}

/* Hold to Talk Dock */
.lesson-dock {
    background: var(--primary-500);
    padding: 1.25rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hold-to-talk-btn {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Generic chinese word display (used outside the iPhone, e.g. in benefits) */
.chinese-word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
    vertical-align: bottom;
}

.chinese-word .pinyin {
    font-size: 0.75rem;
    color: var(--fg-subtle);
    white-space: nowrap;
    line-height: 1.2;
}

.chinese-word .hanzi {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* ═════════════════════════════════════════════════════════════════════
  12. CONVERSATIONS CAROUSEL
   ═════════════════════════════════════════════════════════════════════ */
.carousel-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(124, 58, 237, 0.07), transparent 60%),
        var(--bg);
}

.carousel-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.carousel-section .section-header {
    margin-bottom: 3rem;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.carousel-row {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.carousel-row-left .carousel-track {
    animation: scroll-left 50s linear infinite;
}

.carousel-row-right .carousel-track {
    animation: scroll-right 50s linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.carousel-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.85rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.carousel-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.carousel-emoji {
    font-size: 1.5rem;
}

.carousel-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.carousel-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fg);
}

/* Difficulty pills (used in carousel + how-it-works) */
.difficulty-pill {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    width: fit-content;
}

.difficulty-pill.beginner,
.difficulty-pill.intermediate,
.difficulty-pill.upper-intermediate,
.difficulty-pill.advanced {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.difficulty-pill.custom {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ═════════════════════════════════════════════════════════════════════
  13. FEEDBACK SECTION
   ═════════════════════════════════════════════════════════════════════ */
.feedback-section {
    padding: 100px 0;
    position: relative;
}

@media (min-width: 1024px) {
    .feedback-section {
        padding: 140px 0;
    }

    .feedback-section > .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .feedback-section .section-header {
        text-align: left;
        margin: 0;
    }

    .feedback-section .section-header p {
        margin: 0;
    }

    .feedback-section .features-mockup {
        margin-top: 0;
    }
}

/* Summary screen interior — kept light, app-like */
.summary-screen {
    padding: 16px;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.summary-duration-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.summary-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-100);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 9999px;
}

.summary-roles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
}

.role-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.role-text {
    display: flex;
    flex-direction: column;
}

.role-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.role-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.grade-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.grade-card {
    flex: 1;
    min-width: 44%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    overflow: hidden;
}

.grade-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.grade-metric {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.grade-label-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Feedback overlay card — floating glass card next to phone */
.feedback-overlay-card {
    position: absolute;
    left: calc(50% + 80px);
    top: 52%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    width: 260px;
    box-shadow: 0 25px 60px -12px rgba(10, 9, 17, 0.18), 0 0 0 1px rgba(124, 58, 237, 0.08);
    z-index: 10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--fg);
}

.feedback-overlay-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.feedback-overlay-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    flex: 1;
}

.feedback-overlay-grade {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-700);
    flex-shrink: 0;
}

.feedback-overlay-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--fg);
}

.feedback-overlay-content .chinese-word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: bottom;
    margin: 0 2px;
}

.feedback-overlay-content .chinese-word .pinyin {
    font-size: 0.875rem;
    color: var(--fg-muted);
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 2px;
}

.feedback-overlay-content .chinese-word .hanzi {
    font-size: 1.5rem;
    color: var(--fg);
    line-height: 1.2;
}

@media (min-width: 480px) {
    .feedback-overlay-card { left: calc(50% + 110px); }
}

@media (min-width: 768px) {
    .feedback-overlay-card { left: calc(50% + 120px); }
}

@media (min-width: 1024px) {
    .feedback-overlay-card {
        left: calc(50% + 120px);
        top: 58%;
    }
}

@media (min-width: 1200px) {
    .feedback-overlay-card { top: 54%; }
}

@media (max-width: 768px) {
    .feedback-overlay-card { width: 220px; }
}

/* ═════════════════════════════════════════════════════════════════════
  14. HOW IT WORKS — three-up cards on dark bg
   ═════════════════════════════════════════════════════════════════════ */
.how-it-works {
    padding: 100px 0;
    background:
        radial-gradient(1200px 600px at 80% 100%, rgba(124, 58, 237, 0.06), transparent 60%),
        var(--bg-section);
}

@media (min-width: 1024px) {
    .how-it-works {
        padding: 140px 0;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .steps-grid .step:last-child {
        grid-column: 1 / -1;
        max-width: 580px;
        justify-self: center;
    }
}

@media (min-width: 1100px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .steps-grid .step:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step:hover {
    background: var(--card-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--fg);
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
}

.step > p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 38ch;
}

.step .difficulty-list,
.step .time-spent-wrapper,
.step .flashcard-back {
    margin-top: 1.75rem;
    width: 100%;
}

/* Difficulty cards (inside step) — light cards on dark bg */
.difficulty-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 380px;
}

.difficulty-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.difficulty-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.difficulty-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.difficulty-cefr {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fg-subtle);
}

.difficulty-desc {
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.difficulty-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-subtle);
    margin-top: 0.5rem;
    text-align: left;
}

/* Time spent card — light card sitting on dark bg */
.time-spent-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.time-spent-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px -20px rgba(10, 9, 17, 0.18);
}

.streak-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.streak-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.streak-stat-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.streak-icon-fire { background: var(--streak-400); }
.streak-icon-crown { background: var(--success-300); }
.streak-icon-calendar { background: rgba(124, 58, 237, 0.7); }

.streak-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-display);
}

.streak-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vocab-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.vocab-stats-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vocab-stats-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

.vocab-level-pill {
    background: var(--success-50);
    color: var(--success-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
}

.time-spent-card .stats-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.time-spent-card .stat-item {
    flex: 1;
    text-align: center;
}

.time-spent-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.time-spent-card .stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.time-spent-card .chart-container {
    flex: 1;
    position: relative;
    padding-left: 35px;
    padding-bottom: 30px;
    min-height: 180px;
}

.time-spent-card .chart {
    position: absolute;
    top: 0;
    left: 35px;
    right: 0;
    bottom: 30px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-left: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
    padding: 0 10px;
}

.time-spent-card .bar-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.time-spent-card .bar-background {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-500);
    opacity: 0.1;
    border-radius: 6px 6px 0 0;
}

.time-spent-card .bar {
    width: 100%;
    background-color: var(--primary-500);
    border-radius: 6px 6px 0 0;
    position: relative;
}

.time-spent-card .y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    text-align: right;
    font-size: 11px;
    color: var(--neutral-600);
}

.time-spent-card .x-axis {
    position: absolute;
    bottom: 0;
    left: 35px;
    right: 0;
    height: 25px;
    display: flex;
    padding: 0 10px;
    gap: 6px;
}

.time-spent-card .x-label {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--neutral-600);
    padding-top: 6px;
}

/* Flashcard — light card on dark bg */
.flashcard-back {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 50px -20px rgba(10, 9, 17, 0.18);
}

.flashcard-progress-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.flashcard-progress-label strong {
    color: var(--text-primary);
    font-weight: 600;
}

.flashcard-progress {
    width: 100%;
    height: 8px;
    background: var(--neutral-200);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.flashcard-progress-fill {
    height: 100%;
    background: var(--primary-500);
    border-radius: 9999px;
}

.flashcard-word-section {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.flashcard-word-card {
    position: relative;
    background: var(--success-50);
    border-radius: 12px;
    padding: 10px 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.flashcard-audio-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--success-100);
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-pinyin {
    font-size: 1rem;
    color: var(--success-600);
    line-height: 1.4;
}

.flashcard-hanzi {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.25rem;
    color: var(--success-600);
    font-weight: 500;
    line-height: 1.3;
}

.flashcard-definitions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.flashcard-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--neutral-100);
    color: var(--neutral-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.flashcard-sentence-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.flashcard-sentence-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.flashcard-sentence-box {
    background: rgba(245, 245, 245, 0.5);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.flashcard-sentence-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.flashcard-sentence-text .chinese-word {
    margin: 0 1px;
}

.flashcard-sentence-text .chinese-word .pinyin {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.flashcard-sentence-text .chinese-word .hanzi {
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.75;
}

.flashcard-sentence-translation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.flashcard-sentence-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.flashcard-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1;
}

/* ═════════════════════════════════════════════════════════════════════
  15. BENEFITS — gradient feature tiles
   ═════════════════════════════════════════════════════════════════════ */
.testimonials {
    padding: 100px 0;
}

@media (min-width: 1024px) {
    .testimonials {
        padding: 140px 0;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial {
    position: relative;
    padding: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

/* Benefit icon tinted badge */
.benefit-bg {
    display: none;
}

.benefit-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    color: var(--fg);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--primary-50);
    color: var(--primary-600);
}

.benefit-purple .benefit-icon      { background: rgba(124, 58, 237, 0.10); color: #7c3aed; }
.benefit-pink .benefit-icon        { background: rgba(236, 72, 153, 0.10); color: #db2777; }
.benefit-blue .benefit-icon        { background: rgba(37, 99, 235, 0.10);  color: #2563eb; }
.benefit-purple-dark .benefit-icon { background: rgba(76, 29, 149, 0.10);  color: #4c1d95; }

.testimonial-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 12px;
}

.testimonial-title h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fg);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.testimonial p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-muted);
    margin: 0;
    max-width: 36ch;
}

/* Hide the legacy badge-check svg (not used in new design) */
.testimonial-title .check-icon {
    display: none;
}

/* Chinese word inside benefit cards */
.testimonial p .chinese-word .pinyin {
    color: var(--fg-subtle);
}

.testimonial p .chinese-word .hanzi {
    color: var(--fg);
}

/* ═════════════════════════════════════════════════════════════════════
  15b. FAQ
   ═════════════════════════════════════════════════════════════════════ */
.faq-section {
    padding: 100px 0;
    position: relative;
}

@media (min-width: 1024px) {
    .faq-section {
        padding: 140px 0;
    }
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item.is-open {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--fg);
    text-align: left;
    font: inherit;
    transition: background 0.2s var(--ease);
}

.faq-trigger:hover {
    background: rgba(10, 9, 17, 0.015);
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
    border-radius: var(--r-lg);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
    grid-template-rows: 1fr;
}

.faq-panel > .faq-panel-inner {
    overflow: hidden;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .faq-panel {
        transition: none;
    }
}

.faq-question {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--fg-muted);
    font-size: 22px;
    transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-600);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--fg-muted);
    font-size: 16px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-answer p + p {
    margin-top: 14px;
}

.faq-answer a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer .chinese-word {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    vertical-align: baseline;
}

.faq-answer .chinese-word .pinyin {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    font-size: 0.7rem;
    line-height: 1;
    color: var(--fg-subtle);
    white-space: nowrap;
}

.faq-answer .chinese-word .hanzi {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: 1em;
    line-height: inherit;
    color: var(--fg);
}

@media (max-width: 480px) {
    .faq-trigger {
        padding: 18px;
        gap: 12px;
    }

    .faq-question {
        font-size: 17px;
    }

    .faq-answer {
        padding: 0 18px 20px;
        font-size: 15px;
    }
}

/* ═════════════════════════════════════════════════════════════════════
  15c. REVIEWS — user quotes
   ═════════════════════════════════════════════════════════════════════ */
.reviews {
    padding: 100px 0;
}

@media (min-width: 1024px) {
    .reviews {
        padding: 140px 0;
    }
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.review-card {
    position: relative;
    margin: 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.review-stars {
    display: inline-flex;
    gap: 4px;
    color: var(--streak-500, #f58f29);
}

.review-stars svg {
    width: 18px;
    height: 18px;
}

.review-quote {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--fg);
    font-weight: 400;
    letter-spacing: -0.005em;
}

.review-author {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fg-muted);
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .review-card {
        padding: 24px;
    }

    .review-quote {
        font-size: 1rem;
    }
}

/* ═════════════════════════════════════════════════════════════════════
  16. FINAL CTA
   ═════════════════════════════════════════════════════════════════════ */
.cta-section {
    padding: 180px 0 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--wallpaper);
    opacity: 0.85;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 20px;
    color: var(--fg);
}

.cta-content p {
    font-size: 20px;
    line-height: 1.5;
    color: var(--fg-muted);
    margin: 0 auto 48px;
    max-width: 56ch;
}

.cta-section .store-badges {
    margin-top: 0;
    gap: 1rem;
}

.cta-section .store-badge {
    width: 260px;
    padding: 0.95rem 1.5rem;
    border-radius: 0.9rem;
    gap: 0.75rem;
}

.cta-section .store-badge-icon {
    width: 34px;
    height: 34px;
}

.cta-section .store-badge-small {
    font-size: 0.8rem;
}

.cta-section .store-badge-large {
    font-size: 1.35rem;
}

@media (max-width: 480px) {
    .cta-section .store-badge {
        width: 240px;
        padding: 0.85rem 1.25rem;
    }

    .cta-section .store-badge-icon {
        width: 30px;
        height: 30px;
    }

    .cta-section .store-badge-large {
        font-size: 1.2rem;
    }
}

/* ═════════════════════════════════════════════════════════════════════
  17. FOOTER — multi-column dark
   ═════════════════════════════════════════════════════════════════════ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 14px;
}

.footer-brand .logo-image {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.footer-tagline {
    font-size: 14px;
    color: var(--fg-muted);
    max-width: 32ch;
    margin: 0;
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
    font-family: var(--font-mono);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--fg-muted);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--fg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--fg-subtle);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }
}

/* ═════════════════════════════════════════════════════════════════════
  18. ENTRANCE ANIMATIONS
   ═════════════════════════════════════════════════════════════════════ */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rise {
    animation: rise 0.9s var(--ease) both;
}

.rise.d1 { animation-delay: 0.05s; }
.rise.d2 { animation-delay: 0.15s; }
.rise.d3 { animation-delay: 0.25s; }
.rise.d4 { animation-delay: 0.4s; }

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

/* ═════════════════════════════════════════════════════════════════════
  19. RESPONSIVE OVERRIDES
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .features,
    .feedback-section,
    .how-it-works,
    .carousel-section,
    .testimonials,
    .faq-section,
    .reviews {
        padding: 70px 0;
    }

    .cta-section {
        padding: 120px 0 140px;
    }

    .footer {
        padding: 48px 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 125px 0 70px;
    }

    .hero-eyebrow {
        font-size: 12px;
        padding: 5px 12px;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 220px;
    }

    /* iPhone mockup fixes for smallest screens */
    .lesson-header-row {
        justify-content: center;
    }

    .lesson-header-btn {
        display: none;
    }

    .lesson-bot-card .segment-text {
        font-size: 0.875rem;
        line-height: 1.75;
    }

    .lesson-bot-card .chinese-word .hanzi,
    .lesson-student-task .chinese-word .hanzi {
        font-size: 1.125rem;
    }

    .lesson-bot-card .chinese-word .pinyin,
    .lesson-student-task .chinese-word .pinyin {
        font-size: 0.7rem;
    }

    .lesson-student-task-top {
        padding: 0.375rem 1rem 0.375rem 0.75rem;
        gap: 0.375rem;
    }

    .student-task-listen {
        font-size: 0.75rem;
        padding: 0 0.75rem 0.375rem;
    }

    .lesson-dock {
        padding: 0.75rem 0.75rem 1.25rem;
    }

    .hold-to-talk-btn {
        height: 40px;
        font-size: 0.875rem;
    }

    .summary-title {
        font-size: 1.25rem;
    }

    .summary-duration {
        font-size: 0.875rem;
        padding: 6px 12px;
        gap: 6px;
    }

    .role-card {
        padding: 6px 10px;
        gap: 8px;
    }

    .role-icon {
        width: 24px;
        height: 24px;
    }

    .role-name {
        font-size: 0.75rem;
    }

    .grade-card {
        padding: 8px;
    }

    .grade-badge {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .grade-metric {
        font-size: 0.75rem;
    }

    .feedback-overlay-content {
        font-size: 0.8rem;
    }

    .feedback-overlay-content .chinese-word .hanzi {
        font-size: 1.125rem;
    }

    .feedback-overlay-content .chinese-word .pinyin {
        font-size: 0.7rem;
    }

    .feedback-overlay-title {
        font-size: 0.75rem;
    }

    .feedback-overlay-card {
        width: 170px;
        left: calc(50% + 60px);
        top: 48%;
    }
}
