/* ===========================================================
   LetsHelpPeople.org — Design System
   Aesthetic: Editorial, trustworthy, civic. Serif headlines
   with a modern sans body. Warm paper background, deep ink
   text, federal-blue accent. Think civic-institution meets
   modern product.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --paper: #F5F1E8;
  --paper-2: #EDE7D6;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #6B6458;
  --line: #D8CFB8;
  --accent: #0B3D91;          /* federal blue */
  --accent-2: #C03221;        /* seal red */
  --gold: #B8894A;
  --success: #2B6A3F;
  --warning: #A15C00;
  --error: #8B1C1C;
  --card: #FFFEF9;
  --shadow-sm: 0 1px 2px rgba(20, 15, 5, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 15, 5, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 15, 5, 0.12);

  /* Typography */
  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-editorial: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter Tight', -apple-system, sans-serif;

  /* Rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Geometry */
  --radius: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(at 20% 0%, rgba(184, 137, 74, 0.08) 0%, transparent 40%),
    radial-gradient(at 80% 100%, rgba(11, 61, 145, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--f-body); letter-spacing: 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.serif-it { font-family: var(--f-editorial); font-style: italic; font-weight: 400; }

p { color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-color: var(--accent); }

/* ===== Layout ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }
.narrow { max-width: 820px; margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--paper);
  border-radius: 1px;
  pointer-events: none;
}
.nav { display: flex; gap: var(--s-5); align-items: center; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; border: none; }
.nav a:hover { color: var(--accent); }
.nav .btn-primary { color: var(--paper); }

@media (max-width: 760px) {
  .nav a:not(.btn-primary) { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
}
.hero-inner { display: grid; gap: var(--s-6); }
.hero h1 {
  max-width: 14ch;
}
.hero h1 .mark {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); }
.hero-meta {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; display: block; font-size: 1.5rem; font-family: var(--f-display); }

/* Decorative document in hero */
.doc-decoration {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%) rotate(6deg);
  width: 340px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6) var(--s-5);
  opacity: 0.9;
  pointer-events: none;
  font-family: var(--f-display);
  animation: float 12s ease-in-out infinite;
}
.doc-decoration::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 60px; height: 4px;
  background: var(--accent-2);
}
.doc-decoration .line {
  height: 6px; background: var(--line); margin-bottom: 12px; border-radius: 1px;
}
.doc-decoration .line.short { width: 40%; }
.doc-decoration .line.med { width: 70%; }
.doc-decoration .line.seal {
  width: 50px; height: 50px; border: 2px solid var(--accent-2);
  border-radius: 50%; background: none;
  margin: 20px 0 0 auto;
  position: relative;
}
.doc-decoration .line.seal::after {
  content: 'SIGNED';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-body); font-size: 0.6rem;
  color: var(--accent-2); letter-spacing: 0.1em;
}
@keyframes float {
  0%, 100% { transform: translateY(-52%) rotate(6deg); }
  50% { transform: translateY(-48%) rotate(4deg); }
}
@media (max-width: 1024px) { .doc-decoration { display: none; } }

/* ===== Sections ===== */
section { padding: var(--s-8) 0; position: relative; z-index: 2; }
.section-header { margin-bottom: var(--s-7); max-width: 720px; }
.section-header h2 { margin-top: var(--s-3); }
.section-header p { margin-top: var(--s-4); font-size: 1.05rem; }

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  padding: var(--s-6);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.3s ease;
}
.feature:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s-4);
}
.feature h3 { margin-bottom: var(--s-3); }
.feature p { font-size: 0.95rem; }

/* ===== How it works — timeline ===== */
.steps {
  display: grid;
  gap: var(--s-6);
  position: relative;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: 'lnum';
}
.step h3 { font-size: 1.35rem; margin-bottom: var(--s-2); }
.step p { font-size: 1rem; }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: var(--s-6);
  border-radius: var(--radius-md);
}
.card-pad-lg { padding: var(--s-7); }

/* ===== Wizard ===== */
.wizard-shell {
  padding: var(--s-7) 0 var(--s-9);
  min-height: calc(100vh - 80px);
}
.wizard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 900px) {
  .wizard-grid { grid-template-columns: 1fr; }
}

