:root {
  --h-bg: #070708;
  --h-bg-2: #0e0e11;
  --h-card: #141418;
  --h-card-2: #1a1a1f;
  --h-border: #2a2a32;
  --h-border-soft: rgba(255, 255, 255, 0.06);
  --h-text: #fafafa;
  --h-muted: #a1a1aa;
  --h-dim: #71717a;
  --h-primary: #eab308;
  --h-primary-2: #f59e0b;
  --h-primary-soft: rgba(234, 179, 8, 0.14);
  --h-ok: #22c55e;
  --h-ok-soft: rgba(34, 197, 94, 0.14);
  --h-danger: #ef4444;
  --h-info: #38bdf8;
  --h-radius: 16px;
  --h-radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--h-bg);
  color: var(--h-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--h-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

/* ── Shell ─────────────────────────────────────────── */
.h-wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 80px; }
.h-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 18px 0;
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.h-top.scrolled { border-bottom-color: var(--h-border); }
.h-brand { display: flex; align-items: center; gap: 12px; }
.h-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--h-primary), var(--h-primary-2));
  display: grid; place-items: center; font-weight: 700; color: #111;
  overflow: hidden; flex-shrink: 0;
  font-family: var(--font-display);
}
.h-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.h-logo.has-img { padding: 3px; background: #fff; }
.h-brand strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.h-brand .dim { font-size: 12px; }

/* ── Cards / layout ────────────────────────────────── */
.h-card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  padding: 24px;
  margin-bottom: 16px;
}
.h-grid { display: grid; gap: 14px; }
.h-grid-2 { grid-template-columns: 1fr 1fr; }
.h-grid-3 { grid-template-columns: repeat(3, 1fr); }
.h-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .h-grid-3, .h-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h-grid-2, .h-grid-3, .h-grid-4 { grid-template-columns: 1fr; }
}

/* ── Marketing hero ────────────────────────────────── */
.mkt-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 12px 0 28px;
  padding: clamp(32px, 6vw, 56px);
  background:
    radial-gradient(ellipse 90% 80% at 85% 10%, rgba(234, 179, 8, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(160deg, #15151a 0%, #0c0c10 55%, #101014 100%);
  border: 1px solid var(--h-border);
  box-shadow: var(--shadow);
}
.mkt-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.mkt-hero > * { position: relative; z-index: 1; }
.mkt-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--h-primary-soft);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.mkt-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05); }
}
.mkt-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}
.mkt-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-hero .lead {
  color: var(--h-muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 54ch;
  margin: 0 0 28px;
}
.mkt-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 28px;
}
.mkt-trust {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  color: var(--h-dim); font-size: 13px;
}
.mkt-trust span { display: inline-flex; align-items: center; gap: 8px; }
.mkt-trust i { color: var(--h-primary); }

/* Stats strip */
.mkt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--h-border);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
.mkt-stat {
  background: var(--h-card);
  padding: 20px 18px;
  text-align: center;
}
.mkt-stat .num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--h-primary);
  letter-spacing: -0.02em;
  display: block;
}
.mkt-stat .lbl { font-size: 12px; color: var(--h-muted); margin-top: 4px; display: block; }
@media (max-width: 720px) {
  .mkt-stats { grid-template-columns: 1fr 1fr; }
}

/* Section chrome */
.mkt-section { margin-bottom: 28px; }
.mkt-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.mkt-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.mkt-section-head p { margin: 0; color: var(--h-muted); font-size: 14px; max-width: 52ch; }

/* Benefit cards */
.benefit {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}
.benefit:hover {
  border-color: rgba(234, 179, 8, 0.35);
  transform: translateY(-2px);
}
.benefit .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--h-primary-soft); color: var(--h-primary);
  display: grid; place-items: center; font-size: 18px; margin-bottom: 12px;
}
.benefit h3 { margin: 0 0 6px; font-size: 16px; }
.benefit p { margin: 0; color: var(--h-muted); font-size: 13.5px; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 18px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--h-primary-soft); color: #fde047;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 6px; font-size: 15px; padding-right: 32px; }
.step p { margin: 0; color: var(--h-muted); font-size: 13px; }

