/**
 * THYNK Landing Page — LP-05.7 interactions
 * Loaded after the base LP stylesheet so local LP-05.3 spacing edits remain untouched.
 */

/* Anchor targets should not hide beneath the sticky header. */
.thynk-landing #practice,
.thynk-landing #how-it-works,
.thynk-landing #for-institutions,
.thynk-landing #faq,
.thynk-landing #faq-institutions {
    scroll-margin-top: 96px;
}

/* Product tabs */
.thynk-landing .lp-product__tabs button {
    cursor: pointer;
}

.thynk-landing .lp-product__panel[hidden] {
    display: none !important;
}

.thynk-landing .lp-product__panel.is-active {
    animation: thynkLpPanelIn 180ms ease-out;
}

@keyframes thynkLpPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ */
.thynk-landing .lp-faq__item summary {
    user-select: none;
}

.thynk-landing .lp-faq__item[open] > p {
    animation: thynkLpFaqIn 160ms ease-out;
}

@keyframes thynkLpFaqIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile navigation */
@media (max-width: 700px) {
    .thynk-landing .lp-header__inner {
        position: relative;
        flex-wrap: wrap;
    }

    .thynk-landing .lp-brand {
        margin-right: auto;
    }

    .thynk-landing .lp-header__actions {
        order: 2;
        margin-left: 0;
    }

    .thynk-landing .lp-header__menu-toggle {
        order: 3;
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 9px 13px;
        border: 1px solid var(--lp-border);
        border-radius: 10px;
        background: var(--lp-white);
        color: var(--lp-navy);
        cursor: pointer;
        font: inherit;
        font-size: 0.86rem;
        font-weight: 750;
    }

    .thynk-landing .lp-header__menu-toggle:hover,
    .thynk-landing .lp-header__menu-toggle[aria-expanded="true"] {
        border-color: rgba(0, 45, 77, 0.24);
        background: var(--lp-bg-soft);
    }

    .thynk-landing .lp-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: visible;
        padding: 10px 0 2px;
        margin: 0;
        border-top: 1px solid var(--lp-border);
    }

    .thynk-landing .lp-header.is-menu-open .lp-nav {
        display: flex;
    }

    .thynk-landing .lp-nav a {
        width: 100%;
        padding: 12px 2px;
        font-size: 0.94rem;
    }

    .thynk-landing .lp-nav a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .thynk-landing .lp-header__inner {
        gap: 10px;
    }

    .thynk-landing .lp-header__actions .lp-button {
        padding-right: 12px;
        padding-left: 12px;
    }

    .thynk-landing .lp-header__menu-toggle {
        padding-right: 11px;
        padding-left: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thynk-landing .lp-product__panel.is-active,
    .thynk-landing .lp-faq__item[open] > p {
        animation: none;
    }
}