.wizard-nav {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: var(--s-5);
  border-radius: var(--radius-md);
}
.wizard-nav ol { list-style: none; counter-reset: step; }
.wizard-nav li {
  counter-increment: step;
  padding: var(--s-3) 0 var(--s-3) 36px;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  margin-left: 12px;
}
.wizard-nav li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--muted);
}
.wizard-nav li.done { color: var(--success); }
.wizard-nav li.done::before { background: var(--success); color: var(--card); border-color: var(--success); content: '✓'; }
.wizard-nav li.active { color: var(--ink); font-weight: 600; }
.wizard-nav li.active::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.wizard-main { min-height: 500px; }
.wizard-step { display: none; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-header { margin-bottom: var(--s-6); }
.step-header .eyebrow { margin-bottom: var(--s-2); }
.step-header h2 { margin-bottom: var(--s-3); }

/* ===== Forms ===== */
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: var(--s-2); letter-spacing: 0.02em; }
label .optional { font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-left: 6px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  line-height: 1.4;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}
textarea { resize: vertical; min-height: 140px; font-family: var(--f-body); }

.field { margin-bottom: var(--s-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.help-text { font-size: 0.85rem; color: var(--muted); margin-top: var(--s-2); line-height: 1.5; }
.help-text.important { color: var(--warning); font-weight: 500; }

/* Option cards (radio grid) */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.option {
  position: relative;
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:hover { border-color: var(--ink); }
.option-icon { font-size: 1.5rem; margin-bottom: var(--s-3); color: var(--accent); display: block; }
.option-title { font-weight: 600; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
.option-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.option input:checked ~ .option-indicator,
.option.selected { }
.option.selected {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(11, 61, 145, 0.04), transparent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.option.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Wizard controls */
.wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

/* Progress bar */
.progress-bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* ===== Voice/Input composer ===== */
.composer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.composer-toolbar {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
}
.composer textarea {
  border: none;
  border-radius: 0;
  min-height: 200px;
  padding: var(--s-5);
  background: var(--card);
}
.composer textarea:focus { box-shadow: none; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-family: var(--f-body);
}
.tool-btn:hover { border-color: var(--ink); color: var(--ink); }
.tool-btn.recording {
  background: var(--error);
  color: var(--paper);
  border-color: var(--error);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 28, 28, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(139, 28, 28, 0); }
}

/* Uploaded file chips */
.files-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  border-top: 1px solid var(--line);
  min-height: 40px;
  align-items: center;
}
.files-list:empty::before {
  content: 'No files attached yet';
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--ink);
  max-width: 260px;
}
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  padding: 0 4px;
}
.file-chip button:hover { color: var(--error); }

/* ===== Generated document display ===== */
.doc-preview {
  background: #FFFEF5;
  border: 1px solid var(--line);
  padding: var(--s-8) var(--s-7);
  font-family: 'Times New Roman', Times, serif;
  font-size: 12pt;
  line-height: 1.8;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  white-space: pre-wrap;
  max-height: 600px;
  overflow-y: auto;
  border-radius: var(--radius);
}
.doc-preview h1, .doc-preview h2, .doc-preview h3 {
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
  margin: 1em 0;
}

.doc-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }

/* Filing guide boxes */
.guide-list { display: grid; gap: var(--s-4); }
.guide-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: var(--s-5);
  border-radius: var(--radius-md);
}
.guide-item h4 {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.guide-item h4 .num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--accent); color: var(--paper);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 0.85rem;
}
.guide-item .meta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.guide-item .meta strong { color: var(--ink); font-weight: 600; }

