/* ==========================================================================
   Zam Brothers Agency OS — public landing page
   --------------------------------------------------------------------------
   Always light (see the override block at the end): this page is the front door
   to a private workspace, so it never inherits a signed-in member's theme. Emerald
   stays the only action colour; everything else is depth, not decoration.
   Every animation is wrapped by prefers-reduced-motion at the bottom.
   ========================================================================== */

.zh {
    --zh-ink: #f2f7f4;
    --zh-muted: #9fb3a9;
    --zh-faint: #6f8479;
    --zh-bg: #050b08;
    --zh-surface: rgb(255 255 255 / 0.04);
    --zh-border: rgb(255 255 255 / 0.1);
    --zh-border-strong: rgb(255 255 255 / 0.18);
    --zh-emerald: #5dd3a0;
    --zh-emerald-deep: #0b8460;

    min-height: 100vh;
    margin: 0;
    background: var(--zh-bg);
    color: var(--zh-ink);
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient light. Two slow-drifting pools of colour give the page depth
   without a background image to download. */
.zh-aura {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(42rem 32rem at 12% -6%, rgb(11 132 96 / 0.4), transparent 70%),
        radial-gradient(34rem 28rem at 92% 8%, rgb(93 211 160 / 0.18), transparent 70%),
        radial-gradient(38rem 30rem at 70% 96%, rgb(11 132 96 / 0.22), transparent 72%);
    animation: zh-aura-drift 24s ease-in-out infinite alternate;
}

.zh-grid-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.028) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(60rem 42rem at 50% 0%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(60rem 42rem at 50% 0%, #000 35%, transparent 78%);
}

.zh-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, 78rem);
    margin-inline: auto;
}

.zh-skip {
    position: absolute;
    left: -9999px;
    z-index: 50;
}
.zh-skip:focus {
    left: 1rem;
    top: 1rem;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--zh-emerald);
    color: #05221a;
    font-weight: 600;
}

/* ---------------------------------------------------------------- nav ---- */
.zh-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 12px 14px 12px 16px;
    border: 1px solid var(--zh-border);
    border-radius: 999px;
    background: rgb(8 18 13 / 0.62);
    backdrop-filter: blur(16px);
}
.zh-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: var(--zh-ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.zh-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #0d1c15;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.zh-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.zh-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zh-brand span.zh-brand-sub { color: var(--zh-faint); font-weight: 400; }
.zh-nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }

/* Narrow screens: the two actions must stay reachable, so the wordmark gives
   up space first — the logo alone still identifies the workspace. */