/* County coverage */
.county-panel {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 20px;
}
.county-legend {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  margin-bottom: 14px; font-size: 12px; color: var(--h-muted);
}
.county-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chip-swatch {
  width: 12px; height: 12px; border-radius: 4px; display: inline-block;
}
.chip-swatch.primary { background: var(--h-primary); }
.chip-swatch.metro { background: #38bdf8; }
.chip-swatch.all { background: #3f3f46; }

.county-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 280px; overflow: auto;
  padding-right: 4px;
}
.county-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: #1c1c22;
  border: 1px solid var(--h-border);
  color: var(--h-muted);
}
.county-pill.primary {
  background: var(--h-primary-soft);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fde047;
  font-weight: 700;
}
.county-pill.metro {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}
.primary-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(234,179,8,.12), rgba(234,179,8,.04));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.primary-callout i {
  color: var(--h-primary); font-size: 22px; margin-top: 2px;
}
.primary-callout strong { display: block; margin-bottom: 4px; }
.primary-callout p { margin: 0; color: var(--h-muted); font-size: 13.5px; }

/* County multi-select picker */
.county-picker {
  border: 1px solid var(--h-border);
  border-radius: 12px;
  background: #0c0c0e;
  overflow: hidden;
}
.county-picker-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--h-border);
  background: #121216;
}
.county-picker-toolbar input {
  flex: 1; min-width: 140px;
  background: #0c0c0e;
  border: 1px solid var(--h-border);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}
.county-picker-toolbar input:focus { border-color: var(--h-primary); }
.county-picker-body {
  max-height: 260px; overflow: auto;
  padding: 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.county-check {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--h-border);
  background: #141418;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}
.county-check:hover { border-color: #52525b; }
.county-check.primary { border-color: rgba(234, 179, 8, 0.35); }
.county-check.selected {
  background: var(--h-primary-soft);
  border-color: rgba(234, 179, 8, 0.5);
  color: #fde047;
}
.county-check input { accent-color: var(--h-primary); }
.county-picker-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--h-border);
  font-size: 12px; color: var(--h-muted);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.help-text { font-size: 12px; color: var(--h-dim); margin: 4px 0 0; }

/* FAQ */
.faq details {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--h-primary); font-size: 18px; font-weight: 500;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 10px 0 0; color: var(--h-muted); font-size: 14px;
}

/* Final CTA band */
.mkt-band {
  border-radius: 20px;
  padding: clamp(28px, 5vw, 40px);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(234,179,8,.2), transparent 55%),
    linear-gradient(135deg, #1a1608, #121216 50%, #0f1418);
  border: 1px solid rgba(234, 179, 8, 0.25);
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.mkt-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 6px; letter-spacing: -0.02em;
}
.mkt-band p { margin: 0; color: var(--h-muted); max-width: 44ch; }

/* Sticky bottom CTA (mobile) */
.mkt-sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--h-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  gap: 8px;
}
@media (max-width: 720px) {
  .mkt-sticky-cta.show { display: flex; }
  .h-wrap { padding-bottom: 100px; }
}

