/*
 * The marketing shell: header, footer, buttons and section furniture shared by
 * Home / About / Contact (§21.6).
 *
 * Separate from public.css because the pre-launch placeholder loads that one and uses none of
 * this — and while the gate is up, public.css is one of the few files it serves to the world
 * (§20.2). Keeping the marketing chrome out of it keeps that surface small.
 */

.zs-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--zs-canvas);
    color: var(--zs-text);
}

/* --- top bar --------------------------------------------------------------- */
.zs-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zs-border-strong);
}

.zs-topbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    height: 74px;
    margin: 0 auto;
    padding-inline: 28px;
}

.zs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zs-brand__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--zs-green);
    box-shadow: var(--zs-shadow-green);
}

.zs-brand__mark .zs-icon {
    font-size: 26px;
    color: var(--zs-surface);
}

.zs-brand__titles {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.zs-brand__name {
    font-size: 17px;
    font-weight: 800;
}

.zs-brand__tagline {
    font-size: 11px;
    color: var(--zs-text-dim);
}

.zs-topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.zs-topnav__link {
    padding: 9px 16px;
    border-radius: var(--zs-radius-sm);
    color: var(--zs-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.zs-topnav__link:hover {
    background: var(--zs-canvas-hover);
}

.zs-topnav__link.is-active {
    background: var(--zs-green-pale);
    color: var(--zs-green);
    font-weight: 700;
}

.zs-topbar__cta {
    margin-inline-start: 8px;
}

/* --- buttons --------------------------------------------------------------- */
.zs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.zs-btn .zs-icon {
    font-size: 20px;
}

.zs-btn--green {
    background: var(--zs-green);
    color: var(--zs-surface);
    box-shadow: 0 12px 24px -8px rgba(23, 198, 83, .6);
}

.zs-btn--green:hover {
    background: var(--zs-green-dark);
}

.zs-btn--ink {
    padding: 11px 20px;
    border-radius: 11px;
    background: var(--zs-ink);
    color: var(--zs-surface);
    font-size: 14px;
}

.zs-btn--ink:hover {
    background: var(--zs-ink-light);
}

.zs-btn--ink .zs-icon {
    font-size: 19px;
}

.zs-btn--outline {
    background: var(--zs-surface);
    border-color: var(--zs-border-strong);
    color: var(--zs-text);
}

.zs-btn--outline:hover {
    border-color: var(--zs-green);
    color: var(--zs-green);
}

.zs-btn--onDark {
    background: var(--zs-surface);
    color: var(--zs-green-dark);
    font-weight: 800;
}

.zs-btn--ghostOnDark {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
    color: var(--zs-on-dark);
}

.zs-btn--block {
    width: 100%;
}

.zs-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* --- section furniture ----------------------------------------------------- */
.zs-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 28px 30px;
}

.zs-section--tight {
    padding-top: 40px;
}

.zs-section__head {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.zs-eyebrow {
    color: var(--zs-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.zs-section__title {
    margin: 12px 0 0;
    font-size: 36px;
    font-weight: 900;
}

.zs-section__lead {
    margin: 14px 0 0;
    color: var(--zs-text-muted);
    font-size: 16px;
    line-height: 1.9;
}

.zs-grid {
    display: grid;
    gap: 22px;
    margin-top: 44px;
}

.zs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.zs-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- surface card ---------------------------------------------------------- */
.zs-surface {
    padding: 26px;
    border: 1px solid var(--zs-border-strong);
    border-radius: 20px;
    background: var(--zs-surface);
    box-shadow: 0 3px 6px rgba(7, 20, 55, .03);
}

.zs-surface--roomy {
    padding: 34px;
    border-radius: 22px;
}

.zs-surface--center {
    text-align: center;
}

.zs-surface__title {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 800;
}

.zs-surface__text {
    margin-top: 9px;
    color: var(--zs-text-soft);
    font-size: 14px;
    line-height: 1.9;
}

/* Tint and accent arrive as a modifier class, never as a hex from the view (§21.3). */
.zs-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--zs-tile-tint, var(--zs-canvas));
    color: var(--zs-tile-accent, var(--zs-text-muted));
}

.zs-figure .zs-icon {
    font-size: 27px;
}

.zs-tint--green { --zs-tile-tint: var(--zs-green-pale); --zs-tile-accent: var(--zs-green); }
.zs-tint--greenDark { --zs-tile-tint: var(--zs-green-pale); --zs-tile-accent: var(--zs-green-dark); }
.zs-tint--blue { --zs-tile-tint: var(--zs-blue-pale); --zs-tile-accent: var(--zs-blue); }
.zs-tint--amber { --zs-tile-tint: var(--zs-amber-pale); --zs-tile-accent: var(--zs-amber-strong); }
.zs-tint--purple { --zs-tile-tint: var(--zs-purple-pale); --zs-tile-accent: var(--zs-purple); }
.zs-tint--red { --zs-tile-tint: var(--zs-red-pale); --zs-tile-accent: var(--zs-red); }

/* --- decorative placeholder panels ----------------------------------------- */
/*
 * The design ships hero and banner art as labelled placeholders, not photographs. They are
 * reproduced as placeholders on purpose: inventing imagery would be inventing design (§15),
 * and a real photograph drops in by replacing this block.
 */
.zs-artboard {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--zs-green-dark), var(--zs-green) 55%, var(--zs-green-bright));
    box-shadow: 0 30px 60px -24px rgba(23, 198, 83, .6);
}

.zs-artboard--square {
    aspect-ratio: 1 / 1;
}

.zs-artboard--banner {
    height: 320px;
}

.zs-artboard__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 78%;
    height: 78%;
    border: 1.5px dashed rgba(255, 255, 255, .45);
    border-radius: 20px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 14px, rgba(255, 255, 255, .05) 14px 28px);
    color: rgba(255, 255, 255, .9);
}

