/* Public landing page (views/index.ejs, layout views/layouts/landing.ejs) */
:root {
  --lp-bg: #0e1113;
  --lp-bg-alt: #121518;
  --lp-surface: #15191b;
  --lp-surface-2: #181c1f;
  --lp-surface-3: #1f2427;
  --lp-line: #22282c;
  --lp-line-2: #2c3337;
  --lp-line-strong: #3a4247;
  --lp-text: #e6eaec;
  --lp-text-strong: #f4f6f7;
  --lp-muted: #9aa4ab;
  --lp-muted-2: #8f9aa1;
  --lp-accent: #0dfaba;
  --lp-accent-hover: #7dfcd8;
  --lp-accent-ink: #06251d;
  --lp-green-bg: #0f2a23;
  --lp-green-line: #1c4a3d;
  --lp-green-text: #a9c9bf;
  --lp-danger: #ea868f;
  --lp-font-display: 'Sora', system-ui, sans-serif;
  --lp-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --lp-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
.lp section[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--lp-bg); color: var(--lp-text); font-family: var(--lp-font-body); -webkit-font-smoothing: antialiased; }
.lp a { text-decoration: none; }
.lp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .lp-wrap { padding: 0 40px; } }
@media (min-width: 1200px) { .lp-wrap { padding: 0 80px; max-width: 1440px; } }

