html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

:root {
    --bs-primary: #005A9C;
    --bs-secondary: #FFD100;
    --hero-dark: #00345D;
    --bs-light-grey: #F8F9FA;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

header {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.section-tint {
    background: var(--bs-light-grey);
}

.section-heading {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-banner {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--hero-dark) 100%);
    color: #fff;
}

.free-banner {
    background: var(--bs-secondary);
    color: #000;
    font-weight: 500;
    text-align: center;
    padding: .4rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bs-primary);
    text-decoration: underline;
}

.footer-dark {
    background: var(--hero-dark);
    color: #fff;
}

.card-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: .75rem;
    background: linear-gradient(180deg, #fff 0%, #fefefe 35%, #fafafa 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .card-feature::before {
        content: '';
        display: block;
        height: 4px;
        background: var(--bs-secondary);
        border-radius: .75rem .75rem 0 0;
    }

    .card-feature:hover,
    .card-feature:focus-within {
        transform: translateY(-6px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
        border-color: var(--bs-secondary);
    }

    .card-feature .card-img-top {
        height: 220px;
        object-fit: cover;
    }

    .card-feature .card-footer {
        background: #fff;
        margin-top: auto;
    }

    .card-feature .card-title {
        color: var(--hero-dark);
    }

.workload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.workload-col {
    padding: 1rem 2rem;
}

    .workload-col + .workload-col {
        border-left: 1px solid rgba(0,0,0,.075);
    }

.step-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .5rem;
    padding: 1.5rem;
    text-align: center;
}

.step-badge {
    display: inline-block;
    background: var(--bs-secondary);
    color: #000;
    font-weight: 600;
    border-radius: 50rem;
    padding: .25rem .9rem;
    margin-bottom: .75rem;
}

.step-arrow {
    font-size: 1.5rem;
    line-height: 1;
    opacity: .4;
}

.feature-stripe {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .feature-stripe:nth-of-type(odd) .fs-img {
        order: 2;
    }

@media (min-width: 992px) {
    .feature-stripe:nth-of-type(odd) .fs-img {
        order: 1;
    }
}

.fs-img img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.fs-copy h3 {
    color: var(--hero-dark);
    font-weight: 600;
    margin-bottom: .75rem;
}

.fs-copy p {
    color: #6c757d;
    margin-bottom: 0;
}

.card-roadmap {
    border-radius: .75rem;
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,.075);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease;
    border-left: 4px solid var(--bs-secondary);
}

    .card-roadmap:hover {
        transform: translateY(-4px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
    }

.badge-status {
    font-size: .75rem;
    border-radius: .5rem;
    padding: .25rem .6rem;
    font-weight: 600;
}

.badge-planned {
    background: var(--bs-light-grey);
    color: #6c757d;
}

.badge-dev {
    background: var(--bs-secondary);
    color: #000;
}

.badge-live {
    background: var(--bs-primary);
    color: #fff;
}

#drop-area {
    border: 2px dashed var(--bs-primary);
    border-radius: .5rem;
    padding: 2.5rem;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
    background: #fff;
}

    #drop-area.highlight {
        border-color: var(--bs-secondary);
        background: var(--bs-light-grey);
    }

    #drop-area p {
        margin: 0;
        font-weight: 500;
        color: var(--hero-dark);
    }

#file-select {
    background: none;
    border: none;
    color: var(--bs-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

#spinner-overlay {
    display: none;
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.6);
    border-radius: .5rem;
}

select.form-select {
    min-height: 3rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
    box-shadow: none;
    outline: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .18rem var(--bs-secondary), 0 0 0 .36rem rgba(0,52,93,.35);
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(0,90,156,.25);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .18rem rgba(0,90,156,.35);
}

.btn-cta,
.cta-btn {
    background: var(--bs-secondary);
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.08);
    font-weight: 600;
    border-radius: 50rem;
    padding: .75rem 1.5rem;
    line-height: 1.2;
    transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

    .btn-cta:hover,
    .btn-cta:focus-visible,
    .cta-btn:hover,
    .cta-btn:focus-visible {
        background: #e6bf00;
        color: #000 !important;
        transform: translateY(-1px);
    }

    .btn-cta:disabled,
    .cta-btn:disabled {
        opacity: .65;
        cursor: not-allowed;
        transform: none;
    }

    /* Size variants */
    .btn-cta.btn-sm, .cta-btn.btn-sm {
        padding: .5rem 1rem;
        font-size: .9375rem;
    }

    .btn-cta.btn-lg, .cta-btn.btn-lg {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }

