/* ==========================================================================
   Components: buttons, cards, navigation, code windows, forms, tables
   ========================================================================== */

/* ----------------------------------------------------------------- buttons */

.btn {
    --btn-bg: var(--brand);
    --btn-fg: var(--white);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.72rem 1.35rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 620;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
    background: var(--grad-brand);
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover { box-shadow: 0 16px 38px rgba(37, 99, 235, 0.32); }

.btn--secondary {
    --btn-bg: var(--white);
    --btn-fg: var(--navy-800);
    --btn-border: var(--slate-300);
    box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
    --btn-border: var(--blue-400);
    --btn-fg: var(--blue-700);
    box-shadow: var(--shadow-sm);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--blue-700);
    --btn-border: transparent;
    padding-inline: var(--space-3);
}

.btn--ghost:hover { --btn-bg: var(--blue-50); }

.btn--soft {
    --btn-bg: var(--blue-50);
    --btn-fg: var(--blue-700);
    --btn-border: var(--blue-100);
}

.btn--soft:hover { --btn-bg: var(--blue-100); }

/* On dark bands the secondary button inverts rather than disappearing. */
.section--dark .btn--secondary,
.cta-band .btn--secondary {
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-fg: var(--white);
    --btn-border: rgba(255, 255, 255, 0.32);
    box-shadow: none;
}

.section--dark .btn--secondary:hover,
.cta-band .btn--secondary:hover {
    --btn-bg: rgba(255, 255, 255, 0.16);
    --btn-border: rgba(255, 255, 255, 0.5);
    --btn-fg: var(--white);
}

.btn--lg { padding: 0.92rem 1.75rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }

/* Arrow that slides on hover — the site's one recurring micro-interaction. */
.btn .arrow,
.link-arrow .arrow {
    transition: transform var(--dur) var(--ease);
}

.btn:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 620;
    font-size: var(--text-sm);
    color: var(--blue-700);
}

.link-arrow svg { width: 1em; height: 1em; }

/* ------------------------------------------------------------------- badge */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 650;
    letter-spacing: 0.01em;
    background: var(--blue-50);
    color: var(--blue-700);
    border: 1px solid var(--blue-100);
    white-space: nowrap;
}

.badge--solid { background: var(--grad-brand); color: var(--white); border-color: transparent; }
.badge--neutral { background: var(--slate-100); color: var(--slate-600); border-color: var(--line); }
.badge--success { background: var(--emerald-50); color: #047857; border-color: #a7f3d0; }
.badge--warn { background: var(--amber-50); color: #b45309; border-color: #fde68a; }
.badge--dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--floating {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-brand);
}

/* -------------------------------------------------------------------- card */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.35rem, 2.2vw, 1.85rem);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.card--interactive:hover {
    transform: translateY(-3px);
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
}

.card--tint { background: var(--surface-tint); box-shadow: none; }
.card--flush { padding: 0; overflow: hidden; }

.card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card__text { color: var(--muted); margin-bottom: 0; font-size: var(--text-sm); }
.card__body { flex: 1; }

.card__footer {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-soft);
}

/* Accent hairline that appears along the top edge on hover. */
.card--accent::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.card--accent:hover::before { opacity: 1; }

.section--dark .card {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.72);
}

.section--dark .card__text { color: rgba(255, 255, 255, 0.62); }

/* -------------------------------------------------------------- icon tile */

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: var(--blue-50);
    color: var(--blue-700);
    border: 1px solid var(--blue-100);
    margin-bottom: var(--space-5);
    flex: none;
}

.icon-tile svg { width: 22px; height: 22px; }

.icon-tile--solid {
    background: var(--grad-brand);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-brand);
}

.icon-tile--sm { width: 36px; height: 36px; margin-bottom: 0; border-radius: var(--radius-sm); }
.icon-tile--sm svg { width: 18px; height: 18px; }

.section--dark .icon-tile {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(147, 197, 253, 0.24);
    color: var(--blue-300);
}

/* -------------------------------------------------------------- check list */

.check-list { list-style: none; padding: 0; margin: 0; }

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    color: var(--body);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.section--dark .check-list li { color: rgba(255, 255, 255, 0.72); }