/* ── Forms (shared portal) ─────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--h-muted); margin-bottom: 5px;
}
.form-control, .form-select, textarea.form-control {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid var(--h-border);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.form-control:focus, .form-select:focus { border-color: var(--h-primary); }
textarea.form-control { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 640px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
.req { color: #f87171; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--h-border); background: #27272a;
  font-weight: 600; font-size: 13.5px;
  transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
  text-decoration: none; color: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #facc15, var(--h-primary));
  border-color: transparent;
  color: #111;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(234, 179, 8, 0.35); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(239,68,68,.15); border-color: transparent; color: #fca5a5; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.h-error {
  background: rgba(239,68,68,.12); color: #fca5a5;
  padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 13px;
}
.h-success {
  background: rgba(34,197,94,.12); color: #86efac;
  padding: 10px 12px; border-radius: 8px; margin: 10px 0;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--h-border);
  border-radius: 10px; margin-bottom: 8px;
  background: #0c0c0e; cursor: pointer; transition: .12s;
}
.checklist li:hover { border-color: #3f3f46; }
.checklist li.done { border-color: rgba(34,197,94,.35); }
.cl-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(234,179,8,.12); color: var(--h-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.cl-icon.done { background: rgba(34,197,94,.15); color: var(--h-ok); }
.cl-body { flex: 1; min-width: 0; }
.cl-body strong { display: block; }
.cl-body span { font-size: 12px; color: var(--h-muted); }
.progress-bar {
  height: 8px; background: #27272a; border-radius: 999px; overflow: hidden; margin: 12px 0;
}
.progress-bar > i {
  display: block; height: 100%; background: var(--h-primary);
  border-radius: 999px; transition: width .3s;
}

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--h-border);
  border-radius: 8px; background: #0c0c0e; font-size: 13px; cursor: pointer;
}
.legal-box {
  background: #0c0c0e; border: 1px solid var(--h-border);
  border-radius: 10px; padding: 14px; font-size: 12px;
  color: var(--h-muted); white-space: pre-wrap; max-height: 220px; overflow: auto;
  margin-bottom: 14px; line-height: 1.55;
}
.sig-wrap {
  border: 1px dashed var(--h-border); border-radius: 8px; padding: 8px; background: #111;
}
.sig-wrap canvas {
  width: 100%; height: 140px; background: #fff; border-radius: 6px;
  touch-action: none; cursor: crosshair;
}
.muted { color: var(--h-muted); }
.dim { color: var(--h-dim); }
.pill {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
  background: #27272a; color: #d4d4d8;
}
.pill-green { background: rgba(34,197,94,.15); color: #4ade80; }
.pill-yellow { background: rgba(245,158,11,.15); color: #fbbf24; }
.pill-blue { background: rgba(59,130,246,.15); color: #60a5fa; }
.pill-red { background: rgba(239,68,68,.15); color: #f87171; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--h-border);
  background: transparent; color: var(--h-muted);
}
.tab.active { background: rgba(234,179,8,.15); color: var(--h-primary); border-color: transparent; }
.fields-flex { display: flex; flex-wrap: wrap; gap: 12px; }
.fields-flex .fg { width: 100%; }
.fields-flex .fg.half { width: calc(50% - 6px); }
.fields-flex .fg.third { width: calc(33.33% - 8px); }
@media (max-width: 640px) {
  .fields-flex .fg.half, .fields-flex .fg.third { width: 100%; }
}

.mkt-footer {
  text-align: center; padding: 24px 0 8px;
  color: var(--h-dim); font-size: 12px;
  border-top: 1px solid var(--h-border); margin-top: 12px;
}
.mkt-footer a { color: var(--h-muted); }

/* App view (non-landing) slightly tighter wrap */
.h-wrap.app-mode { max-width: 960px; }

/* ── Trade category checkboxes ─────────────────────── */
.trade-picker {
  border: 1px solid var(--h-border);
  border-radius: 12px;
  background: #0c0c0e;
  overflow: hidden;
}
.trade-picker-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--h-border);
  background: #121216;
}
.trade-picker-toolbar input {
  flex: 1; min-width: 140px;
  background: #0c0c0e;
  border: 1px solid var(--h-border);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}
.trade-picker-toolbar input:focus { border-color: var(--h-primary); }
.trade-picker-body {
  max-height: 280px; overflow: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.trade-check {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--h-border);
  background: #141418;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
  transition: 0.12s;
}
.trade-check:hover { border-color: #52525b; }
.trade-check.selected {
  background: var(--h-primary-soft);
  border-color: rgba(234, 179, 8, 0.5);
  color: #fde047;
}
.trade-check input { accent-color: var(--h-primary); margin-top: 2px; flex-shrink: 0; }
.trade-picker-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--h-border);
  font-size: 12px; color: var(--h-muted);
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