/* ===== Summary/jurisdiction card ===== */
.jurisdiction-card {
  background: linear-gradient(135deg, var(--ink) 0%, #2A2A2A 100%);
  color: var(--paper);
  padding: var(--s-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
}
.jurisdiction-card .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.jurisdiction-card .place { font-family: var(--f-display); font-size: 1.25rem; color: var(--paper); }
.jurisdiction-card .court { font-size: 0.85rem; color: var(--line); margin-top: 4px; }

/* ===== Alerts ===== */
.alert {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--s-3);
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid;
}
.alert-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.3; }
.alert-warning { background: #FDF6E7; border-color: #E6C77A; color: #5C3F00; }
.alert-info { background: #EAF0FA; border-color: #9FB4D9; color: #0B3D91; }
.alert-danger { background: #FBECEA; border-color: #D99A92; color: #7F1D17; }
.alert-success { background: #E8F2EC; border-color: #8FB79E; color: #1E4B2F; }

.alert p { color: inherit; margin: 0; }
.alert strong { display: block; margin-bottom: 4px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
  position: relative;
  z-index: 2;
}
.site-footer a { color: var(--paper); border-color: transparent; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: var(--s-3); }
.footer-lead { color: #B8B0A0; font-size: 0.9rem; max-width: 38ch; }
.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
  font-family: var(--f-body);
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.footer-col a { font-size: 0.9rem; color: #D9D2C1; }
.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid #333;
  font-size: 0.82rem;
  color: #8A8374;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom strong { color: var(--paper); }

/* ===== Utility ===== */
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }

/* Divider */
.divider {
  text-align: center;
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: var(--s-7) 0;
  letter-spacing: 0.5em;
}

/* ===== Resources page ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}
.resource {
  background: var(--card);
  border: 1px solid var(--line);
  padding: var(--s-6);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.resource:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.resource h3 { margin-bottom: var(--s-3); font-size: 1.15rem; }
.resource .cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--s-2); display: block; }

/* ===== About / content pages ===== */
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--s-7); margin-bottom: var(--s-4); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose p { margin-bottom: var(--s-4); font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.prose p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 4.5rem;
  font-weight: 400;
  float: left;
  line-height: 0.9;
  padding: 8px 12px 0 0;
  color: var(--accent);
}
.prose ul, .prose ol { margin: var(--s-4) 0 var(--s-4) var(--s-5); }
.prose li { margin-bottom: var(--s-2); color: var(--ink-soft); }

/* Print styles */
@media print {
  body { background: white; }
  body::before { display: none; }
  .site-header, .site-footer, .wizard-nav, .wizard-controls, .composer-toolbar, .doc-actions, .no-print { display: none !important; }
  .doc-preview { border: none; box-shadow: none; max-height: none; overflow: visible; padding: 0; }
}

/* ===== Wizard additions ===== */
.wizard-intro { max-width: 760px; margin-bottom: var(--s-7); }
.wizard-intro h1 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: var(--s-3) 0; color: var(--ink); }
.wizard-intro .lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); max-width: 640px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: var(--s-2); letter-spacing: 0.01em; }
.field .required { color: var(--error); font-weight: 700; }
.field .optional { color: var(--muted); font-weight: 400; font-style: italic; margin-left: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--f-body); font-size: 0.98rem; color: var(--ink); transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1); }
.field .hint, .hint { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 6px; font-style: italic; }

.composer-hint { font-size: 0.8rem; color: var(--muted); margin-left: auto; font-style: italic; }

.prompt-list { background: rgba(11, 61, 145, 0.04); border-left: 3px solid var(--accent); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); border-radius: 0 8px 8px 0; }
.prompt-list h4 { font-size: 0.92rem; font-weight: 700; color: var(--accent); margin-bottom: var(--s-2); letter-spacing: 0.02em; }
.prompt-list ul { margin: 0; padding-left: var(--s-4); }
.prompt-list li { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.5; }

.upload-zone { border: 2px dashed var(--line); border-radius: 14px; padding: var(--s-7) var(--s-5); text-align: center; background: rgba(255,255,255,0.4); transition: all 0.2s; }
.upload-zone:hover { border-color: var(--accent); background: rgba(11, 61, 145, 0.03); }
.upload-zone-inner { max-width: 420px; margin: 0 auto; }
.upload-icon { font-size: 2.5rem; margin-bottom: var(--s-3); opacity: 0.7; }
.upload-zone h3 { font-size: 1.15rem; margin-bottom: var(--s-2); color: var(--ink); }
.upload-zone .muted { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--s-4); }