.zs-artboard__inner .zs-icon {
    font-size: 70px;
}

.zs-artboard__blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.zs-artboard__blob--a { left: -40px; top: -40px; width: 220px; height: 220px; }
.zs-artboard__blob--b { right: -30px; bottom: -50px; width: 200px; height: 200px; }

/* --- dark and gradient panels ---------------------------------------------- */
.zs-panelDark,
.zs-panelGreen {
    position: relative;
    overflow: hidden;
    padding: 52px 44px;
    border-radius: 28px;
    color: var(--zs-on-dark);
}

.zs-panelDark {
    background: var(--zs-ink);
}

.zs-panelGreen {
    background: linear-gradient(135deg, var(--zs-green-dark), var(--zs-green) 60%, var(--zs-green-bright));
    box-shadow: 0 28px 56px -26px rgba(23, 198, 83, .7);
    text-align: center;
}

.zs-panelDark__blob,
.zs-panelGreen__blob {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
}

.zs-panelDark__blob {
    left: -60px;
    top: -60px;
    background: rgba(23, 198, 83, .14);
}

.zs-panelGreen__blob {
    right: -40px;
    top: -40px;
    background: rgba(255, 255, 255, .1);
}

.zs-panelDark__body,
.zs-panelGreen__body {
    position: relative;
}

.zs-panelDark .zs-eyebrow {
    color: var(--zs-green-bright);
}

.zs-panel__title {
    margin: 12px 0 0;
    font-size: 34px;
    font-weight: 900;
}

.zs-panel__lead {
    max-width: 520px;
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 1.9;
    opacity: .9;
}

.zs-panel__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    margin-top: 30px;
}

/* --- narrow screens -------------------------------------------------------- */
@media (max-width: 900px) {
    .zs-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /*
     * The header has to fit brand + three links + a call to action in 375px. Left alone
     * everything wraps: the links break mid-phrase and the button becomes two lines, which
     * doubles the header's height and is what "a bit off" looked like.
     *
     * So: the wordmark drops to its icon, the button drops to its icon, and the links are
     * told never to break. Nothing is removed — every target is still there and still
     * reachable, just narrower.
     */
    .zs-topbar__inner {
        gap: 6px;
        padding-inline: 14px;
    }

    .zs-brand__titles {
        display: none;
    }

    .zs-brand__mark {
        width: 40px;
        height: 40px;
    }

    .zs-topnav {
        gap: 0;
    }

    .zs-topnav__link {
        padding: 8px 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Icon-only: the login glyph carries the meaning and the label is the thing that wrapped. */
    .zs-topbar__cta {
        margin-inline-start: 4px;
        padding: 11px;
    }

    /*
     * Clipped, not display:none. The button is icon-only to the eye but keeps its name in the
     * accessibility tree — display:none would leave a screen reader announcing an unlabelled
     * link, and the icon's ligature text is aria-hidden.
     */
    .zs-topbar__cta .zs-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .zs-section {
        padding: 44px 18px 20px;
    }

    .zs-section__title,
    .zs-panel__title {
        font-size: 26px;
    }

    .zs-grid--2,
    .zs-grid--3 {
        grid-template-columns: 1fr;
    }

    .zs-panelDark,
    .zs-panelGreen {
        padding: 34px 22px;
    }
}

/* --- footer ---------------------------------------------------------------- */
.zs-footer {
    margin-top: auto;
    background: var(--zs-surface);
    border-top: 1px solid var(--zs-border-strong);
}

/* --- compact footer (About, Contact) ---------------------------------------- */
/* The prototype gives Home a four-block footer and these two a one-line bar (§21.9). */
.zs-footer__compactinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 28px;
}

.zs-footer__copy {
    margin-top: 2px;
    color: var(--zs-text-dim);
    font-size: 12px;
}

.zs-footer__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zs-footer__links a {
    padding: 9px 14px;
    border-radius: 9px;
    color: var(--zs-text-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.zs-footer__links a:hover {
    background: var(--zs-canvas-hover);
}

/* --- the social row --------------------------------------------------------- */
.zs-footer__social {
    display: flex;
    gap: 10px;
}

.zs-footer__socialicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--zs-radius-sm);
    background: var(--zs-canvas-hover);
    color: var(--zs-text-soft);
}

.zs-footer__socialicon .zs-icon {
    font-size: 20px;
}

.zs-footer__socialicon:hover {
    color: var(--zs-green);
}

/* --- build version ---------------------------------------------------------- */
/* Quiet by design: useful when someone asks "which build is live", invisible otherwise.
   The full string, including the build counter and commit, is the element's title. */
.zs-footer__version {
    margin-inline-start: 10px;
    padding-inline-start: 10px;
    border-inline-start: 1px solid var(--zs-border-strong);
    color: var(--zs-text-faint);
    font-size: 12px;
    white-space: nowrap;
}

/* The links and social icons share the footer's trailing end. */
.zs-footer__end {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
