/* ============================================
   KanjiOS Landing Page Styles
   
   ⚠️ IMPORTANT: ALL styles are scoped under .landing-page
   to prevent CSS bleeding into the main app when browser
   caches stylesheets during navigation.
   ============================================ */

/* ============================================
   CSS Variables - Scoped to landing page only
   ============================================ */

.landing-page {
    /* Colors */
    --lp-bg-primary: #0a0a0f;
    --lp-bg-secondary: #0f0f16;
    --lp-bg-tertiary: #16161f;
    --lp-bg-card: rgba(255, 255, 255, 0.02);
    --lp-bg-card-hover: rgba(255, 255, 255, 0.04);
    
    --lp-text-primary: #f5f4ed;
    --lp-text-secondary: #b0b6ca;
    --lp-text-muted: #8b9199;
    
    --lp-border: rgba(255, 255, 255, 0.08);
    --lp-border-hover: rgba(255, 255, 255, 0.15);
    
    --lp-accent: #dc2626;
    --lp-accent-hover: #ef4444;
    --lp-accent-glow: rgba(220, 38, 38, 0.4);
    
    --lp-purple: #a855f7;
    --lp-blue: #3b82f6;
    --lp-green: #22c55e;
    --lp-orange: #f97316;
    
    /* Typography */
    --lp-font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --lp-font-jp: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
    
    /* Spacing */
    --lp-container: min(1200px, 90vw);
    --lp-section-gap: clamp(4rem, 10vw, 8rem);
    
    /* Apply base styles */
    font-family: var(--lp-font-sans);
    background: var(--lp-bg-primary);
    color: var(--lp-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset - scoped */
.landing-page *,
.landing-page *::before,
.landing-page *::after {
    box-sizing: border-box;
}

.landing-page a {
    color: inherit;
    text-decoration: none;
}

.landing-page img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Navigation
   ============================================ */

.landing-page .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lp-border);
}

.landing-page .nav__inner {
    max-width: var(--lp-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.landing-page .nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.landing-page .nav__logo-icon {
    width: 36px;
    height: 36px;
}

.landing-page .nav__logo-text {
    color: var(--lp-text-primary);
}

.landing-page .nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.landing-page .nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--lp-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.landing-page .nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-page .nav__link {
    color: var(--lp-text-secondary);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.landing-page .nav__link:hover {
    color: var(--lp-text-primary);
}

.landing-page .nav__link--cta {
    background: var(--lp-accent);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.landing-page .nav__link--cta:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--lp-accent-glow);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .landing-page .nav__toggle {
        display: flex;
    }
    
    .landing-page .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 15, 0.98);
        border-bottom: 1px solid var(--lp-border);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .landing-page .nav__links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .landing-page .nav__link {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }
    
    .landing-page .nav__link--cta {
        margin: 0.5rem 1.5rem;
        width: calc(100% - 3rem);
        text-align: center;
    }
}

/* ============================================
   Hero
   ============================================ */

.landing-page .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 1.5rem 4rem;
    overflow: hidden;
}

.landing-page .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* App screenshot background */
.landing-page .hero__bg::before {
    content: '';
    position: absolute;
    inset: -20px; /* Extend beyond edges to prevent blur edge artifacts */
    background-image: url('/home/images/herobg1.png');
    background-size: cover;
    background-position: center top;
    filter: blur(12px);
    transform: scale(1.05); /* Slight scale to cover blur edges */
}

/* Dark overlay for text readability */
.landing-page .hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 15, 0.85) 0%,
            rgba(10, 10, 15, 0.6) 30%,
            rgba(10, 10, 15, 0.5) 50%,
            rgba(10, 10, 15, 0.7) 80%,
            rgba(10, 10, 15, 0.95) 100%
        );
}

.landing-page .hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    z-index: 1;
}

.landing-page .hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.landing-page .hero__glow--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--lp-purple) 0%, transparent 70%);
    animation: lp-pulse-glow 8s ease-in-out infinite;
}

.landing-page .hero__glow--2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--lp-accent) 0%, transparent 70%);
    opacity: 0.25;
    animation: lp-pulse-glow 8s ease-in-out infinite 4s;
}

.landing-page .hero__content {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    text-align: center;
}

.landing-page .hero__eyebrow {
    font-family: var(--lp-font-jp);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #ef4444;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.landing-page .hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.landing-page .hero__title-accent {
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-page .hero__subtitle {
    font-size: 1.125rem;
    color: var(--lp-text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.landing-page .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.landing-page .hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--lp-border);
}

.landing-page .hero__stat {
    text-align: center;
}

.landing-page .hero__stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lp-text-primary);
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.landing-page .hero__stat-label {
    font-size: 0.875rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .landing-page .hero {
        padding: 6rem 1rem 3rem;
    }

    .landing-page .hero__content {
        max-width: 100%;
    }

    .landing-page .hero__subtitle {
        max-width: 100%;
        font-size: 1rem;
    }

    .landing-page .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .landing-page .hero__actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .landing-page .hero__stats {
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
    }

    .landing-page .hero__stat-value {
        font-size: 1.25rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.landing-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-page .btn--primary {
    background: var(--lp-accent);
    color: #fff;
}

.landing-page .btn--primary:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

.landing-page .btn--ghost {
    background: transparent;
    color: var(--lp-text-secondary);
    border: 1px solid var(--lp-border);
}

.landing-page .btn--ghost:hover {
    background: var(--lp-bg-card);
    border-color: var(--lp-border-hover);
    color: var(--lp-text-primary);
}

.landing-page .btn--large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.landing-page .btn svg {
    flex-shrink: 0;
}

/* ============================================
   Section Common
   ============================================ */

.landing-page .section__eyebrow {
    font-family: var(--lp-font-jp);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--lp-accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.landing-page .section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.landing-page .section__subtitle {
    font-size: 1.05rem;
    color: var(--lp-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   Features - Clean Grid
   ============================================ */

.landing-page .features {
    position: relative;
    padding: var(--lp-section-gap) 1.5rem;
    max-width: var(--lp-container);
    margin: 0 auto;
}

/* Features section background */
.landing-page .features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('/home/images/bg2.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -2;
}

.landing-page .features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 15, 0.85) 0%,
            rgba(10, 10, 15, 0.5) 50%,
            rgba(10, 10, 15, 0.85) 100%
        );
    z-index: -1;
}

.landing-page .features__header {
    text-align: center;
    margin-bottom: 3rem;
}

.landing-page .features__header .section__subtitle {
    margin: 0 auto;
}

/* Features Grid - Uniform 4-column */
.landing-page .features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Feature Card - Bold & Solid */
.landing-page .feature {
    background: #151520;
    border: 2px solid #2a2a3a;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.25s ease;
}

.landing-page .feature:hover {
    border-color: #3d3d52;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.landing-page .feature__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.landing-page .feature__icon svg {
    width: 24px;
    height: 24px;
}

/* Icon colors - vibrant */
.landing-page .feature__icon--cyan {
    background: #0e7490;
    color: #fff;
}

.landing-page .feature__icon--purple {
    background: #7c3aed;
    color: #fff;
}

.landing-page .feature__icon--blue {
    background: #2563eb;
    color: #fff;
}

.landing-page .feature__icon--green {
    background: #16a34a;
    color: #fff;
}

.landing-page .feature__icon--orange {
    background: #ea580c;
    color: #fff;
}

.landing-page .feature__icon--yellow {
    background: #ca8a04;
    color: #fff;
}

.landing-page .feature__icon--red {
    background: #dc2626;
    color: #fff;
}

.landing-page .feature__icon--pink {
    background: #db2777;
    color: #fff;
}

.landing-page .feature__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.landing-page .feature__desc {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-page .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .landing-page .features__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .landing-page .feature {
        padding: 1.5rem;
    }
}

/* ============================================
   Platform Callout (Desktop + Mobile)
   ============================================ */

.landing-page .platform-callout {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--lp-bg-primary);
    border-top: 1px solid var(--lp-border);
}

.landing-page .platform-callout__inner {
    max-width: 700px;
    margin: 0 auto;
}

.landing-page .platform-callout__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lp-text-primary);
    margin-bottom: 0.75rem;
}

