/* ===================================================================
   Capablanca — Landing Page (light, modern, bento/glass aesthetic)
   Namespaced with `lp-` to avoid clashing with the app shell CSS.
=================================================================== */

.lp {
    --lp-lime: #91C84E;
    --lp-lime-strong: #7AB33A;
    --lp-lime-dim: #588A2C;
    --lp-lime-soft: rgba(145, 200, 78, 0.14);
    --lp-ink: #12140F;
    --lp-text: #1B1D16;
    --lp-muted: #666D5B;
    --lp-dim: #9AA08C;
    --lp-canvas: #FBFCF8;
    --lp-surface: #FFFFFF;
    --lp-border: #E7E9DF;
    --lp-radius-lg: 28px;
    --lp-radius-md: 18px;
    --lp-radius-sm: 12px;
    --lp-shadow-sm: 0 2px 8px rgba(18, 20, 15, 0.05);
    --lp-shadow-md: 0 12px 32px rgba(18, 20, 15, 0.08);
    --lp-shadow-lg: 0 24px 64px rgba(18, 20, 15, 0.12);
    background: var(--lp-canvas);
    color: var(--lp-text);
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
}

.lp * { box-sizing: border-box; }
.lp a { text-decoration: none; color: inherit; }
.lp img { max-width: 100%; display: block; }
.lp ul { margin: 0; padding: 0; list-style: none; }

.lp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-lime-dim);
    background: var(--lp-lime-soft);
    border: 1px solid rgba(145, 200, 78, 0.35);
    padding: 7px 14px 7px 10px;
    border-radius: 100px;
}

.lp-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--lp-lime-strong);
    box-shadow: 0 0 0 3px rgba(145,200,78,0.25);
}

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px) scale(.99); }

.lp-btn-primary {
    background: var(--lp-ink);
    color: #fff;
    box-shadow: 0 10px 26px rgba(18,20,15,0.22);
}
.lp-btn-primary:hover { background: #262b1d; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,20,15,0.28); }

.lp-btn-lime {
    background: var(--lp-lime);
    color: var(--lp-ink);
    box-shadow: 0 10px 26px rgba(145,200,78,0.35);
}
.lp-btn-lime:hover { background: #a2d566; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(145,200,78,0.45); }

.lp-btn-ghost {
    background: #fff;
    color: var(--lp-text);
    border: 1.5px solid var(--lp-border);
}
.lp-btn-ghost:hover { border-color: var(--lp-lime-strong); color: var(--lp-lime-dim); transform: translateY(-2px); }

.lp-btn-sm { padding: 10px 18px; font-size: 12.5px; }

/* ---------- Decorative blobs ---------- */
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}

/* ---------- Header ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 252, 248, 0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(231, 233, 223, 0.8);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1180px;
    margin: 0 auto;
    gap: 20px;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
}

.lp-logo img { height: 34px; width: auto; }

.lp-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--lp-muted);
}

.lp-nav a { position: relative; padding: 4px 2px; transition: color .2s; }
.lp-nav a:hover { color: var(--lp-text); }
.lp-nav a::after {
    content: "";
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--lp-lime);
    transition: width .25s ease;
}
.lp-nav a:hover::after { width: 100%; }

.lp-header-cta { display: flex; align-items: center; gap: 10px; }

.lp-burger {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--lp-border);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lp-burger span, .lp-burger span::before, .lp-burger span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--lp-ink); position: relative;
}
.lp-burger span::before { position: absolute; top: -6px; }
.lp-burger span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    padding: 76px 0 60px;
    overflow: hidden;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.lp-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 18px 0 18px;
    color: var(--lp-ink);
}

.lp-hero h1 em {
    font-style: normal;
    color: var(--lp-lime-strong);
    position: relative;
    white-space: nowrap;
}

.lp-hero p.lead {
    font-size: 17.5px;
    color: var(--lp-muted);
    max-width: 480px;
    margin: 0 0 32px;
    line-height: 1.65;
}

.lp-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.lp-hero-stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.lp-hero-stats .stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--lp-ink);
    letter-spacing: -0.02em;
}

.lp-hero-stats .stat span {
    font-size: 12px;
    color: var(--lp-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ----- Hero visual: chess board mock card ----- */
.lp-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }

