/* ==========================================================================
   DCNgrid (TradeProof) — Self-Contained Presentation Stylesheet
   NCD Framework v3.2 rev5 (luci-shell/1) · Zero External CDN Dependencies
   100% CSP 'self' Compliant
   ========================================================================== */

:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --rail: #111113;
  --ink: #1A1A1A;
  --muted: #57534E;
  --line: #E7E5E4;
  --orange: #E8762B;
  --amber: #D97706;
  --sui: #2563EB;
  --green: #059669;
  --fs-small: 15px;
  --fs-body: 17px;
  --tap-min: 48px;
}

@media (min-width: 900px) {
  :root {
    --fs-small: 13px;
    --fs-body: 16px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

code, pre, .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.06); }
}
.animate-glow { animation: pulseGlow 2.4s infinite ease-in-out; }

@keyframes flowDash {
  to { stroke-dashoffset: -24; }
}
.svg-flow {
  stroke-dasharray: 6 6;
  animation: flowDash 1.2s linear infinite;
}

/* Layout & Containers */
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-w-\[760px\] { min-width: 760px; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Aspect Ratios & Overflow */
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }

/* Flexbox & Grid Alignment */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid Columns & Gaps */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Vertical Spacing (space-y) */
.space-y-1 > * + * { margin-top: 0.25rem; }
.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-6 > * + * { margin-top: 1.5rem; }
.space-y-14 > * + * { margin-top: 3.5rem; }

/* Padding & Margin */
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }

/* Border Radius & Borders */
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.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-\[\#E7E5E4\] { border-color: #E7E5E4; }
.border-\[\#E8762B\] { border-color: #E8762B; }
.border-\[\#E8762B\]\/40 { border-color: rgba(232, 118, 43, 0.4); }
.border-stone-700 { border-color: #44403C; }
.border-stone-800 { border-color: #292524; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.12); }
.border-rose-200 { border-color: #FECDD3; }
.border-emerald-200 { border-color: #A7F3D0; }
.border-blue-200 { border-color: #BFDBFE; }

/* Backgrounds */
.bg-white { background-color: #FFFFFF; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.06); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.10); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.72); }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.82); }
.bg-\[\#F7F5F2\] { background-color: #F7F5F2; }
.bg-\[\#111113\] { background-color: #111113; }
.bg-\[\#E8762B\] { background-color: #E8762B; }
.bg-\[\#E8762B\]\/20 { background-color: rgba(232, 118, 43, 0.2); }
.bg-stone-100 { background-color: #F5F5F4; }
.bg-stone-200 { background-color: #E7E5E4; }
.bg-stone-800 { background-color: #292524; }
.bg-stone-900 { background-color: #1C1917; }
.bg-stone-950 { background-color: #0C0A09; }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-orange-100 { background-color: #FFEDD5; }
.bg-amber-100 { background-color: #FEF3C7; }
.bg-emerald-50 { background-color: #ECFDF5; }
.bg-emerald-100 { background-color: #D1FAE5; }
.bg-emerald-500 { background-color: #10B981; }
.bg-rose-50 { background-color: #FFF1F2; }
.bg-blue-50 { background-color: #EFF6FF; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-blue-600 { background-color: #2563EB; }
.bg-purple-100 { background-color: #F3E8FF; }

.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Text Colors */
.text-white { color: #FFFFFF; }
.text-black { color: #000000; }
.text-\[\#1A1A1A\] { color: #1A1A1A; }
.text-\[\#57534E\] { color: #57534E; }
.text-\[\#E8762B\] { color: #E8762B; }
.text-stone-200 { color: #E7E5E4; }
.text-stone-300 { color: #D6D3D1; }
.text-stone-400 { color: #A8A29E; }
.text-orange-300 { color: #FDBA74; }
.text-amber-300 { color: #FCD34D; }
.text-amber-400 { color: #FBBF24; }
.text-amber-800 { color: #92400E; }
.text-emerald-300 { color: #6EE7B7; }
.text-emerald-400 { color: #34D399; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065F46; }
.text-rose-400 { color: #FB7185; }
.text-rose-600 { color: #E11D48; }
.text-rose-700 { color: #BE123C; }
.text-rose-800 { color: #9F1239; }
.text-blue-300 { color: #93C5FD; }
.text-blue-400 { color: #60A5FA; }
.text-blue-600 { color: #2563EB; }
.text-blue-700 { color: #1D4ED8; }
.text-blue-800 { color: #1E40AF; }
.text-blue-900 { color: #1E3A8A; }
.text-purple-700 { color: #7E22CE; }
.text-purple-800 { color: #6B21A8; }

/* Typography */
.text-xs { font-size: var(--fs-small); line-height: 1.45; }
.text-sm { font-size: 0.925rem; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.55; }
.text-lg { font-size: 1.125rem; line-height: 1.45; }
.text-xl { font-size: 1.25rem; line-height: 1.35; }
.text-2xl { font-size: 1.5rem; line-height: 1.25; }
.text-3xl { font-size: 1.875rem; line-height: 1.18; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-\[1\.12\] { line-height: 1.12; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.625; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* Shadows & Transitions */
.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08); }
.shadow-md { box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.12); }
.shadow-lg { box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.18); }
.shadow-xl { box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }

.transition, .transition-all { transition: all 0.2s ease; }
.duration-500 { transition-duration: 0.5s; }
.cursor-pointer { cursor: pointer; }
.accent-\[\#E8762B\] { accent-color: #E8762B; }

.hover\:opacity-95:hover, .group:hover .group-hover\:opacity-90 { opacity: 0.92; }
.hover\:bg-stone-100:hover { background-color: #F5F5F4; }
.hover\:bg-stone-200:hover { background-color: #E7E5E4; }
.hover\:bg-stone-700:hover { background-color: #44403C; }
.hover\:bg-white\/15:hover { background-color: rgba(255, 255, 255, 0.15); }
.hover\:bg-orange-50:hover { background-color: #FFF7ED; }
.hover\:bg-blue-500:hover { background-color: #3B82F6; }
.hover\:text-\[\#1A1A1A\]:hover { color: #1A1A1A; }

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:p-6 { padding: 1.5rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:border-t-0 { border-top-width: 0; }
  .lg\:border-l { border-left: 1px solid #292524; }
  .lg\:text-sm { font-size: 0.925rem; }
  .lg\:text-base { font-size: 1.025rem; }
  .lg\:text-lg { font-size: 1.125rem; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-5xl { font-size: 2.85rem; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
}

/* Progressive Disclosure & Demo Bar Support */
[hidden] { display: none !important; }
details.pres-drawer {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  background-color: var(--surface);
  color: var(--ink);
  margin-top: 1rem;
}
details.pres-drawer.dark-drawer {
  background-color: #1C1917;
  border-color: #44403C;
  color: #F5F5F4;
}
details.pres-drawer > summary {
  font-weight: 700;
  font-size: 0.925rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
}
details.pres-drawer > summary::-webkit-details-marker { display: none; }
details.pres-drawer > summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 800;
  line-height: 1;
}
details.pres-drawer[open] > summary::after { content: '−'; }
details.pres-drawer[open] > summary {
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}
details.pres-drawer.dark-drawer[open] > summary {
  border-bottom-color: #44403C;
}

/* Fictional Demo Persona Switcher Bar */
.demo-bar{background:#0b1014;color:#faf8f2;border-bottom:2px solid #e8762b;font:13px/1.35 system-ui,-apple-system,sans-serif;position:relative;z-index:60}
.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}}