.case-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); margin-bottom: var(--s-5); }
.case-summary h3 { font-size: 1rem; color: var(--accent); margin-bottom: var(--s-3); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; }
.case-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.case-summary dt { font-weight: 600; color: var(--muted); font-size: 0.88rem; }
.case-summary dd { color: var(--ink); font-size: 0.95rem; margin: 0; }

.doc-actions-top { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); padding: var(--s-4); background: linear-gradient(135deg, rgba(11,61,145,0.06), rgba(184,137,74,0.06)); border-radius: 12px; }

.section-subhead { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); margin-bottom: var(--s-4); font-weight: 500; letter-spacing: -0.01em; }

.filing-guide { display: flex; flex-direction: column; gap: var(--s-3); }
.filing-step { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: var(--s-4) var(--s-5); transition: all 0.2s; }
.filing-step:hover { box-shadow: var(--shadow-sm); }
.filing-step.critical { border-left-color: var(--error); background: rgba(192, 50, 33, 0.03); }
.filing-step .step-number { font-family: var(--f-display); font-size: 1.4rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.filing-step.critical .step-number { color: var(--error); }
.filing-step h4 { font-size: 1.05rem; margin-bottom: var(--s-2); color: var(--ink); }
.filing-step p { color: var(--ink-soft); line-height: 1.6; margin-bottom: var(--s-2); font-size: 0.95rem; }
.filing-step .step-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: 0.82rem; color: var(--muted); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.filing-step .step-meta span { display: inline-flex; align-items: center; gap: 4px; }

.wizard-disclaimer { margin-top: var(--s-7); padding: var(--s-5); background: rgba(26,26,26,0.04); border-radius: 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; max-width: 900px; }
.wizard-disclaimer strong { color: var(--ink); }
.wizard-disclaimer a { color: var(--accent); text-decoration: underline; }

/* Option grid (case type cards) */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
.option { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s-4); cursor: pointer; transition: all 0.15s; }
.option:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.option.selected { border-color: var(--accent); background: rgba(11, 61, 145, 0.04); box-shadow: 0 0 0 2px var(--accent); }
.option .option-icon { font-size: 1.6rem; margin-bottom: var(--s-2); }
.option h4 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.option p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.option .urgency { display: inline-block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-top: var(--s-2); }
.option .urgency.critical { background: rgba(192,50,33,0.1); color: var(--error); }
.option .urgency.high { background: rgba(184,137,74,0.15); color: var(--gold); }
.option .urgency.normal { background: rgba(11,61,145,0.08); color: var(--accent); }
.option .urgency.low { background: rgba(26,26,26,0.06); color: var(--muted); }


/* ===== Resources & about page ===== */
.hero-compact { padding: var(--s-7) 0 var(--s-6); }
.hero-compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.anchor-nav a { padding: 8px 16px; background: rgba(255,255,255,0.6); border: 1px solid var(--line); border-radius: 100px; font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: all 0.15s; }
.anchor-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.section { padding: var(--s-8) 0; }
.section-alt { background: var(--paper-2); position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.15; margin: var(--s-3) 0 var(--s-3); color: var(--ink); font-weight: 500; }
.section-head p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); }

.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); }
.state-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: var(--s-4); text-decoration: none; transition: all 0.15s; display: flex; flex-direction: column; gap: 4px; }
.state-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.state-card .state-abbr { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--accent); letter-spacing: 0.03em; }
.state-card .state-name { font-size: 1rem; color: var(--ink); font-weight: 600; }
.state-card .state-meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.glossary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.gloss-entry { background: #fff; border-left: 3px solid var(--gold); padding: var(--s-4); border-radius: 0 8px 8px 0; }
.gloss-entry dt { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.gloss-entry dd { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

.hotline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }
.hotline { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s-5); }
.hotline.hotline-critical { border-color: var(--error); background: rgba(139, 28, 28, 0.03); }
.hotline .hotline-number { font-family: var(--f-display); font-size: 1.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.01em; margin-bottom: 6px; }
.hotline.hotline-critical .hotline-number { color: var(--error); }
.hotline h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.hotline p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