.lp-hero-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #fff, #F6F9EE);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-lg);
    padding: 26px;
    transform: rotate(-1.5deg);
}

.lp-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(18,20,15,0.06);
}
.lp-board .sq { display: flex; align-items: center; justify-content: center; font-size: clamp(14px, 3.2vw, 22px); }
.lp-board .sq.light { background: #F1F4E6; }
.lp-board .sq.dark { background: #91C84E; }
.lp-board .sq .pc { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25)); }

.lp-float-badge {
    position: absolute;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 100px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: var(--lp-shadow-md);
    animation: lpFloat 5s ease-in-out infinite;
}
.lp-float-badge.b1 { top: -18px; left: -30px; animation-delay: 0s; }
.lp-float-badge.b2 { bottom: 12px; right: -34px; animation-delay: .8s; }
.lp-float-badge .ico { width: 22px; height: 22px; border-radius: 50%; background: var(--lp-lime-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; }

@keyframes lpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee / trust strip ---------- */
.lp-strip {
    position: relative;
    background: var(--lp-ink);
    color: #fff;
    padding: 46px 0;
    margin: 10px 0 0;
    overflow: hidden;
}
.lp-strip::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(145,200,78,0.18), transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(145,200,78,0.12), transparent 55%);
}
.lp-strip-head {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    position: relative; z-index: 1;
}
.lp-strip-head .lp-lime-txt { color: var(--lp-lime); }

.lp-stat-row {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.lp-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--lp-radius-md);
    padding: 26px 18px;
    text-align: center;
}
.lp-stat-card b {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--lp-lime);
    letter-spacing: -0.02em;
}
.lp-stat-card span { font-size: 12.5px; color: rgba(255,255,255,0.65); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Section heads ---------- */
.lp-section { padding: 88px 0; position: relative; }
.lp-section.tight { padding: 60px 0; }
.lp-head { max-width: 640px; margin: 0 0 48px; }
.lp-head.center { margin: 0 auto 56px; text-align: center; }
.lp-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 14px;
    color: var(--lp-ink);
}
.lp-head p { color: var(--lp-muted); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- Bento programs ---------- */
.lp-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.lp-bento-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 34px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.lp-bento-card:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow-lg); }
.lp-bento-card .tag {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--lp-lime-dim); background: var(--lp-lime-soft);
    padding: 5px 12px; border-radius: 100px; margin-bottom: 18px;
}
.lp-bento-card .visual {
    height: 150px;
    border-radius: var(--lp-radius-md);
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}
.lp-bento-card .visual.v1 { background: linear-gradient(135deg, #EFF6E1, #DCEBB6); }
.lp-bento-card .visual.v2 { background: linear-gradient(135deg, #1B1D16, #2E331F); }
.lp-bento-card .visual .pieces { display: flex; gap: 14px; }
.lp-bento-card h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.lp-bento-card p { color: var(--lp-muted); font-size: 14.5px; margin: 0 0 20px; line-height: 1.6; }
.lp-bento-card .feat-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lp-bento-card .feat-list li {
    font-size: 12px; font-weight: 700; color: var(--lp-text);
    background: var(--lp-canvas); border: 1px solid var(--lp-border);
    padding: 6px 12px; border-radius: 100px;
}

/* ---------- Feature trio ---------- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lp-feature {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    padding: 30px 26px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.lp-feature:hover { transform: translateY(-5px); box-shadow: var(--lp-shadow-md); border-color: rgba(145,200,78,0.4); }
.lp-feature .ic {
    width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(150deg, var(--lp-lime), #6FA83A);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(145,200,78,0.35);
}
.lp-feature h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.lp-feature p { font-size: 14px; color: var(--lp-muted); margin: 0; line-height: 1.6; }

/* ---------- Journey / stepper ---------- */
.lp-journey { position: relative; }
.lp-journey-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    position: relative;
}
.lp-journey-track::before {
    content: "";
    position: absolute;
    top: 26px; left: 4%; right: 4%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--lp-border) 0 8px, transparent 8px 14px);
    z-index: 0;
}
.lp-step { position: relative; z-index: 1; text-align: center; }
.lp-step .num {
    width: 54px; height: 54px; margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--lp-lime);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: var(--lp-lime-dim);
    box-shadow: var(--lp-shadow-sm);
}
.lp-step.active .num { background: var(--lp-ink); border-color: var(--lp-ink); color: var(--lp-lime); }
.lp-step h4 { font-size: 14.5px; font-weight: 800; margin: 0 0 6px; }
.lp-step p { font-size: 12.5px; color: var(--lp-muted); margin: 0; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.lp-cta {
    position: relative;
    border-radius: 36px;
    background: linear-gradient(135deg, #1B1D16 0%, #2A3320 60%, #3C4B24 100%);
    color: #fff;
    padding: 64px 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.lp-cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(145,200,78,0.35), transparent 55%);
}
.lp-cta-avatars {
    position: relative; z-index: 1;
    display: flex;
    align-items: center;
}
.lp-cta-avatars .av {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border: 3px solid #1B1D16;
    margin-left: -14px;
}
.lp-cta-avatars .av:first-child { margin-left: 0; }
.lp-cta-content { position: relative; z-index: 1; }
.lp-cta-content h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 14px 0 10px; letter-spacing: -0.02em; }
.lp-cta-content p { color: rgba(255,255,255,0.7); font-size: 15.5px; margin: 0 0 26px; max-width: 480px; }
.lp-cta-side { position: relative; z-index: 1; flex: 0 0 auto; }