.section--dark .check-list li::before {
    background-color: rgba(96, 165, 250, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2393c5fd'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.check-list--two-col { columns: 2; column-gap: var(--space-8); }
.check-list--two-col li { break-inside: avoid; }

@media (max-width: 640px) {
    .check-list--two-col { columns: 1; }
}

/* ------------------------------------------------------------ site header */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(15, 34, 68, 0.06);
    background: rgba(255, 255, 255, 0.94);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    height: var(--header-h);
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--navy-800);
    flex: none;
}

.nav__brand:hover { color: var(--navy-800); }

/* The mark inherits currentColor for its body; only the accent is pinned. */
.logo-mark { flex: none; display: block; }
.nav__brand .logo-mark { --logo-accent: var(--blue-600); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav__menu > li { margin: 0; position: relative; }

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 550;
    color: var(--slate-600);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--navy-800); background: var(--slate-100); }

.nav__link.is-active { color: var(--blue-700); font-weight: 620; }

.nav__link .chev {
    width: 14px;
    height: 14px;
    transition: transform var(--dur) var(--ease);
}

.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }

/* ---- products mega menu ---- */

.mega {
    position: absolute;
    top: calc(100% + 10px);
    /* Anchored to the trigger's left edge and opening rightward. Centring it (left: 50%)
       clipped the panel, because Products is the first nav item and half of a 680px panel
       falls outside the viewport. */
    left: 0;
    transform: translateY(-6px);
    width: min(680px, calc(100vw - 2rem));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    z-index: var(--z-menu);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
}

.mega.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
}

.mega__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius);
    transition: background-color var(--dur-fast) var(--ease);
}

.mega__item:hover { background: var(--blue-50); }

.mega__item .icon-tile { margin-bottom: 0; }

.mega__name {
    display: block;
    font-weight: 620;
    font-size: var(--text-sm);
    color: var(--navy-800);
    margin-bottom: 0.1rem;
}

.mega__desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--muted);
    line-height: 1.45;
}

.mega__footer {
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-3) var(--space-2);
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ---- mobile navigation ---- */

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    color: var(--navy-800);
}

.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1080px) {
    .nav__menu, .nav__actions { display: none; }
    .nav__toggle { display: inline-flex; }

    .nav__drawer.is-open {
        display: block;
        position: fixed;
        inset: var(--header-h) 0 0;
        background: var(--white);
        overflow-y: auto;
        padding: var(--space-6) clamp(1.125rem, 4vw, 2rem) var(--space-12);
        z-index: var(--z-menu);
        animation: drawer-in var(--dur) var(--ease);
    }
}

@keyframes drawer-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.nav__drawer { display: none; }

.drawer__group { border-bottom: 1px solid var(--line-soft); padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.drawer__label { font-size: var(--text-xs); font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }

.drawer__link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius);
    font-weight: 570;
    color: var(--navy-800);
    font-size: var(--text-sm);
}

.drawer__link:hover { background: var(--blue-50); }
.drawer__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

/* --------------------------------------------------------- code window */

.code-window {
    background: var(--navy-900);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.code-window__bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.7rem var(--space-4);
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.code-window__dots { display: flex; gap: 6px; flex: none; }

.code-window__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.code-window__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    overflow-x: auto;
    scrollbar-width: thin;
}

.code-tab {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.code-tab:hover { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); }

.code-tab[aria-selected="true"] {
    background: rgba(59, 130, 246, 0.22);
    color: var(--blue-200);
}

.code-window__body { position: relative; }

.code-window pre {
    margin: 0;
    padding: var(--space-5);
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: #cbd5e1;
    tab-size: 2;
    max-height: 30rem;
}

.code-window pre code { background: none; border: 0; padding: 0; white-space: pre; color: inherit; }
.code-window [hidden] { display: none; }

.code-copy {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 34, 68, 0.75);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}

.code-window:hover .code-copy,
.code-copy:focus-visible { opacity: 1; }
.code-copy:hover { color: var(--white); }
.code-copy.is-copied { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.45); }

/* An endpoint chip: METHOD + path, used on cards and product headers. */
.endpoint {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    background: var(--navy-900);
    color: #93c5fd;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.18);
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.endpoint__method {
    color: #6ee7b7;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.endpoint--light {
    background: var(--blue-50);
    border-color: var(--blue-100);
    color: var(--blue-800);
}

.endpoint--light .endpoint__method { color: #047857; }

/* ------------------------------------------------------------------ forms */

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

@media (max-width: 700px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy-800);
}

.field .req { color: var(--rose-600); margin-left: 2px; }
.field .hint { font-size: var(--text-xs); color: var(--muted); }

.input, .select, .textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy-800);
    font-size: var(--text-sm);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.input::placeholder, .textarea::placeholder { color: var(--slate-400); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }

