/* Public landing pages (/ and /en). Plain HTML so search engines read every word without running the app. */
.lp {
  --lp-bg: #05060f;
  --lp-surface: #0c0e1f;
  --lp-border: #1c2040;
  --lp-text: #f2f4ff;
  --lp-muted: #9aa1c4;
  --lp-primary: #2340e6;
  --lp-accent: #4c8dff;
  --lp-green: #2fbf71;
  --lp-amber: #e8a317;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.75;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: inherit; text-decoration: none; }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.lp-brand img { width: 40px; height: 40px; }
.lp-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lp-lang { color: var(--lp-muted); font-size: 14px; padding: 8px 10px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  background: var(--lp-primary); color: #fff !important; border: 1px solid var(--lp-primary);
}
.lp-btn.ghost { background: transparent; border-color: var(--lp-border); color: var(--lp-text) !important; }
.lp-btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

.lp-hero { padding-block: 28px 20px; display: grid; gap: 28px; align-items: center; }
.lp-hero h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.25; margin: 0 0 14px; }
.lp-hero h1 span { color: var(--lp-accent); }
.lp-hero p.lead { font-size: 18px; color: var(--lp-muted); margin: 0 0 22px; max-width: 620px; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.lp-badges li { font-size: 13px; color: var(--lp-muted); border: 1px solid var(--lp-border); border-radius: 999px; padding: 4px 12px; }
/* The big logo is decoration: only on wide screens */
.lp-hero-art { display: none; justify-content: center; }
.lp-hero-art img { width: min(260px, 60vw); height: auto; filter: drop-shadow(0 24px 60px rgba(35, 64, 230, 0.45)); }

.lp-section { padding: 30px 0; }
.lp-section h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 6px; }
.lp-section > .lp-wrap > p.sub { color: var(--lp-muted); margin: 0 0 20px; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.lp-card { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 20px; padding: 18px; }
.lp-card h3 { font-size: 18px; margin: 10px 0 6px; }
.lp-card p { color: var(--lp-muted); margin: 0; font-size: 14.5px; }
.lp-ico {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; background: rgba(76, 141, 255, 0.14); color: var(--lp-accent);
}
.lp-ico.g { background: rgba(47, 191, 113, 0.14); color: var(--lp-green); }
.lp-ico.a { background: rgba(232, 163, 23, 0.14); color: var(--lp-amber); }

.lp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.lp-steps li { counter-increment: s; background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 18px; padding: 16px; }
.lp-steps li::before {
  content: counter(s); display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--lp-primary); color: #fff; font-weight: 700; margin-bottom: 8px;
}
.lp-steps strong { display: block; margin-bottom: 2px; }
.lp-steps span { color: var(--lp-muted); font-size: 14.5px; }

.lp-faq details { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; font-weight: 700; }
.lp-faq p { color: var(--lp-muted); margin: 8px 0 0; }

.lp-other { border: 1px dashed var(--lp-border); border-radius: 20px; padding: 18px; color: var(--lp-muted); }
.lp-other h2 { color: var(--lp-text); font-size: 20px; }

.lp-final { text-align: center; background: linear-gradient(135deg, #2340e6, #4c8dff); border-radius: 26px; padding: 30px 18px; margin: 20px 0; }
.lp-final h2 { margin: 0 0 6px; }
.lp-final p { margin: 0 0 18px; color: #e6ebff; }
.lp-final .lp-btn { background: #fff; color: #2340e6 !important; border-color: #fff; }

.lp-foot { border-top: 1px solid var(--lp-border); padding: 22px 0 30px; color: var(--lp-muted); font-size: 14px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.lp-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (min-width: 860px) {
  .lp-hero { grid-template-columns: 1.4fr 1fr; padding-block: 70px 40px; }
  .lp-hero-art { display: flex; }
  .lp-hero-art img { width: 300px; }
}

/* Phones: a compact header on one line */
@media (max-width: 480px) {
  .lp-nav { gap: 6px; }
  .lp-brand { font-size: 19px; }
  .lp-brand img { width: 34px; height: 34px; }
  .lp-nav-links { gap: 4px; flex-wrap: nowrap; }
  .lp-lang { padding: 6px; font-size: 13px; }
  .lp-btn.sm { min-height: 36px; padding: 0 10px; font-size: 13px; }
}

/* Inside the app (guests on "/"), the frame is one screen tall: the home page scrolls in its own box */
.landing-host {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