.landing-page .platform-callout__text {
    font-size: 0.95rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

/* ============================================
   How It Works
   ============================================ */

.landing-page .how-it-works {
    padding: var(--lp-section-gap) 1.5rem;
    background: var(--lp-bg-secondary);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}

.landing-page .how-it-works__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: var(--lp-container);
    margin-left: auto;
    margin-right: auto;
}

.landing-page .how-it-works__header .section__subtitle {
    margin: 0 auto;
}

.landing-page .how-it-works__steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.landing-page .step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.landing-page .step__number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-orange) 100%);
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.landing-page .step__content {
    padding-top: 0.5rem;
}

.landing-page .step__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--lp-text-primary);
}

.landing-page .step__desc {
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

.landing-page .how-it-works__cta {
    text-align: center;
    margin-top: 4rem;
}

/* Showcase Items */
.landing-page .how-it-works__showcase {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.landing-page .showcase-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.landing-page .showcase-item--reverse {
    grid-template-columns: 1fr 1.2fr;
}

.landing-page .showcase-item--reverse .showcase-item__visual {
    order: 2;
}

.landing-page .showcase-item--reverse .showcase-item__content {
    order: 1;
}

.landing-page .showcase-item__visual {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    background: var(--lp-bg-card);
}

.landing-page .showcase-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    position: relative;
}

.landing-page .showcase-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.landing-page .showcase-placeholder__text {
    font-size: 0.9rem;
    color: var(--lp-text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-page .showcase-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--lp-text-primary);
}

.landing-page .showcase-item__desc {
    font-size: 1.05rem;
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .landing-page .showcase-item,
    .landing-page .showcase-item--reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .landing-page .showcase-item--reverse .showcase-item__visual,
    .landing-page .showcase-item--reverse .showcase-item__content {
        order: unset;
    }
    
    .landing-page .showcase-item__title {
        font-size: 1.25rem;
    }
    
    .landing-page .showcase-item__desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .landing-page .step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
    
    .landing-page .step__number {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   Footer
   ============================================ */

.landing-page .footer {
    padding: 4rem 1.5rem 2rem;
    background: var(--lp-bg-primary);
    border-top: 1px solid var(--lp-border);
}

.landing-page .footer__inner {
    max-width: var(--lp-container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.landing-page .footer__brand {
    max-width: 280px;
}

.landing-page .footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--lp-text-secondary);
}

.landing-page .footer__logo-icon {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}

.landing-page .footer__tagline {
    font-size: 0.9rem;
    color: var(--lp-text-muted);
    line-height: 1.6;
}

.landing-page .footer__links {
    display: flex;
    gap: 4rem;
}

.landing-page .footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-page .footer__col-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.landing-page .footer__link {
    font-size: 0.9rem;
    color: var(--lp-text-muted);
    transition: color 0.2s ease;
}

.landing-page .footer__link:hover {
    color: var(--lp-text-primary);
}

.landing-page .footer__bottom {
    max-width: var(--lp-container);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--lp-border);
    text-align: center;
}

.landing-page .footer__bottom p {
    font-size: 0.85rem;
    color: var(--lp-text-muted);
}

@media (max-width: 768px) {
    .landing-page .footer__inner {
        flex-direction: column;
        gap: 3rem;
    }
    
    .landing-page .footer__brand {
        max-width: 100%;
    }
    
    .landing-page .footer__links {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .landing-page .footer__links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ============================================
   Animations - All prefixed with lp-
   ============================================ */

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes lp-pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Logo ring rotation on hover */
.landing-page .nav__logo .logo-ring,
.landing-page .footer__logo svg g {
    transform-origin: 100px 100px; /* Center of the 200x200 viewBox */
    transition: transform 0.3s ease;
}

.landing-page .nav__logo:hover .logo-ring,
.landing-page .footer__logo:hover svg g {
    animation: lp-spin 20s linear infinite;
    transform-origin: 100px 100px; /* Center of the 200x200 viewBox */
}

@keyframes lp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smooth fade-in for sections */
.landing-page .features,
.landing-page .how-it-works {
    animation: lp-fadeInUp 0.8s ease-out;
}

@keyframes lp-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scrollbar - Scoped to landing page
   ============================================ */

.landing-page::-webkit-scrollbar {
    width: 8px;
}

.landing-page::-webkit-scrollbar-track {
    background: var(--lp-bg-primary);
}

.landing-page::-webkit-scrollbar-thumb {
    background: var(--lp-border);
    border-radius: 4px;
}

.landing-page::-webkit-scrollbar-thumb:hover {
    background: var(--lp-border-hover);
}

/* ============================================
   Selection - Scoped to landing page
   ============================================ */

.landing-page ::selection {
    background: var(--lp-accent);
    color: #fff;
}

.landing-page ::-moz-selection {
    background: var(--lp-accent);
    color: #fff;
}

/* ============================================
   DEMO CAROUSEL HEIGHT CONTROLS
   Adjust these to dial in each demo's height
   ============================================ */

.landing-page .lca-wrapper { height: 650px; }  /* Component Analyzer */
.landing-page .lsd-wrapper { height: 650px; }  /* Smart Sentences */
.landing-page .lcd-wrapper { height: 650px; }  /* Conjugator Practice */

/* ============================================
   Component Analyzer Demo Section
   ============================================ */

.landing-page .demo-section {
    padding: var(--lp-section-gap) 1.5rem;
    max-width: var(--lp-container);
    margin: 0 auto;
}

.landing-page .demo-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-page .demo-section__header .section__subtitle {
    margin: 0 auto;
}

.landing-page .demo-section__content {
    display: none; /* Hidden by default, shown on desktop */
}

.landing-page .demo-section__mobile-hint {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: var(--lp-text-muted);
    padding: 3rem 1rem;
    border: 1px dashed var(--lp-border);
    border-radius: 12px;
    background: var(--lp-bg-card);
}

/* Show on desktop (1024px+) */
@media (min-width: 1024px) {
    .landing-page .demo-section__content {
        display: block;
    }

    .landing-page .demo-section__mobile-hint {
        display: none;
    }
}

/* ============================================
   Demo Carousel (Desktop Only)
   ============================================ */

.landing-page .demo-carousel {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

@media (min-width: 1024px) {
    .landing-page .demo-carousel {
        display: flex;
    }
}

/* Arrow Buttons */
.landing-page .demo-carousel__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    color: rgba(6, 182, 212, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-page .demo-carousel__arrow:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
    transform: scale(1.05);
}

.landing-page .demo-carousel__arrow:active {
    transform: scale(0.98);
}

.landing-page .demo-carousel__arrow svg {
    width: 24px;
    height: 24px;
}

/* Track Container - overflow hidden for slide effect */
.landing-page .demo-carousel__track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

/* Track - holds all slides in a row */
.landing-page .demo-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual Slide */
.landing-page .demo-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}

/* Dots Navigation */
.landing-page .demo-carousel__dots {
    display: none; /* Hidden on mobile */
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .landing-page .demo-carousel__dots {
        display: flex;
    }
}

.landing-page .demo-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.landing-page .demo-carousel__dot:hover {
    background: rgba(6, 182, 212, 0.35);
    border-color: rgba(6, 182, 212, 0.5);
    transform: scale(1.15);
}

.landing-page .demo-carousel__dot.active {
    background: #22d3ee;
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    transform: scale(1.2);
}

/* Carousel Title Animation */
.landing-page .demo-carousel__title {
    position: relative;
    overflow: hidden;
}

.landing-page .demo-carousel__title-text {
    display: inline-block;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.landing-page .demo-carousel__title.animating-out .demo-carousel__title-text {
    transform: translateY(-10px);
    opacity: 0;
}

.landing-page .demo-carousel__title.animating-in .demo-carousel__title-text {
    animation: titleSlideIn 0.3s ease-out forwards;
}

@keyframes titleSlideIn {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Placeholder Demo Slides */
.landing-page .demo-placeholder {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03) 0%, rgba(6, 182, 212, 0.01) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-page .demo-placeholder__inner {
    text-align: center;
    padding: 3rem;
}

.landing-page .demo-placeholder__icon {
    font-size: 4rem;
    font-family: var(--lp-font-jp);
    color: rgba(6, 182, 212, 0.4);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.landing-page .demo-placeholder__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.landing-page .demo-placeholder__desc {
    font-size: 1rem;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   Landing Component Analyzer (LCA) Styles
   ============================================ */

.landing-page .lca-wrapper {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03) 0%, rgba(6, 182, 212, 0.01) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

/* Header */
.landing-page .lca-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), transparent);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.landing-page .lca-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-page .lca-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #22d3ee;
    font-family: var(--lp-font-jp);
}

.landing-page .lca-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.05em;
    margin: 0;
}

.landing-page .lca-subtitle {
    font-size: 0.75rem;
    color: rgba(6, 182, 212, 0.7);
    margin: 0;
    font-family: var(--lp-font-jp);
}

.landing-page .lca-legend {
    display: flex;
    gap: 1.25rem;
}

.landing-page .lca-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.8);
}

.landing-page .lca-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.landing-page .lca-dot.kangxi {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.landing-page .lca-dot.suggested {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.landing-page .lca-dot.manual {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

/* Main Content Layout */
.landing-page .lca-content {
    display: flex;
    height: 500px;
}

/* Left Panel */
.landing-page .lca-left {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(6, 182, 212, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.landing-page .lca-search-wrap {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.landing-page .lca-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(6, 182, 212, 0.5);
}

.landing-page .lca-search {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.landing-page .lca-search:focus {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
}

.landing-page .lca-search::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.landing-page .lca-kanji-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    background: rgba(6, 182, 212, 0.03);
}

.landing-page .lca-count-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(6, 182, 212, 0.6);
}

.landing-page .lca-count-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #22d3ee;
}

.landing-page .lca-kanji-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.landing-page .lca-kanji-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.landing-page .lca-kanji-item:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.15);
}

.landing-page .lca-kanji-item.selected {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.landing-page .lca-kanji-char {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f1f5f9;
    font-family: var(--lp-font-jp);
    width: 36px;
    text-align: center;
}

.landing-page .lca-kanji-info {
    flex: 1;
    min-width: 0;
}

.landing-page .lca-kanji-meaning {
    font-size: 0.8rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-page .lca-kanji-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.landing-page .lca-kanji-level {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(6, 182, 212, 0.7);
}

.landing-page .lca-kanji-badge {
    font-size: 0.6rem;
    color: #a78bfa;
}

/* Right Panel */
.landing-page .lca-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Target Display */
.landing-page .lca-target {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(6, 182, 212, 0.03);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    min-height: 80px;
}

.landing-page .lca-placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.9rem;
}

.landing-page .lca-target-kanji {
    font-size: 3rem;
    font-weight: 500;
    color: #f1f5f9;
    font-family: var(--lp-font-jp);
    line-height: 1;
}

.landing-page .lca-target-info {
    flex: 1;
}

.landing-page .lca-target-meaning {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.landing-page .lca-target-meta {
    display: flex;
    gap: 1rem;
}

.landing-page .lca-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-page .lca-meta-label {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.landing-page .lca-meta-value {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.landing-page .lca-meta-value.kangxi {
    color: #fbbf24;
    font-family: var(--lp-font-jp);
}

/* Section Labels */
.landing-page .lca-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(6, 182, 212, 0.8);
    background: rgba(6, 182, 212, 0.03);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.landing-page .lca-section-label svg {
    width: 14px;
    height: 14px;
}

.landing-page .lca-hint {
    margin-left: auto;
    font-weight: 400;
    color: rgba(148, 163, 184, 0.5);
    letter-spacing: 0;
}

/* Chips Container */
.landing-page .lca-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

/* Suggested Chips */
.landing-page .lca-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.landing-page .lca-chip:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

.landing-page .lca-chip.kangxi {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    cursor: default;
}

.landing-page .lca-chip.added {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.landing-page .lca-chip-char {
    font-size: 1rem;
    font-weight: 500;
    color: #f1f5f9;
    font-family: var(--lp-font-jp);
}

.landing-page .lca-chip-meaning {
    font-size: 0.75rem;
    color: #94a3b8;
}

.landing-page .lca-chip-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.landing-page .lca-chip-action {
    font-size: 0.85rem;
    color: rgba(6, 182, 212, 0.7);
    margin-left: auto;
}

.landing-page .lca-chip.kangxi .lca-chip-action,
.landing-page .lca-chip.added .lca-chip-action {
    color: #22c55e;
}

/* Association Chips */
.landing-page .lca-assoc-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 6px;
}

.landing-page .lca-assoc-chip.kangxi {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.landing-page .lca-chip-source {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.6);
    margin-left: auto;
}

.landing-page .lca-chip-remove {
    background: none;
    border: none;
    color: rgba(248, 113, 113, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.landing-page .lca-chip-remove:hover {
    color: #f87171;
}

/* Radical Grid */
.landing-page .lca-radical-grid {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1.25rem;
}

.landing-page .lca-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(148, 163, 184, 0.5);
}

.landing-page .lca-empty-icon {
    font-size: 3rem;
    color: rgba(6, 182, 212, 0.2);
    margin-bottom: 0.5rem;
    font-family: var(--lp-font-jp);
}

.landing-page .lca-empty p {
    font-size: 0.9rem;
    margin: 0;
}

.landing-page .lca-stroke-group {
    margin-bottom: 1rem;
}

.landing-page .lca-stroke-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.landing-page .lca-stroke-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(6, 182, 212, 0.8);
}

.landing-page .lca-stroke-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.5);
}

.landing-page .lca-radical-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.landing-page .lca-radical-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    min-width: 70px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.landing-page .lca-radical-item:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.25);
}

.landing-page .lca-radical-item.kangxi {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    cursor: default;
}

.landing-page .lca-radical-item.selected {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.landing-page .lca-radical-item.suggested {
    border-color: rgba(6, 182, 212, 0.3);
}

.landing-page .lca-rad-char {
    font-size: 1.25rem;
    color: #f1f5f9;
    font-family: var(--lp-font-jp);
    margin-bottom: 0.2rem;
}

.landing-page .lca-rad-meaning {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.7);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

/* CTA at bottom */
.landing-page .lca-cta {
    padding: 1rem 1.5rem 1.25rem;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent);
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    text-align: center;
}

.landing-page .lca-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--lp-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.landing-page .lca-cta-btn:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

.landing-page .lca-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* Scrollbar for kanji list and radical grid */
.landing-page .lca-kanji-list::-webkit-scrollbar,
.landing-page .lca-radical-grid::-webkit-scrollbar {
    width: 6px;
}

.landing-page .lca-kanji-list::-webkit-scrollbar-track,
.landing-page .lca-radical-grid::-webkit-scrollbar-track {
    background: transparent;
}

.landing-page .lca-kanji-list::-webkit-scrollbar-thumb,
.landing-page .lca-radical-grid::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.2);
    border-radius: 3px;
}

.landing-page .lca-kanji-list::-webkit-scrollbar-thumb:hover,
.landing-page .lca-radical-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* ============================================
   Landing Conjugator Demo (LCD) Styles
   Green/Emerald theme matching the real Conjugator Practice
   ============================================ */

.landing-page .lcd-wrapper {
    position: relative;
    background: linear-gradient(135deg, #0a100e 0%, #0f1512 50%, #0a100e 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    overflow: hidden;
}

/* Scanlines Overlay */
.landing-page .lcd-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(16, 185, 129, 0.015) 2px,
        rgba(16, 185, 129, 0.015) 4px
    );
    animation: lcd-scanline-drift 8s linear infinite;
}

