html {
    font-size: 18px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

[x-cloak] {
    display: none !important;
}

.section-gradient {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.08), transparent 24%);
}

.glass-card {
    background: rgba(24, 24, 27, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(228, 228, 231, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(165, 180, 252, 0.95);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 0.85rem;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #fff;
}

.section-copy {
    margin-top: 1rem;
    color: rgba(161, 161, 170, 1);
    font-size: 1.03rem;
    line-height: 1.75;
}

/* ── Hero preview ── */

.hero-preview-shell {
    position: relative;
}

.preview-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1.08fr;
    gap: 1rem;
    align-items: center;
}

.preview-card {
    border-radius: 1.75rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.preview-card-raw {
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.95), rgba(24, 24, 27, 0.92));
}

.preview-card-doc {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 245, 0.96));
    color: #18181b;
}

.preview-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.preview-label {
    color: rgba(244, 244, 245, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-label-doc {
    color: rgba(79, 70, 229, 0.9);
}

.preview-meta {
    font-size: 0.76rem;
    color: rgba(113, 113, 122, 1);
}

.waveform-scene {
    margin-top: 1rem;
    padding: 1.2rem 0;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.8)),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.waveform-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 3.5rem;
}

.waveform-bar {
    width: 4px;
    border-radius: 9999px;
    background: rgba(129, 140, 248, 0.8);
    animation: waveform-bounce 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 90%; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 75%; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 50%; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 35%; animation-delay: 0.6s; }

@keyframes waveform-bounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.raw-line {
    color: rgba(161, 161, 170, 0.98);
    font-size: 0.87rem;
    line-height: 1.75;
}

.raw-line-strong {
    color: rgba(244, 244, 245, 0.95);
}

.preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: rgba(165, 180, 252, 1);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

.doc-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #111827;
}

.doc-subtitle {
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.doc-section {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(39, 39, 42, 0.08);
}

.doc-section-title {
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-bullets {
    margin: 0.55rem 0 0;
    padding-left: 1rem;
    color: #27272a;
    font-size: 0.87rem;
    line-height: 1.6;
}

[dir="rtl"] .doc-bullets {
    padding-left: 0;
    padding-right: 1rem;
}

.doc-footer-note {
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, 0.08);
    color: #4338ca;
    font-size: 0.83rem;
    font-weight: 600;
}

/* ── Use cases - Tabs ── */

.fan-tabs {
    max-width: 60rem;
    margin-inline: auto;
}

/* Tab bar */
.fan-tabbar {
    display: flex;
    gap: 0;
    border-radius: 1rem 1rem 0 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    overflow: hidden;
}

.fan-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0.4rem;
    border: none;
    background: transparent;
    color: rgba(161, 161, 170, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    position: relative;
}

.fan-tab + .fan-tab::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    transition: opacity 0.22s ease;
}

.fan-tab:hover {
    color: rgba(228, 228, 231, 0.95);
    background: rgba(255, 255, 255, 0.04);
}

.fan-tab-active {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
}

.fan-tab-active::before,
.fan-tab-active + .fan-tab::before {
    opacity: 0;
}

/* Indicator bar under active tab */
.fan-tab-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 20%;
    width: 60%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: rgba(129, 140, 248, 0.8);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.fan-tab-active .fan-tab-icon {
    color: rgba(165, 180, 252, 1);
}

.fan-tab-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.22s ease;
}

.fan-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Panel */
.fan-panel {
    position: relative;
    padding: 1.8rem 2.2rem;
    border-radius: 0 0 1.25rem 1.25rem;
    background: linear-gradient(170deg, rgba(99, 102, 241, 0.05) 0%, rgba(24, 24, 27, 0.98) 45%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(129, 140, 248, 0.15);
    min-height: 8.5rem;
    overflow: hidden;
}

.fan-panel-glow {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.5), transparent);
    pointer-events: none;
}

[dir="rtl"] .fan-panel-glow {
    background: linear-gradient(-90deg, rgba(129, 140, 248, 0.5), transparent);
}

.fan-panel-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.fan-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: rgba(165, 180, 252, 1);
    flex-shrink: 0;
}

