/**
 * CANONICAL COPY (2026-07-21) — /css/vc-app-polish.css is a shim that imports
 * this file. See the header of vc-sidebar.css in this directory for why the two
 * paths used to serve divergent files. Merged back in from the old root fork:
 * the :focus-visible ring at the bottom. The fork's
 * `@import url('/css/mobile-android.css')` was deliberately NOT merged —
 * see the header of vc-sidebar.css in this directory.
 *
 * VitalCoach App Polish — v1
 * Brings demo-quality typography & visual refinement to authenticated app pages
 * while preserving the dark productivity UX. Loaded LAST on every app page.
 *
 * Mirrors vitalcoach-design.css aesthetic: Space Grotesk display + Inter body,
 * refined card radii, lime accents, editorial polish.
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Token refinement (overrides dark inline vars) ── */
:root {
  --vc-font-display: 'Space Grotesk', system-ui, sans-serif;
  --vc-font-sans:    'Inter', system-ui, sans-serif;
  --vc-font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --vc-lime:         #D4FF3A;
  --vc-lime-ink:     #1A2200;
  --vc-coral:        #FF6B4A;
}

/* ── Body typography ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Display typography (headings, big numbers) ── */
h1, h2, h3,
.topbar-title,
.panel-title,
.section-title,
.stat-val,
.empty-state strong,
.card h3,
.card h2,
.body h3,
.client-name,
.program-title,
.tool-title,
.demo-banner-title,
.modal-title {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

/* Big metric numbers — display feel */
.stat-val,
.balance-big,
.metric-big,
.stat-number {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

/* Eyebrow labels — mono editorial feel */
.section-title,
.stat-label,
.eyebrow,
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

/* ── Sidebar logo: Space Grotesk per demo ── */
.sidebar-logo span:not(.sidebar-logo-icon) {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: -0.03em !important;
}

.sidebar-logo-icon {
  background: var(--vc-lime) !important;
  border-radius: 8px !important;
}

.nav-section {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.32) !important;
}

.nav-item {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
}

.nav-item.active {
  background: rgba(212,255,58,0.08) !important;
  color: #F5F4EE !important;
  border-color: rgba(212,255,58,0.18) !important;
}

.nav-item.active .nav-icon { color: var(--vc-lime) !important; opacity: 1 !important; }

/* User pill in sidebar footer */
.user-name, #sidebarUserName {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
}

.user-plan, #sidebarUserPlan {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ── Card refinement: bigger radius, subtle border-top accent on key cards ── */
.stat-card,
.quick-card,
.panel,
.card,
.client-card,
.pr-card,
.tool-card,
.program-card,
.metric-card {
  border-radius: 16px !important;
  border-color: rgba(255,255,255,0.06) !important;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s !important;
}

/* Hover lift — demo-style */
.quick-card:hover,
.client-card:hover,
.pr-card:hover,
.tool-card:hover,
.program-card:hover,
a.card:hover,
.card[role="link"]:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212,255,58,0.30) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.32) !important;
}

/* Stat card lime top-stripe per demo .vc-stat */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vc-lime) 0%, rgba(212,255,58,0.0) 80%);
  opacity: 0.7;
}

/* Stat card with explicit green-accent gets a brighter stripe */
.stat-card.green-accent::before {
  background: var(--vc-lime);
  opacity: 1;
}

/* ── Button refinement: pill radius like demo ── */
.btn,
.btn-green,
.btn-ghost,
.generate-btn,
.vc-btn {
  border-radius: 999px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s !important;
}

.btn:hover,
.btn-green:hover,
.generate-btn:hover {
  transform: translateY(-1px) !important;
}

.btn-green,
.generate-btn {
  background: var(--vc-lime) !important;
  color: var(--vc-lime-ink) !important;
}
.btn-green:hover,
.generate-btn:hover {
  background: #E5FF6B !important;
  box-shadow: 0 8px 24px rgba(212,255,58,0.30) !important;
}

/* Small/utility buttons keep tighter radius */
.btn-sm, .filter, .pill, .badge, .vc-pro-pill, .vc-free-pill, .vc-chip {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
}

.filter {
  border-radius: 999px !important;
  letter-spacing: -0.005em !important;
}

/* ── Topbar: refined editorial feel ── */
.topbar {
  background: rgba(15,19,25,0.78) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.topbar-title {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: -0.02em !important;
}

/* ── Panel titles ── */
.panel-title {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: -0.015em !important;
}

.panel-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--vc-lime) !important;
}

/* ── Form inputs: cleaner editorial inputs ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font-family: 'Inter', system-ui, sans-serif !important;
  border-radius: 10px !important;
  transition: border-color 0.15s !important;
}

label {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}

/* ── Subtle hero blob on key pages (dashboard, programs) ── */
body.vitalcoach-gradient::before,
body.bb-app-shell::before {
  content: '';
  position: fixed;
  top: -200px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 999px;
  background: var(--vc-lime);
  opacity: 0.04;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.main, main.main { position: relative; z-index: 1; }

/* ── Modal refinement ── */
.modal, .vc-modal {
  border-radius: 20px !important;
}

.modal-title, .vc-modal h2, .vc-modal h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
}

/* ── Chip / badge / pill demo polish ── */
.badge, .pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}

.badge-green {
  background: var(--vc-lime) !important;
  color: var(--vc-lime-ink) !important;
}

/* Empty states get a softer feel */
.empty, .empty-state {
  font-family: 'Inter', system-ui, sans-serif !important;
}

.empty-state p {
  color: rgba(255,255,255,0.55) !important;
}

/* ── Avatars: larger feel ── */
.list-avatar, .client-avatar {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* ── Trial / demo banners — softer, editorial gradient ── */
.trial-banner, .demo-banner {
  border-radius: 14px !important;
}

.demo-badge, .trial-banner strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  letter-spacing: 0.08em !important;
}

/* ── Tables: editorial polish ── */
table { font-family: 'Inter', system-ui, sans-serif !important; }
th {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* ── Mobile bottom nav: Space Grotesk display feel ── */
.vc-mnav-label {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

/* ── Login / signup pages already use vitalcoach-design.css — no override needed ── */

/* ── Keyboard focus ring (App Parity 2026-06-12) ──────────────────────────
   Visible ONLY for keyboard navigation (:focus-visible) — mouse/touch users
   see no change. currentColor adapts the ring to its context. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
