/* ═══════════════════════════════════════════════════════════════
   MindColab — landing page (signed-out visitors only)
   Uses the design tokens from style.css so dark/light themes just work.
   ═══════════════════════════════════════════════════════════════ */

/* ── Visibility: signed-out → landing page, signed-in → app shell ── */
#landing { display: none; }
html[data-auth="out"] #landing { display: block; }
html[data-auth="out"] #app,
html[data-auth="out"] .ad-footer { display: none !important; }
html[data-auth="in"]  #landing { display: none !important; }
html[data-auth="out"] { scroll-behavior: smooth; }

#landing {
    --lp-grad: linear-gradient(135deg, #818cf8 0%, #c084fc 55%, #f472b6 100%);
    --lp-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    /* Dark theme text ladder (contrast on the page background): strong 19:1, body 13:1, soft 10:1 */
    --lp-text-strong: #ffffff;
    --lp-text: #d9d9e0;
    --lp-text-soft: #b9b9c4;
    --lp-accent-text: #a5b4fc;
    /* Card edges are visible; control outlines meet the 3:1 non-text contrast guideline */
    --lp-line: rgba(255, 255, 255, .16);
    --lp-line-strong: rgba(255, 255, 255, .38);
    --lp-surface: rgba(255, 255, 255, .05);
    --lp-surface-hover: rgba(255, 255, 255, .10);
    --lp-gutter: clamp(1rem, 3.2vw, 2.75rem);
    position: relative;
    overflow-x: clip;
    color: var(--lp-text);
}
[data-theme="light"] #landing {
    --lp-grad: linear-gradient(135deg, #4f46e5 0%, #9333ea 55%, #db2777 100%);
    --lp-text-strong: #09090b;
    --lp-text: #27272a;
    --lp-text-soft: #3f3f46;
    --lp-accent-text: #3730a3;
    --lp-line: rgba(0, 0, 0, .14);
    --lp-line-strong: rgba(0, 0, 0, .46);
    --lp-surface: #ffffff;
    --lp-surface-hover: #f4f4f5;
}

#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
/* :where() keeps the reset at zero specificity so component rules below can override it */
:where(#landing) :is(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:where(#landing) :is(ul, ol) { padding: 0; list-style: none; }

.lp-container { width: min(1560px, calc(100% - 2 * var(--lp-gutter))); margin-inline: auto; }

/* The app shell styles every <main> (2.5rem padding, scrolling, extra bottom space).
   The landing page manages its own spacing, so neutralise that here. */
#landing .lp-main { padding: 0; overflow: visible; }

/* Balanced wrapping avoids one-word last lines in headings */
:where(#landing) :is(h1, h2, h3) { text-wrap: balance; }
:where(#landing) :is(.lp-lead, .lp-section-sub, .lp-card p, .lp-step p, .lp-pillar p, .lp-trust p, .lp-about-copy p:not(.lp-kicker)) { text-wrap: pretty; }

.lp-skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: #fff; color: #111; padding: .6rem 1rem; border-radius: .6rem;
    font-weight: 600; text-decoration: none;
}
.lp-skip:focus { top: 1rem; }

#landing :is(a, button, summary):focus-visible {
    outline: 3px solid var(--lp-accent-text);
    outline-offset: 3px;
    border-radius: .5rem;
}

/* ── Buttons ── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .7rem 1.25rem;
    border-radius: .8rem;
    border: 1px solid transparent;
    font: 600 .95rem/1.2 inherit;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.lp-btn-lg { padding: .95rem 1.6rem; font-size: 1rem; border-radius: .95rem; }
.lp-btn-primary {
    background: var(--lp-btn); color: #fff;
    box-shadow: 0 10px 26px -10px rgba(99, 102, 241, .85);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(124, 58, 237, .9); }
.lp-btn-primary:active { transform: translateY(0); }
.lp-btn-ghost { background: var(--lp-surface); color: var(--lp-text-strong); border-color: var(--lp-line-strong); }
.lp-btn-ghost:hover { background: var(--lp-surface-hover); border-color: var(--lp-accent-text); }
.lp-btn-light { background: #fff; color: #3730a3; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.lp-btn-light:hover { transform: translateY(-2px); }
.lp-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.lp-btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.lp-icon-btn {
    width: 2.5rem; height: 2.5rem;
    display: inline-grid; place-items: center;
    border-radius: .7rem;
    border: 1px solid var(--lp-line-strong);
    background: var(--lp-surface); color: var(--lp-text-strong);
    cursor: pointer; font-size: 1rem;
    transition: color .2s, border-color .2s, background .2s;
}
.lp-icon-btn:hover { border-color: var(--lp-accent-text); background: var(--lp-surface-hover); }

/* ── Header ── */
.lp-header {
    position: sticky; top: 0; z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.lp-header.is-scrolled {
    background: var(--bg-navbar);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--lp-line);
}
.lp-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }

