/* =========================================================================
   Engage — homepage
   =========================================================================

   Loaded only on "/" so the rest of the site keeps its existing stylesheet
   untouched. Everything here is prefixed `eg-` for the same reason: the older
   `lp-` classes still style /pricing and /guide, and a redesign that quietly
   restyles two other pages is a regression, not a redesign.

   THE PALETTE IS THE BRAND'S, NOT INSTAGRAM'S. Navy and purple carry the page.
   The warm gradient appears only as a thin accent — a rule line, a keyword
   highlight, the edge of a card — because a page washed in Instagram's colours
   reads as an official Meta product, which this is not and must not imply.

   MOTION IS OPT-IN. Start states live behind html[data-lp-anim="on"], which is
   set by a head script only when prefers-reduced-motion is absent. JS off, GSAP
   blocked, or reduced motion asked for: nothing is hidden, the page just sits
   there fully readable.
   ========================================================================= */

:root {
    --eg-navy:        #0f1b35;
    --eg-navy-deep:   #08101f;
    --eg-navy-soft:   #16213c;
    --eg-line:        rgba(255, 255, 255, .09);
    --eg-line-strong: rgba(255, 255, 255, .16);
    --eg-ink:         #ffffff;
    --eg-body:        #b9c2d6;
    --eg-muted:       #64748b;
    --eg-purple:      #7c3aed;
    --eg-purple-lift: #a78bfa;
    --eg-grad:        linear-gradient(100deg, #7c3aed, #c026d3 42%, #ec4899 68%, #f97316);
    --eg-radius:      16px;
    --eg-radius-lg:   22px;
}

/* The landing sits on its own ground rather than the global content grey. */
body.eg-body { background: var(--eg-navy-deep); color: var(--eg-body); }
body.eg-body main { overflow-x: clip; }

.eg-section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.eg-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.eg-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #cbb8ff; background: rgba(124, 58, 237, .13);
    border: 1px solid rgba(124, 58, 237, .32);
    border-radius: 999px; padding: .4rem .85rem;
}
.eg-eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eg-grad);
}

.eg-h1 {
    font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -.035em;
    font-weight: 760; color: var(--eg-ink); margin: 1.25rem 0 0;
}
.eg-h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.13; letter-spacing: -.03em;
    font-weight: 720; color: var(--eg-ink); margin: 0;
}
.eg-h3 { font-size: 1.03rem; font-weight: 660; color: var(--eg-ink); margin: 0 0 .4rem; letter-spacing: -.01em; }
.eg-grad-text {
    background: var(--eg-grad); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.eg-lede {
    font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.62; color: var(--eg-body);
    max-width: 46rem; margin: 1rem 0 0;
}
.eg-center { text-align: center; }
.eg-center .eg-lede { margin-inline: auto; }
.eg-kicker {
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--eg-muted); margin: 0 0 .8rem;
}

/* ---- Buttons ------------------------------------------------------------ */
.eg-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.eg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 650; font-size: .96rem; line-height: 1; text-decoration: none;
    padding: .95rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    will-change: transform;
}
.eg-btn-primary {
    background: var(--eg-purple); color: #fff;
    box-shadow: 0 14px 34px -14px rgba(124, 58, 237, .95);
}
.eg-btn-primary:hover { background: #6d28d9; color: #fff; transform: translateY(-2px); }
.eg-btn-ghost {
    background: rgba(255, 255, 255, .04); color: var(--eg-ink); border-color: var(--eg-line-strong);
}
.eg-btn-ghost:hover { background: rgba(255, 255, 255, .09); color: var(--eg-ink); transform: translateY(-2px); }
.eg-note { font-size: .84rem; color: var(--eg-muted); margin: .95rem 0 0; }

/* ---- Shared card ------------------------------------------------------- */
.eg-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--eg-line); border-radius: var(--eg-radius);
    padding: 1.5rem; height: 100%;
}
.eg-card p { color: var(--eg-body); font-size: .92rem; line-height: 1.6; margin: 0; }

/* =========================================================================
   HERO
   ========================================================================= */