@media (max-width: 720px) { .zh-brand-sub { display: none; } }
@media (max-width: 520px) {
    .zh-brand-name { display: none; }
    .zh-nav { padding: 10px 10px 10px 12px; }
    .zh-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ------------------------------------------------------------ buttons ---- */
.zh-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.22,1,.36,1), background-color .2s, border-color .2s, box-shadow .2s;
}
.zh-btn-primary {
    background: var(--zh-emerald);
    color: #05221a;
    box-shadow: 0 10px 30px -10px rgb(93 211 160 / 0.7);
}
.zh-btn-primary:hover { transform: translateY(-2px); background: #78e0b4; box-shadow: 0 16px 40px -12px rgb(93 211 160 / 0.85); }
.zh-btn-ghost { border-color: var(--zh-border-strong); background: rgb(255 255 255 / 0.03); color: var(--zh-ink); }
.zh-btn-ghost:hover { transform: translateY(-2px); border-color: rgb(93 211 160 / 0.55); background: rgb(93 211 160 / 0.1); }
.zh-btn:focus-visible { outline: 3px solid rgb(93 211 160 / 0.55); outline-offset: 3px; }

/* --------------------------------------------------------------- hero ---- */
.zh-hero { padding: 72px 0 40px; text-align: center; }
.zh-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border: 1px solid rgb(93 211 160 / 0.3);
    border-radius: 999px;
    background: rgb(93 211 160 / 0.09);
    color: #bdf0d9;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.zh-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zh-emerald);
    box-shadow: 0 0 0 0 rgb(93 211 160 / 0.7);
    animation: zh-pulse 2.4s ease-out infinite;
}
.zh-title {
    margin: 22px auto 0;
    max-width: 19ch;
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.045em;
}
.zh-title em {
    font-style: normal;
    background: linear-gradient(104deg, #5dd3a0 10%, #9ef0cc 52%, #2fae80 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.zh-lead {
    margin: 22px auto 0;
    max-width: 60ch;
    color: var(--zh-muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}
.zh-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.zh-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 28px 0 0;
    padding: 0;
    color: var(--zh-faint);
    font-size: 13px;
    list-style: none;
}
.zh-trust li { display: inline-flex; align-items: center; gap: 8px; }
.zh-trust li::before {
    content: '✓';
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgb(93 211 160 / 0.16);
    color: var(--zh-emerald);
    font-size: 10px;
    line-height: 1;
}

/* --------------------------------------------------- kinetic headline ---- */
/* The rotating word sits in its own clipped line so the headline never
   reflows as words of different widths swap in and out. */
.zh-rotate {
    display: inline-grid;
    overflow: hidden;
    padding-bottom: .08em; /* room for descenders inside the clip */
    vertical-align: bottom;
}
.zh-rotate > span {
    grid-area: 1 / 1;
    background: linear-gradient(104deg, #5dd3a0 10%, #9ef0cc 52%, #2fae80 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(0.52em);
    animation: zh-word 12s cubic-bezier(.22,1,.36,1) infinite;
}
.zh-rotate > span:nth-child(1) { animation-delay: 0s; }
.zh-rotate > span:nth-child(2) { animation-delay: 3s; }
.zh-rotate > span:nth-child(3) { animation-delay: 6s; }
.zh-rotate > span:nth-child(4) { animation-delay: 9s; }

/* ------------------------------------------------------- product peek ---- */
/* Deliberately not a screenshot. These are small, built-in-CSS fragments of
   the real interface — a lesson, a piece of timeline feedback, a task list —
   so the page shows the feel of the product without publishing anyone's
   records on a public page. */
.zh-peek {
    display: grid;
    gap: 16px;
    margin: 56px auto 0;
    max-width: 64rem;
}
@media (min-width: 900px) { .zh-peek { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.zh-peek-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--zh-border-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(12 26 19 / 0.96), rgb(7 16 11 / 0.96));
    box-shadow: 0 32px 70px -34px rgb(0 0 0 / 0.95);
    text-align: left;
    backdrop-filter: blur(10px);
}
@media (min-width: 900px) {
    .zh-peek-card { animation: zh-float 9s ease-in-out infinite; }
    .zh-peek-card:nth-child(1) { margin-top: 26px; animation-delay: .3s; }
    .zh-peek-card:nth-child(2) { animation-delay: 0s; }
    .zh-peek-card:nth-child(3) { margin-top: 38px; animation-delay: .7s; }
}
.zh-peek-head { display: flex; align-items: center; gap: 10px; }
.zh-peek-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: rgb(93 211 160 / 0.14); color: var(--zh-emerald); font-size: 13px; }
.zh-peek-label { color: var(--zh-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.zh-peek-title { margin: 14px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.zh-peek-meta { margin: 5px 0 0; color: var(--zh-faint); font-size: 12.5px; }

/* progress */
.zh-bar { margin-top: 14px; height: 7px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.zh-bar i { display: block; width: 62%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--zh-emerald-deep), var(--zh-emerald)); animation: zh-fill 3.6s cubic-bezier(.22,1,.36,1) infinite; }

/* timeline feedback */
.zh-track { position: relative; margin-top: 14px; height: 28px; border: 1px solid var(--zh-border); border-radius: 999px; background: rgb(255 255 255 / 0.05); }
.zh-track i { position: absolute; top: 0; bottom: 0; left: 0; width: 44%; border-radius: 999px; background: rgb(93 211 160 / 0.2); animation: zh-scrub 7s ease-in-out infinite; }
.zh-track b { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; transform: translateY(-50%); border: 2px solid #0a1711; border-radius: 50%; background: var(--zh-honey, #e7b75f); }
.zh-track b:nth-of-type(1) { left: 28%; }
.zh-track b:nth-of-type(2) { left: 62%; background: var(--zh-emerald); }
.zh-note { display: flex; gap: 9px; margin-top: 12px; font-size: 12.5px; line-height: 1.5; }
.zh-note time { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: rgb(93 211 160 / 0.14); color: var(--zh-emerald); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; }
.zh-note span { color: var(--zh-muted); }

/* task rows */
.zh-tasks { margin: 14px 0 0; padding: 0; list-style: none; }
.zh-tasks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--zh-border); font-size: 12.5px; }
.zh-tasks li:first-child { border-top: 0; }
.zh-tasks em { flex: 1; font-style: normal; color: var(--zh-ink); }
.zh-tick { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1.5px solid var(--zh-border-strong); border-radius: 50%; color: transparent; font-size: 10px; }
.zh-tick.is-done { border-color: transparent; background: var(--zh-emerald); color: #05221a; }
.zh-chipstate { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.zh-chipstate.done { background: rgb(93 211 160 / 0.15); color: var(--zh-emerald); }
.zh-chipstate.doing { background: rgb(231 183 95 / 0.15); color: #e7b75f; }
.zh-chipstate.todo { background: rgb(255 255 255 / 0.07); color: var(--zh-faint); }

/* ------------------------------------------------------------ product ---- */
.zh-stage { position: relative; margin: 54px auto 0; max-width: 72rem; }
.zh-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--zh-border-strong);
    border-radius: 22px;
    background: #0a1711;
    box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(255 255 255 / 0.03);
    animation: zh-float 9s ease-in-out infinite;
}
.zh-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--zh-border);
    background: rgb(255 255 255 / 0.03);
}
.zh-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.17); }
.zh-frame-bar span {
    margin-left: 10px;
    overflow: hidden;
    color: var(--zh-faint);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Deliberately a crop, not the whole dashboard: projects, classroom progress
   and who is working today. The finance panels of the full view are never
   published here. */
.zh-frame img { display: block; width: 100%; height: auto; }
.zh-stage { max-width: 62rem; }
.zh-section-tight { padding: 26px 0 0; }

/* On a phone the full three-column shot shrinks until the labels are
   unreadable, which defeats the point of showing it. Crop into the middle
   instead so what is on screen can actually be read. */
@media (max-width: 760px) {
    .zh-frame img { height: 300px; object-fit: cover; object-position: 52% top; }
}

/* Floating facts pinned around the product shot. Hidden on small screens so
   they never cover the screenshot they are meant to annotate. */
.zh-chip {
    position: absolute;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid var(--zh-border-strong);
    border-radius: 14px;
    background: rgb(9 20 15 / 0.9);
    box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.9);
    backdrop-filter: blur(10px);
    font-size: 13px;
    white-space: nowrap;
}
.zh-chip b { display: block; font-size: 15px; font-weight: 600; }
.zh-chip small { color: var(--zh-faint); font-size: 11.5px; }
.zh-chip-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: rgb(93 211 160 / 0.14); color: var(--zh-emerald); font-size: 14px; }
.zh-chip-1 { top: 12%; left: -56px; animation: zh-float 7.5s ease-in-out infinite; }
.zh-chip-2 { top: 44%; right: -60px; animation: zh-float 8.5s ease-in-out .9s infinite; }
.zh-chip-3 { top: 74%; left: -44px; animation: zh-float 10s ease-in-out .4s infinite; }
/* Only once the viewport is wide enough for the chips to sit clear of the
   frame. Below this they would clip against the page edge or cover the UI
   they are annotating. */
