:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #64748b;
  --text: #e5e7eb;
  --white: #ffffff;
  --line: #1f2937;
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --soft: #f8fafc;
  --soft-text: #0f172a;
  --success: #166534;
  --error: #991b1b;
  --warning: #92400e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f8fafc; color: #0f172a; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: linear-gradient(135deg, #111827 0%, #7f1d1d 100%); color: var(--white); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #dc2626; color: #fff; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav a { color: #fff; opacity: .95; }
.page-shell { padding: 28px 0 48px; }
.hero { background: linear-gradient(135deg, #111827 0%, #7f1d1d 100%); color: #fff; border-radius: 24px; padding: 48px; box-shadow: 0 20px 45px rgba(15,23,42,.15); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.04; margin: 0 0 14px; }
.hero p { font-size: 1.08rem; max-width: 700px; color: #e5e7eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.section { padding: 26px 0; }
.section h2 { font-size: 2rem; margin: 0 0 10px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 20px; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.card h3 { margin-top: 0; }
.kpi { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 16px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.2); }
.btn-light { background: #fff; color: #111827; }
.btn-outline { background: #fff; border-color: #d1d5db; }
.form-card { max-width: 740px; margin: 0 auto; }
label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 12px 14px; font-size: 1rem; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-row { margin-bottom: 16px; }
.help { color: #64748b; font-size: .92rem; margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: .82rem; font-weight: 700; }
.muted { color: #64748b; }
.footer { background: #111827; color: #cbd5e1; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.slug-box, .copy-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px; word-break: break-all; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.checkbox-list { display: grid; gap: 10px; }
.checkbox-item { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-item input { width: auto; margin-top: 3px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px; }
}

.hero-updated { padding: 42px; }
.hero-grid { display:grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr); gap: 20px; align-items: stretch; }
.hero-panel { display:grid; }
.hero-stack-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.hero-panel-label { font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:#fecaca; margin-bottom:12px; }
.feature-checklist { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.feature-checklist li { position:relative; padding-left:26px; color:#f8fafc; }
.feature-checklist li::before { content:'✓'; position:absolute; left:0; top:0; font-weight:900; color:#fecaca; }
.section-intro { max-width: 760px; margin-bottom: 16px; }
.section-intro p { color:#64748b; }
.feature-grid-strong { align-items:stretch; }
.feature-card-strong { display:grid; gap:8px; }
.story-grid { align-items:stretch; }
.story-card { display:grid; gap:14px; }
.story-card-dark { background: linear-gradient(135deg, #111827 0%, #1f2937 100%); color:#fff; border-color:#111827; }
.story-card-dark p, .story-card-dark span { color:#e5e7eb; }
.story-mini-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.story-mini-grid p { margin:6px 0 0; }
.metric-list { display:grid; gap:12px; }
.metric-list div { display:grid; gap:4px; padding:12px 14px; border-radius:16px; background: rgba(255,255,255,.06); }
.metric-list span { color:#cbd5e1; }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.how-card { display:grid; gap:8px; }
.cta-band { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
@media (max-width: 980px) {
  .hero-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .story-mini-grid, .hero-grid, .grid-4 { grid-template-columns: 1fr; }
  .hero-updated { padding: 28px; }
}
