.tcag-overlay {
    align-items: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(101, 169, 127, 0.2), transparent 42%),
        var(--tcag-overlay, rgba(243, 247, 249, 0.96));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    overflow: hidden;
    padding: 18px 14px;
    position: fixed;
    z-index: 999999;
}

.tcag-overlay[hidden] {
    display: none;
}

.tcag-overlay *,
.tcag-overlay *::before,
.tcag-overlay *::after {
    box-sizing: border-box;
}

.tcag-card {
    background: var(--tcag-panel, #ffffff);
    border: 2px solid var(--tcag-button, #103c34);
    border-radius: var(--tcag-radius, 22px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    color: var(--tcag-primary, #05070a);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: var(--tcag-width, 560px);
    overflow: visible;
    padding: clamp(26px, 4vh, var(--tcag-padding, 30px));
    width: min(var(--tcag-width, 560px), 100%);
}

.tcag-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.tcag-logo {
    display: block;
    height: auto;
    max-height: 40px;
    max-width: 230px;
    object-fit: contain;
    width: auto;
}

.tcag-logo-lockup {
    align-items: center;
    display: inline-flex;
    gap: 12px;
}

.tcag-swirl {
    background:
        radial-gradient(circle at 50% 50%, #ffffff 0 24%, transparent 25%),
        conic-gradient(from 10deg, #103c34, #65a97f, #103c34, #103c34);
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
    display: inline-block;
    height: 36px;
    width: 36px;
}

.tcag-wordmark {
    color: var(--tcag-primary, #05070a);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
}

.tcag-wordmark span {
    color: #444b55;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tcag-body {
    text-align: center;
}

.tcag-body h2 {
    color: var(--tcag-primary, #05070a);
    font-size: clamp(24px, 4vw, var(--tcag-headline-size, 28px));
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 8px;
}

.tcag-copy {
    color: var(--tcag-secondary, #111827);
    font-size: var(--tcag-body-size, 15px);
    font-weight: 450;
    line-height: 1.45;
    margin: 0 auto 18px;
    max-width: 500px;
}

.tcag-copy p {
    margin: 0 0 12px;
}

.tcag-copy p:last-child {
    margin-bottom: 0;
}

.tcag-checks {
    display: grid;
    gap: 10px;
    margin: 0 auto 18px;
    max-width: 500px;
    text-align: left;
}

.tcag-check {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    color: var(--tcag-secondary, #111827);
    cursor: pointer;
    display: grid;
    font-size: var(--tcag-body-size, 15px);
    gap: 12px;
    grid-template-columns: 24px 1fr;
    line-height: 1.34;
    padding: 12px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tcag-check:hover,
.tcag-check:focus-within {
    border-color: color-mix(in srgb, var(--tcag-button, #103c34) 42%, #e1e6ec);
    box-shadow: 0 10px 24px rgba(16, 60, 52, 0.12);
}

.tcag-check input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.tcag-check-box {
    align-items: center;
    border: 2px solid #7f8790;
    border-radius: 4px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin-top: 2px;
    width: 24px;
}

.tcag-check input:checked + .tcag-check-box {
    background: var(--tcag-button, #103c34);
    border-color: var(--tcag-button, #103c34);
}

.tcag-check input:checked + .tcag-check-box::after {
    color: #ffffff;
    content: "✓";
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.tcag-check strong {
    color: var(--tcag-primary, #05070a);
    font-weight: 900;
}

.tcag-button {
    align-items: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: var(--tcag-button-size, 15px);
    font-weight: 900;
    gap: 12px;
    justify-content: center;
    letter-spacing: 0;
    min-height: 48px;
    padding: 12px 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
    width: min(500px, 100%);
}

.tcag-button:focus {
    outline: 3px solid color-mix(in srgb, var(--tcag-accent, #65a97f) 70%, white);
    outline-offset: 3px;
}

.tcag-button-primary {
    background: var(--tcag-button, #103c34);
    box-shadow: 0 16px 28px rgba(16, 60, 52, 0.2);
    color: var(--tcag-button-text, #ffffff);
}

.tcag-button-primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.tcag-button-primary:disabled {
    background: #e7e7e7;
    box-shadow: none;
    color: #05070a;
    cursor: not-allowed;
    opacity: 1;
}

.tcag-fine-print {
    color: var(--tcag-secondary, #111827);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.45;
    margin: 18px auto 0;
    max-width: 500px;
    text-align: left;
}

.tcag-fine-print p {
    margin: 0 0 12px;
}

.tcag-fine-print p:last-child {
    margin-bottom: 0;
}

.tcag-fine-print a,
.tcag-exit a {
    color: #006cff;
    font-weight: 700;
    text-decoration: underline;
}

.tcag-exit {
    color: #05070a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    margin: 10px 0 0;
    text-align: center;
}

body.tcag-lock {
    overflow: hidden;
}

@media (max-width: 720px) {
    .tcag-overlay {
        padding: 10px;
    }

    .tcag-card {
        padding: 18px 14px;
    }

    .tcag-brand {
        margin-bottom: 8px;
    }

    .tcag-logo {
        max-height: 36px;
        max-width: 200px;
    }

    .tcag-swirl {
        height: 32px;
        width: 32px;
    }

    .tcag-wordmark {
        font-size: 17px;
    }

    .tcag-copy {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .tcag-check {
        font-size: 14px;
        gap: 10px;
        grid-template-columns: 24px 1fr;
        padding: 12px;
    }

    .tcag-check-box {
        height: 24px;
        width: 24px;
    }

    .tcag-button {
        min-height: 46px;
    }

    .tcag-fine-print {
        font-size: 12px;
    }
}

@media (max-height: 760px) {
    .tcag-card {
        padding: 16px 18px;
    }

    .tcag-brand {
        margin-bottom: 10px;
    }

    .tcag-logo {
        max-height: 38px;
    }

    .tcag-body h2 {
        font-size: min(var(--tcag-headline-size, 28px), 25px);
        margin-bottom: 8px;
    }

    .tcag-copy {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .tcag-checks {
        gap: 10px;
        margin-bottom: 14px;
    }

    .tcag-check {
        font-size: 14px;
        padding: 10px 12px;
    }

    .tcag-button {
        min-height: 44px;
    }

    .tcag-fine-print {
        font-size: 12px;
        margin-top: 10px;
    }

    .tcag-exit {
        margin-top: 10px;
    }
}