@media (min-width: 1360px) { .zh-chip { display: flex; } }

/* --------------------------------------------------------------- band ---- */
.zh-stats {
    display: grid;
    gap: 1px;
    margin-top: 76px;
    overflow: hidden;
    border: 1px solid var(--zh-border);
    border-radius: 20px;
    background: var(--zh-border);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .zh-stats { grid-template-columns: repeat(4, 1fr); } }
.zh-stat { padding: 26px 22px; background: #070f0b; text-align: center; }
.zh-stat b { display: block; font-size: clamp(1rem, 1.6vw, 1.18rem); font-weight: 600; letter-spacing: -0.015em; }
.zh-stat span { display: block; margin-top: 7px; color: var(--zh-faint); font-size: 13px; line-height: 1.5; }

/* ------------------------------------------------------------ section ---- */
.zh-section { padding: 86px 0 0; }
.zh-eyebrow { color: var(--zh-emerald); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.zh-h2 { margin: 14px 0 0; max-width: 22ch; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.zh-sub { margin: 16px 0 0; max-width: 62ch; color: var(--zh-muted); font-size: 1rem; line-height: 1.7; }

.zh-cards { display: grid; gap: 16px; margin-top: 42px; padding: 0; list-style: none; }
@media (min-width: 720px) { .zh-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .zh-cards { grid-template-columns: repeat(3, 1fr); } }
.zh-card {
    position: relative;
    overflow: hidden;
    padding: 26px 24px 28px;
    border: 1px solid var(--zh-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015));
    transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}
.zh-card:hover {
    transform: translateY(-5px);
    border-color: rgb(93 211 160 / 0.42);
    box-shadow: 0 26px 50px -28px rgb(0 0 0 / 0.95);
}
.zh-card::before { /* emerald wash that wakes up on hover */
    content: '';
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--zh-emerald), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.zh-card:hover::before { opacity: 1; }
.zh-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgb(93 211 160 / 0.12);
    color: var(--zh-emerald);
    font-size: 17px;
}
.zh-card h3 { margin: 18px 0 0; font-size: 1.12rem; font-weight: 600; }
.zh-card p { margin: 9px 0 0; color: var(--zh-muted); font-size: 14px; line-height: 1.62; }

/* -------------------------------------------------------------- steps ---- */
.zh-steps { display: grid; gap: 16px; margin-top: 42px; padding: 0; list-style: none; counter-reset: zh-step; }
@media (min-width: 880px) { .zh-steps { grid-template-columns: repeat(3, 1fr); } }
.zh-step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--zh-border);
    border-radius: 18px;
    background: rgb(255 255 255 / 0.025);
}
.zh-step b {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgb(93 211 160 / 0.35);
    border-radius: 13px;
    background: rgb(93 211 160 / 0.1);
    color: var(--zh-emerald);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 14px;
}
.zh-step h3 { margin: 18px 0 0; font-size: 1.1rem; font-weight: 600; }
.zh-step p { margin: 9px 0 0; color: var(--zh-muted); font-size: 14px; line-height: 1.62; }