@keyframes lcd-scanline-drift {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Header */
.landing-page .lcd-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
}

.landing-page .lcd-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-page .lcd-logo-glyph {
    font-size: 2rem;
    font-weight: 700;
    color: #10B981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    font-family: var(--lp-font-jp);
}

.landing-page .lcd-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.05em;
    margin: 0;
}

.landing-page .lcd-header-subtitle {
    font-size: 0.7rem;
    color: #10B981;
    opacity: 0.8;
    font-family: monospace;
    margin: 0;
}

.landing-page .lcd-header-legend {
    display: flex;
    gap: 1.25rem;
}

.landing-page .lcd-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.8);
}

.landing-page .lcd-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.landing-page .lcd-legend-dot.verb {
    background: linear-gradient(135deg, #10B981, #059669);
}

.landing-page .lcd-legend-dot.adj {
    background: linear-gradient(135deg, #6EE7B7, #34D399);
}

/* Content Area */
.landing-page .lcd-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
}

/* Section */
.landing-page .lcd-section {
    margin-bottom: 1.25rem;
}

.landing-page .lcd-section:last-child {
    margin-bottom: 0;
}

.landing-page .lcd-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-page .lcd-section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #10B981;
    border-radius: 2px;
}

/* Mode Cards */
.landing-page .lcd-mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.landing-page .lcd-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-page .lcd-mode-card:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.landing-page .lcd-mode-card.selected {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.landing-page .lcd-mode-card-icon {
    font-size: 1.75rem;
    font-weight: 600;
    color: #10B981;
    font-family: var(--lp-font-jp);
    margin-bottom: 0.35rem;
    line-height: 1;
}

.landing-page .lcd-mode-card.selected .lcd-mode-card-icon {
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.landing-page .lcd-mode-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.landing-page .lcd-mode-card-name-jp {
    font-size: 0.7rem;
    color: #64748b;
    font-family: var(--lp-font-jp);
    margin-top: 0.1rem;
}

.landing-page .lcd-mode-card-count {
    font-size: 0.65rem;
    color: rgba(16, 185, 129, 0.7);
    margin-top: 0.5rem;
    font-family: monospace;
}

/* Forms Grid */
.landing-page .lcd-forms-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.landing-page .lcd-form-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.landing-page .lcd-form-group-label {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(16, 185, 129, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
}

.landing-page .lcd-form-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.landing-page .lcd-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.landing-page .lcd-form-checkbox:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.landing-page .lcd-form-checkbox.checked {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.landing-page .lcd-checkbox-indicator {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    background: transparent;
    position: relative;
    transition: all 0.15s ease;
}

.landing-page .lcd-form-checkbox.checked .lcd-checkbox-indicator {
    background: #10B981;
    border-color: #10B981;
}

.landing-page .lcd-form-checkbox.checked .lcd-checkbox-indicator::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #0a100e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.landing-page .lcd-form-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.landing-page .lcd-form-checkbox.checked .lcd-form-label {
    color: #e2e8f0;
}

/* Bottom Row */
.landing-page .lcd-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.landing-page .lcd-section--pool,
.landing-page .lcd-section--answer {
    margin-bottom: 0;
}

/* Pool Options - inline side by side */
.landing-page .lcd-pool-options {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.landing-page .lcd-pool-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem 0.6rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lcd-pool-option:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.landing-page .lcd-pool-option.selected {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.landing-page .lcd-pool-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    background: transparent;
    position: relative;
    flex-shrink: 0;
}

.landing-page .lcd-pool-option.selected .lcd-pool-radio {
    border-color: #10B981;
}

.landing-page .lcd-pool-option.selected .lcd-pool-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
}

.landing-page .lcd-pool-label {
    font-size: 0.8rem;
    color: #94a3b8;
    flex: 1;
}

.landing-page .lcd-pool-option.selected .lcd-pool-label {
    color: #e2e8f0;
}

.landing-page .lcd-pool-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10B981;
    font-family: monospace;
}

/* Answer Mode Toggle */
.landing-page .lcd-answer-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landing-page .lcd-answer-btn {
    flex: 1 1 45%;
    padding: 0.5rem 0.6rem;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Adjective modes: stack all buttons vertically (full width each) */
.landing-page .lcd-wrapper.mode-i_adjective .lcd-pool-options,
.landing-page .lcd-wrapper.mode-na_adjective .lcd-pool-options {
    flex-direction: column;
}

.landing-page .lcd-wrapper.mode-i_adjective .lcd-answer-btn,
.landing-page .lcd-wrapper.mode-na_adjective .lcd-answer-btn {
    flex: 1 1 100%;
}

.landing-page .lcd-answer-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.landing-page .lcd-answer-btn.selected {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #e2e8f0;
}

/* CTA Footer */
.landing-page .lcd-cta {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    text-align: center;
}

.landing-page .lcd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--lp-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.landing-page .lcd-cta-btn:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

.landing-page .lcd-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Landing Smart Sentences Demo (LSD) Styles
   Teal/Cyan theme matching the real Smart Sentences
   ============================================ */

.landing-page .lsd-wrapper {
    position: relative;
    background: linear-gradient(135deg, #0a0f14 0%, #0f1419 50%, #0a0f14 100%);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 16px;
    overflow: visible;
    /* height controlled in DEMO CAROUSEL HEIGHT CONTROLS section */
}

/* Scanlines Overlay */
.landing-page .lsd-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(20, 184, 166, 0.012) 2px,
        rgba(20, 184, 166, 0.012) 4px
    );
    animation: lsd-scanline-drift 10s linear infinite;
}

@keyframes lsd-scanline-drift {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Layout - Two Column */
.landing-page .lsd-layout {
    display: flex;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Sidebar (Queue) */
.landing-page .lsd-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(20, 184, 166, 0.15);
    background: rgba(20, 184, 166, 0.02);
}

.landing-page .lsd-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

.landing-page .lsd-section-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #14b8a6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-page .lsd-section-label svg {
    opacity: 0.8;
}

.landing-page .lsd-queue-badge {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Queue List */
.landing-page .lsd-queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.landing-page .lsd-queue-item {
    position: relative;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.4rem;
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-queue-item:hover {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.2);
}

.landing-page .lsd-queue-item.selected {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.35);
}

.landing-page .lsd-queue-item-next {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.1);
}

/* Queue item header - badge + delete button */
.landing-page .lsd-queue-item-header {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

/* Show header only on NEXT item */
.landing-page .lsd-queue-item-next .lsd-queue-item-header {
    display: flex;
}

/* NEXT badge - inline, small, subtle */
.landing-page .lsd-queue-item-badge {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Non-NEXT items: position delete button absolutely in top right */
.landing-page .lsd-queue-item:not(.lsd-queue-item-next) {
    position: relative;
}

.landing-page .lsd-queue-item:not(.lsd-queue-item-next) .lsd-queue-item-header {
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.landing-page .lsd-queue-item:not(.lsd-queue-item-next) .lsd-queue-item-badge {
    display: none;
}

.landing-page .lsd-queue-item-word {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: var(--lp-font-jp);
}

.landing-page .lsd-queue-item-type {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.landing-page .lsd-queue-item-type.vocab {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.landing-page .lsd-queue-item-type.kanji {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.landing-page .lsd-queue-item-type.grammar {
    background: rgba(250, 204, 21, 0.2);
    color: #fde047;
}

.landing-page .lsd-queue-item-reading {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.landing-page .lsd-queue-item-sentence {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    font-family: var(--lp-font-jp);
}

/* Sidebar Footer */
.landing-page .lsd-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(20, 184, 166, 0.15);
}

.landing-page .lsd-queue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.landing-page .lsd-queue-btn.primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border: 1px solid #14b8a6;
    color: #fff;
}

.landing-page .lsd-queue-btn.primary:hover {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* Main Content Area */
.landing-page .lsd-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header */
.landing-page .lsd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.05), transparent);
}

.landing-page .lsd-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.landing-page .lsd-logo-glyph {
    font-size: 1.75rem;
    font-weight: 700;
    color: #14b8a6;
    text-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    font-family: var(--lp-font-jp);
}

.landing-page .lsd-header-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.05em;
    margin: 0;
}

.landing-page .lsd-header-subtitle {
    font-size: 0.65rem;
    color: #14b8a6;
    opacity: 0.8;
    font-family: monospace;
    margin: 0;
}

.landing-page .lsd-header-legend {
    display: flex;
    gap: 1rem;
}

.landing-page .lsd-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.8);
}

.landing-page .lsd-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.landing-page .lsd-legend-dot.target {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.landing-page .lsd-legend-dot.cataloged {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.landing-page .lsd-legend-dot.uncataloged {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

/* Content Area */
.landing-page .lsd-content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* Scanner HUD */
.landing-page .lsd-scanner-hud {
    position: relative;
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 2rem;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-page .lsd-scanner-hud.hidden {
    display: none !important;
}

.landing-page .lsd-scanner-hud.processing {
    border-color: rgba(20, 184, 166, 0.4);
}

.landing-page .lsd-scanner-hud.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.landing-page .lsd-scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
    opacity: 0;
}

.landing-page .lsd-scanner-hud.processing .lsd-scanner-beam {
    opacity: 1;
    animation: lsd-beam-scan 1.5s ease-in-out infinite;
}

@keyframes lsd-beam-scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.landing-page .lsd-scanner-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #14b8a6;
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.landing-page .lsd-scanner-hud.processing .lsd-scanner-corner {
    animation: lsd-corner-pulse 1.5s ease-in-out infinite;
}

@keyframes lsd-corner-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.landing-page .lsd-scanner-corner.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.landing-page .lsd-scanner-corner.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.landing-page .lsd-scanner-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.landing-page .lsd-scanner-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.landing-page .lsd-scanner-content {
    text-align: center;
}

.landing-page .lsd-scanner-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #14b8a6;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.landing-page .lsd-scanner-hud.success .lsd-scanner-status {
    color: #22c55e;
}

.landing-page .lsd-scanner-message {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.landing-page .lsd-scanner-progress {
    height: 3px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
}

.landing-page .lsd-scanner-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #2dd4bf);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Sentence Display */
.landing-page .lsd-sentence-display {
    transition: opacity 0.2s ease;
}

.landing-page .lsd-sentence-display.hidden {
    opacity: 0;
    pointer-events: none;
}

/* NOTE: Main .lsd-sentence-card styles are in the VERTICAL LAYOUT section below */

.landing-page .lsd-sentence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.landing-page .lsd-sentence-target {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-page .lsd-sentence-target-word {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f97316;
    font-family: var(--lp-font-jp);
}

.landing-page .lsd-sentence-target-type {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.landing-page .lsd-sentence-counter {
    font-size: 0.7rem;
    color: #64748b;
    font-family: monospace;
}

.landing-page .lsd-sentence-jp {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
    font-family: var(--lp-font-jp);
    margin-bottom: 0.6rem;
}

.landing-page .lsd-sentence-en {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Inline Pills */
.landing-page .lsd-pill {
    display: inline;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
    cursor: default;
}

.landing-page .lsd-pill--target {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border-bottom: 2px solid #f97316;
}

.landing-page .lsd-pill--cataloged {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    cursor: pointer;
}

.landing-page .lsd-pill--cataloged:hover {
    background: rgba(139, 92, 246, 0.25);
}

.landing-page .lsd-pill--uncataloged {
    background: rgba(34, 211, 238, 0.15);
    color: #67e8f9;
    cursor: pointer;
}

.landing-page .lsd-pill--uncataloged:hover {
    background: rgba(34, 211, 238, 0.25);
}

.landing-page .lsd-pill--grammar {
    background: rgba(250, 204, 21, 0.15);
    color: #fde047;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INLINE PILL TOOLTIPS - Matching production exactly
   Uses fixed positioning to escape overflow:hidden containers
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .inline-pill-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(20, 20, 24, 0.98), rgba(12, 12, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 99999;
    font-size: 0.8rem;
}

/* Tooltip arrow - points down by default (tooltip above pill) */
.landing-page .inline-pill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(20, 20, 24, 0.98);
}

/* Arrow points up when tooltip is below pill */
.landing-page .inline-pill-tooltip.tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(20, 20, 24, 0.98);
}

/* Show tooltip on hover (fallback) */
.landing-page .inline-pill:hover .inline-pill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PORTAL TOOLTIPS - Rendered in document.body to escape all overflow constraints
   ═══════════════════════════════════════════════════════════════════════════════ */

.inline-pill-tooltip-portal .inline-pill-tooltip-reading {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

.inline-pill-tooltip-portal .inline-pill-tooltip-meaning {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inline-pill-tooltip-portal .inline-pill-tooltip-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-top: 0.125rem;
}

.inline-pill-tooltip-portal .inline-pill-tooltip-type--kanji {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.2);
}
.inline-pill-tooltip-portal .inline-pill-tooltip-type--vocab {
    color: #10B981;
    background: rgba(16, 185, 129, 0.2);
}
.inline-pill-tooltip-portal .inline-pill-tooltip-type--grammar {
    color: #FACC15;
    background: rgba(250, 204, 21, 0.2);
}

.inline-pill-tooltip-portal .inline-pill-tooltip-new {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.2);
}

.inline-pill-tooltip-portal .inline-pill-tooltip-pos {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

/* Tooltip reading */
.landing-page .inline-pill-tooltip-reading {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.01em;
}

/* Tooltip meaning */
.landing-page .inline-pill-tooltip-meaning {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hint text style */
.landing-page .inline-pill-tooltip-meaning--hint {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
}

/* Type tag base */
.landing-page .inline-pill-tooltip-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-top: 0.125rem;
}

/* Type tag colors - matching mode configs */
.landing-page .inline-pill-tooltip-type--kanji {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.2);
}
.landing-page .inline-pill-tooltip-type--vocab {
    color: #10B981;
    background: rgba(16, 185, 129, 0.2);
}
.landing-page .inline-pill-tooltip-type--grammar {
    color: #FACC15;
    background: rgba(250, 204, 21, 0.2);
}
.landing-page .inline-pill-tooltip-type--names {
    color: #EC4899;
    background: rgba(236, 72, 153, 0.2);
}
.landing-page .inline-pill-tooltip-type--radicals {
    color: #C084FC;
    background: rgba(192, 132, 252, 0.2);
}

/* Conjugation indicator */
.landing-page .inline-pill-tooltip-conj {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Part of speech label */
.landing-page .inline-pill-tooltip-pos {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

/* NEW label for uncataloged words */
.landing-page .inline-pill-tooltip-new {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-top: 0.125rem;
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.2);
}

/* Section */
.landing-page .lsd-section {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landing-page .lsd-section.hidden {
    display: none !important;
}

/* Presets Grid - Matching prod layout */
.landing-page .lsd-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 0.5rem;
}

.landing-page .lsd-preset-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #151c24;
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
}

.landing-page .lsd-preset-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.landing-page .lsd-preset-card:hover {
    border-color: rgba(20, 184, 166, 0.25);
    transform: translateY(-2px);
}

.landing-page .lsd-preset-card:hover::before {
    opacity: 1;
}

.landing-page .lsd-preset-card.active {
    border-color: #14b8a6;
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.2);
}

.landing-page .lsd-preset-card.active::before {
    opacity: 1;
}

/* Featured i+1 preset - gradient border */
.landing-page .lsd-preset-featured {
    grid-column: 1 / -1;
    border: 2px solid transparent;
    background:
        linear-gradient(#151c24, #151c24) padding-box,
        linear-gradient(135deg, #06b6d4, #14b8a6, #22c55e) border-box;
}

.landing-page .lsd-preset-featured::before {
    background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.1) 0%,
        rgba(20, 184, 166, 0.06) 50%,
        rgba(34, 197, 94, 0.04) 100%);
    opacity: 1;
}

.landing-page .lsd-preset-featured.active {
    box-shadow:
        0 0 35px rgba(6, 182, 212, 0.35),
        0 0 70px rgba(20, 184, 166, 0.15);
}

.landing-page .lsd-preset-featured .lsd-preset-name {
    font-size: 1rem;
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-page .lsd-preset-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.landing-page .lsd-preset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.landing-page .lsd-preset-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-page .lsd-preset-featured .lsd-preset-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(20, 184, 166, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 6px;
}

.landing-page .lsd-preset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.landing-page .lsd-preset-check {
    margin-left: auto;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    border: 2px solid rgba(20, 184, 166, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.landing-page .lsd-preset-card.active .lsd-preset-check {
    background: #14b8a6;
    border-color: #14b8a6;
}

.landing-page .lsd-preset-check svg {
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.landing-page .lsd-preset-card.active .lsd-preset-check svg {
    opacity: 1;
}

.landing-page .lsd-preset-desc {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Generate Button */
.landing-page .lsd-generate-section {
    margin-top: auto;
    flex-shrink: 0;
}

.landing-page .lsd-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border: 1px solid #14b8a6;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.landing-page .lsd-generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.landing-page .lsd-generate-btn:hover::before {
    transform: translateX(100%);
}

.landing-page .lsd-generate-btn:hover {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.3);
}

.landing-page .lsd-generate-btn:active {
    transform: translateY(0);
}

.landing-page .lsd-generate-btn--cta {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
}

.landing-page .lsd-generate-btn--cta:hover {
    background: var(--lp-accent-hover);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

/* Auto Mode Indicator (replaces close button in demo) */
.landing-page .lsd-auto-mode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.landing-page .lsd-auto-mode-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 12px rgba(34, 197, 94, 0.5);
    animation: lsd-led-pulse 2s ease-in-out infinite;
}

@keyframes lsd-led-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #22c55e, 0 0 12px rgba(34, 197, 94, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 4px #22c55e, 0 0 6px rgba(34, 197, 94, 0.3);
    }
}

.landing-page .lsd-auto-mode-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #14b8a6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUEUE ITEMS - Matching production Smart Sentences layout
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .lsd-queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Custom scrollbar for queue */
.landing-page .lsd-queue-list::-webkit-scrollbar {
    width: 5px;
}

.landing-page .lsd-queue-list::-webkit-scrollbar-track {
    background: transparent;
}

.landing-page .lsd-queue-list::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.25);
    border-radius: 3px;
}

.landing-page .lsd-queue-list::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Queue Item Card */
.landing-page .lsd-queue-item {
    position: relative;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: #151c24;
    border: 1px solid rgba(20, 184, 166, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.landing-page .lsd-queue-item:hover {
    border-color: rgba(20, 184, 166, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Delete button */
.landing-page .lsd-queue-item-delete {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.15s ease;
    margin-left: auto;
}

.landing-page .lsd-queue-item:hover .lsd-queue-item-delete {
    opacity: 1;
}

.landing-page .lsd-queue-item-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.landing-page .lsd-queue-item-delete svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Japanese sentence */
.landing-page .lsd-queue-item-jp {
    font-size: 1rem;
    color: #e2e8f0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", sans-serif;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

/* Footer with English meaning + TTS button */
.landing-page .lsd-queue-item-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

/* English meaning */
.landing-page .lsd-queue-item-en {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
    flex: 1;
}

/* TTS Play Button */
.landing-page .lsd-queue-item-tts {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, 0.12);
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.15s ease;
}

.landing-page .lsd-queue-item-tts .lsd-tts-icon-loading {
    display: none;
}

.landing-page .lsd-queue-item:hover .lsd-queue-item-tts {
    opacity: 1;
}

.landing-page .lsd-queue-item-tts:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: #14b8a6;
    color: #14b8a6;
}

/* Loading state - spinning icon */
.landing-page .lsd-queue-item-tts.loading {
    opacity: 1;
    color: #14b8a6;
    border-color: #14b8a6;
}

.landing-page .lsd-queue-item-tts.loading .lsd-tts-icon-speaker {
    display: none;
}

.landing-page .lsd-queue-item-tts.loading .lsd-tts-icon-loading {
    display: block;
    animation: lsd-tts-spin 1s linear infinite;
}

@keyframes lsd-tts-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Playing state - pulsing glow */
.landing-page .lsd-queue-item-tts.playing {
    opacity: 1;
    color: #2dd4bf;
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.15);
    animation: lsd-tts-pulse 1s ease-in-out infinite;
}

@keyframes lsd-tts-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.3); }
    50% { box-shadow: 0 0 8px 2px rgba(20, 184, 166, 0.3); }
}

/* Grade indicators (i+1, i+2) */
.landing-page .lsd-queue-item[data-grade="i+1"] {
    border-left: 3px solid #fbbf24;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.04), transparent 50%);
}

.landing-page .lsd-queue-item[data-grade="i+2"] {
    border-left: 3px solid #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.04), transparent 50%);
}

/* Queue item removal animation */
.landing-page .lsd-queue-item.removing {
    animation: lsd-item-remove 0.25s ease-out forwards;
}

@keyframes lsd-item-remove {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
        max-height: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INLINE PILLS - Tokenized words in queue items
   Matching production Smart Sentences tokenization colors
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Base pill style - cataloged words (in user's study) - purple/indigo */
.landing-page .lsd-queue-item-jp .inline-pill {
    position: relative;
    cursor: pointer;
    color: #A5B4FC;  /* indigo-300 - cataloged items */
    border-bottom: 2px solid rgba(129, 140, 248, 0.5);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.landing-page .lsd-queue-item-jp .inline-pill:hover {
    background-color: rgba(99, 102, 241, 0.15);
    color: #C7D2FE;  /* indigo-200 */
}

/* Uncataloged words - NOT in user's study yet (cyan = "new word!") */
.landing-page .lsd-queue-item-jp .inline-pill--uncataloged {
    color: #22D3EE;
    border-bottom: 2px solid rgba(34, 211, 238, 0.5);
}

.landing-page .lsd-queue-item-jp .inline-pill--uncataloged:hover {
    background-color: rgba(34, 211, 238, 0.12);
    color: #67E8F9;
}

/* Grammar patterns - fixed-form expressions (yellow) */
.landing-page .lsd-queue-item-jp .inline-pill--grammar {
    color: #FACC15;  /* yellow */
    border-bottom: 2px solid rgba(250, 204, 21, 0.6);
    cursor: help;
}

.landing-page .lsd-queue-item-jp .inline-pill--grammar:hover {
    background-color: rgba(250, 204, 21, 0.15);
    color: #FDE047;
}

/* Sidebar header */
.landing-page .lsd-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.12);
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.06), transparent);
}

.landing-page .lsd-sidebar-header .lsd-section-title {
    margin-bottom: 0;
}

/* Queue count badge */
.landing-page .lsd-queue-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: #151c24;
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.landing-page .lsd-queue-count {
    font-weight: 700;
    font-size: 0.9rem;
    color: #14b8a6;
    font-family: monospace;
}

/* Hidden utility */
.landing-page .hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SCANNER HUD - Loading state for generation
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .lsd-scanner-hud {
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), #0f1419);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.3);
}

