/* ============================================================
   virtualmanpowerboard.com — splash page
   assets/vmb-landing.css

   Loaded ONLY for a logged-out request on the VMB domain
   (index.php gates the <link>), so it never costs a PT page a byte.

   Scope rules, per docs/UI-STANDARD.md:
   - Everything here is namespaced .vmbl-*. This file declares no
     primitive. The buttons on the splash are the canonical
     .btn-dark / .btn-dark-lg / .btn-outline-lg / .btn-ghost from
     design-system.css, used as-is — no geometry overridden.
   - Colour comes from tokens only. --white is a SURFACE token, not
     a literal, which is what makes the page correct in dark mode
     without a second set of rules.
   ============================================================ */

/* ── Shell ─────────────────────────────────────────────────── */
/* The splash renders OUTSIDE #pt-main (it replaces the app shell
   entirely, the same way #landing does), so it cannot inherit the
   shell gutter design-system.css puts on #pt-main. It declares its
   own, namespaced — matching those breakpoints rather than inventing
   new ones, so the splash and the app agree about what a page edge
   is on a given screen. */
.vmbl {
  --vmbl-gutter: 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}
@media (max-width: 1024px) { .vmbl { --vmbl-gutter: 18px; } }
@media (max-width: 600px)  { .vmbl { --vmbl-gutter: 14px; } }

/* ── Top nav ───────────────────────────────────────────────── */
.vmbl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--vmbl-gutter);
  border-bottom: 1px solid var(--bd);
  background: var(--white);
}
.vmbl-logo { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.vmbl-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); }
.vmbl-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.vmbl-wordmark span { color: var(--accent); }
.vmbl-nav-r { display: flex; align-items: center; gap: var(--sp-3); }

/* ── Hero ──────────────────────────────────────────────────── */
.vmbl-hero {
  padding: clamp(40px, 9vw, 104px) var(--vmbl-gutter) clamp(32px, 6vw, 72px);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.vmbl-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: var(--sp-5);
}
.vmbl-h1 {
  font-size: clamp(34px, 7vw, 66px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 var(--sp-5);
}
.vmbl-h1 span { color: var(--accent); }
.vmbl-sub {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto var(--sp-6);
}
.vmbl-ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.vmbl-note {
  margin: var(--sp-5) 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Feature section ───────────────────────────────────────── */
.vmbl-section { padding: clamp(32px, 6vw, 72px) var(--vmbl-gutter); }
.vmbl-h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0 0 var(--sp-6);
}
.vmbl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: var(--sp-4);
  max-width: 1080px;
  margin: 0 auto;
}
.vmbl-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--panel-radius);
  padding: var(--sp-5);
}
.vmbl-ico {
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-3);
}
.vmbl-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  letter-spacing: -.01em;
}
.vmbl-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Closing CTA ───────────────────────────────────────────── */
.vmbl-close {
  padding: clamp(36px, 7vw, 84px) var(--vmbl-gutter);
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--bd);
}
.vmbl-close-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: calc(var(--sp-5) * -1 + 2px) auto var(--sp-5);
}

/* ── Footer ────────────────────────────────────────────────── */
.vmbl-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--vmbl-gutter);
  border-top: 1px solid var(--bd);
  font-size: 13px;
  color: var(--ink-faint);
}
.vmbl-footer-l { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.vmbl-footer-brand { font-weight: 700; color: var(--ink-soft); }
/* The attribution line. Deliberately quiet — present, not promoted. */
.vmbl-attrib { font-size: 12px; color: var(--ink-faint); }
.vmbl-footer-r { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.vmbl-footer-r a { color: var(--ink-faint); text-decoration: none; }
.vmbl-footer-r a:hover { color: var(--accent); text-decoration: underline; }

/* ── Signup-closed modal ───────────────────────────────────── */
.vmbl-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--vmbl-gutter);
  background: rgba(0, 0, 0, .55);
}
.vmbl-modal-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--panel-radius);
  padding: var(--sp-6);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
.vmbl-modal-x {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: none;
  border: 0;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: var(--sp-2);
}
.vmbl-modal-x:hover { color: var(--ink); }
.vmbl-modal-ico { font-size: 32px; color: var(--accent); display: block; margin-bottom: var(--sp-3); }
.vmbl-modal-title { font-size: 20px; font-weight: 700; margin: 0 0 var(--sp-3); letter-spacing: -.015em; }
.vmbl-modal-body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 var(--sp-3); }
.vmbl-modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

/* ── Phone ─────────────────────────────────────────────────── */
/* The nav's two CTAs plus a theme switch do not fit beside the
   wordmark on a phone. The hero carries both actions anyway, so the
   nav drops to sign-in only rather than wrapping into two rows. */
@media (max-width: 640px) {
  .vmbl-nav { padding-left: 16px; padding-right: 16px; }
  .vmbl-nav-r .theme-toggle-wrap,
  .vmbl-nav-r #vmbGetStartedBtn { display: none; }
  .vmbl-ctas .btn-dark-lg,
  .vmbl-ctas .btn-outline-lg { width: 100%; }
  .vmbl-footer { flex-direction: column; align-items: flex-start; }
}