.btn-outline-primary {
    border: 2px solid var(--hero-dark);
    color: var(--hero-dark);
    background: transparent;
    font-weight: 600;
    border-radius: 50rem;
    padding: .65rem 1.25rem;
    transition: color .2s ease, background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus-visible {
        background: var(--hero-dark);
        color: #fff;
        transform: translateY(-1px);
    }

    .btn-outline-primary:active {
        transform: translateY(0);
    }

.btn + .btn {
    margin-left: .5rem;
}

@media (max-width: 576px) {
    .btn + .btn {
        margin-left: 0;
        margin-top: .5rem;
    }
}

.btn-outline-on-dark {
    color: #fff;
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.12);
    border-radius: 50rem;
    font-weight: 600;
    padding: .65rem 1.25rem;
    transition: background-color .2s ease, color .2s ease, transform .12s ease;
}

    .btn-outline-on-dark:hover,
    .btn-outline-on-dark:focus-visible {
        background: #fff;
        color: var(--hero-dark);
        border-color: #fff;
        transform: translateY(-1px);
    }

.hero-banner .btn-outline-primary {
    color: #fff;
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.12);
}

    .hero-banner .btn-outline-primary:hover,
    .hero-banner .btn-outline-primary:focus-visible {
        background: #fff;
        color: var(--hero-dark);
        border-color: #fff;
    }

/* (Legacy support) Keep .cta-btn original look if used elsewhere */
.cta-btn { /* already unified above; kept for compatibility */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    height: 160px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    gap: 1rem;
    box-sizing: border-box;
}

.product-card {
    position: relative;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    gap: 1rem;
    box-sizing: border-box;
}

    .product-card:hover {
        border-color: #007bff;
    }

.product-content {
    text-align: center;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-price {
    color: #333;
    font-size: 1.1rem;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    user-select: none;
}

.product-checkbox {
    display: none;
}

    .product-checkbox:checked + .custom-checkbox {
        border-color: #007bff;
        background-color: #007bff;
    }

        .product-checkbox:checked + .custom-checkbox .checkmark {
            stroke: white;
        }

.checkmark {
    fill: none;
    stroke: transparent;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 16px;
    height: 16px;
    transition: stroke 0.3s ease;
}

.collapse-toggle {
    color: #0d6efd;
    cursor: pointer;
    font-weight: 600;
    border: none;
    background: none;
    padding: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

    .collapse-toggle:hover,
    .collapse-toggle:focus {
        color: #084298;
        outline: none;
        text-decoration: underline;
    }

    .collapse-toggle svg {
        transition: transform 0.3s ease;
        transform-origin: center;
        width: 1rem;
        height: 1rem;
        fill: currentColor;
    }

    .collapse.show + .collapse-toggle svg,
    .collapse-toggle[aria-expanded="true"] svg {
        transform: rotate(90deg);
    }

.collapse-content {
    max-height: 1.4em; /* show roughly one line */
    overflow: hidden;
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

    .collapse-content.expanded {
        max-height: 100vh; /* show full content */
        opacity: 1;
        cursor: default;
        user-select: text;
    }
:root {
    --z-portal: 2147483000; /* sits above sticky/aside etc. */
    --ta-border: rgba(0,0,0,.08);
    --ta-shadow: 0 10px 24px rgba(0,0,0,.08);
    --ta-bg: #fff;
}

#ta-portal {
    position: fixed;
    inset: 0;
    pointer-events: none; /* clicks pass through unless on menu */
    z-index: var(--z-portal);
}

/* Base menu styling (shared whether inline or floating) */
.ta-menu {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--ta-border);
    background: var(--ta-bg);
    border-radius: .75rem;
    box-shadow: var(--ta-shadow);
    margin-top: .25rem;
    width: 100%;
}

    /* When rendered via portal: ignore ancestor overflow & follow input */
    .ta-menu.is-floating {
        position: fixed; /* key: prevents clipping */
        margin: 0;
        width: auto; /* JS sets exact width to input */
        max-height: 320px; /* JS may reduce when space is tight */
        pointer-events: auto; /* clickable again */
        z-index: var(--z-portal);
        overscroll-behavior: contain;
    }

/* Items */
.ta-item {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    font-size: .9375rem;
    line-height: 1.35;
}

    .ta-item:last-child {
        border-bottom: none;
    }

    .ta-item:hover,
    .ta-item:focus-visible {
        background: #f8f9fa;
    }

/* Little pill for the code (shared style in case not defined elsewhere) */
.pill {
    display: inline-block;
    padding: .125rem .5rem;
    border-radius: 50rem;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8rem;
}

/* Optional: make the questions list allow the menu to visually overlap its edges */
.question-card {
    overflow: visible;
}