/* ----------------------------------------------------------- showcase ---- */
.zh-split { display: grid; gap: 18px; margin-top: 42px; }
@media (min-width: 940px) { .zh-split { grid-template-columns: repeat(2, 1fr); } }
.zh-shot {
    overflow: hidden;
    border: 1px solid var(--zh-border);
    border-radius: 18px;
    background: #091410;
    transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
}
.zh-shot:hover { transform: translateY(-4px); border-color: rgb(93 211 160 / 0.35); }
.zh-shot img { display: block; width: 100%; height: auto; }
.zh-shot figcaption { padding: 15px 18px; border-top: 1px solid var(--zh-border); color: var(--zh-muted); font-size: 13.5px; }
.zh-shot figcaption b { color: var(--zh-ink); font-weight: 600; }

/* ----------------------------------------------------------- marquee ---- */
.zh-marquee {
    margin-top: 86px;
    padding: 22px 0;
    overflow: hidden;
    border-block: 1px solid var(--zh-border);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.zh-marquee-track { display: flex; width: max-content; gap: 48px; animation: zh-marquee 34s linear infinite; }
.zh-marquee:hover .zh-marquee-track { animation-play-state: paused; }
.zh-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--zh-faint);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.zh-marquee span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgb(93 211 160 / 0.5); }