.fan-panel-title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.fan-panel-tagline {
    margin-top: 0.2rem;
    color: rgba(165, 180, 252, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.fan-panel-text {
    margin-top: 0.5rem;
    color: rgba(161, 161, 170, 0.95);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Transition classes */
.fan-panel-enter {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* ── Tabs - Tablet ── */
@media (max-width: 900px) {
    .fan-tab-label {
        font-size: 0.76rem;
    }

    .fan-tab {
        gap: 0.35rem;
        padding: 0.8rem 0.3rem;
    }
}

/* ── Tabs - Mobile ── */
@media (max-width: 640px) {
    .fan-tabbar {
        flex-wrap: wrap;
        border-radius: 0.875rem 0.875rem 0 0;
    }

    .fan-tab {
        flex: 1 0 calc(25% - 0px);
        padding: 0.7rem 0.3rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    /* Hide separators on wrap */
    .fan-tab::before {
        display: none;
    }

    .fan-panel {
        padding: 1.3rem 1.1rem;
    }

    .fan-panel-icon {
        width: 2.4rem;
        height: 2.4rem;
    }

    .fan-panel-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .fan-tab {
        flex: 1 0 calc(33.33% - 0px);
    }

    .fan-tab-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ── How it works ── */

.process-card {
    background: rgba(30, 30, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 1.6rem;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    color: rgba(199, 210, 254, 1);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.process-title {
    margin-top: 1.1rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.process-text {
    margin-top: 0.65rem;
    color: rgba(161, 161, 170, 1);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ── Testimonial ── */

.testimonial-spotlight {
    border-radius: 2rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(33, 33, 37, 0.9), rgba(21, 21, 24, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.testimonial-quote-lg {
    margin-top: 1rem;
    color: rgba(244, 244, 245, 0.96);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.45;
    font-style: normal;
    letter-spacing: -0.03em;
}

.testimonial-author {
    margin-top: 1rem;
    color: rgba(165, 180, 252, 0.94);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ── Pricing ── */

.pricing-card {
    position: relative;
    border-radius: 1.65rem;
    padding: 1.45rem;
    background: linear-gradient(180deg, rgba(30, 30, 34, 0.95), rgba(20, 20, 23, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-height: 21rem;
}

.pricing-card-pro {
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.15);
    background: linear-gradient(180deg, rgba(30, 30, 34, 0.95), rgba(20, 20, 23, 0.98)),
                linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
    transform: translateY(-4px);
}

.pricing-card-institution {
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.1);
}

.pricing-badge {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.14);
    color: rgba(199, 210, 254, 1);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-name {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
}

.pricing-price {
    margin-top: 0.7rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pricing-description {
    margin-top: 0.65rem;
    color: rgba(161, 161, 170, 1);
    font-size: 0.92rem;
    line-height: 1.65;
}

.pricing-list {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.pricing-list li {
    position: relative;
    padding-left: 1.2rem;
    color: rgba(228, 228, 231, 0.95);
    font-size: 0.88rem;
    line-height: 1.65;
}

.pricing-list li + li {
    margin-top: 0.55rem;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    background: rgba(129, 140, 248, 0.9);
}

[dir="rtl"] .pricing-list li {
    padding-left: 0;
    padding-right: 1.2rem;
}

[dir="rtl"] .pricing-list li::before {
    left: auto;
    right: 0;
}

.pricing-footnote {
    color: rgba(161, 161, 170, 1);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ── CTA final ── */

.final-cta-card {
    border-radius: 2rem;
    padding: 2.2rem 1.4rem;
    background: linear-gradient(180deg, rgba(30, 30, 34, 0.92), rgba(18, 18, 21, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── FAQ ── */

.faq-arrow {
    transition: transform 0.2s ease;
}

.faq-open .faq-arrow {
    transform: rotate(180deg);
}

/* ── Animations ── */

@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-gold {
    animation: pulse-gold 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Toast ── */

@keyframes toast-slide-in-ltr {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-slide-in-rtl {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-enter {
    animation: toast-slide-in-ltr 0.3s ease forwards;
}

html[dir="rtl"] .toast-enter {
    animation: toast-slide-in-rtl 0.3s ease forwards;
}

/* ── Audio Player Bar ── */

.likta-player-bar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06), 0 -1px 4px rgba(0, 0, 0, 0.03);
}

/* Inline wave bars for playing indicator on doc cards */
@keyframes likta-wave {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.likta-wave-bar {
    height: 4px;
    animation: likta-wave 0.8s ease-in-out infinite;
}

/* Player bar knob */
.likta-player-bar .group:hover .knob {
    opacity: 1;
}

/* ── App pages ── */

.app-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(228, 228, 231, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 212, 216, 0.6);
}

/* ── Recorder ── */

@keyframes likta-rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.likta-rec-pulse {
    animation: likta-rec-pulse 1.5s ease-in-out infinite;
}

@keyframes likta-sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes likta-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile recorder sheet entrance */
.lg\:hidden [x-data="audioRecorder()"] > template + div > .absolute {
    animation: likta-fade-in 0.2s ease;
}

.lg\:hidden [x-data="audioRecorder()"] > template + div > .relative {
    animation: likta-sheet-up 0.3s ease;
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(161, 161, 170, 0.3);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(161, 161, 170, 0.5);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .preview-stage {
        grid-template-columns: 1fr;
    }

    .preview-arrow {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .preview-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

    .testimonial-spotlight,
    .final-cta-card {
        padding: 1.5rem 1.1rem;
    }

    .pricing-card,
    .fan-tab,
    .process-card,
    .preview-card {
        border-radius: 0;
    }
}