/* ---------- Testimonials ---------- */
.lp-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lp-review {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    padding: 28px;
}
.lp-review .stars { color: var(--lp-lime-strong); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.lp-review p.quote { font-size: 14.5px; color: var(--lp-text); line-height: 1.65; margin: 0 0 20px; }
.lp-review .who { display: flex; align-items: center; gap: 12px; }
.lp-review .avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--lp-lime-soft); color: var(--lp-lime-dim);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.lp-review .who strong { display: block; font-size: 13.5px; }
.lp-review .who span { display: block; font-size: 12px; color: var(--lp-dim); }

/* ---------- Footer ---------- */
.lp-footer {
    background: var(--lp-ink);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 28px;
}
.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lp-footer-brand img { height: 30px; }
.lp-footer p.desc { font-size: 13.5px; color: rgba(255,255,255,0.55); max-width: 260px; line-height: 1.65; }
.lp-footer h5 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 18px; }
.lp-footer ul li { margin-bottom: 12px; }
.lp-footer ul li a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color .2s; }
.lp-footer ul li a:hover { color: var(--lp-lime); }
.lp-footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 26px; font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.lp-social { display: flex; gap: 10px; }
.lp-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: background .2s;
}
.lp-social a:hover { background: var(--lp-lime); color: var(--lp-ink); }

/* ---------- Reveal animation ---------- */
.lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .lp-nav { display: none; }
    .lp-burger { display: flex; }
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-visual { order: -1; margin-bottom: 20px; }
    .lp-bento { grid-template-columns: 1fr; }
    .lp-features { grid-template-columns: 1fr; }
    .lp-journey-track { grid-template-columns: 1fr; gap: 26px; }
    .lp-journey-track::before { display: none; }
    .lp-reviews { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-cta { flex-direction: column; text-align: center; padding: 44px 26px; }
    .lp-cta-avatars { justify-content: center; }
    .lp-stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-hero-stats { gap: 22px; }
    .lp-float-badge { display: none; }
}