/* ---------------------------------------------------------- final cta ---- */
.zh-final {
    position: relative;
    overflow: hidden;
    margin-top: 86px;
    padding: 64px 32px;
    border: 1px solid rgb(93 211 160 / 0.22);
    border-radius: 26px;
    background:
        radial-gradient(28rem 18rem at 50% 0%, rgb(11 132 96 / 0.42), transparent 70%),
        linear-gradient(160deg, #0a1c14, #06110c);
    text-align: center;
}
.zh-final h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.zh-final p { margin: 16px auto 0; max-width: 54ch; color: var(--zh-muted); line-height: 1.7; }

/* ------------------------------------------------------------- footer ---- */
.zh-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 56px;
    padding: 26px 0 40px;
    border-top: 1px solid var(--zh-border);
    color: var(--zh-faint);
    font-size: 13.5px;
}
@media (min-width: 720px) { .zh-foot { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ------------------------------------------------- scroll reveal + kf ---- */
.zh-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.zh-reveal.is-in { opacity: 1; transform: none; }

@keyframes zh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
/* Four words share one 12s cycle, so each owns a 3s slot (25%). The outgoing
   word must be fully gone before the next arrives, otherwise both render in
   the same grid cell and the headline reads as garbled double text. */
@keyframes zh-word {
    0%   { opacity: 0; transform: translateY(0.5em); }
    2%   { opacity: 1; transform: translateY(0); }
    21%  { opacity: 1; transform: translateY(0); }
    24%  { opacity: 0; transform: translateY(-0.5em); }
    100% { opacity: 0; transform: translateY(-0.5em); }
}
@keyframes zh-fill { 0%, 100% { width: 54%; } 50% { width: 72%; } }
@keyframes zh-scrub { 0%, 100% { width: 28%; } 50% { width: 66%; } }
@keyframes zh-aura-drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(0,-3%,0) scale(1.07); } }
@keyframes zh-pulse { 0% { box-shadow: 0 0 0 0 rgb(93 211 160 / 0.65); } 70% { box-shadow: 0 0 0 9px rgb(93 211 160 / 0); } 100% { box-shadow: 0 0 0 0 rgb(93 211 160 / 0); } }
@keyframes zh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .zh-aura, .zh-frame, .zh-chip, .zh-pill-dot, .zh-marquee-track,
    .zh-peek-card, .zh-bar i, .zh-track i { animation: none !important; }
    /* The rotating word must still resolve to something readable, so the first
       option is simply held in place rather than animated. */
    .zh-rotate > span { animation: none !important; opacity: 0; transform: none; }
    .zh-rotate > span:first-child { opacity: 1; }
    .zh-reveal { opacity: 1; transform: none; transition: none; }
    .zh-btn, .zh-card, .zh-shot { transition: none; }
    .zh-btn:hover, .zh-card:hover, .zh-shot:hover { transform: none; }
}

/* ---------------------------------------------------------------- app ---- */
.zh-apps { display: grid; gap: 16px; margin-top: 42px; }
@media (min-width: 880px) { .zh-apps { grid-template-columns: repeat(2, 1fr); } }
.zh-app { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; border: 1px solid var(--zh-border); border-radius: 18px; background: rgb(255 255 255 / 0.025); }
.zh-app h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.zh-app p { flex: 1; margin: 0; color: var(--zh-muted); font-size: 14px; line-height: 1.62; }
.zh-app-steps summary { list-style: none; cursor: pointer; }
.zh-app-steps summary::-webkit-details-marker { display: none; }
.zh-app-steps ol { margin: 14px 0 0; padding-left: 20px; color: var(--zh-muted); font-size: 14px; line-height: 1.8; }
.zh-app-steps strong { color: inherit; font-weight: 600; }

