:root {
    --cs-navy: #0B2A4A;
    --cs-blue: #1F6FB8;
    --cs-sky: #7EB8E0;
    --cs-ice: #E8F4FC;
    --cs-mist: #F5FAFD;
    --cs-white: #FFFFFF;
    --cs-muted: #5A6B7D;
    --cs-line: #C5D9EB;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.cs-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(126, 184, 224, 0.35), transparent 55%),
        linear-gradient(180deg, var(--cs-mist) 0%, var(--cs-ice) 45%, var(--cs-white) 100%);
    color: var(--cs-navy);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.cs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
}

.cs-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-blue);
    background: var(--cs-white);
    border: 1px solid var(--cs-line);
    box-shadow: 0 1px 0 rgba(11, 42, 74, 0.04);
}

.cs-hero-logo {
    display: block;
    width: min(280px, 70vw);
    height: auto;
    margin-bottom: 1.5rem;
    background: transparent;
}

.cs-headline {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--cs-navy);
}

.cs-subtitle {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--cs-muted);
    max-width: 32rem;
    text-align: center;
}

.cs-notify {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 28rem;
}

.cs-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
}

.cs-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border: 1px solid var(--cs-line);
    border-radius: 0.75rem;
    background: var(--cs-white);
    color: var(--cs-navy);
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-input::placeholder {
    color: #8a9aab;
    text-align: center;
}

.cs-input:focus {
    border-color: var(--cs-blue);
    box-shadow: 0 0 0 3px rgba(31, 111, 184, 0.18);
}

/* Beat global app.css button reset (higher specificity + !important). */
#cs-notify-form button.cs-button,
button.cs-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.35rem !important;
    border: none !important;
    border-radius: 0.75rem !important;
    background: #1F6FB8 !important;
    background-color: #1F6FB8 !important;
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    min-height: 2.75rem !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.15s ease;
}

#cs-notify-form button.cs-button:hover,
#cs-notify-form button.cs-button:focus-visible,
button.cs-button:hover,
button.cs-button:focus-visible {
    background: #0B2A4A !important;
    background-color: #0B2A4A !important;
    outline: none;
}

#cs-notify-form button.cs-button:active,
button.cs-button:active {
    transform: translateY(1px);
}

#cs-notify-form button.cs-button:disabled,
button.cs-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none;
}

.cs-form-message {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
    color: var(--cs-blue);
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.cs-form-message--error {
    color: #b42318;
}

.cs-form-message[hidden] {
    display: none;
}

.cs-contact {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    color: var(--cs-muted);
    text-align: center;
    width: 100%;
}

.cs-contact a {
    color: var(--cs-blue);
    font-weight: 600;
    text-decoration: none;
}

.cs-contact a:hover,
.cs-contact a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.cs-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem 2rem;
    color: var(--cs-sky);
}

.cs-snowflake {
    width: 2rem;
    height: 2rem;
    color: var(--cs-sky);
    animation: cs-spin 12s linear infinite;
}

.cs-dots {
    display: flex;
    gap: 0.4rem;
}

.cs-dots span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--cs-blue);
    opacity: 0.35;
    animation: cs-pulse 1.4s ease-in-out infinite;
}

.cs-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.cs-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.cs-footer-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cs-muted);
}

.cs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes cs-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cs-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}
