/* Coming-soon page styles; every colour, font and radius comes from the theme tokens in theme.css. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-canvas, #0f172a);
    color: var(--color-store-ink, #0f172a);
    font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.6;
}

.cs {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
}

.cs-card {
    width: 100%;
    max-width: 40rem;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-card, 1rem);
    background: var(--color-store-panel, #ffffff);
    box-shadow: var(--shadow-store-panel, 0 25px 50px -12px rgb(0 0 0 / 0.25));
    text-align: center;
}

@media (min-width: 640px) {
    .cs-card {
        padding: 3rem 3rem;
    }
}

.cs-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cs-logo {
    display: block;
    max-width: 12rem;
    max-height: 7rem;
    object-fit: contain;
}

.cs-wordmark {
    margin: 0;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 1.5rem;
    font-weight: 700;
}

.cs-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-brand-600, #4f46e5);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cs-heading {
    margin: 0;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.cs-lead {
    margin: 1rem auto 0;
    max-width: 32rem;
    color: var(--color-store-muted, #64748b);
}

.cs-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 26rem;
    margin: 2rem auto 0;
}

.cs-countdown[hidden],
.cs-launched[hidden] {
    display: none;
}

.cs-countdown-unit {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.25rem;
    border-radius: var(--radius-field, 0.375rem);
    background: var(--color-brand-50, #eef2ff);
}

.cs-countdown-value {
    color: var(--color-brand-700, #4338ca);
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.cs-countdown-label {
    margin-top: 0.25rem;
    color: var(--color-store-muted, #64748b);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-launched {
    margin: 2rem 0 0;
    color: var(--color-brand-700, #4338ca);
    font-weight: 600;
}

.cs-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-store-field-border, #cbd5e1);
}

.cs-subheading {
    margin: 0;
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-size: 1.25rem;
    font-weight: 600;
}

.cs-muted {
    margin: 0.5rem 0 0;
    color: var(--color-store-muted, #64748b);
}

.cs-form {
    text-align: left;
}

.cs-form .cs-subheading,
.cs-form > .cs-muted {
    text-align: center;
}

.cs-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 480px) {
    .cs-inline {
        flex-direction: row;
    }
}

.cs-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (min-width: 480px) {
    .cs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-span {
        grid-column: 1 / -1;
    }
}

.cs-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cs-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.cs-optional {
    color: var(--color-store-faint, #94a3b8);
    font-weight: 400;
}

.cs-input {
    width: 100%;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-store-field-border, #cbd5e1);
    border-radius: var(--radius-field, 0.375rem);
    background: var(--color-store-field, #ffffff);
    color: var(--color-store-ink, #0f172a);
    font: inherit;
    transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.cs-input:focus {
    border-color: var(--color-brand-500, #6366f1);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-brand-100, #e0e7ff);
}

.cs-input[aria-invalid='true'] {
    border-color: var(--color-danger-600, #dc2626);
}

textarea.cs-input {
    resize: vertical;
}

.cs-button {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: var(--radius-button, 0.5rem);
    background: var(--color-brand-600, #4f46e5);
    color: var(--color-on-fill, #ffffff);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms ease-out;
}

.cs-button:hover {
    background: var(--color-brand-700, #4338ca);
}

.cs-button:focus-visible {
    outline: 2px solid var(--color-brand-500, #6366f1);
    outline-offset: 2px;
}

.cs-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.cs-error {
    min-height: 0;
    margin: 0;
    color: var(--color-danger-600, #dc2626);
    font-size: 0.8125rem;
}

.cs-error:empty {
    display: none;
}

.cs-status {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    text-align: center;
}

.cs-status:empty {
    display: none;
}

.cs-status.is-ok {
    color: var(--color-brand-700, #4338ca);
}

.cs-status.is-error {
    color: var(--color-danger-600, #dc2626);
}

.cs-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 2rem 0 0;
}

.cs-contact a,
.cs-socials a {
    color: var(--color-brand-600, #4f46e5);
    text-decoration: none;
    transition: color 200ms ease-out;
}

.cs-contact a:hover,
.cs-socials a:hover {
    color: var(--color-brand-700, #4338ca);
}

.cs-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.cs-socials a {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--color-brand-50, #eef2ff);
}

.cs-socials a:focus-visible {
    outline: 2px solid var(--color-brand-500, #6366f1);
    outline-offset: 2px;
}

.cs-socials svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cs-foot {
    margin: 0;
    color: var(--color-store-header-ink-soft, #cbd5e1);
    font-size: 0.8125rem;
}

.cs-sr,
.cs-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cs-trap {
    left: -9999px;
}