.eg-hero {
    position: relative; overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6rem);
    background:
        radial-gradient(900px 520px at 8% -12%, rgba(124, 58, 237, .30), transparent 62%),
        radial-gradient(760px 460px at 96% 2%, rgba(192, 38, 211, .18), transparent 58%),
        linear-gradient(180deg, var(--eg-navy), var(--eg-navy-deep));
}
.eg-hero-grid {
    display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) { .eg-hero-grid { grid-template-columns: 1.02fr 1fr; } }

.eg-hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.eg-hero-points li {
    position: relative; padding-left: 1.75rem; color: var(--eg-body);
    font-size: .96rem; line-height: 1.5;
}
.eg-hero-points li::before {
    content: ""; position: absolute; left: 0; top: .34em;
    width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: rgba(124, 58, 237, .18); border: 1px solid rgba(167, 139, 250, .5);
}
.eg-hero-points li::after {
    content: ""; position: absolute; left: .33rem; top: .62em;
    width: .34rem; height: .18rem; border-left: 1.5px solid #c4b5fd; border-bottom: 1.5px solid #c4b5fd;
    transform: rotate(-45deg);
}
.eg-hero-points b { color: var(--eg-ink); font-weight: 650; }

/* ---- The layered product stack ----------------------------------------- */
.eg-stack { position: relative; perspective: 1400px; }
.eg-stack-inner { position: relative; transform-style: preserve-3d; }

.eg-panel {
    background: linear-gradient(180deg, #1a2542, #131d34);
    border: 1px solid var(--eg-line-strong); border-radius: var(--eg-radius);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
    backdrop-filter: blur(8px);
}
.eg-panel-head {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem .95rem; border-bottom: 1px solid var(--eg-line);
}
.eg-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.eg-panel-title {
    margin-left: auto; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--eg-muted); font-style: normal;
}

/* Foreground: the Instagram-style comment */
.eg-comment {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .9rem 1rem;
}
.eg-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--eg-grad); display: grid; place-items: center;
    color: #fff; font-size: .76rem; font-weight: 700;
}
.eg-comment-body { min-width: 0; }
.eg-handle { color: var(--eg-ink); font-weight: 650; font-size: .85rem; }
.eg-comment-text { color: #d5dcec; font-size: .9rem; margin: .1rem 0 0; }
.eg-kw {
    background: rgba(236, 72, 153, .18); border-bottom: 1.5px solid #ec4899;
    color: #ffd7ec; border-radius: 3px; padding: 0 .18rem; font-weight: 650;
}

/* The rule node in the middle of the stack */
.eg-rule { padding: .2rem .95rem .95rem; }
.eg-rule-row {
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--eg-body);
    background: rgba(124, 58, 237, .10); border: 1px solid rgba(124, 58, 237, .3);
    border-radius: 10px; padding: .55rem .7rem;
}
.eg-tagname {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #c4b5fd;
}
.eg-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
    color: #fff; background: rgba(255, 255, 255, .07); border-radius: 5px; padding: .1rem .4rem;
}