/* ── Document upload / link slots ──────────────────── */
.docs-host { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.doc-slot {
  border: 1px solid var(--h-border);
  border-radius: 12px;
  padding: 14px;
  background: #0c0c0e;
}
.doc-slot.filled { border-color: rgba(34, 197, 94, 0.35); }
.doc-slot.required-slot:not(.filled) { border-color: rgba(245, 158, 11, 0.35); }
.doc-slot-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 10px;
}
.doc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--h-border);
  border-radius: 10px;
  background: var(--h-card);
  margin-bottom: 8px;
}
.doc-item-ico {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--h-primary-soft); color: var(--h-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.doc-item-body { flex: 1; min-width: 0; }
.doc-item-body a {
  display: block; font-weight: 600; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-actions { margin-top: 4px; }
.doc-upload-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.doc-link-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.doc-link-row .form-control { flex: 1; min-width: 180px; }
.doc-slot-status { color: var(--h-muted); margin-top: 4px; }

/* Document prep UX */
.doc-prep-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(234,179,8,.12), rgba(234,179,8,.04));
}
.doc-prep-banner p { margin: 4px 0 0; color: var(--h-muted); font-size: 13.5px; line-height: 1.5; }
.doc-prep-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--h-primary-soft); color: var(--h-primary); font-size: 18px;
}
.doc-prep-progress { margin-top: 4px; }
@media (max-width: 640px) {
  .doc-prep-banner { flex-direction: column; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE (phones & small tablets)
   Touch-friendly apply · checklist · forms · self-serve
   ═══════════════════════════════════════════════════════════ */

/* Base mobile safety */
.hiring-body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(234, 179, 8, 0.15);
}
.h-loading-card {
  text-align: center;
  padding: 48px 20px;
  margin-top: 24px;
}

/* Larger touch targets */
.btn {
  min-height: 44px;
  touch-action: manipulation;
}
.btn-sm { min-height: 36px; }
.btn-lg { min-height: 50px; }
.form-control, .form-select, textarea.form-control {
  min-height: 46px;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  border-radius: 10px;
}
textarea.form-control { min-height: 110px; }
.choice {
  min-height: 44px;
  padding: 10px 14px;
}
.county-check, .trade-check {
  min-height: 44px;
  padding: 10px 12px;
}
.checklist li {
  min-height: 56px;
  padding: 14px 12px;
  gap: 10px;
}

/* Sticky app action bar (apply / form save / submit) */
.h-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 16px -4px 0;
  padding: 12px 4px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(7, 7, 8, 0.92) 28%, rgba(7, 7, 8, 0.98));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-sticky-actions .btn { width: 100%; }
.h-sticky-actions .btn-row {
  display: flex;
  gap: 8px;
}
.h-sticky-actions .btn-row .btn { flex: 1; }

/* Progress step strip (dashboard / apply) */
.h-progress-steps {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
}
.h-progress-steps .ps {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #27272a;
  overflow: hidden;
}
.h-progress-steps .ps.done { background: var(--h-ok); }
.h-progress-steps .ps.current {
  background: linear-gradient(90deg, var(--h-primary), var(--h-primary-2));
}
.h-step-label {
  font-size: 12px;
  color: var(--h-dim);
  margin: 8px 0 0;
}

/* Dashboard header stack */
.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Form top bar */
.form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Top nav: compact brand + full-width actions on small screens */
.h-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.h-top .btn .btn-label-full { display: inline; }
.h-top .btn .btn-label-short { display: none; }