/* No double-tap zoom on phones; pinch-zoom still works. */
html, body { touch-action: manipulation; }

/* ==========================================================================
   Light landing page (owner request, Oct 2026). Same layout and emerald brand,
   on a warm off-white canvas. These rules come last so they replace the dark
   values above without touching the page structure.
   ========================================================================== */
.zh {
    --zh-ink: #11251c;
    --zh-muted: #4f6559;
    --zh-faint: #72877b;
    --zh-bg: #f6f8f4;
    --zh-surface: #ffffff;
    --zh-border: rgb(17 37 28 / 0.1);
    --zh-border-strong: rgb(17 37 28 / 0.2);
    --zh-emerald: #0b8460;
    --zh-emerald-deep: #086b4e;
    color-scheme: light;
}
.zh-aura {
    background:
        radial-gradient(42rem 32rem at 12% -6%, rgb(11 132 96 / 0.14), transparent 70%),
        radial-gradient(34rem 28rem at 92% 8%, rgb(93 211 160 / 0.16), transparent 70%),
        radial-gradient(38rem 30rem at 70% 96%, rgb(11 132 96 / 0.08), transparent 72%);
}
.zh-grid-lines {
    background-image:
        linear-gradient(rgb(17 37 28 / 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgb(17 37 28 / 0.045) 1px, transparent 1px);
}
.zh-skip:focus, .zh-btn-primary, .zh-tick.is-done { color: #ffffff; }
.zh-btn-primary { background: var(--zh-emerald); box-shadow: 0 12px 30px -14px rgb(11 132 96 / 0.7); }
.zh-btn-primary:hover { background: var(--zh-emerald-deep); box-shadow: 0 16px 36px -14px rgb(11 132 96 / 0.75); }
.zh-btn-ghost { background: #ffffff; }
.zh-brand-mark { background: var(--zh-emerald); box-shadow: none; }
.zh-pill { color: var(--zh-emerald-deep); }
.zh-bar, .zh-track, .zh-chipstate.todo, .zh-frame-bar { background: rgb(17 37 28 / 0.05); }
.zh-frame-bar i { background: rgb(17 37 28 / 0.16); }
.zh-track b { border-color: #ffffff; }
.zh-chipstate.doing { background: rgb(176 112 0 / 0.12); color: #8a5a00; }
.zh-frame, .zh-shot, .zh-stat { background: #ffffff; }
.zh-frame { box-shadow: 0 40px 90px -46px rgb(17 37 28 / 0.35), 0 0 0 1px var(--zh-border); }
.zh-peek-card, .zh-chip { background: #ffffff; box-shadow: 0 18px 40px -24px rgb(17 37 28 / 0.3); }
.zh-card, .zh-step, .zh-app { background: #ffffff; box-shadow: 0 1px 2px rgb(17 37 28 / 0.04); }
.zh-card:hover { box-shadow: 0 22px 44px -28px rgb(17 37 28 / 0.35); }
.zh-final { background: linear-gradient(160deg, #e9f5ee, #f6faf7); border-color: rgb(11 132 96 / 0.2); }
.zh-nav { background: rgb(255 255 255 / 0.82); box-shadow: 0 10px 30px -22px rgb(17 37 28 / 0.35); }
.zh-title em, .zh-rotate > span { background: linear-gradient(104deg, #0b8460 10%, #12a877 52%, #086b4e 92%); -webkit-background-clip: text; background-clip: text; }
.zh-peek-card { background: #ffffff; }
