/* =============================================================
   Orbsen Loop — public landing page styles
   Ported from the orbsen-loop demo site. Every selector is scoped
   under .lp-land so nothing leaks into the Bootstrap dashboard.
   ============================================================= */

.lp-land {
    --lp-primary:       #9333ea;
    --lp-primary-dark:  #7e22ce;
    --lp-primary-light: #c084fc;
    --lp-green:         #2a9d63;
    --lp-amber:         #d97706;
    --lp-ink:           #1b0847;
    --lp-ink-muted:     #5b4a7a;
    --lp-surface:       #fdfdfc;
    --lp-bg:            #f5f3f9;
    --lp-border:        #ebe9e4;
    --lp-radius:        12px;
    --lp-mono:          'JetBrains Mono', ui-monospace, 'Courier New', monospace;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--lp-ink);
}

.lp-land .lp-h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--lp-ink);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.lp-land .lp-h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--lp-ink);
    margin: .8rem 0 .5rem;
}

.lp-land .lp-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--lp-ink-muted);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 34rem;
}

.lp-land .lp-sub {
    color: var(--lp-ink-muted);
    max-width: 560px;
    margin-inline: auto;
}

.lp-land .tag-pill {
    display: inline-block;
    background: rgba(147,51,234,.1);
    color: var(--lp-primary);
    border-radius: 9999px;
    padding: .25rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --- hero phone thread -------------------------------------------------- */
.lp-land .hero-phone {
    background: #ffffff;
    border: 1px solid var(--lp-border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(147,51,234,.14), 0 4px 12px rgba(0,0,0,.08);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.lp-land .hp-day {
    text-align: center;
    font-family: var(--lp-mono);
    font-size: .72rem;
    color: var(--lp-ink-muted);
}

.lp-land .hp-bubble {
    max-width: 86%;
    padding: .7rem 1rem;
    font-size: .95rem;
    line-height: 1.5;
    border-radius: 16px;
}

.lp-land .hp-them {
    align-self: flex-start;
    background: #f1edf7;
    color: var(--lp-ink);
    border-bottom-left-radius: 5px;
}

.lp-land .hp-me {
    align-self: flex-end;
    background: var(--lp-primary);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.lp-land .hp-status {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--lp-green);
}

.lp-land .hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); }

@keyframes lpHpIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.lp-land.anim .hero-phone > .hp-bubble,
.lp-land.anim .hero-phone > .hp-status {
    opacity: 0;
    animation: lpHpIn .5s ease forwards;
}
.lp-land.anim .hero-phone > *:nth-child(2) { animation-delay: .4s; }
.lp-land.anim .hero-phone > *:nth-child(3) { animation-delay: 1.2s; }
.lp-land.anim .hero-phone > *:nth-child(4) { animation-delay: 2.0s; }
.lp-land.anim .hero-phone > *:nth-child(5) { animation-delay: 2.7s; }
.lp-land.anim .hero-phone > *:nth-child(6) { animation-delay: 3.6s; }

/* --- demo card ----------------------------------------------------------- */
.lp-land .demo-card {
    max-width: 560px;
    margin-inline: auto;
    background: #ffffff;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(147,51,234,.14), 0 2px 6px rgba(0,0,0,.08);
}

.lp-land .demo-track {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 14px 18px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-land .dt-step {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--lp-ink-muted);
    white-space: nowrap;
    transition: color .3s;
}

.lp-land .dt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lp-border);
    flex: none;
    transition: background .3s, box-shadow .3s;
}

.lp-land .dt-line {
    flex: 1;
    height: 2px;
    min-width: 8px;
    max-width: 52px;
    background: var(--lp-border);
    border-radius: 1px;
    transition: background .3s;
}

.lp-land .dt-step.on { color: var(--lp-ink); }
.lp-land .dt-step.on .dt-dot { background: var(--lp-primary); box-shadow: 0 0 0 3px rgba(147,51,234,.15); }
.lp-land .dt-line.on { background: var(--lp-primary-light); }
.lp-land .dt-step.done .dt-dot { background: var(--lp-green); box-shadow: 0 0 0 3px rgba(42,157,99,.15); }

.lp-land .demo-step {
    padding: 16px 20px;
    border-bottom: 1px solid #f0eee9;
}

.lp-land .demo-stamp {
    font-size: 12px;
    color: #9ca1ab;
    margin-bottom: 6px;
    font-family: var(--lp-mono);
}

.lp-land .demo-field {
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--lp-bg);
    font-size: 14.5px;
    color: var(--lp-ink);
    line-height: 1.6;
}

.lp-land .demo-field .demo-ph { color: #9ca1ab; }

.lp-land .demo-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #9ca1ab;
    vertical-align: -0.15em;
    margin-left: 1px;
    animation: lpCaret 0.9s steps(1) infinite;
}

@keyframes lpCaret { 50% { opacity: 0; } }

.lp-land .demo-working {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0eee9;
}

.lp-land .demo-working p {
    font-size: 13.5px;
    color: var(--lp-ink-muted);
    margin: 0;
}

.lp-land .demo-approve {
    /* Always occupies its slot; only fades in — the card must never reflow. */
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: 0 20px 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .35s ease, transform .35s ease;
}
.lp-land .demo-approve.on { visibility: visible; opacity: 1; transform: none; }

