/* =====================================================
   LOUD CART — DESIGN SYSTEM TOKENS
   ===================================================== */

:root {
  /* —— Tier 1: Brand —— */
  /* #d7cff7 */
  --lc-heat: #FF4D1F;
  --lc-heat-hover: #E63E12;
  --lc-heat-press: #C8330A;
  --lc-heat-tint: #FFE7DF;
  --lc-burnt: #1A1208;
  --lc-burnt:#0e0704;

  /* —— Tier 2: Backgrounds —— */
  --lc-offwhite: #FAFAF7;
  --lc-stone: #F0EEE9;
  --lc-white: #FFFFFF;

  /* —— Tier 3: Text & UI —— */
  --lc-ink: #1A1208;
  --lc-slate: #3D362C;
  --lc-muted: #807766;
  --lc-border: #E8E5DD;
  --lc-border-strong: #D4D0C5;

  /* —— Tier 4: Functional —— */
  --lc-success: #16A34A;
  --lc-success-tint: #DCFCE7;
  --lc-error: #DC2626;
  --lc-error-tint: #FEE2E2;
  --lc-info: #2563EB;
  --lc-info-tint: #DBEAFE;

  /* —— Tier 5: Soft accents —— */
  --lc-sand: #E8DCC4;
  --lc-rose: #E8C4B8;
  --lc-olive: #C4C8A0;

  /* —— Type —— */
  --lc-display: 'Inter', sans-serif;
  --lc-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* —— Spacing (4px base) —— */
  --lc-space-0: 0;
  --lc-space-1: 4px;
  --lc-space-2: 8px;
  --lc-space-3: 12px;
  --lc-space-4: 16px;
  --lc-space-5: 20px;
  --lc-space-6: 24px;
  --lc-space-8: 32px;
  --lc-space-10: 40px;
  --lc-space-12: 48px;
  --lc-space-16: 64px;
  --lc-space-20: 80px;
  --lc-space-24: 96px;
  --lc-space-32: 128px;
  --lc-space-40: 160px;

  /* —— Radius —— */
  --lc-radius-none: 0;
  --lc-radius-sm: 4px;
  --lc-radius-md: 8px;
  --lc-radius-lg: 12px;
  --lc-radius-xl: 16px;
  --lc-radius-pill: 999px;

  /* —— Shadows —— */
  --lc-shadow-xs: 0 1px 2px rgba(26, 18, 8, 0.04);
  --lc-shadow-sm: 0 2px 4px rgba(26, 18, 8, 0.06), 0 1px 2px rgba(26, 18, 8, 0.04);
  --lc-shadow-md: 0 4px 12px rgba(26, 18, 8, 0.08), 0 2px 4px rgba(26, 18, 8, 0.04);
  --lc-shadow-lg: 0 12px 32px rgba(26, 18, 8, 0.10), 0 4px 8px rgba(26, 18, 8, 0.04);
  --lc-shadow-heat: 0 6px 20px rgba(255, 77, 31, 0.28);

  /* —— Motion —— */
  --lc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lc-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --lc-dur-fast: 120ms;
  --lc-dur-base: 200ms;
  --lc-dur-slow: 320ms;

  /* —— Layout —— */
  --lc-container: 1200px;
  --lc-container-narrow: 880px;
  --lc-container-wide: 1440px;
}

/* =====================================================
   RESET + BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lc-body);
  background: var(--lc-offwhite);
  color: var(--lc-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* =====================================================
   TYPE SCALE
   ===================================================== */