/* Type */
.lp-h1 { margin: 0; font-family: var(--lp-font-display); font-weight: 600; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.03em; color: var(--lp-text-strong); }
.lp-h2 { margin: 0; font-family: var(--lp-font-display); font-weight: 600; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--lp-text-strong); }
.lp-h3 { margin: 0; font-family: var(--lp-font-display); font-weight: 600; font-size: 22px; color: var(--lp-text-strong); }
.lp-lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: #aab4ba; }
.lp-sub { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--lp-muted); }
.lp-sub-green { color: var(--lp-green-text); }
.lp-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--lp-muted); }
.lp-muted-sm { font-size: 13px; color: var(--lp-muted); }
.lp-accent { color: var(--lp-accent); }
.lp-eyebrow, .lp-kicker { font-family: var(--lp-font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-accent); }
.lp-eyebrow { display: flex; align-items: center; gap: 10px; }
.lp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--lp-accent); display: inline-block; }
.lp-dot-ok { width: 7px; height: 7px; background: #75b798; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--lp-font-body); font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.lp-btn-primary { background: var(--lp-accent); color: var(--lp-accent-ink); }
.lp-btn-primary:hover { background: var(--lp-accent-hover); color: var(--lp-accent-ink); }
.lp-btn-ghost { background: transparent; border-color: var(--lp-line-strong); color: var(--lp-text); font-weight: 500; }
.lp-btn-ghost:hover { border-color: var(--lp-accent); color: var(--lp-text-strong); }
.lp-btn-sm { min-height: 44px; padding: 0 16px; }
@media (min-width: 768px) { .lp-btn-sm { padding: 0 22px; } .lp-nav-link { padding: 0 14px; } }
.lp-btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.lp-btn-xl { min-height: 60px; padding: 0 32px; font-size: 18px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 17, 19, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lp-line); }
.lp-nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 768px) { .lp-nav-inner { height: 88px; } }
.lp-logo img { height: 24px; width: auto; display: block; }
@media (min-width: 768px) { .lp-logo img { height: 30px; } }
.lp-nav-actions { display: flex; align-items: center; gap: 4px; }
.lp-nav-link { min-height: 44px; padding: 0 10px; white-space: nowrap; display: inline-flex; align-items: center; font-size: 15px; color: #b7c0c6; }
.lp-nav-link:hover { color: var(--lp-text-strong); }

/* Hero */
.lp-hero { padding: 56px 0 72px; }
@media (min-width: 992px) { .lp-hero { padding: 88px 0 96px; } }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 992px) { .lp-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.lp-hero-copy { display: flex; flex-direction: column; gap: 28px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Portal mockups */
.lp-mock { border-radius: 20px; background: #171b1e; border: 1px solid #262d31; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.lp-mock-head { display: flex; justify-content: space-between; align-items: center; }
.lp-mock-title { font-family: var(--lp-font-display); font-weight: 600; font-size: 17px; color: var(--lp-accent); }
.lp-mock-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--lp-muted-2); }
.lp-mock-card { border-radius: 14px; background: var(--lp-surface-3); border: 1px solid var(--lp-line-2); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-mock-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-mock-big span { font-family: var(--lp-font-display); font-size: 44px; font-weight: 600; color: var(--lp-text-strong); line-height: 1; }
.lp-mock-big small { font-size: 14px; color: var(--lp-muted); }
.lp-mock-label { font-family: var(--lp-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-muted-2); }
.lp-bar { height: 14px; border-radius: 6px; background: #2b3237; overflow: hidden; display: flex; }
.lp-bar > div { background: var(--lp-accent); }
.lp-bar > .lp-bar-debt { background: var(--lp-danger); }
.lp-bar-thin { height: 10px; border-radius: 4px; }
.lp-queue { display: flex; flex-direction: column; gap: 8px; }
.lp-queue-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--lp-surface-3); font-size: 14px; color: var(--lp-text); }
.lp-grow { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-num { font-family: var(--lp-font-mono); color: var(--lp-accent); }
.lp-pill { padding: 3px 10px; border-radius: 999px; background: #2b3237; color: #b7c0c6; font-size: 12px; white-space: nowrap; }
.lp-pill-progress { background: #10332a; color: var(--lp-accent-hover); }
.lp-pill-review { background: #3a2f10; color: #ffd966; }

/* Sections */
.lp-section { padding: 72px 0; border-top: 1px solid var(--lp-line); }
@media (min-width: 992px) { .lp-section { padding: 96px 0; } }
.lp-section-alt { background: var(--lp-bg-alt); }
#contact.lp-section { border-top: 0; padding-top: 72px; }
.lp-section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.lp-center { align-items: center; text-align: center; }
.lp-split { gap: 24px; }
.lp-split > div { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
@media (min-width: 992px) { .lp-split { flex-direction: row; justify-content: space-between; align-items: flex-end; } .lp-split .lp-sub { max-width: 380px; font-size: 16px; } }

.lp-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 768px) { .lp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-feature { border-radius: 18px; background: var(--lp-surface); border: 1px solid var(--lp-line); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.lp-feature-mock { height: 190px; border-radius: 12px; background: #1c2124; border: 1px solid #2a3135; padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.lp-stack { justify-content: flex-start; gap: 8px; padding: 16px; }
.lp-mock-amount { font-family: var(--lp-font-display); font-size: 36px; font-weight: 600; color: var(--lp-text-strong); }
.lp-mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #252b2f; border: 1px solid transparent; font-size: 13px; color: var(--lp-text); }
.lp-mini-row-drag { border: 1px dashed var(--lp-accent); }
.lp-review-flag { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ffd966; }
.lp-review-task { font-size: 15px; color: var(--lp-text); }
.lp-review-actions { display: flex; gap: 8px; }
.lp-fake-btn { height: 40px; padding: 0 14px; white-space: nowrap; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--lp-line-strong); color: var(--lp-text); font-size: 13px; }
.lp-fake-btn-primary { background: var(--lp-accent); border-color: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 600; }

/* How we work */
.lp-team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 48px; }
@media (min-width: 768px) { .lp-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-person { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 18px; background: var(--lp-surface); border: 1px solid var(--lp-line); }
.lp-person-photo { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lp-green-line); }
.lp-person-initial { display: grid; place-items: center; background: var(--lp-green-bg); color: var(--lp-accent); font-family: var(--lp-font-display); font-size: 34px; font-weight: 600; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; border: 1px solid var(--lp-line-2); }

.lp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; font-size: 14px; color: var(--lp-muted); }
.lp-loading .spinner-border { color: var(--lp-accent); }

/* Pricing (Teias) */
.lp-teia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 992px) { .lp-teia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.lp-teia-copy { display: flex; flex-direction: column; gap: 18px; }
.lp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--lp-text); }
.lp-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--lp-accent); flex: 0 0 auto; }
.lp-teia-card { padding: 32px; border-radius: 24px; background: var(--lp-green-bg); border: 1px solid var(--lp-green-line); display: flex; flex-direction: column; gap: 14px; }
.lp-teia-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; color: var(--lp-green-text); }
.lp-teia-price span { font-family: var(--lp-font-display); font-size: clamp(48px, 6vw, 64px); font-weight: 600; line-height: 1; color: var(--lp-text-strong); }
.lp-rates { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.lp-rate { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 15px; color: var(--lp-text); }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.lp-faq details { border-radius: 14px; background: var(--lp-surface); border: 1px solid var(--lp-line); padding: 0 22px; }
.lp-faq summary { min-height: 60px; display: flex; align-items: center; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--lp-text-strong); list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-family: var(--lp-font-mono); color: var(--lp-accent); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { padding-bottom: 20px; }

/* CTA */
.lp-cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--lp-green-bg); border: 1px solid var(--lp-green-line); padding: 40px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
@media (min-width: 992px) { .lp-cta { padding: 64px 72px; flex-direction: row; justify-content: space-between; align-items: center; } }
.lp-cta-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lp-cta .lp-btn { position: relative; }
.lp-cta-mark { position: absolute; right: -60px; bottom: -90px; width: 360px; height: 360px; opacity: 0.08; pointer-events: none; }

/* Footer */
.lp-footer { border-top: 1px solid var(--lp-line); padding: 40px 0; }
.lp-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lp-footer-logo { height: 24px; width: auto; }

/* Logged-in modal */
.lp-modal { background: var(--lp-surface-2); border: 1px solid var(--lp-line-2); border-radius: 20px; color: var(--lp-text); font-family: var(--lp-font-body); }
.lp-modal .modal-body { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.lp-modal-mark { width: 44px; height: 44px; }
.lp-modal-title { margin: 0; font-family: var(--lp-font-display); font-weight: 600; font-size: 26px; color: var(--lp-text-strong); }
.lp-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.modal-backdrop.show { opacity: 0.7; }