.landing-page .lsd-scanner-hud.hidden {
    display: none !important;
}

/* Scanner beam animation */
.landing-page .lsd-scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #14b8a6,
        #2dd4bf,
        #14b8a6,
        transparent
    );
    opacity: 0.5;
    animation: lsd-scan-sweep 2s ease-in-out infinite;
}

@keyframes lsd-scan-sweep {
    0% { top: 0; }
    50% { top: calc(100% - 2px); }
    100% { top: 0; }
}

/* Pulsing corners */
.landing-page .lsd-scanner-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #14b8a6;
    animation: lsd-corner-pulse 1.5s ease-in-out infinite;
}

.landing-page .lsd-scanner-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.landing-page .lsd-scanner-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.landing-page .lsd-scanner-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.landing-page .lsd-scanner-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

@keyframes lsd-corner-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Scanner content */
.landing-page .lsd-scanner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.landing-page .lsd-scanner-status {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #14b8a6;
    margin-bottom: 0.875rem;
}

.landing-page .lsd-scanner-message {
    font-size: 1.05rem;
    color: #2dd4bf;
    min-height: 1.5em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
    line-height: 1.6;
}

.landing-page .lsd-scanner-timer {
    font-size: 0.7rem;
    font-family: monospace;
    color: #64748b;
    opacity: 0.7;
}

