*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Ranged.pro bento theme — warm-charcoal dark (mirrors the dashboard
      production :root tokens in apps/dashboard-web/src/index.css). ─────── */
:root {
  color-scheme: dark;
  --bg-deep:       #14120E;   /* page background — warm near-black */
  --bg-card:       #1F1B14;   /* card surface */
  --border:        rgba(255, 255, 255, 0.07);   /* hairline */
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #F2EBDD;   /* warm off-white */
  --text-soft:     #A39E92;
  --text-dim:      #7A7669;
  --accent:        #F97316;   /* burnt orange — brackets, CTA */
  --accent-strong: #FB923C;   /* hover */
  --danger:        #F87171;
  --success:       #34D399;
  --radius-card:   22px;
  --radius-pill:   999px;
  --shadow:        0 2px 16px rgba(0, 0, 0, 0.6);

  /* Brand mark fills (consumed by the inlined ranged-mark.svg). */
  --rp-brand:      var(--accent);
  --rp-glyph:      var(--text);

  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
}

body {
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint warm dot texture on the page background — matches the bento page bg. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 22px 22px;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── Branded logo — horizontal lockup: mark + monospace wordmark ─────── */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.logo-mark {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.logo-wordmark {
  font-family: 'JetBrains Mono', ui-monospace, 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
}

/* ── Bracketed main header title (the dashboard [ ] motif) ───────────── */
.heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.bracket {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.heading {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.subheading {
  font-size: 0.875rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.55;
  max-width: 320px;
}

/* ── Status chip ─────────────────────────────────────────────────────── */
.status {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.45;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 38%, transparent);
  color: #FCA5A5;
}
.status.info {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent-strong);
}
.hidden { display: none !important; }

/* ── Primary CTA — bento orange pill ─────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #1A1206;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s, opacity 0.15s, transform 0.05s;
  margin-top: 0.5rem;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 18, 6, 0.25);
  border-top-color: #1A1206;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.apply-row {
  font-size: 0.875rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
  width: 100%;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.apply-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.apply-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footnote {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  margin-top: 0.25rem;
}