.t-display-xl,
.t-display-lg,
.t-display-md,
.t-display-sm,
.t-headline,
.t-title {
  font-family: var(--lc-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lc-ink);
  margin: 0;
  text-wrap: balance;
}
.t-display-xl { font-size: clamp(56px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.025em; }
.t-display-lg { font-size: clamp(44px, 5vw, 72px); line-height: 1.0; letter-spacing: -0.022em; }
.t-display-md { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.t-display-sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.t-headline   { font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.t-title      { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }

.t-eyebrow {
  font-family: var(--lc-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-heat);
  margin: 0;
}
.t-label {
  font-family: var(--lc-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--lc-ink);
  margin: 0;
}
.t-body-lg { font-size: 18px; line-height: 1.6; color: var(--lc-slate); margin: 0; }
.t-body    { font-size: 16px; line-height: 1.55; color: var(--lc-slate); margin: 0; }
.t-body-sm { font-size: 14px; line-height: 1.5; color: var(--lc-slate); margin: 0; }
.t-caption { font-size: 13px; line-height: 1.45; color: var(--lc-muted); margin: 0; }
.t-micro   { font-size: 11px; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lc-muted); font-weight: 500; margin: 0; }

.italic-display { font-family: var(--lc-display); font-style: italic; font-weight: 500; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: var(--lc-container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--lc-container-narrow); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--lc-container-wide); margin: 0 auto; padding: 0 24px; }

section.ds-section {
  padding: 96px 0;
  border-top: 1px solid var(--lc-border);
}
section.ds-section.alt { background: var(--lc-stone); }
section.ds-section.dark { background: var(--lc-burnt); color: var(--lc-offwhite); }
section.ds-section.dark .t-body,
section.ds-section.dark .t-body-lg,
section.ds-section.dark .t-body-sm,
section.ds-section.dark .t-caption,
section.ds-section.dark h1,
section.ds-section.dark h2,
section.ds-section.dark h3,
section.ds-section.dark .t-display-xl,
section.ds-section.dark .t-display-lg,
section.ds-section.dark .t-display-md,
section.ds-section.dark .t-display-sm,
section.ds-section.dark .t-headline { color: var(--lc-offwhite); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 80px) minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lc-border);
}
section.ds-section.dark .section-head { border-bottom-color: rgba(255,255,255,0.12); }
.section-head .num {
  font-family: var(--lc-mono);
  font-size: 14px;
  color: var(--lc-heat);
  font-weight: 500;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { max-width: 60ch; }

/* =====================================================
   SUB-GRID + CARDS
   ===================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}

.spec-card {
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 24px;
}
.spec-card.tight { padding: 16px; }

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lc-border);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--lc-muted); font-weight: 500; }
.spec-row dd { margin: 0; color: var(--lc-ink); font-family: var(--lc-mono); font-size: 13px; }

/* =====================================================
   CODE BLOCKS
   ===================================================== */
pre.code {
  font-family: var(--lc-mono);
  font-size: 13px;
  line-height: 1.65;
  background: var(--lc-burnt);
  color: #F5EFE6;
  padding: 24px;
  border-radius: var(--lc-radius-lg);
  overflow-x: auto;
  margin: 0;
}
pre.code .c-key { color: #FFB199; }
pre.code .c-val { color: #F5EFE6; }
pre.code .c-com { color: #807766; font-style: italic; }
pre.code .c-str { color: #C4C8A0; }
pre.code .c-prop { color: #E8C4B8; }

code.inline {
  font-family: var(--lc-mono);
  font-size: 0.9em;
  background: var(--lc-stone);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--lc-ink);
}
section.ds-section.dark code.inline { background: rgba(255,255,255,0.08); color: var(--lc-offwhite); }

/* =====================================================
   COLOR SWATCHES
   ===================================================== */
.swatch {
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.swatch .chip {
  height: 120px;
  position: relative;
}
.swatch .chip.bordered { box-shadow: inset 0 0 0 1px var(--lc-border); }
.swatch .meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.swatch .name { font-weight: 600; font-size: 14px; color: var(--lc-ink); }
.swatch .hex { font-family: var(--lc-mono); font-size: 12px; color: var(--lc-muted); }
.swatch .var { font-family: var(--lc-mono); font-size: 11px; color: var(--lc-muted); margin-top: 4px; }

/* =====================================================
   BUTTONS (live demo styles)
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--lc-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--lc-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--lc-dur-fast) var(--lc-ease-out),
              transform var(--lc-dur-fast) var(--lc-ease-out),
              border-color var(--lc-dur-fast) var(--lc-ease-out),
              box-shadow var(--lc-dur-fast) var(--lc-ease-out);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--lc-heat);
  outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.md { padding: 12px 20px; font-size: 14px; }
.btn.lg { padding: 16px 28px; font-size: 16px; }

.btn.primary { background: var(--lc-heat); color: var(--lc-white); }
.btn.primary:hover { background: var(--lc-heat-hover); box-shadow: var(--lc-shadow-heat); }
.btn.primary:active { background: var(--lc-heat-press); }
.btn.primary:disabled { background: var(--lc-border-strong); color: var(--lc-muted); cursor: not-allowed; box-shadow: none; }

.btn.secondary { background: var(--lc-burnt); color: var(--lc-offwhite); }
.btn.secondary:hover { background: #2A1F12; }
.btn.secondary:active { background: var(--lc-burnt); }
.btn.secondary:disabled { background: var(--lc-border-strong); color: var(--lc-muted); cursor: not-allowed; }

.btn.ghost { background: transparent; color: var(--lc-ink); border-color: var(--lc-border-strong); }
.btn.ghost:hover { background: var(--lc-stone); border-color: var(--lc-ink); }
.btn.ghost:active { background: var(--lc-border); }
.btn.ghost:disabled { color: var(--lc-muted); cursor: not-allowed; }

.btn.destructive { background: var(--lc-error); color: var(--lc-white); }
.btn.destructive:hover { background: #B91C1C; }

/* =====================================================
   INPUTS
   ===================================================== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--lc-ink); }
.field .helper { font-size: 13px; color: var(--lc-muted); }
.field .err { font-size: 13px; color: var(--lc-error); display: flex; gap: 6px; align-items: center; }
.input {
  font-family: var(--lc-body);
  font-size: 15px;
  color: var(--lc-ink);
  background: var(--lc-white);
  border: 1px solid var(--lc-border-strong);
  border-radius: var(--lc-radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--lc-dur-fast), box-shadow var(--lc-dur-fast);
}
.input::placeholder { color: var(--lc-muted); }
.input:hover { border-color: var(--lc-slate); }
.input:focus {
  outline: none;
  border-color: var(--lc-heat);
  box-shadow: 0 0 0 3px rgba(255, 77, 31, 0.18);
}
.input:disabled { background: var(--lc-stone); color: var(--lc-muted); cursor: not-allowed; }
.input.error { border-color: var(--lc-error); }
.input.error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
textarea.input { min-height: 120px; resize: vertical; font-family: var(--lc-body); }
select.input { appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%231A1208' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* checkbox / radio */
.check, .radio {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--lc-ink);
}
.check input, .radio input { position: absolute; opacity: 0; pointer-events: none; }
.check .box, .radio .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--lc-border-strong);
  background: var(--lc-white);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  transition: all var(--lc-dur-fast);
}
.check .box { border-radius: 4px; }
.radio .box { border-radius: 50%; }
.check input:checked + .box {
  background: var(--lc-heat); border-color: var(--lc-heat);
}
.check input:checked + .box::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}
.radio input:checked + .box {
  border-color: var(--lc-heat); border-width: 5px;
}

/* toggle */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: var(--lc-border-strong);
  border-radius: 999px;
  transition: background var(--lc-dur-base);
}
.toggle .slider::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: transform var(--lc-dur-base) var(--lc-ease-out);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle input:checked + .slider { background: var(--lc-heat); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: var(--lc-radius-pill);
  letter-spacing: 0.01em;
}
.badge.default { background: var(--lc-stone); color: var(--lc-ink); }
.badge.heat { background: var(--lc-heat-tint); color: var(--lc-heat-press); }
.badge.success { background: var(--lc-success-tint); color: #14532D; }
.badge.error { background: var(--lc-error-tint); color: #7F1D1D; }
.badge.info { background: var(--lc-info-tint); color: #1E3A8A; }
.badge.dot::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* =====================================================
   STAT BLOCK
   ===================================================== */
.stat {
  display: flex; flex-direction: column; gap: 4px;
}
.stat .num {
  font-family: var(--lc-display); font-style: italic; font-weight: 500;
  font-size: 64px; line-height: 1; letter-spacing: -0.025em;
  color: var(--lc-heat);
}
.stat .label { font-size: 14px; color: var(--lc-slate); max-width: 28ch; }
.stat.dark .num { color: var(--lc-heat); }
.stat.dark .label { color: rgba(250,250,247,0.72); }

/* =====================================================
   DOS & DONTS
   ===================================================== */
.do, .dont {
  border-radius: var(--lc-radius-lg);
  padding: 20px;
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  display: flex; flex-direction: column; gap: 8px;
}
.do { border-left: 3px solid var(--lc-success); }
.dont { border-left: 3px solid var(--lc-error); }
.do .tag, .dont .tag {
  font-family: var(--lc-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
}
.do .tag { color: var(--lc-success); }
.dont .tag { color: var(--lc-error); }

/* =====================================================
   TABLES
   ===================================================== */
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  overflow: hidden;
}
table.tbl th, table.tbl td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lc-border);
  vertical-align: top;
}
table.tbl th {
  background: var(--lc-stone);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lc-slate);
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td code { font-family: var(--lc-mono); font-size: 13px; color: var(--lc-heat-press); }

/* =====================================================
   TABS
   ===================================================== */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--lc-border);
  padding-bottom: 0;
}
.tabs .tab {
  padding: 12px 16px;
  font-weight: 500; font-size: 14px;
  color: var(--lc-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--lc-dur-fast), border-color var(--lc-dur-fast);
}
.tabs .tab:hover { color: var(--lc-ink); }
.tabs .tab.active { color: var(--lc-ink); border-bottom-color: var(--lc-heat); }