.select {
    appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.2 7.5a1 1 0 0 1 1.4 0L10 10.9l3.4-3.4a1 1 0 1 1 1.4 1.4l-4.1 4.1a1 1 0 0 1-1.4 0L5.2 8.9a1 1 0 0 1 0-1.4Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 18px;
}

/* Validation messages emitted by asp-validation-for. */
.field .text-danger,
.field .field-validation-error {
    font-size: var(--text-xs);
    color: var(--rose-600);
    font-weight: 550;
}

.input.input-validation-error,
.select.input-validation-error,
.textarea.input-validation-error {
    border-color: var(--rose-600);
    background: var(--rose-50);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface-tint);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert__title { font-weight: 650; color: var(--heading); display: block; margin-bottom: 2px; }
.alert--success { background: var(--emerald-50); border-color: #a7f3d0; color: #065f46; }
.alert--success .alert__title { color: #065f46; }
.alert--success svg { color: var(--emerald-500); }
.alert--error { background: var(--rose-50); border-color: #fecdd3; color: #9f1239; }
.alert--error .alert__title { color: #9f1239; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert--info .alert__title { color: var(--blue-800); }
.alert--warn { background: var(--amber-50); border-color: #fde68a; color: #92400e; }
.alert--warn .alert__title { color: #92400e; }

/* ------------------------------------------------------------------ table */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 44rem;
    font-size: var(--text-sm);
}

.table th, .table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.table thead th {
    background: var(--slate-50);
    color: var(--navy-800);
    font-weight: 650;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--blue-50); }
.table tr.is-highlighted { background: var(--blue-50); }
.table tr.is-highlighted td { font-weight: 550; }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* -------------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    background: none;
    border: 0;
    text-align: left;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy-800);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease);
}

.faq__q:hover { color: var(--blue-700); }

.faq__icon {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-700);
    display: grid;
    place-items: center;
    margin-top: 2px;
    transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}

.faq__icon svg { width: 14px; height: 14px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--blue-100); }

/* Height-animated panel; JS sets the pixel height so the transition can run. */
.faq__a {
    overflow: hidden;
    height: 0;
    transition: height var(--dur) var(--ease);
}

.faq__a-inner {
    padding-bottom: var(--space-5);
    max-width: 62ch;
    color: var(--body);
    font-size: var(--text-sm);
}

/* Without JS the details fall back to always-open. */
.no-js .faq__a { height: auto; }

/* ------------------------------------------------------------------- tabs */

.pill-tabs {
    display: inline-flex;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--slate-100);
    border-radius: var(--radius-full);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}

.pill-tab {
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: var(--radius-full);
    background: none;
    color: var(--slate-600);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
}

.pill-tab:hover { color: var(--navy-800); }

.pill-tab[aria-selected="true"] {
    background: var(--white);
    color: var(--blue-700);
    box-shadow: var(--shadow-xs);
}

/* ------------------------------------------------------------ site footer */

.site-footer {
    background: var(--grad-navy);
    color: rgba(255, 255, 255, 0.62);
    padding-block: clamp(3.5rem, 6vw, 5rem) var(--space-8);
    font-size: var(--text-sm);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: var(--space-10);
}

@media (max-width: 1000px) {
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

.footer__brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: var(--space-4);
}

/* Lighter accent so the wedge keeps its contrast against the dark footer. */
.footer__brand-mark .logo-mark { --logo-accent: var(--blue-400); }
.footer__brand-mark:hover { color: var(--white); }
.footer__tagline { color: rgba(255, 255, 255, 0.6); max-width: 30ch; margin-bottom: var(--space-5); }

.footer__heading {
    font-size: var(--text-xs);
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: var(--space-3); }

.footer__list a { color: rgba(255, 255, 255, 0.62); transition: color var(--dur-fast) var(--ease); }
.footer__list a:hover { color: var(--white); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.48);
}

.footer__legal-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__legal-links a { color: rgba(255, 255, 255, 0.48); }
.footer__legal-links a:hover { color: var(--white); }