@media (max-width: 720px) {
  .h-wrap {
    padding: 0 14px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .h-wrap.app-mode {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .h-top {
    padding: 12px 0;
    position: sticky;
    top: 0;
    top: env(safe-area-inset-top, 0px);
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .h-brand { flex: 1; min-width: 0; }
  .h-brand strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }
  .h-brand .dim {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }
  .h-logo { width: 40px; height: 40px; border-radius: 10px; }
  .h-top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .h-top-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 10px;
    font-size: 13px;
  }
  .h-top .btn .btn-label-full { display: none; }
  .h-top .btn .btn-label-short { display: inline; }

  /* Marketing */
  .mkt-hero {
    margin: 8px 0 20px;
    padding: 24px 18px 28px;
    border-radius: 18px;
  }
  .mkt-hero h1 {
    max-width: none;
    font-size: clamp(26px, 8vw, 34px);
  }
  .mkt-hero .lead {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .mkt-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
  }
  .mkt-cta-row .btn {
    width: 100%;
  }
  .mkt-trust {
    flex-direction: column;
    gap: 10px;
  }
  .mkt-stats {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }
  .mkt-stat { padding: 14px 10px; }
  .mkt-stat .num { font-size: 22px; }

  .mkt-section { margin-bottom: 22px; }
  .mkt-section-head { margin-bottom: 12px; }
  .benefit {
    padding: 16px;
  }
  .benefit:hover { transform: none; }

  .steps { gap: 10px; }
  .step { padding: 16px; }

  .county-panel { padding: 14px; }
  .county-pills {
    max-height: 220px;
    gap: 6px;
  }
  .county-pill {
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 36px;
  }
  .primary-callout {
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }

  .mkt-band {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 16px;
    border-radius: 16px;
  }
  .mkt-band > div:last-child {
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
  }
  .mkt-band .btn { width: 100%; }

  .faq summary {
    font-size: 14px;
    line-height: 1.4;
    min-height: 44px;
  }

  /* Sticky mobile CTA */
  .mkt-sticky-cta {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 10px;
    gap: 8px;
    align-items: stretch;
  }
  .mkt-sticky-cta .btn-primary { flex: 1; }
  .mkt-sticky-cta .btn:not(.btn-primary) {
    flex: 0 0 auto;
    min-width: 96px;
  }

  /* Cards */
  .h-card {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .h-card h2 {
    font-size: 22px !important;
    line-height: 1.2;
  }

  /* Pickers */
  .county-picker-toolbar,
  .trade-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .county-picker-toolbar input,
  .trade-picker-toolbar input {
    min-width: 0;
    width: 100%;
  }
  .county-picker-toolbar .btn,
  .trade-picker-toolbar .btn {
    width: 100%;
  }
  .county-picker-body {
    max-height: 240px;
  }
  .trade-picker-body {
    grid-template-columns: 1fr;
    max-height: 260px;
  }
  .county-picker-footer,
  .trade-picker-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11.5px;
  }

  /* Checklist */
  .checklist li {
    flex-wrap: wrap;
  }
  .checklist li .fa-chevron-right {
    display: none;
  }
  .cl-body {
    flex: 1 1 calc(100% - 90px);
    min-width: 140px;
  }
  .cl-body span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .checklist .pill {
    margin-left: auto;
  }

  /* Dashboard */
  .dash-head {
    flex-direction: column;
  }
  .dash-actions {
    width: 100%;
  }
  .dash-actions .btn {
    width: 100%;
  }

  /* Onboarding form */
  .form-topbar {
    position: sticky;
    top: calc(58px + env(safe-area-inset-top, 0px));
    z-index: 25;
    background: rgba(20, 20, 24, 0.94);
    backdrop-filter: blur(10px);
    margin: -8px -4px 12px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--h-border-soft);
  }
  .legal-box {
    max-height: 160px;
    font-size: 12.5px;
    -webkit-overflow-scrolling: touch;
  }
  .sig-wrap canvas {
    height: 160px;
  }
  .doc-slot { padding: 12px; }
  .doc-slot-head {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-item {
    flex-wrap: wrap;
  }
  .doc-link-row {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-link-row .form-control {
    min-width: 0;
    width: 100%;
  }
  .doc-link-row .btn,
  .doc-upload-row .btn,
  .doc-upload-row label.btn {
    width: 100%;
  }

  /* Login card full width */
  .h-card[style*="max-width:440px"] {
    max-width: 100% !important;
    margin: 12px 0 !important;
  }

  /* Tabs if any */
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .tab {
    flex: 0 0 auto;
    min-height: 40px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .h-wrap { padding-left: 12px; padding-right: 12px; }
  .mkt-hero h1 { font-size: 24px; }
  .mkt-stat .num { font-size: 20px; }
  .h-top-actions { grid-template-columns: 1fr; }
}

/* Landscape phones: keep sticky usable */
@media (max-width: 900px) and (max-height: 480px) {
  .mkt-sticky-cta {
    bottom: 6px;
    padding: 6px;
  }
  .county-picker-body,
  .trade-picker-body {
    max-height: 140px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .benefit:hover { transform: none; }
  .btn:active { transform: none; }
  .mkt-kicker .dot { animation: none; }
}

/* Touch devices: no hover lift */
@media (hover: none) {
  .benefit:hover { transform: none; border-color: var(--h-border); }
  .checklist li:hover { border-color: var(--h-border); }
}

/* App-mode bottom padding when sticky actions present */
.h-wrap.app-mode:has(.h-sticky-actions) {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