/* =====================================================
   TOOLTIP (visual only)
   ===================================================== */
.tt-demo {
  display: inline-block; position: relative;
  padding: 6px 10px; background: var(--lc-stone); border-radius: 6px;
  font-size: 13px;
}
.tt {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--lc-burnt); color: var(--lc-offwhite);
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; white-space: nowrap;
  box-shadow: var(--lc-shadow-md);
}
.tt::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--lc-burnt);
}

/* =====================================================
   MODAL DEMO
   ===================================================== */
.modal-shell {
  background: var(--lc-stone);
  border-radius: var(--lc-radius-lg);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.modal {
  background: var(--lc-white);
  border-radius: var(--lc-radius-lg);
  box-shadow: var(--lc-shadow-lg);
  width: 100%; max-width: 440px;
  overflow: hidden;
}
.modal-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-actions { padding: 16px 28px; background: var(--lc-stone); display: flex; justify-content: flex-end; gap: 8px; }

/* =====================================================
   NAV DEMO
   ===================================================== */
.nav-demo {
  background: var(--lc-offwhite);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-demo .links { display: flex; gap: 28px; }
.nav-demo .links a { color: var(--lc-slate); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-demo .links a:hover { color: var(--lc-heat); }
.nav-demo .brand { display: flex; align-items: center; gap: 10px; font-family: var(--lc-display); font-style: italic; font-weight: 500; font-size: 22px; }
.nav-demo .brand .blob { width: 24px; height: 24px; border-radius: 50%; background: var(--lc-heat); }

/* footer demo */
.footer-demo {
  background: var(--lc-burnt);
  color: var(--lc-offwhite);
  padding: 56px 40px 32px;
  border-radius: var(--lc-radius-lg);
}

/* =====================================================
   PRICING CARD DEMO
   ===================================================== */
.price-card {
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.price-card.featured {
  background: var(--lc-burnt);
  color: var(--lc-offwhite);
  border-color: var(--lc-burnt);
}
.price-card.featured .price-num { color: var(--lc-heat); }
.price-card .price-num {
  font-family: var(--lc-display); font-style: italic; font-weight: 500;
  font-size: 64px; line-height: 1; letter-spacing: -0.025em;
}
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.price-card li { font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.price-card li::before { content:"+"; color: var(--lc-heat); font-weight: 700; }

/* =====================================================
   HERO DEMO
   ===================================================== */
.hero-demo {
  background: var(--lc-offwhite);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 80px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) { .hero-demo { grid-template-columns: 1fr; padding: 40px 24px; } }
.hero-demo .visual {
  background: var(--lc-burnt);
  border-radius: var(--lc-radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,247,0.4);
  font-family: var(--lc-mono);
  font-size: 12px;
}
.hero-demo .visual::before {
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,77,31,0.08) 0 12px, transparent 12px 24px);
}

/* =====================================================
   TESTIMONIAL DEMO
   ===================================================== */
.testi {
  background: var(--lc-burnt);
  color: var(--lc-offwhite);
  border-radius: var(--lc-radius-lg);
  padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
.testi blockquote {
  margin: 0;
  font-family: var(--lc-display); font-style: italic; font-weight: 500;
  font-size: 32px; line-height: 1.25; letter-spacing: -0.015em;
  text-wrap: balance;
}
.testi blockquote .heat { color: var(--lc-heat); }
.testi cite {
  font-style: normal; font-size: 14px;
  color: rgba(250,250,247,0.72);
  display: flex; flex-direction: column; gap: 2px;
}
.testi cite strong { color: var(--lc-offwhite); font-weight: 600; }

/* =====================================================
   ICON SAMPLES
   ===================================================== */
.icon-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  border: 1px solid var(--lc-border); border-radius: var(--lc-radius-lg);
  background: var(--lc-white); overflow: hidden;
}
@media (max-width: 880px) { .icon-grid { grid-template-columns: repeat(4, 1fr); } }
.icon-grid .cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--lc-border); border-bottom: 1px solid var(--lc-border);
  color: var(--lc-ink);
}
.icon-grid .cell:nth-child(8n) { border-right: 0; }
.icon-grid .cell svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================
   IMAGERY PLACEHOLDER
   ===================================================== */
.img-ph {
  background: repeating-linear-gradient(135deg, var(--lc-stone) 0 12px, var(--lc-border) 12px 24px);
  border-radius: var(--lc-radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--lc-muted);
  font-family: var(--lc-mono); font-size: 11px;
  text-align: center;
}

/* =====================================================
   TOC NAV
   ===================================================== */
.toc {
  position: sticky; top: 24px;
  background: var(--lc-white);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-lg);
  padding: 20px;
  font-size: 13px;
}
.toc h4 { font-family: var(--lc-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lc-muted); margin: 0 0 12px; font-weight: 500; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.toc li { counter-increment: toc; }
.toc li a {
  display: flex; gap: 10px; padding: 6px 8px; border-radius: 6px;
  color: var(--lc-slate); text-decoration: none;
  transition: background var(--lc-dur-fast);
}
.toc li a:hover { background: var(--lc-stone); color: var(--lc-ink); }
.toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--lc-mono); color: var(--lc-heat); font-size: 11px; padding-top: 2px; }

