/* ===================================================
   Lunian Assistant — page-specific styles
   =================================================== */

.hero--assistant {
    padding-bottom: 88px;
}

/* ===================================================
   Footer brand lockup
   =================================================== */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__parent {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.footer__parent:hover {
    opacity: 1;
}

/* ===================================================
   Categories showcase
   =================================================== */
.categories-section {
    overflow: hidden;
}

.cat-showcase {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

/* Fixed-height container — no layout shifts */
.cat-slides {
    position: relative;
    height: 420px;
}

/* Individual slide — always absolute, never shifts layout */
.cat-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 40px 48px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

.cat-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cat-slide.leaving {
    opacity: 0;
    transform: translateX(-24px);
    pointer-events: none;
}

/* Left: text content */
.cat-slide__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cat-slide__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: color-mix(in srgb, var(--cat-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color) 28%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-color);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.cat-slide__name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 14px;
}

.cat-slide__chip {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 9px 16px;
    margin-bottom: 14px;
    max-width: 100%;
}

.cat-slide__chip svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.cat-slide__chip span {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.cat-slide__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* Right: phone screenshot */
.cat-slide__phone {
    flex-shrink: 0;
    width: 180px;
    position: relative;
}

.cat-slide__phone img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top;
    border-radius: 28px;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border: 1px solid var(--border-subtle);
}

/* Dots */
.cat-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.cat-dot.active {
    width: 24px;
    background-color: var(--primary);
}

/* Progress bar */
.cat-progress {
    height: 2px;
    background-color: var(--border-subtle);
    border-radius: var(--radius-full);
    margin-top: 16px;
    overflow: hidden;
}

.cat-progress__bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    width: 0%;
}

/* ===================================================
   Tech pills — movidos a css/styles.css (global)
   =================================================== */

/* ===================================================
   Responsive — tablet
   =================================================== */
@media (max-width: 760px) {
    .cat-slides {
        height: 520px;
    }

    .cat-slide {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 28px 24px;
    }

    .cat-slide__content {
        align-items: center;
    }

    .cat-slide__chip {
        justify-content: center;
    }

    .cat-slide__phone {
        width: 130px;
    }

    .cat-slide__phone img {
        height: 240px;
    }

    .cat-slide__name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cat-slides {
        height: 580px;
    }

    .cat-slide__phone img {
        height: 200px;
    }
}

/* ===================================================
   Email subscription form
   =================================================== */
.email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.email-form--centered {
    margin-top: 28px;
    margin-bottom: 0;
}

.email-form__input {
    font-family: var(--font);
    font-size: 15px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text);
    outline: none;
    width: 260px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-form__input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.email-form__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

@media (max-width: 640px) {
    .email-form {
        flex-direction: column;
        align-items: center;
    }

    .email-form__input {
        width: 100%;
        max-width: 320px;
    }
}

.email-form__success {
    font-size: 15px;
    color: var(--text);
    background-color: var(--accent-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