.lp-brand {
    display: inline-flex; align-items: center; gap: .65rem;
    text-decoration: none; color: var(--lp-text-strong);
    font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}

.lp-nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.lp-nav > a {
    padding: .5rem .85rem; border-radius: .6rem;
    color: var(--lp-text); text-decoration: none;
    font-weight: 600; font-size: .95rem;
    transition: color .2s, background .2s;
}
.lp-nav > a:hover { color: var(--lp-text-strong); background: var(--lp-surface-hover); }
.lp-nav-extra { display: none; }
.lp-actions { display: flex; align-items: center; gap: .6rem; }
.lp-menu-btn { display: none; }

/* ── Hero ── */
.lp-hero { padding-block: clamp(.75rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 3rem); }
.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;   /* both columns start right under the nav: no dead space above either one */
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .95rem; margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, .12);
    border: 1px solid rgba(129, 140, 248, .3);
    color: var(--lp-accent-text);
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.lp-eyebrow-dot {
    width: .5rem; height: .5rem; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .22);
}
#landing h1 {
    font-size: clamp(2.4rem, 4.4vw, 5rem);
    line-height: 1.06; letter-spacing: -.028em; font-weight: 800;
    margin-bottom: 1.15rem;
}
.lp-grad-text {
    background: var(--lp-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.lp-lead {
    max-width: 38rem;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.7; color: var(--lp-text);
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.lp-cta-row-center { justify-content: center; }
.lp-checks {
    display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
    margin-top: 1.5rem; color: var(--lp-text); font-size: .92rem;
}
.lp-checks i { color: var(--accent); margin-right: .4rem; }

/* Hero illustration */
.lp-hero-art { position: relative; width: 100%; max-width: 640px; aspect-ratio: 520 / 460; margin-inline: auto; }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; pointer-events: none; }
.lp-orb-a { width: 55%; height: 55%; left: -8%; top: -6%; background: rgba(99, 102, 241, .5); }
.lp-orb-b { width: 50%; height: 50%; right: -6%; bottom: -6%; background: rgba(244, 114, 182, .38); }
.lp-graph-card {
    position: absolute; inset: 0;
    border-radius: 1.75rem; overflow: hidden;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
}
.lp-graph { display: block; width: 100%; height: 100%; }
.lp-edges line { stroke-dasharray: 1 8; animation: lp-flow 6s linear infinite; }
@keyframes lp-flow { to { stroke-dashoffset: -81; } }
.lp-node {
    fill: rgb(var(--c));
    filter: drop-shadow(0 0 7px rgba(var(--c), .8));
    transform-box: fill-box; transform-origin: center;
    animation: lp-pulse 4.5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
@keyframes lp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.lp-core-ring { fill: rgba(99, 102, 241, .14); stroke: rgba(129, 140, 248, .5); stroke-width: 1.5; }

.lp-float {
    position: absolute;
    display: flex; align-items: center; gap: .7rem;
    max-width: 15.5rem;
    padding: .7rem 1rem .7rem .75rem;
    border-radius: 1rem;
    background: var(--modal-bg);
    border: 1px solid var(--lp-line);
    box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    line-height: 1.3;
    animation: lp-float 7s ease-in-out infinite;
}
.lp-float strong { display: block; font-size: .86rem; font-weight: 700; color: var(--lp-text-strong); }
.lp-float small { display: block; font-size: .74rem; color: var(--lp-text-soft); }
.lp-float-note { top: 3%; left: -4%; }
.lp-float-link { bottom: 7%; left: 1%; animation-delay: 1.6s; }
.lp-float-team { top: 43%; right: -2%; animation-delay: 3.1s; }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.lp-float-icon, .lp-pillar-icon, .lp-card-icon {
    display: grid; place-items: center; flex: none;
    background: rgba(var(--tone), .16); color: rgb(var(--tone));
}
.lp-float-icon { width: 2.2rem; height: 2.2rem; border-radius: .7rem; }
.lp-mini-tags { display: flex; gap: .3rem; margin-top: .3rem; }
.lp-mini-tags span {
    padding: .1rem .5rem; border-radius: 999px;
    background: rgba(129, 140, 248, .16); color: var(--lp-accent-text);
    font-size: .68rem; font-weight: 600;
}
.lp-avatars { display: flex; }
.lp-avatars span {
    width: 1.75rem; height: 1.75rem; margin-left: -.45rem;
    display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--modal-bg);
    font-size: .7rem; font-weight: 700; color: #fff;
}
.lp-avatars span:first-child { margin-left: 0; background: #6366f1; }
.lp-avatars span:nth-child(2) { background: #ec4899; }
.lp-avatars span:nth-child(3) { background: #10b981; }

/* ── Sections ── */
.lp-section {
    padding-block: clamp(3rem, 6.5vw, 5.25rem);
    scroll-margin-top: 4rem;
}
.lp-section-alt { background: linear-gradient(180deg, transparent 0%, rgba(129, 140, 248, .06) 50%, transparent 100%); }
.lp-section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.lp-kicker {
    margin-bottom: .85rem;
    color: var(--lp-accent-text);
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
#landing h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.14; letter-spacing: -.022em; font-weight: 800;
    margin-bottom: 1rem;
}
.lp-section-sub { color: var(--lp-text); font-size: 1.08rem; line-height: 1.6; }

/* About */
.lp-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.lp-about-copy p:not(.lp-kicker) { color: var(--lp-text); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.lp-about-copy p strong { color: var(--lp-text-strong); font-weight: 600; }
.lp-audience { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.lp-audience li {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .95rem; border-radius: 999px;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
    font-size: .88rem; font-weight: 500;
}
.lp-audience i { color: var(--lp-accent-text); }

.lp-pillars { display: grid; gap: 1rem; }
.lp-pillar {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.lp-pillar-icon { width: 2.9rem; height: 2.9rem; border-radius: .95rem; font-size: 1.15rem; }
.lp-pillar h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .3rem; }
.lp-pillar p { color: var(--lp-text); font-size: .95rem; line-height: 1.6; }

/* Features */
.lp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lp-card {
    padding: 1.7rem;
    border-radius: 1.35rem;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.lp-card-icon { width: 3rem; height: 3rem; border-radius: 1rem; font-size: 1.2rem; margin-bottom: 1.15rem; }
.lp-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .55rem; }
.lp-card p { color: var(--lp-text); font-size: .96rem; line-height: 1.65; }

/* How it works */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lp-step {
    position: relative;
    padding: 1.9rem;
    border-radius: 1.35rem;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
}
.lp-step:not(:last-child)::after {
    content: ""; position: absolute; top: 3.15rem; left: 100%;
    width: 1.5rem; border-top: 2px dashed rgba(129, 140, 248, .45);
}
.lp-step-num {
    display: grid; place-items: center;
    width: 2.7rem; height: 2.7rem; margin-bottom: 1.1rem;
    border-radius: 50%;
    background: var(--lp-btn); color: #fff;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .9);
}
.lp-step h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .5rem; }
.lp-step p { color: var(--lp-text); font-size: .97rem; line-height: 1.65; }

/* Your data */
.lp-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lp-trust {
    padding: 1.6rem;
    border-radius: 1.35rem;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
}
.lp-trust > i { font-size: 1.35rem; color: var(--lp-accent-text); margin-bottom: 1rem; display: block; }
.lp-trust h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .45rem; }
.lp-trust p { color: var(--lp-text); font-size: .95rem; line-height: 1.6; }
.lp-trust-links { margin-top: 1.75rem; text-align: center; color: var(--lp-text); font-size: .92rem; }
.lp-trust-links a { color: var(--lp-accent-text); text-decoration: none; font-weight: 600; margin-inline: .5rem; }
.lp-trust-links a:hover { text-decoration: underline; }

/* FAQ */
.lp-faq-wrap { max-width: 820px; }
.lp-faq { display: grid; gap: .8rem; }
.lp-faq details {
    padding: 0 1.4rem;
    border-radius: 1.1rem;
    background: var(--lp-surface); border: 1px solid var(--lp-line);
    transition: border-color .25s, background .25s;
}
.lp-faq details[open] { border-color: rgba(129, 140, 248, .5); }
.lp-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 0;
    font-weight: 600; font-size: 1.02rem;
    cursor: pointer; list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { color: var(--lp-text); font-size: .8rem; transition: transform .25s; }
.lp-faq details[open] summary i { transform: rotate(180deg); }
.lp-faq details p { padding-bottom: 1.25rem; color: var(--lp-text); font-size: .98rem; line-height: 1.75; }

/* Final call to action */
.lp-cta-section { padding-top: 0; }
.lp-cta-band {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: 2rem;
    background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .2), transparent 45%), var(--lp-btn);
    box-shadow: 0 34px 70px -28px rgba(99, 102, 241, .8);
}
.lp-cta-band h2 { color: #fff; margin-bottom: .8rem; }
.lp-cta-band p { max-width: 36rem; margin-inline: auto; color: rgba(255, 255, 255, .88); font-size: 1.1rem; line-height: 1.6; }
.lp-cta-band .lp-cta-row { margin-top: 2rem; }

/* Footer */
.lp-footer {
    margin-top: 1rem;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--lp-line);
    background: linear-gradient(180deg, transparent, rgba(129, 140, 248, .05));
}
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.lp-footer-brand p { max-width: 18rem; margin-top: 1rem; color: var(--lp-text); font-size: .95rem; line-height: 1.6; }
.lp-footer-col h3 {
    margin-bottom: .8rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--lp-text-soft);
}
.lp-footer-col a, .lp-link-btn {
    display: block; width: 100%; padding: .3rem 0;
    background: none; border: 0; text-align: left; cursor: pointer;
    font: inherit; font-size: .95rem; color: var(--lp-text); text-decoration: none;
    transition: color .2s;
}
.lp-footer-col a:hover, .lp-link-btn:hover { color: var(--lp-accent-text); text-decoration: underline; }
.lp-footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-text-soft); font-size: .85rem;
}

