/* LBuddy home page for visitors: light and dark designs (UX Pilot), switched by the system color scheme. */
.lp {
  --lp-bg: #f6f7fb; --lp-bg-2: #ffffff; --lp-card: #ffffff; --lp-text: #14213d; --lp-muted: #5b6478; --lp-border: #e6e8ef;
  --lp-orange: #ff6b1a; --lp-orange-text: #c2410c; --lp-blue: #21468b; --lp-red: #ae1c28;
  --lp-navy: #14213d; --lp-navy-2: #1c2b4f; --lp-chip: #f1f3f8;
  --lp-head: "Rubik", "Segoe UI", system-ui, sans-serif; --lp-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-family: var(--lp-body); color: var(--lp-text); background: var(--lp-bg);
}
@media (prefers-color-scheme: dark) {
  .lp { --lp-bg: #111a30; --lp-bg-2: #172340; --lp-card: #1b2847; --lp-text: #f2f4fa; --lp-muted: #a7b0c4; --lp-border: #2a3a60;
        --lp-orange-text: #ff8a47; --lp-chip: #1f2d50; --lp-navy: #0d152a; --lp-navy-2: #16223f; }
}
body.landing-mode { background: var(--lp-bg, #f6f7fb); }
@media (prefers-color-scheme: dark) { body.landing-mode { background: #111a30; } }
body.landing-mode .topbar, body.landing-mode .tabbar, body.landing-mode #voiceWarn, body.landing-mode #planBanner { display: none !important; }
body.landing-mode main { max-width: none; padding: 0; }

.lp a { color: inherit; text-decoration: none; }
.lp h1, .lp h2, .lp h3 { font-family: var(--lp-head); letter-spacing: -0.02em; margin: 0; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 14px 22px; font-weight: 700; font-family: var(--lp-head); font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn.primary { background: var(--lp-orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 26, .32); }
.lp-btn.ghost { background: var(--lp-card); border-color: var(--lp-border); color: var(--lp-text); }
.lp-btn.white { background: #fff; color: #14213d; }
.lp-eyebrow { color: var(--lp-orange-text); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.lp-section { padding: 88px 0; }
.lp-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; text-align: center; margin-bottom: 12px !important; }
.lp-lead { text-align: center; color: var(--lp-muted); margin: 0 auto 40px; max-width: 620px; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--lp-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lp-border); }
.lp-header .lp-wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-family: var(--lp-head); font-weight: 800; letter-spacing: .02em; }
.lp-logo img { width: 34px; height: 34px; }
.lp-nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; color: var(--lp-muted); font-weight: 500; }
.lp-nav a:hover { color: var(--lp-text); }
.lp-header .lp-signin { font-weight: 700; font-size: .92rem; }
.lp-header .lp-btn { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.lp-hero { padding: 72px 0 96px; background: var(--lp-bg-2); }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 800; }
.lp-hero p.sub { font-size: 1.12rem; color: var(--lp-muted); max-width: 540px; margin: 22px 0 30px; line-height: 1.6; }
.lp-hero p.sub b { color: var(--lp-text); }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-micro { margin-top: 18px; font-size: .82rem; color: var(--lp-muted); }

/* Phone mockup */
.lp-phone { justify-self: center; width: 300px; border-radius: 40px; padding: 12px; background: #0b1224; box-shadow: 0 30px 60px rgba(20, 33, 61, .28), inset 0 0 0 2px #26355c; }
.lp-screen { border-radius: 30px; background: #f8f9fc; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
@media (prefers-color-scheme: dark) { .lp-screen { background: #1a2647; } }
.lp-phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #14213d; color: #fff; }
.lp-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24345c; font-size: 1rem; }
.lp-phone-top b { display: block; font-size: .9rem; font-family: var(--lp-head); }
.lp-phone-top small { color: #7ee2a8; font-size: .72rem; }
.lp-msgs { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; font-size: .84rem; }
.lp-bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; line-height: 1.4; }
.lp-bubble.bram { background: #fff; color: #14213d; border: 1px solid #e3e7f0; border-bottom-left-radius: 4px; }
.lp-bubble.me { align-self: flex-end; background: var(--lp-blue); color: #fff; border-bottom-right-radius: 4px; }
@media (prefers-color-scheme: dark) { .lp-bubble.bram { background: #24345c; color: #eef1f8; border-color: #2e4170; } }
.lp-scores { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lp-score { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.lp-score.ok { background: #e3f6ea; color: #1f7a4d; }
.lp-score.warn { background: #fdecdf; color: #b45309; }
.lp-say { margin-top: 4px; background: #fff3ea; border: 1px solid #ffd9c2; border-radius: 14px; padding: 10px 12px; color: #14213d; }
.lp-say small { display: block; color: var(--lp-orange-text); font-weight: 700; font-size: .7rem; letter-spacing: .06em; }
.lp-mic { margin: auto 14px 16px; height: 44px; border-radius: 22px; background: var(--lp-orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Problem + benefits */
.lp-problem h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; font-weight: 800; margin-bottom: 44px; }
.lp-problem h2 span { color: var(--lp-orange); display: block; }
.lp-problem h2:has(+ .lp-pitch) { margin-bottom: 18px; }
.lp-pitch { max-width: 760px; font-size: 1.15rem; line-height: 1.6; color: var(--lp-muted, inherit); margin: 0 0 44px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 22px; padding: 26px; }
.lp-card h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.lp-card p { color: var(--lp-muted); margin: 0; line-height: 1.55; font-size: .95rem; }
.lp-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }
.lp-tile.o { background: #fff0e6; } .lp-tile.b { background: #e5ecf9; } .lp-tile.r { background: #fbe5e7; }
@media (prefers-color-scheme: dark) { .lp-tile.o { background: #4a2a18; } .lp-tile.b { background: #1f3360; } .lp-tile.r { background: #4a1f27; } }

/* Pipeline (always dark) */
.lp-pipeline { background: var(--lp-navy); color: #f2f4fa; }
.lp-pipeline .lp-title { color: #fff; } .lp-pipeline .lp-lead { color: #a7b0c4; }
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.lp-steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 26px; height: 2px; background: #2a3a60; }
.lp-step { position: relative; }
.lp-step .lp-tile { width: 54px; height: 54px; border-radius: 16px; background: #22315a; font-size: 1.35rem; }
.lp-step.on .lp-tile { background: var(--lp-orange); box-shadow: 0 10px 24px rgba(255, 107, 26, .35); }
.lp-step h3 { font-size: 1rem; margin: 16px 0 6px; color: #fff; }
.lp-step p { color: #a7b0c4; font-size: .86rem; margin: 0; line-height: 1.5; }
.lp-terminal { max-width: 760px; margin: 52px auto 0; background: #0a0f1d; border: 1px solid #22305a; border-radius: 16px; padding: 18px 22px; font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: .84rem; line-height: 1.75; overflow-x: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.lp-dots { display: flex; gap: 6px; margin-bottom: 10px; } .lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e35d5d; } .lp-dots i:nth-child(2) { background: #e5b545; } .lp-dots i:nth-child(3) { background: #4fc27a; }
.lp-terminal .c { color: #6b7894; } .lp-terminal .g { color: #7ee2a8; } .lp-terminal .y { color: #f5c76b; } .lp-terminal .o { color: #ff9a5c; } .lp-terminal .w { color: #e8ecf6; }

/* Situations */
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-chips span { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
.lp-quote { text-align: center; color: var(--lp-muted); font-style: italic; margin-top: 30px; }
.lp-quote code { font-style: normal; font-family: "JetBrains Mono", Consolas, monospace; color: var(--lp-orange-text); background: var(--lp-chip); padding: 2px 6px; border-radius: 6px; font-size: .88em; }

/* Six ways */
.lp-ways .lp-card { display: flex; gap: 16px; align-items: flex-start; }
.lp-ways .lp-card h3 { margin: 0 0 4px; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }

/* Pricing */
.lp-pricing .lp-title { text-transform: uppercase; }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 28px; }
.lp-plan { border-radius: 24px; padding: 30px; background: var(--lp-chip); border: 1px solid var(--lp-border); display: flex; flex-direction: column; }
.lp-plan.pro { background: var(--lp-navy); color: #fff; border: 0; position: relative; box-shadow: 0 24px 48px rgba(20, 33, 61, .25); }
.lp-badge { position: absolute; top: 18px; right: 18px; background: var(--lp-orange); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.lp-plan h3 { font-size: 1.2rem; text-transform: uppercase; }
.lp-plan .for { color: var(--lp-muted); font-size: .88rem; margin: 2px 0 18px; }
.lp-plan.pro .for { color: #a7b0c4; }
.lp-price { font-family: var(--lp-head); font-size: 2.6rem; font-weight: 800; }
.lp-price span { font-size: .95rem; font-weight: 500; color: var(--lp-muted); }
.lp-price span.amt { font-size: inherit; font-weight: inherit; color: inherit; }
.lp-plan.pro .lp-price span { color: #a7b0c4; }
.lp-save { color: #ff9a5c; font-weight: 700; font-size: .88rem; }
.lp-plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.lp-plan li::before { content: "✓"; color: var(--lp-orange); font-weight: 800; margin-right: 10px; }
.lp-plan .lp-btn { margin-top: auto; width: 100%; }
.lp-fine { text-align: center; color: var(--lp-muted); font-size: .85rem; margin-top: 22px; }

/* FAQ */
.lp-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.lp-faq details { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 16px; padding: 18px 22px; }
.lp-faq summary { font-family: var(--lp-head); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; font-size: .92rem; letter-spacing: .02em; }
.lp-faq summary::after { content: "⌄"; color: var(--lp-orange); font-size: 1.2rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "⌃"; }
.lp-faq p { color: var(--lp-muted); margin: 12px 0 0; line-height: 1.6; }
.lp-faq a { color: var(--lp-orange-text); text-decoration: underline; }

/* Final CTA */
.lp-final { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #1c2b4f 0%, #6b3a2a 55%, #ff6b1a 100%); }
.lp-final::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ae1c28 0 33.3%, #ffffff 33.3% 66.6%, #21468b 66.6% 100%); }
.lp-final h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; text-transform: uppercase; line-height: 1.02; }
.lp-final p { color: #f3e7df; margin: 18px 0 28px; }

/* Footer */
.lp-footer { background: var(--lp-navy); color: #a7b0c4; padding: 56px 0 28px; margin-top: 88px; }
.lp-footer .lp-wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.lp-footer .lp-logo { color: #fff; }
.lp-footer h4 { color: #fff; font-family: var(--lp-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.lp-footer a { display: block; padding: 4px 0; font-size: .9rem; }
.lp-footer a:hover { color: #fff; }
.lp-copy { max-width: 1180px; margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid #22305a; font-size: .8rem; }

/* Mobile */
.lp-sticky { display: none; }
@media (max-width: 860px) {
  .lp-section { padding: 64px 0; }
  .lp-nav, .lp-header .lp-signin { display: none; }
  .lp-header .lp-btn { margin-left: auto; }
  .lp-hero { padding: 40px 0 64px; }
  .lp-hero .lp-wrap { grid-template-columns: 1fr; gap: 40px; }
  .lp-cta-row .lp-btn { flex: 1 1 100%; }
  .lp-phone { width: 270px; }
  .lp-screen { min-height: 440px; }
  .lp-grid3, .lp-plans { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; gap: 22px; }
  .lp-steps::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .lp-step { display: grid; grid-template-columns: 54px 1fr; gap: 0 16px; }
  .lp-step h3 { margin: 4px 0 4px; } .lp-step p { grid-column: 2; }
  .lp-footer .lp-wrap { grid-template-columns: 1fr 1fr; } .lp-footer .lp-brand { grid-column: 1 / -1; }
  .lp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--lp-card); border-top: 1px solid var(--lp-border); box-shadow: 0 -8px 24px rgba(20, 33, 61, .12); }
  .lp-sticky b { font-family: var(--lp-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; display: block; }
  .lp-sticky small { color: var(--lp-muted); font-size: .76rem; }
  .lp-sticky .lp-btn { margin-left: auto; padding: 12px 18px; }
  .lp { padding-bottom: 76px; }
}
