/* ============================================================
   MarketPulse — front door
   Self-contained: /app/ assets are not available here, because
   they are only served to people who have passed this screen.
   ============================================================ */
:root {
  --bg: #07090d;
  --panel: #0d1118;
  --line: rgba(255, 255, 255, .08);
  --t1: #e8edf5;
  --t2: #a9b3c4;
  --t3: #6e7b8f;
  --blue: #3d7dff;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--t1);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(61, 125, 255, .16), transparent 60%),
    var(--bg);
}

.g-wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) clamp(16px, 5vw, 32px) calc(24px + var(--safe-b));
}

.g-card {
  width: min(440px, 100%);
  padding: clamp(24px, 6vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  text-align: center;
}

.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.g-state[hidden] { display: none; }

h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 5.4vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--t2);
  overflow-wrap: anywhere;
}

.g-muted { color: var(--t3); font-size: 13px; margin-top: 14px; }

.g-spinner {
  width: 26px;
  height: 26px;
  margin: 6px auto 4px;
  border-radius: 50%;
  border: 2px solid rgba(61, 125, 255, .22);
  border-top-color: var(--blue);
  animation: g-spin .8s linear infinite;
}
@keyframes g-spin { to { transform: rotate(360deg); } }

.g-btn {
  margin-top: 22px;
  min-height: 44px;
  min-width: 160px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 600 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.g-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .g-spinner { animation-duration: 2.4s; }
}
