/**
 * LuciOS Base Token & Utility Sheet (`luci-shell/1`) — Industry: `construction-trades`
 * Enforces NCD Framework v3.2 rev5 Section 18 + Hard Rule 10 (+3pt phone typography)
 * 100% Self-Contained & CSP 'self' Compliant
 */
:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --rail-bg: #111113;
  --rail-ink: #F4F4F5;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --line: #E5E4E0;
  --accent: #E8762B;
  --accent-amber: #d97706;
  --accent-ink: #FFFFFF;
  --accent-soft: #FEF3C7;
  --sui-blue: #2563EB;
  --ok-green: #059669;
  --tap-min: 48px;

  /* Phone-First Typography (<900px) — Hard Rule 10 (+3pt boost on small text) */
  --fs-small: 15px;
  --fs-body: 18px;
  --fs-h2: 22px;
  --fs-h1: 28px;
}

@media (min-width: 900px) {
  :root {
    --fs-small: 12px;
    --fs-body: 15px;
    --fs-h2: 18px;
    --fs-h1: 22px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input {
  min-height: var(--tap-min);
  font: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }
code, pre, .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.fs-small, .text-xs { font-size: var(--fs-small); line-height: 1.45; }
.fs-body, .text-sm { font-size: 0.94rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.4; }
.fs-h2, .text-xl { font-size: var(--fs-h2); line-height: 1.3; }
.fs-h1, .text-2xl { font-size: var(--fs-h1); line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1.15; }

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none !important; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.max-w-6xl { max-width: 72rem; }
.max-w-xl { max-width: 36rem; }
.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.bottom-0 { bottom: 0; }
.inset-x-0 { left: 0; right: 0; }
.z-30 { z-index: 30; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-3 { padding-top: 0.75rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-24 { padding-bottom: 6rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }

.rounded { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--line); }
.border-2 { border: 2px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-\[\#E5E4E0\] { border-color: #E5E4E0; }
.border-\[\#E8762B\] { border-color: #E8762B; }
.border-blue-200 { border-color: #BFDBFE; }
.border-blue-500\/40 { border-color: rgba(59, 130, 246, 0.4); }

.bg-white { background-color: #FFFFFF; }
.bg-\[\#F7F5F2\] { background-color: #F7F5F2; }
.bg-\[\#111113\] { background-color: #111113; }
.bg-\[\#E8762B\] { background-color: #E8762B; }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-orange-100 { background-color: #FFEDD5; }
.bg-emerald-50 { background-color: #ECFDF5; }
.bg-emerald-100 { background-color: #D1FAE5; }
.bg-blue-50 { background-color: #EFF6FF; }
.bg-stone-50 { background-color: #FAFAF9; }

.text-white { color: #FFFFFF; }
.text-\[\#1A1A1A\] { color: #1A1A1A; }
.text-\[\#6B6B6B\] { color: #6B6B6B; }
.text-\[\#E8762B\] { color: #E8762B; }
.text-emerald-300 { color: #6EE7B7; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065F46; }
.text-blue-600 { color: #2563EB; }
.text-blue-700 { color: #1D4ED8; }
.text-rose-600 { color: #E11D48; }

.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.6; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.overflow-x-auto { overflow-x: auto; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.transition { transition: all 0.2s ease; }
.hover\:bg-stone-50:hover { background-color: #FAFAF9; }
.hover\:bg-orange-50:hover { background-color: #FFF7ED; }
.hover\:opacity-95:hover { opacity: 0.92; }

@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:p-6 { padding: 1.5rem; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
}

/* === Fictional Demo Persona Switcher Bar === */
.demo-bar{background:#0b1014;color:#faf8f2;border-bottom:2px solid #e8762b;font:13px/1.35 -apple-system,BlinkMacSystemFont,"Inter",system-ui,sans-serif;position:relative;z-index:50}
.demo-bar-inner{width:min(1320px,calc(100% - 32px));margin:0 auto;padding:7px 0;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.demo-bar-left,.demo-bar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.demo-bar-tag{background:rgba(232,118,43,.2);color:#ff9d5c;border:1px solid rgba(232,118,43,.5);padding:3px 8px;border-radius:5px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.demo-bar-btns{display:flex;gap:5px;flex-wrap:wrap}
.demo-bar-btn{min-height:32px!important;padding:5px 10px!important;border-radius:6px;border:1px solid #354147!important;background:#151f26!important;color:#d6dad8!important;font-size:12px!important;font-weight:600;cursor:pointer;line-height:1.2}
.demo-bar-btn:hover{border-color:#cba06a!important;color:#fff!important}
.demo-bar-btn.active{background:#e8762b!important;border-color:#e8762b!important;color:#fff!important}
.demo-bar-who{font-size:12px;color:#c2c8cc}
.demo-bar-who strong{color:#fff}
.demo-bar-step-pill{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:4px;background:#1c2932;border:1px solid #354147;color:#7ec0ff;font-size:11px;font-weight:600}
.demo-bar-next{min-height:32px!important;padding:5px 12px!important;border-radius:6px;border:1px solid #4ce09a!important;background:rgba(56,184,124,.18)!important;color:#4ce09a!important;font-size:12px!important;font-weight:700;cursor:pointer;white-space:nowrap}
.demo-bar-next:hover{background:#38b87c!important;color:#0b1014!important}

/* Mobile rule (MT 2026-10-23): small text 2-4pt bigger on phones only */
@media(max-width:640px){.brand small{font-size:13px}.hero .credit,.stat a,.photo-break figcaption,.disclosure,.list-meta,.badge-text{font-size:15px}.small,.muted,.form-note,.field-error,.filters label,.listing .tier,pre{font-size:16px}.field label,legend,.check,table,footer .links{font-size:17px}.demo-bar{font-size:15px}.demo-bar-tag,.demo-bar-step-pill{font-size:13px}.demo-bar-btn,.demo-bar-next,.demo-bar-who{font-size:14px!important}}
