@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global Variables */
:root {
    --primary: #4b6fff;
    --primary-dark: #3248b8;
    --accent: #ffb347;
    --bg-soft: #f5f7fb;
    --text-main: #1f2430;
    --text-muted: #6c7485;
}

/* Base */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #ffffff;
}

.navbar-brand span {
    font-weight: 700;
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Landing: Hero */
.hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top left, #e7ecff 0, #ffffff 45%);
}


.hero-support {
    background-color: #001b36;
    background-image: linear-gradient(to bottom, #001b36, #001b36);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(75, 111, 255, 0.08);
    color: var(--primary-dark);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-cta .btn {
    padding-inline: 1.75rem;
    padding-block: 0.75rem;
    font-weight: 600;
}

.hero-cta .btn-outline-secondary {
    border-color: #d0d4e0;
    color: var(--text-main);
}

.hero-cta .btn-outline-secondary:hover {
    background-color: #f2f3f8;
}

.hero-meta {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-meta strong {
    color: var(--text-main);
}

.hero-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 1.75rem;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hero-card-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: var(--bg-soft);
    color: var(--text-muted);
}

.score-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.score-bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a7a, #ffd66b, #4b6fff, #3ad29f);
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
}

.score-indicator {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 18px;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    left: 65%;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.metric-row span:first-child {
    font-weight: 500;
    color: var(--text-main);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-soft {
    background-color: var(--bg-soft);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* Feature cards */
.feature-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(75, 111, 255, 0.08);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats */
.stats-row {
    text-align: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Testimonials */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(50, 72, 184, 0.12);
}

.pricing-price {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.pricing-list li::before {
    content: "✓";
    color: #3ad29f;
    font-weight: 700;
    font-size: 0.9rem;
}

#pricing .col-md-4,
#pricing .col-lg-3,
#pricing .col-lg-4 {
    display: flex;
}

#pricing .pricing-card {
    width: 100%;
}

/* Featured pricing card: make visually ~1.15x larger */
@media (min-width: 768px) {
    .pricing-card.featured {
        margin-top: -1rem;
        margin-bottom: -1rem;
        box-shadow: 0 0 0 2px #0d6efd;
        transform-origin: center;
        position: relative;
        z-index: 1;
    }
}

/* Help page */
.faq-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Reviews page */
.rating {
    color: #f5b300;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.review-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.review-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.review-name {
    font-weight: 600;
    font-size: 1rem;
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Test pages */
.test-wrapper {
    max-width: 760px;
    margin: 4rem auto;
}

.test-container {
    max-width: 700px;
    margin: 3rem auto;
}

.question-card,
.result-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.question-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.answer-btn {
    width: 100%;
    text-align: left;
    margin-bottom: 0.75rem;
}

.placeholder-img {
    width: 100%;
    height: 180px;
    background: #d9dff0;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Footer */
footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    color: #ffffff;
    background: var(--primary);
    margin-top: 4rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Ensure Bootstrap border-top utility looks good on dark footer */
footer.border-top {
    border-top-color: rgba(255, 255, 255, 0.25);
}

/* Make muted text white within footer */
footer .text-muted,
footer .text-body-secondary {
    color: #ffffff !important;
}

/* Subtle divider color for footer hr on blue background */
footer hr {
    border-color: rgba(255, 255, 255, 0.25);
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

footer .social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    color: #ffffff;
}

/* Members menu: solid brand blue background with tab styling */
.members-menu {
    background: var(--primary);
}

.members-menu .nav-tabs {
    border-bottom: none;
}

.members-menu .nav-link {
    color: #ffffff;
    border: none;
}

.members-menu .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.members-menu .nav-link.active {
    color: var(--text-main);
    background: #ffffff;
    border: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    /* Create more blue gap above the active pill */
    margin-top: 0.18rem;
    /* Slightly reduce top padding on active for visual balance */
    padding-top: 0.82rem;
}

/* Increase members menu bar height ~30% by upping vertical padding */
.members-menu .nav-link {
    padding-top: 0.88rem;
    /* default ~0.5rem → ~+60% for clarity */
    padding-bottom: 0.88rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* FAQ Accordion — Cleaned & Consolidated */

/* Container */
#faqAccordion {
    background: none;
}

/* Accordion item */
.accordion-item {
    background-color: transparent !important;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* Reduce spacing when expanded */
.accordion-item .accordion-collapse.show {
    margin-bottom: 0.25rem;
}

/* Accordion button */
.accordion-button {
    background-color: transparent !important;
    font-weight: 600;
    box-shadow: none !important;
    color: var(--text-main);
}

/* Open state */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: var(--text-main);
}

/* Focus state */
.accordion-button:focus {
    border-color: #d0d4e0;
    box-shadow: none;
}

/* Accordion body */
.accordion-body {
    background-color: transparent !important;
    color: var(--text-muted);
}

/* Custom arrow */
.accordion-button::after {
    content: "<";
    background-image: none !important;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
    transform: none !important;
    /* Prevent Bootstrap rotation */
}

/* Arrow when open */
.accordion-button:not(.collapsed)::after {
    transform: rotate(90deg);
    color: var(--text-main);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 4.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-card {
        margin-top: 2rem;
    }
}

/* Help index: link styling within content section */
#help-index a {
    color: #454F69;
    text-decoration: none;
}

#help-index a:hover {
    color: #454F69;
    text-decoration: none;
}

/* Help breadcrumb: match Help index link styling */
#breadcrumb a {
    color: #454F69;
    text-decoration: none;
}

#breadcrumb a:hover {
    color: #454F69;
    text-decoration: none;
}

/* Active breadcrumb (current page): bold */
#breadcrumb .breadcrumb-item.active {
    font-weight: 700;
}

/* Breadcrumb font size: reduce to 90% */
#breadcrumb {
    font-size: 0.9em;
}

@media (max-width: 1023px) {
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .nav-buttons .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .nav-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Make header CTA buttons larger on small phones */
@media (max-width: 575.98px) {
    .nav-buttons .btn {
        padding-block: 0.9rem;
        padding-inline: 1.3rem;
        font-size: 1rem;
        font-weight: 600;
    }
}

/* Auth page */
.auth-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.btn-google {
    background: #DB4437;
    color: #ffffff;
    border: none;
}

.btn-google:hover {
    background: #c53b30;
    color: #ffffff;
}

.btn-microsoft {
    background: #2F2F2F;
    color: #ffffff;
    border: none;
}

.btn-microsoft:hover {
    background: #1f1f1f;
    color: #ffffff;
}

/* Clear provider buttons */
.btn-provider {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #d0d4e0;
}

.btn-provider:hover {
    background: #f2f3f8;
    color: var(--text-main);
}

.auth-form .form-label {
    font-weight: 500;
}


#latest-results {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* FAQ section: match pricing soft blue background */
#faq {
    background: var(--bg-soft);
}

#faq .section-title {
    color: var(--text-main);
}

#faq .section-subtitle {
    color: var(--text-muted);
}

/* Left-align FAQ heading on desktop, keep centered on mobile */
@media (min-width: 992px) {
    #faq .section-title {
        text-align: left;
        margin-bottom: 1rem;
    }
}

/* Help hero: white background, colored heading */
#help-hero .section-title {
    color: #001b36;
}