/* =====================================================
   COVER
   ===================================================== */
.cover {
  min-height: 100vh;
  background: var(--lc-burnt);
  color: var(--lc-offwhite);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cover::before {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(255,77,31,0.18), transparent 50%);
  pointer-events: none;
}
.cover .top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 48px;
  border-bottom: 1px solid rgba(250,250,247,0.1);
  font-family: var(--lc-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.6);
}
.cover .top .logo { width: 140px; }
.cover .body {
  flex: 1; padding: 72px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: end;
  position: relative;
}
@media (max-width: 880px) { .cover .body { grid-template-columns: 1fr; padding: 48px 24px; } }
.cover h1 {
  font-family: var(--lc-display); font-style: italic; font-weight: 500;
  font-size: clamp(72px, 9vw, 140px); line-height: 0.92;
  letter-spacing: -0.03em; margin: 0;
}
.cover h1 .heat { color: var(--lc-heat); }
.cover .meta { display: flex; flex-direction: column; gap: 24px; }
.cover .meta .row { display: flex; flex-direction: column; gap: 4px; }
.cover .meta .row .key { font-family: var(--lc-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,250,247,0.5); }
.cover .meta .row .val { font-size: 16px; color: var(--lc-offwhite); }
.cover .strip {
  border-top: 1px solid rgba(250,250,247,0.1);
  padding: 20px 48px;
  display: flex; gap: 48px; flex-wrap: wrap;
  font-family: var(--lc-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(250,250,247,0.6);
}
.cover .strip span b { color: var(--lc-heat); font-weight: 500; }

/* =====================================================
   MISC
   ===================================================== */
.lede {
  font-family: var(--lc-display); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--lc-slate); text-wrap: pretty;
  max-width: 60ch;
}
.kbd {
  display: inline-block; padding: 1px 6px;
  font-family: var(--lc-mono); font-size: 11px;
  background: var(--lc-stone); border: 1px solid var(--lc-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--lc-ink);
}
.callout {
  border-left: 3px solid var(--lc-heat);
  background: var(--lc-heat-tint);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 14px; color: var(--lc-burnt);
}
.callout strong { color: var(--lc-heat-press); }

hr.rule { border: 0; border-top: 1px solid var(--lc-border); margin: 48px 0; }
.dark hr.rule { border-top-color: rgba(255,255,255,0.1); }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.row.lg { gap: 24px; }