/* Status ticks that appear as the sequence runs */
.eg-status {
    display: flex; align-items: center; gap: .45rem;
    font-size: .74rem; font-weight: 650; letter-spacing: .02em;
    padding: .5rem .95rem; color: #6ee7b7;
}
.eg-status::before {
    content: ""; width: 1rem; height: 1rem; border-radius: 50%; flex: none;
    background: rgba(16, 185, 129, .18); border: 1px solid rgba(110, 231, 183, .55);
}
.eg-status.is-wait { color: #fcd34d; }
.eg-status.is-wait::before { background: rgba(245, 158, 11, .16); border-color: rgba(252, 211, 77, .5); }

/* The DM that gets sent */
.eg-dm { padding: .2rem .95rem 1rem; }
.eg-bubble {
    background: linear-gradient(135deg, rgba(124, 58, 237, .9), rgba(192, 38, 211, .82));
    color: #fff; font-size: .87rem; line-height: 1.5;
    border-radius: 14px 14px 14px 4px; padding: .7rem .85rem; max-width: 20rem;
}
.eg-bubble-reply {
    background: rgba(255, 255, 255, .07); border: 1px solid var(--eg-line);
    border-radius: 14px 14px 4px 14px; margin-left: auto; color: #dbe2f1;
}
.eg-bubbles { display: grid; gap: .5rem; }

/* Floating satellite cards give the stack depth */
.eg-float {
    position: absolute; z-index: 3;
    background: rgba(20, 29, 51, .92); border: 1px solid var(--eg-line-strong);
    border-radius: 12px; padding: .55rem .75rem; font-size: .74rem; color: #dbe2f1;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.eg-float b { color: #fff; font-weight: 650; }
.eg-float-a { top: -1.1rem; right: -.6rem; }
.eg-float-b { bottom: -1.2rem; left: -1rem; }
@media (max-width: 991.98px) {
    .eg-float-a { top: -.9rem; right: .2rem; }
    .eg-float-b { bottom: -1rem; left: .2rem; }
}
@media (max-width: 480px) { .eg-float { font-size: .68rem; padding: .45rem .6rem; } }

.eg-progress { height: 2px; background: rgba(255, 255, 255, .06); border-radius: 0 0 var(--eg-radius) var(--eg-radius); }
.eg-progress i { display: block; height: 100%; width: 0; background: var(--eg-grad); }

/* =========================================================================
   PROBLEM — what is being lost
   ========================================================================= */
.eg-problem { background: var(--eg-navy-deep); border-top: 1px solid var(--eg-line); }
.eg-comment-cloud {
    display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 2rem 0 0;
}
.eg-pill {
    background: rgba(255, 255, 255, .05); border: 1px solid var(--eg-line);
    border-radius: 999px; padding: .5rem .95rem; font-size: .88rem; color: #cfd7e8;
}
.eg-pill b { color: #fff; font-weight: 650; }

.eg-paths { display: grid; gap: 1rem; margin-top: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .eg-paths { grid-template-columns: 1fr 1fr; } }
.eg-path { border-radius: var(--eg-radius-lg); padding: 1.5rem; border: 1px solid var(--eg-line); }
.eg-path-bad { background: rgba(239, 68, 68, .05); border-color: rgba(248, 113, 113, .22); }
.eg-path-good { background: rgba(124, 58, 237, .08); border-color: rgba(167, 139, 250, .32); }
.eg-path h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.eg-path-bad h3 { color: #fca5a5; }
.eg-path-good h3 { color: #c4b5fd; }
.eg-flow { display: grid; gap: .5rem; }
.eg-flow-step {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(0, 0, 0, .22); border: 1px solid var(--eg-line);
    border-radius: 10px; padding: .65rem .8rem; font-size: .88rem; color: #d5dcec;
}
.eg-flow-step .eg-num {
    width: 1.35rem; height: 1.35rem; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: .68rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12);
}
.eg-path-good .eg-num { background: var(--eg-grad); }
.eg-flow-end { font-weight: 650; }
.eg-path-bad .eg-flow-end { color: #fca5a5; }
.eg-path-good .eg-flow-end { color: #6ee7b7; }

/* =========================================================================
   STEPS
   ========================================================================= */
.eg-steps { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .eg-steps { grid-template-columns: repeat(3, 1fr); } }
.eg-step { position: relative; }
.eg-step-n {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8rem; font-weight: 700; letter-spacing: .1em;
    background: var(--eg-grad); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    display: block; margin-bottom: .7rem;
}
.eg-mini {
    margin-top: 1rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--eg-line);
    border-radius: 10px; padding: .7rem .8rem; font-size: .8rem; color: #cfd7e8;
}
.eg-mini-label {
    font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eg-muted);
    display: block; margin-bottom: .3rem;
}

/* =========================================================================
   AUTOMATION ENGINE
   ========================================================================= */
.eg-engine { background: linear-gradient(180deg, var(--eg-navy-deep), var(--eg-navy)); }
.eg-builder {
    margin-top: 3rem; background: linear-gradient(180deg, #1a2542, #121b31);
    border: 1px solid var(--eg-line-strong); border-radius: var(--eg-radius-lg);
    box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .95); overflow: hidden;
}
.eg-builder-body { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 0; }
.eg-node {
    border: 1px solid var(--eg-line); border-radius: 12px; padding: .9rem 1rem;
    background: rgba(255, 255, 255, .035); position: relative;
}
.eg-node-trigger { border-color: rgba(167, 139, 250, .4); background: rgba(124, 58, 237, .1); }
.eg-node-head {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--eg-muted); margin-bottom: .45rem;
}
.eg-node-trigger .eg-node-head { color: #c4b5fd; }
.eg-node p { margin: 0; color: #dbe2f1; font-size: .92rem; }
.eg-connector { height: 1.75rem; position: relative; }
.eg-connector::before {
    content: ""; position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, rgba(167, 139, 250, .55), rgba(167, 139, 250, .12));
}
.eg-connector::after {
    content: ""; position: absolute; left: calc(1.5rem - 3px); bottom: .15rem;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid rgba(167, 139, 250, .5);
}
.eg-badge {
    font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 999px; padding: .18rem .5rem; margin-left: auto;
    background: rgba(16, 185, 129, .16); color: #6ee7b7;
}

/* =========================================================================
   WHAT THE DM CARRIES  (replaces the unbuilt catalogue lookup)
   ========================================================================= */
.eg-deliver { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .eg-deliver { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .eg-deliver { grid-template-columns: repeat(4, 1fr); } }
.eg-deliver .eg-card { display: flex; flex-direction: column; gap: .5rem; }
.eg-ico {
    width: 2.1rem; height: 2.1rem; border-radius: 9px; display: grid; place-items: center;
    background: rgba(124, 58, 237, .16); border: 1px solid rgba(167, 139, 250, .3); font-size: 1rem;
}

/* =========================================================================
   USE CASES · WHY · FEATURES
   ========================================================================= */
.eg-grid-3 { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .eg-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .eg-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.eg-case { transition: transform .2s ease, border-color .2s ease; }
@media (hover: hover) {
    .eg-case:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .4); }
}
.eg-case-tag {
    font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #c4b5fd; display: block; margin-bottom: .5rem;
}
.eg-case-demo {
    margin-top: .9rem; border-top: 1px dashed var(--eg-line); padding-top: .8rem;
    font-size: .82rem; color: var(--eg-muted); display: grid; gap: .3rem;
}
.eg-case-demo b { color: #dbe2f1; font-weight: 600; }

.eg-why { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .eg-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .eg-why { grid-template-columns: repeat(3, 1fr); } }

.eg-features { margin-top: 3rem; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .eg-features { grid-template-columns: 1fr 1fr; } }
.eg-feature {
    display: flex; gap: .8rem; align-items: flex-start;
    border: 1px solid var(--eg-line); border-radius: 12px; padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, .025);
}
.eg-feature .eg-tick {
    width: 1.2rem; height: 1.2rem; flex: none; border-radius: 50%; margin-top: .12rem;
    background: rgba(124, 58, 237, .2); border: 1px solid rgba(167, 139, 250, .45);
    display: grid; place-items: center; font-size: .65rem; color: #ddd6fe;
}
.eg-feature p { margin: .15rem 0 0; font-size: .87rem; color: var(--eg-muted); }

/* =========================================================================
   PRICING
   ========================================================================= */
.eg-plans { display: grid; gap: 1.2rem; margin-top: 3rem; grid-template-columns: 1fr; max-width: 60rem; margin-inline: auto; }
@media (min-width: 768px) { .eg-plans { grid-template-columns: 1fr 1fr; } }
.eg-plan { position: relative; display: flex; flex-direction: column; }
.eg-plan-hi { border-color: rgba(167, 139, 250, .5); background: linear-gradient(180deg, rgba(124, 58, 237, .14), rgba(124, 58, 237, .04)); }
.eg-plan-badge {
    position: absolute; top: -.7rem; left: 1.4rem;
    background: var(--eg-grad); color: #fff; font-size: .62rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: .25rem .7rem;
}
.eg-price { font-size: 2.4rem; font-weight: 750; color: var(--eg-ink); letter-spacing: -.03em; margin: .5rem 0 .2rem; }
.eg-price span { font-size: .85rem; font-weight: 500; color: var(--eg-muted); letter-spacing: 0; }
.eg-plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: grid; gap: .55rem; }
.eg-plan li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--eg-body); }
.eg-plan li::before { content: "✓"; position: absolute; left: 0; color: #a78bfa; }
.eg-plan .eg-btn { width: 100%; margin-top: auto; }

/* =========================================================================
   FAQ
   ========================================================================= */
.eg-faq { max-width: 52rem; margin: 3rem auto 0; display: grid; gap: .6rem; }
.eg-faq details {
    border: 1px solid var(--eg-line); border-radius: 12px;
    background: rgba(255, 255, 255, .025); overflow: hidden;
}
.eg-faq summary {
    cursor: pointer; list-style: none; padding: 1rem 1.2rem;
    font-weight: 600; color: var(--eg-ink); font-size: .96rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.eg-faq summary::-webkit-details-marker { display: none; }
.eg-faq summary::after {
    content: "+"; color: #a78bfa; font-size: 1.2rem; font-weight: 400; flex: none; line-height: 1;
}
.eg-faq details[open] summary::after { content: "−"; }
.eg-faq p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--eg-body); font-size: .92rem; line-height: 1.65; }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.eg-final {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(4rem, 9vw, 7rem) 0;
    background:
        radial-gradient(700px 380px at 50% 0%, rgba(124, 58, 237, .32), transparent 65%),
        linear-gradient(180deg, var(--eg-navy), var(--eg-navy-deep));
    border-top: 1px solid var(--eg-line);
}
.eg-final-cards { position: relative; height: 0; }
.eg-final-card {
    position: absolute; background: rgba(20, 29, 51, .8); border: 1px solid var(--eg-line-strong);
    border-radius: 12px; padding: .5rem .75rem; font-size: .74rem; color: #cbd5e9;
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .9); white-space: nowrap;
}
@media (max-width: 767.98px) { .eg-final-card { display: none; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.eg-foot { background: var(--eg-navy-deep); border-top: 1px solid var(--eg-line); padding: 3.5rem 0 2rem; }
.eg-foot-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .eg-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .eg-foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.eg-foot h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--eg-muted); margin: 0 0 .9rem; font-weight: 700; }
.eg-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.eg-foot a { color: #aeb6c9; text-decoration: none; font-size: .89rem; }
.eg-foot a:hover { color: #fff; }
.eg-foot-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.eg-foot-brand img { border-radius: 8px; }
.eg-foot-brand span { color: #fff; font-weight: 700; line-height: 1.15; }
.eg-foot-brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--eg-muted); }
.eg-foot-desc { font-size: .88rem; color: var(--eg-muted); line-height: 1.6; max-width: 22rem; margin: 0; }
.eg-foot-base {
    margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--eg-line);
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
    font-size: .8rem; color: var(--eg-muted);
}
.eg-foot-base p { margin: 0; }

