/* Explain: Styling for various website components like cards and modals. */
.site-header {
    background: linear-gradient(180deg, rgba(244, 247, 250, 0.88), rgba(244, 247, 250, 0.54));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(244, 247, 250, 0.8), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 70, 92, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(244, 247, 250, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 600px;
    max-width: 440px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1.4rem;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.info-note,
.step-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(244, 247, 250, 0.62);
    padding: 1.25rem;
}

.info-note span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.info-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.info-card {
    border-radius: 2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.info-card:hover {
    border-color: rgba(46, 70, 92, 0.55);
    box-shadow: 0 26px 80px rgba(26, 37, 48, 0.12);
    transform: translateY(-6px);
}

.icon-badge {
    display: inline-flex;
    width: 3.1rem;
    height: 3.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 1.3rem;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.step-number {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.media-frame {
    overflow: hidden;
    border-radius: 1.6rem;
}

.media-frame img {
    transition: transform 500ms ease;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--brand-soft);
    padding: 0.4rem 0.9rem;
    color: var(--brand-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.is-hidden {
    display: none;
}

.edu-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.55rem 1.15rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    transition: all 300ms ease;
}

.edu-chip:hover {
    border-color: var(--accent-color);
}

.edu-chip.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.contact-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #2E465C;
}

.form-status.error {
    color: #9B4A3D;
}

.prose-neuro p {
    margin-bottom: 1.1rem;
}

.prose-neuro p:last-child {
    margin-bottom: 0;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(244, 247, 250, 0.88);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.material-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    background: rgba(26, 37, 48, 0.36);
    padding: 1rem;
}

.material-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-modal-panel {
    width: 100%;
    max-width: 32rem;
    border-radius: 2.2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--background-color);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 500px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 440px);
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    overflow-y: auto;
    background: rgba(26, 37, 48, 0.5);
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.pdf-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 64rem;
    max-height: 92dvh;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
}

.pdf-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem clamp(1rem, 3vw, 1.75rem);
}

.pdf-modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--surface-color);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    min-height: 60dvh;
    border: 0;
    background: #ffffff;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    color: var(--text-muted);
}

.pdf-modal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    border-top: 1px solid var(--glass-border);
    padding: 1rem clamp(1rem, 3vw, 1.75rem);
}

@media (max-width: 767px) {
    .pdf-modal {
        padding: 0;
    }

    .pdf-modal-panel {
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .pdf-frame {
        min-height: 0;
    }

    .pdf-modal-foot {
        justify-content: stretch;
    }

    .pdf-modal-foot .btn {
        flex: 1 1 auto;
    }
}

.faq-item {
    border-radius: 1.6rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    transition: color 300ms ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-hover);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 300ms ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    margin: 0 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0 1.5rem;
}

.testimonial-card {
    border-radius: 2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 22px 60px rgba(26, 37, 48, 0.1);
    transform: translateY(-4px);
}