/**
 * mobile-landing.css — Mobile landing takeover (<=1024px).
 *
 * Extracted from index.html in b.839 (was <style id="surface-layout-mobile-landing">,
 * lines 43960-44249 in the legacy single-file build). Content is byte-identical
 * to the inline block it replaced. Prefix: .ml-* for new rules.
 */

/* ─────────────────────────────────────────────────────────────────
   MOBILE LANDING — full-viewport takeover at <=1024px.
   Visible ONLY on mobile. Desktop renders the normal app.
   Hides every other top-level element on mobile so the landing has
   the full screen to itself.
   ───────────────────────────────────────────────────────────────── */

/* DEFAULT: hidden everywhere. Mobile @media flips it on below. */
#mobileLanding { display: none; }

/* ═══════════════ MOBILE LANDING (<=1024px) ═══════════════ */
@media (max-width: 1024px) {

  /* The landing is fixed full-screen. Body class `ml-bypassed` is set
     by the "Continue to web" link to hide the landing for this session
     and reveal the normal mobile app underneath. */
  body:not(.ml-bypassed) #mobileLanding {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: #0b0e14;
    color: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide EVERYTHING else on mobile so the landing has full focus. */
  body:not(.ml-bypassed) > *:not(#mobileLanding) {
    display: none !important;
  }

  /* ── Background ────────────────────────────────────────────────── */
  #mobileLanding .ml-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
      radial-gradient(circle at 20% 10%, rgba(140, 95, 220, 0.35), transparent 55%),
      radial-gradient(circle at 80% 85%, rgba(232, 138, 90, 0.30), transparent 55%),
      radial-gradient(circle at 50% 50%, rgba(80, 200, 120, 0.18), transparent 65%),
      #07090f;
  }
  #mobileLanding .ml-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: mlOrbDrift 18s ease-in-out infinite alternate;
  }
  #mobileLanding .ml-orb-1 {
    width: 260px; height: 260px;
    left: -60px; top: 10%;
    background: rgba(232, 138, 90, 0.55);
    animation-duration: 22s;
  }
  #mobileLanding .ml-orb-2 {
    width: 320px; height: 320px;
    right: -100px; top: 35%;
    background: rgba(140, 95, 220, 0.50);
    animation-duration: 26s;
    animation-delay: -8s;
  }
  #mobileLanding .ml-orb-3 {
    width: 240px; height: 240px;
    left: 30%; bottom: -60px;
    background: rgba(80, 200, 120, 0.40);
    animation-duration: 30s;
    animation-delay: -14s;
  }
  @keyframes mlOrbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, -30px) scale(1.15); }
  }

  /* ── Shell ─────────────────────────────────────────────────────── */
  #mobileLanding .ml-shell {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    box-sizing: border-box;
  }

  /* ── Brand ─────────────────────────────────────────────────────── */
  #mobileLanding .ml-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  #mobileLanding .ml-mark {
    font-family: var(--font-display, 'Inter', system-ui, sans-serif);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
  }
  #mobileLanding .ml-mark-sub {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.55);
  }

  /* ── Hero ──────────────────────────────────────────────────────── */
  #mobileLanding .ml-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
    padding: 8px 0 12px;
  }
  #mobileLanding .ml-title {
    font-family: var(--font-display, 'Inter', system-ui, sans-serif);
    font-size: clamp(34px, 8.5vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0;
  }
  #mobileLanding .ml-lede {
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 34ch;
  }

  /* ── Feature pills ─────────────────────────────────────────────── */
  #mobileLanding .ml-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
  }
  #mobileLanding .ml-feature {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
  }

  /* ── CTA card ──────────────────────────────────────────────────── */
  #mobileLanding .ml-cta {
    margin-top: 18px;
    padding: 20px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.18) inset,
      0 16px 40px -16px rgba(0, 0, 0, 0.55);
  }
  #mobileLanding .ml-cta-lede {
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px;
  }
  #mobileLanding .ml-form {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  #mobileLanding .ml-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
  }
  #mobileLanding .ml-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }
  #mobileLanding .ml-input:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.10);
  }
  #mobileLanding .ml-submit {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #fff;
    color: #0b0e14;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  #mobileLanding .ml-submit:active {
    transform: translateY(1px);
    background: rgba(255, 255, 255, 0.9);
  }
  #mobileLanding .ml-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  #mobileLanding .ml-form-msg {
    margin-top: 12px;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 10px;
  }
  #mobileLanding .ml-form-msg.ok {
    background: rgba(80, 200, 120, 0.16);
    border: 1px solid rgba(80, 200, 120, 0.45);
    color: rgba(180, 240, 200, 1);
  }
  #mobileLanding .ml-form-msg.err {
    background: rgba(255, 100, 100, 0.14);
    border: 1px solid rgba(255, 100, 100, 0.40);
    color: rgba(255, 200, 200, 1);
  }

  /* ── Footer ────────────────────────────────────────────────────── */
  #mobileLanding .ml-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding-top: 8px;
  }
  #mobileLanding .ml-desktop-hint {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.50);
    text-align: center;
  }
  #mobileLanding .ml-desktop-hint-em {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
  }
  #mobileLanding .ml-continue {
    background: transparent;
    border: 0;
    padding: 8px 10px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.20);
    text-underline-offset: 3px;
  }
  #mobileLanding .ml-continue:active {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Desktop is a clean no-op — landing stays display:none. */