.lp-land .demo-approve-btn {
    background: var(--lp-green);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    padding: .3rem .95rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px -7px rgba(42,157,99,.7);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lp-land .demo-approve-btn.pressed {
    transform: scale(.93);
    box-shadow: 0 2px 6px -4px rgba(42,157,99,.7);
}

.lp-land .demo-tweak-btn {
    color: var(--lp-ink-muted);
    border: 1.5px solid var(--lp-border);
    font-weight: 600;
    font-size: .82rem;
    padding: .3rem .9rem;
    border-radius: 9999px;
}

.lp-land .demo-live {
    padding: 15px 20px;
    background: var(--lp-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-land .demo-live-status { display: flex; align-items: center; gap: 10px; }
.lp-land .demo-live-status span { font-size: 14px; font-weight: 500; color: #1d5c3c; }
.lp-land .demo-live-time { font-size: 12px; color: #2a7a52; font-family: var(--lp-mono); }

.lp-land .demo-dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes lpOrbScan {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.lp-land .demo-orb-scanner { transform-origin: 40px 40px; animation: lpOrbScan 2.8s linear infinite; }

.lp-land.anim .demo-working,
.lp-land.anim .demo-live { opacity: 0; transition: opacity 0.5s ease; }
.lp-land.anim .demo-working.on,
.lp-land.anim .demo-live.on { opacity: 1; }
.lp-land.anim .demo-live { transition: opacity 0.5s ease, background 0.6s ease; }
.lp-land.anim .demo-live.on { background: #edf7ef; }

.lp-land #demoStatusMsg { transition: opacity 0.25s ease; }

/* --- idea cards ---------------------------------------------------------- */
.lp-land .idea-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: 0 1px 3px rgba(147,51,234,.10), 0 1px 2px rgba(0,0,0,.06);
    padding: 28px 24px;
    height: 100%;
}

.lp-land .idea-card .idea-icon { font-size: 1.6rem; margin-bottom: .6rem; }

.lp-land .idea-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lp-ink);
    margin-bottom: .4rem;
}

.lp-land .idea-card p {
    font-size: .92rem;
    color: var(--lp-ink-muted);
    line-height: 1.65;
    margin: 0;
}

/* --- workflow steps ------------------------------------------------------- */
.lp-land .steps {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
    margin-top: 2.2rem;
}

.lp-land .step {
    position: relative;
    padding: 32px 24px 28px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: 0 1px 3px rgba(147,51,234,.10), 0 1px 2px rgba(0,0,0,.06);
    counter-increment: step;
}

.lp-land .step::before {
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 24px;
    width: 30px;
    height: 30px;
    background: var(--lp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
}

.lp-land .step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-ink);
    margin-bottom: .4rem;
}

.lp-land .step p {
    font-size: .9rem;
    color: var(--lp-ink-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- CTA band -------------------------------------------------------------- */
.lp-land .cta-band {
    background: linear-gradient(135deg, var(--lp-primary-dark) 0%, var(--lp-primary) 60%, var(--lp-primary-light) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.lp-land .cta-band h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.025em;
    margin-bottom: .7rem;
    color: #fff;
}

.lp-land .cta-band p {
    opacity: .85;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.lp-land .lp-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--lp-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: .75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background .2s, color .2s, transform .1s;
}

.lp-land .lp-cta-btn:hover {
    background: var(--lp-primary-light);
    color: #fff;
    transform: translateY(-1px);
}

/* --- reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .lp-land.anim .demo-working,
    .lp-land.anim .demo-live { opacity: 1; }
    .lp-land.anim .demo-live { background: #edf7ef; }
    .lp-land .demo-caret { display: none; }
    .lp-land .demo-orb-scanner { animation: none; }
    .lp-land.anim .hero-phone > .hp-bubble,
    .lp-land.anim .hero-phone > .hp-status { opacity: 1; animation: none; }
}

/* --- pricing: assist footnote + traffic-light explainer ------------------- */
.lp-land .fn {
    color: var(--lp-primary);
    font-weight: 700;
    text-decoration: none;
}
.lp-land .fn:hover { color: var(--lp-primary-dark); }

.lp-land .lights {
    display: grid;
    gap: 1.4rem;
    max-width: 640px;
    margin-inline: auto;
}

.lp-land .light { display: flex; gap: 1rem; align-items: flex-start; }

.lp-land .light-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: none;
    margin-top: .45rem;
    box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}

.lp-land .light h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .15rem;
    color: var(--lp-ink);
}

.lp-land .light p { color: var(--lp-ink-muted); font-size: .95rem; margin: 0; }

.lp-land .lights-note {
    max-width: 640px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--lp-ink-muted);
    font-size: .92rem;
}

/* --- blog index (coming soon) ---------------------------------------------- */
.lp-land .lp-posts {
    display: grid;
    gap: 1.5rem;
    max-width: 780px;
    margin-inline: auto;
}

.lp-land .lp-post {
    position: relative;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.8rem 2rem;
    box-shadow: 0 1px 3px rgba(147,51,234,.10), 0 1px 2px rgba(0,0,0,.06);
}

.lp-land .lp-soon {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lp-primary);
    background: rgba(147,51,234,.1);
    border-radius: 9999px;
    padding: .2rem .7rem;
    margin-bottom: .6rem;
}

.lp-land .lp-post h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--lp-ink);
    margin: .2rem 0 .5rem;
}

.lp-land .lp-post p {
    color: var(--lp-ink-muted);
    font-size: .95rem;
    margin: 0;
}