/* ── Scroll reveal (only when landing.js has run) ── */
#landing.lp-js [data-reveal] {
    opacity: 0; translate: 0 22px;
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), translate .7s cubic-bezier(.16, 1, .3, 1),
                transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s, box-shadow .3s;
    transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s;
}
#landing.lp-js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.lp-card:hover, .lp-step:hover, .lp-trust:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, .45);
    box-shadow: 0 24px 44px -24px rgba(99, 102, 241, .55);
}
.lp-pillar:hover { transform: translateX(4px); border-color: rgba(129, 140, 248, .45); }

/* ── Responsive ── */
@media (max-width: 960px) {
    .lp-hero-grid, .lp-about-grid { grid-template-columns: 1fr; }
    .lp-hero-copy { text-align: center; }
    .lp-lead { margin-inline: auto; }
    .lp-hero .lp-cta-row, .lp-checks { justify-content: center; }
    .lp-hero-art { max-width: 470px; margin-top: 1rem; }
    .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .lp-menu-btn { display: inline-grid; }
    .lp-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .15rem;
        margin: 0; padding: .75rem 1.5rem 1.25rem;
        background: var(--modal-bg);
        -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--lp-line);
        box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .55);
    }
    .lp-nav.is-open { display: flex; }
    .lp-nav > a { padding: .85rem .75rem; font-size: 1.02rem; }
    .lp-actions { margin-left: auto; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-step:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
    .lp-trust-grid { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .lp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
    .lp-brand-name { display: none; }
}
@media (max-width: 640px) {
    .lp-actions > .lp-btn-ghost, .lp-actions > [data-theme-toggle] { display: none; }
    .lp-nav-extra { display: flex; gap: .6rem; margin-top: .75rem; padding-top: .9rem; border-top: 1px solid var(--lp-line); }
    .lp-nav-extra .lp-btn { flex: 1; }
    .lp-feature-grid { grid-template-columns: 1fr; }
    .lp-cta-row .lp-btn-lg { width: 100%; }
    .lp-float-note { left: 0; }
    .lp-float-team { right: 0; }
    .lp-float { max-width: 13.5rem; padding: .55rem .8rem .55rem .6rem; }
    .lp-float strong { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-auth="out"] { scroll-behavior: auto; }
    .lp-edges line, .lp-node, .lp-float { animation: none !important; }
    #landing.lp-js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
    .lp-btn, .lp-card, .lp-step, .lp-trust, .lp-pillar { transition: none; }
}

/* ── Interactive hero graph ─────────────────────────────────────────────────
   Nodes can be dragged and hovered (see landing.js). The static floating cards must not eat pointer events. */
.lp-float { pointer-events: none; }
.lp-graph { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lp-node, .lp-core { cursor: grab; }
.lp-node { stroke: transparent; stroke-width: 20px; }          /* transparent stroke = a bigger hit area */
.lp-core-ring, .lp-core-disc { transition: filter .2s; }
.lp-graph.is-dragging, .lp-graph.is-dragging * { cursor: grabbing; }
.lp-core.is-hot .lp-core-ring { stroke: rgba(196, 181, 253, .95); stroke-width: 2.5; fill: rgba(99, 102, 241, .28); }

.lp-graph.has-hot .lp-edges line { opacity: .2; transition: opacity .2s, stroke-width .2s; }
.lp-graph.has-hot .lp-edges line.is-hot { opacity: 1; stroke-width: 2.8; }
.lp-graph.has-hot .lp-node { opacity: .45; transition: opacity .2s; }
.lp-graph.has-hot .lp-node.is-hot, .lp-graph.has-hot .lp-node.is-linked { opacity: 1; }
.lp-node.is-hot { filter: drop-shadow(0 0 12px rgba(var(--c), 1)); }

.lp-ripple {
    fill: none; stroke: rgb(var(--c, 165, 180, 252)); stroke-width: 2.5;
    transform-box: fill-box; transform-origin: center;
    pointer-events: none;
    animation: lp-ripple .85s ease-out forwards;
}
@keyframes lp-ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }

.lp-tip {
    position: absolute; left: 0; top: 0; z-index: 5;   /* above the floating cards */
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .85rem;
    border-radius: .8rem;
    background: var(--modal-bg);
    border: 1px solid var(--lp-line-strong);
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .7);
    white-space: nowrap; pointer-events: none;
    opacity: 0; visibility: hidden;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity .15s, visibility .15s;
}
.lp-tip.is-below { transform: translate(-50%, 14px); }
.lp-tip.is-on { opacity: 1; visibility: visible; }
.lp-tip-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; background: rgb(var(--c, 165, 180, 252)); box-shadow: 0 0 0 4px rgba(var(--c, 165, 180, 252), .28); }
.lp-tip strong { display: block; font-size: .88rem; font-weight: 700; color: var(--lp-text-strong); line-height: 1.25; }
.lp-tip small { display: block; font-size: .74rem; color: var(--lp-text-soft); line-height: 1.25; }

.lp-graph-hint {
    position: absolute; right: 1rem; bottom: .9rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: var(--lp-surface-hover); border: 1px solid var(--lp-line-strong);
    color: var(--lp-text-strong); font-size: .78rem; font-weight: 600;
    pointer-events: none;
    transition: opacity .4s;
}
.lp-graph-hint i { color: var(--lp-accent-text); }
.lp-graph-card.is-used .lp-graph-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .lp-ripple { animation: none; opacity: 0; }
}