.landing-page .lsd-scanner-progress {
    margin-top: 1.25rem;
    height: 4px;
    border-radius: 2px;
    background: #0a0f14;
    overflow: hidden;
}

.landing-page .lsd-scanner-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Scanner success state */
.landing-page .lsd-scanner-hud.success {
    border-color: #22c55e;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.landing-page .lsd-scanner-hud.success .lsd-scanner-status {
    color: #22c55e;
}

.landing-page .lsd-scanner-hud.success .lsd-scanner-message {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.landing-page .lsd-scanner-hud.success .lsd-scanner-beam {
    display: none;
}

.landing-page .lsd-scanner-hud.success .lsd-scanner-corner {
    border-color: #22c55e;
    animation: none;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SIDEBAR FOOTER & QUEUE BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .lsd-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(20, 184, 166, 0.12);
    background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.03));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-page .lsd-queue-btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 184, 166, 0.25);
    background: #151c24;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.landing-page .lsd-queue-btn:hover {
    background: #0f1419;
    border-color: #14b8a6;
}

.landing-page .lsd-queue-btn.primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-color: #14b8a6;
    color: white;
}

.landing-page .lsd-queue-btn.primary:hover {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.landing-page .lsd-queue-btn.secondary {
    background: transparent;
    color: #94a3b8;
}

.landing-page .lsd-queue-btn.secondary:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LSD SECTION LABEL (for consistency)
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .lsd-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #14b8a6;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.landing-page .lsd-section-label svg {
    width: 1rem;
    height: 1rem;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LSD VERTICAL LAYOUT (New Design - No Preset Selection)
   ═══════════════════════════════════════════════════════════════════════════════ */

.landing-page .lsd-wrapper--vertical {
    /* height comes from .lsd-wrapper (650px) */
}

.landing-page .lsd-layout--vertical {
    height: 100%;
}

.landing-page .lsd-main--vertical {
    height: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Header styling for vertical layout */
.landing-page .lsd-main--vertical > .lsd-header {
    height: 60px;
    flex-shrink: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    margin-bottom: 0;
}

/* Content area - shrinks to fit content, history expands */
.landing-page .lsd-content--vertical {
    flex: 0 0 auto;
    padding: 0.75rem 0 1rem 0;
    overflow: visible;
}

/* Scanner HUD in vertical layout */
.landing-page .lsd-content--vertical .lsd-scanner-hud {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

/* Generate section in vertical layout - just wraps the button */
.landing-page .lsd-content--vertical .lsd-generate-section {
    width: 100%;
    padding: 0.5rem 0;
}

.landing-page .lsd-generate-section.hidden,
.landing-page .lsd-content--vertical .lsd-generate-section.hidden {
    display: none;
}

/* Sentence Card Styles */
.landing-page .lsd-sentence-card {
    width: 100%;
    min-height: 210px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, rgba(20, 184, 166, 0.02) 100%);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    /* margin-bottom: 1rem; */
}

.landing-page .lsd-sentence-card.hidden {
    display: none;
}

.landing-page .lsd-sentence-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

/* Strategy Badge */
.landing-page .lsd-sentence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    width: fit-content;
}

.landing-page .lsd-sentence-badge--weakest {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.landing-page .lsd-sentence-badge--recent_fails {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.landing-page .lsd-sentence-badge--longest_interval {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.landing-page .lsd-sentence-badge--mix_modes {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.landing-page .lsd-badge-icon {
    font-size: 0.85rem;
}

/* Sentence Japanese Text */
.landing-page .lsd-sentence-jp {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.6;
    font-family: var(--lp-font-jp);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Sentence English Translation */
.landing-page .lsd-sentence-en {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Target Pill Info */
.landing-page .lsd-sentence-target {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.landing-page .lsd-target-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
}

.landing-page .lsd-target-pill--weak {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.landing-page .lsd-target-pill--fail {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.landing-page .lsd-target-pill--due {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.landing-page .lsd-target-status {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sentence Actions */
.landing-page .lsd-sentence-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.landing-page .lsd-sentence-retry,
.landing-page .lsd-sentence-tts {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-sentence-retry:hover,
.landing-page .lsd-sentence-tts:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.landing-page .lsd-sentence-accept {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-sentence-accept:hover {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* Cancel Button in Scanner HUD */
.landing-page .lsd-cancel-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
}

/* History Section - takes remaining space */
.landing-page .lsd-history-section {
    border-top: 1px solid rgba(20, 184, 166, 0.12);
    /* margin-top: 0.75rem; */
    padding-top: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.landing-page .lsd-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.landing-page .lsd-history-header .lsd-section-label {
    margin-bottom: 0;
    font-size: 0.65rem;
}

.landing-page .lsd-history-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-page .lsd-font-btn {
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-font-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.landing-page .lsd-history-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 0 0.35rem;
}

/* History List - fills remaining space in section */
.landing-page .lsd-history-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 184, 166, 0.3) transparent;
    min-height: 0;
}

.landing-page .lsd-history-list::-webkit-scrollbar {
    width: 5px;
}

.landing-page .lsd-history-list::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 3px;
}

/* History Empty State */
.landing-page .lsd-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.landing-page .lsd-history-empty-icon {
    font-size: 1.25rem;
    opacity: 0.4;
    margin-bottom: 0.35rem;
}

.landing-page .lsd-history-empty-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.landing-page .lsd-history-empty-hint {
    font-size: 0.7rem;
    color: #475569;
    margin-top: 0.2rem;
}

/* History Item */
.landing-page .lsd-history-item {
    position: relative;
    padding: 0.5rem 0.65rem;
    padding-right: 2rem;
    background: rgba(20, 184, 166, 0.03);
    border: 1px solid rgba(20, 184, 166, 0.08);
    border-radius: 6px;
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-page .lsd-history-item:hover {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.15);
}

.landing-page .lsd-history-target {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    margin-bottom: 0.25rem;
}

.landing-page .lsd-history-item-text {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-family: var(--lp-font-jp);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.landing-page .lsd-history-item-meaning {
    font-size: 0.7rem;
    color: #64748b;
}

.landing-page .lsd-history-tts {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
}

.landing-page .lsd-history-item:hover .lsd-history-tts {
    opacity: 1;
}

.landing-page .lsd-history-tts:hover {
    color: #14b8a6;
}

/* History CTA Footer */
.landing-page .lsd-cta {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.08), transparent);
    border-top: 1px solid rgba(20, 184, 166, 0.15);
    text-align: center;
    margin-top: 0.5rem;
}

.landing-page .lsd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--lp-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.landing-page .lsd-cta-btn:hover {
    background: var(--lp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--lp-accent-glow);
}

.landing-page .lsd-cta-btn svg {
    width: 18px;
    height: 18px;
}

.landing-page .lsd-queue-btn:disabled:hover {
    background: transparent;
    border-color: rgba(20, 184, 166, 0.15);
    color: #64748b;
}

/* Inline pills in vertical layout sentence card - match production sentence-card.js */
.landing-page .lsd-sentence-jp .inline-pill,
.landing-page .lsd-history-item-text .inline-pill {
    color: #A5B4FC; /* indigo-300 - cataloged items */
    border-bottom: 2px solid rgba(129, 140, 248, 0.5);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.landing-page .lsd-sentence-jp .inline-pill:hover,
.landing-page .lsd-history-item-text .inline-pill:hover {
    background-color: rgba(99, 102, 241, 0.15);
    color: #C7D2FE; /* indigo-200 */
}

/* Uncataloged words - NOT in user's study yet (cyan = "new word!") */
.landing-page .lsd-sentence-jp .inline-pill--uncataloged,
.landing-page .lsd-history-item-text .inline-pill--uncataloged {
    color: #22D3EE; /* cyan-400 */
    border-bottom-color: rgba(34, 211, 238, 0.5);
}

.landing-page .lsd-sentence-jp .inline-pill--uncataloged:hover,
.landing-page .lsd-history-item-text .inline-pill--uncataloged:hover {
    background-color: rgba(34, 211, 238, 0.12);
    color: #67E8F9; /* cyan-300 */
}

/* Grammar patterns - fixed-form expressions (yellow) */
.landing-page .lsd-sentence-jp .inline-pill--grammar,
.landing-page .lsd-history-item-text .inline-pill--grammar {
    color: #FACC15; /* yellow-400 */
    border-bottom-color: rgba(250, 204, 21, 0.6);
}

.landing-page .lsd-sentence-jp .inline-pill--grammar:hover,
.landing-page .lsd-history-item-text .inline-pill--grammar:hover {
    background-color: rgba(250, 204, 21, 0.15);
    color: #FDE047; /* yellow-300 */
}
