/*
 * Anonymous pages: the pre-launch placeholder today, home/about/contact next (§21.4).
 * These are the pages a crawler sees, so they must render with no script and no
 * off-box request (§19.1, §21.1).
 */

/*
 * base.css gives body the light canvas, which is right for the home/about pages and wrong
 * behind the placeholder: overscroll and any sub-pixel gap under a 100vh stage flash white.
 * The old markup got this from an inline body background that no longer exists.
 */
.zs-body--ink {
    background: var(--zs-ink);
}

/* --- the dark stage -------------------------------------------------------- */
.zs-stage {
    display: flex;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(23, 198, 83, .28), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(23, 198, 83, .16), transparent 55%),
        var(--zs-ink);
    color: var(--zs-on-dark);
}

/* Purely decorative blobs; they carry no meaning and are hidden from assistive tech. */
.zs-stage__blob {
    position: absolute;
    border-radius: 50%;
}

.zs-stage__blob--start {
    left: -80px;
    top: -90px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .03);
}

.zs-stage__blob--end {
    right: -60px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    background: rgba(47, 217, 104, .1);
}

/* --- masthead -------------------------------------------------------------- */
.zs-masthead {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    gap: 12px;
    padding: 28px 40px;
}

.zs-masthead__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--zs-green);
    box-shadow: var(--zs-shadow-green-lg);
}

.zs-masthead__mark .zs-icon {
    font-size: 26px;
    color: var(--zs-surface);
}

.zs-masthead__name {
    font-size: 19px;
    font-weight: 800;
}

.zs-masthead .zs-wordmark {
    color: var(--zs-green-soft);
}

/* --- body ------------------------------------------------------------------ */
.zs-hero {
    display: flex;
    position: relative;
    z-index: 2;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 28px 70px;
    text-align: center;
}

.zs-hero__title {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: 46px;
    font-weight: 900;
    line-height: 1.3;
    text-wrap: balance;
}

.zs-hero__lead {
    max-width: 540px;
    margin: 16px auto 0;
    color: var(--zs-on-dark-muted);
    font-size: 17px;
    line-height: 2;
}

/* --- the animated emblem --------------------------------------------------- */
.zs-emblem {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 8px;
    animation: zs-floaty 5s ease-in-out infinite;
}

.zs-emblem__ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(47, 217, 104, .35);
    border-radius: 50%;
    animation: zs-spinslow 18s linear infinite;
}

.zs-emblem__core {
    display: flex;
    position: absolute;
    inset: 20px;
    align-items: center;
    justify-content: center;
    border-radius: var(--zs-radius-xl);
    background: linear-gradient(135deg, var(--zs-green-dark), var(--zs-green) 55%, var(--zs-green-bright));
    box-shadow: var(--zs-shadow-green-xl);
}

.zs-emblem__core .zs-icon {
    font-size: 58px;
    color: var(--zs-surface);
}

@keyframes zs-floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes zs-spinslow {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* --- status pill ----------------------------------------------------------- */
.zs-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: var(--zs-radius-pill);
    background: rgba(246, 177, 0, .16);
    color: var(--zs-amber);
    font-size: 13px;
    font-weight: 700;
}

.zs-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* --- progress -------------------------------------------------------------- */
.zs-progress {
    width: 100%;
    max-width: 440px;
    margin-top: 34px;
}

.zs-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--zs-on-dark-muted);
    font-size: 13px;
}

.zs-progress__value {
    color: var(--zs-green-bright);
    font-weight: 800;
}

.zs-progress__track {
    height: 10px;
    overflow: hidden;
    border-radius: var(--zs-radius-pill);
    background: rgba(255, 255, 255, .1);
}

/*
 * The width comes from --zs-progress, set as an inline custom property by the view.
 * That is the one inline-style form §21.2 allows: a runtime value, not a declaration.
 */
.zs-progress__bar {
    width: var(--zs-progress, 0%);
    height: 100%;
    border-radius: var(--zs-radius-pill);
    background: linear-gradient(90deg, var(--zs-green), var(--zs-green-bright));
}

/* --- countdown ------------------------------------------------------------- */
.zs-countdown {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
    justify-content: center;
}

.zs-countdown__cell {
    width: 92px;
    padding: 16px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--zs-radius-lg);
    background: rgba(255, 255, 255, .06);
}

.zs-countdown__number {
    color: var(--zs-on-dark);
    font-size: 30px;
    font-weight: 900;
}

.zs-countdown__label {
    margin-top: 4px;
    color: var(--zs-on-dark-dim);
    font-size: 12px;
}

/* --- error page ------------------------------------------------------------ */
/* The support correlation id: monospace so it can be read out or copied without doubt. */
.zs-code {
    padding: 2px 8px;
    border-radius: var(--zs-radius-sm);
    background: rgba(255, 255, 255, .08);
    color: var(--zs-on-dark);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: .9em;
}

/* --- contact --------------------------------------------------------------- */
.zs-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    font-style: normal;
}

.zs-contact__item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--zs-on-dark-muted);
    font-size: 13.5px;
}

.zs-contact__item .zs-icon {
    font-size: 19px;
    color: var(--zs-green-bright);
}

/* --- narrow screens -------------------------------------------------------- */
@media (max-width: 600px) {
    .zs-masthead {
        padding: 20px 22px;
    }

    .zs-hero__title {
        font-size: 32px;
    }

    .zs-hero__lead {
        font-size: 15px;
    }
}