/* =========================================================================
   MOTION START STATES  (only while the opt-in attribute is present)
   ========================================================================= */
[data-lp-anim="on"] .eg-hero [data-eg-hero] { opacity: 0; }
[data-lp-anim="on"] [data-eg-seq] { opacity: 0; }
[data-lp-anim="on"] [data-eg-reveal] { opacity: 0; transform: translateY(22px); }
[data-lp-anim="on"] .eg-float { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .eg-btn, .eg-case { transition: none !important; }
}

/* =========================================================================
   3D PHONE MOCKUP + SCROLL DEPTH
   =========================================================================

   The device is drawn in CSS rather than dropped in as a screenshot or a stock
   photo: nothing to licence, nothing to go stale when the product's wording
   changes, sharp on any display, and a few KB instead of a few hundred.
   ========================================================================= */

.eg-phone-wrap { perspective: 1600px; display: flex; justify-content: center; }
.eg-phone {
    position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.6;
    background: linear-gradient(165deg, #2a3550, #131b2e);
    border-radius: 38px; padding: 9px;
    box-shadow:
        0 60px 120px -40px rgba(0, 0, 0, .95),
        0 0 0 1px rgba(255, 255, 255, .09),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    transform-style: preserve-3d;
}
.eg-phone-screen {
    position: relative; height: 100%; width: 100%; overflow: hidden;
    background: linear-gradient(180deg, #10182b, #0b1120);
    border-radius: 30px; display: flex; flex-direction: column;
}
.eg-notch {
    position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 20px; background: #0b1120; border-radius: 0 0 12px 12px; z-index: 6;
}
.eg-phone-top {
    display: flex; align-items: center; gap: .5rem; padding: 1.7rem .8rem .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07); flex: none;
}
.eg-phone-top .eg-avatar { width: 26px; height: 26px; font-size: .68rem; }
.eg-phone-user { font-size: .76rem; color: #fff; font-weight: 650; line-height: 1.1; }
.eg-phone-user small { display: block; color: var(--eg-muted); font-weight: 500; font-size: .62rem; }

/* The post: a gradient plate rather than a photograph, for the same reason. */
.eg-post {
    flex: none; height: 27%; margin: .55rem .6rem;
    border-radius: 12px; position: relative; overflow: hidden;
    background:
        radial-gradient(120px 80px at 25% 25%, rgba(255, 255, 255, .22), transparent 60%),
        var(--eg-grad);
}
.eg-post::after {
    content: "Comment PRICE for the link"; position: absolute; left: .6rem; bottom: .5rem; right: .6rem;
    font-size: .62rem; font-weight: 650; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.eg-thread { flex: 1; overflow: hidden; padding: .3rem .6rem .6rem; display: flex; flex-direction: column; gap: .4rem; }
.eg-line { display: flex; gap: .4rem; align-items: flex-start; font-size: .66rem; line-height: 1.35; }
.eg-line .eg-avatar { width: 18px; height: 18px; font-size: .55rem; flex: none; }
.eg-line-body { min-width: 0; color: #cbd5e9; }
.eg-line-body b { color: #fff; display: block; font-size: .64rem; }
.eg-line-brand .eg-avatar { background: linear-gradient(135deg, #7c3aed, #4f46e5); }

.eg-phone-dm {
    margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08);
    padding: .5rem .6rem .6rem; background: rgba(124, 58, 237, .08);
}
.eg-phone-dm-label {
    font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
    color: #c4b5fd; display: block; margin-bottom: .35rem;
}
.eg-phone-bubble {
    background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff;
    font-size: .64rem; line-height: 1.4; border-radius: 12px 12px 12px 3px;
    padding: .45rem .55rem;
}
.eg-phone-bubble-in {
    background: rgba(255, 255, 255, .09); border-radius: 12px 12px 3px 12px;
    margin-top: .3rem; margin-left: 1.4rem; color: #dbe2f1;
}

/* A ticking status strip under the screen, so the mechanism is legible even
   in a still screenshot of the page. */
.eg-phone-status {
    position: absolute; left: 50%; bottom: -1.5rem; transform: translateX(-50%);
    display: flex; gap: .3rem; white-space: nowrap;
}
.eg-phone-status span {
    font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    background: rgba(16, 185, 129, .16); color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, .35); border-radius: 999px; padding: .2rem .5rem;
}

/* Sections lift out of the page as they arrive. rotateX only, tiny angle:
   enough to read as depth, not enough to blur the text mid-transition. */
[data-lp-anim="on"] [data-eg-3d] {
    opacity: 0; transform: perspective(1200px) rotateX(7deg) translateY(46px) scale(.985);
    transform-origin: 50% 100%;
}

@media (max-width: 991.98px) {
    .eg-phone { width: min(260px, 68vw); }
}
@media (prefers-reduced-motion: reduce) {
    .eg-phone, .eg-stack-inner { transform: none !important; }
}

/* On a narrow screen the floating satellite cards and the status chips under
   the phone compete for the same few pixels. The chips carry the sequence, so
   they stay; the lower float duplicates "lead saved" and goes. */
@media (max-width: 991.98px) {
    .eg-float-b { display: none; }
    .eg-phone-status { bottom: -1.9rem; }
    .eg-stack-inner { padding-bottom: 2.2rem; }
}
