/* Property Outlook — Home dashboard view (Phase 3 per Recovery Plan v1.5 §4 Phase 3)

   Ported from `mockups/home-dashboard-desktop.html` lines 119-220 (State A
   empty + State B 3-analyses). State C (50+ analyses heavy-usage) is v1.1
   scope per Recovery Plan §4 Phase 3 — explicitly deferred. CSS for
   State C (.stats-bar, .pg-h, .arow, .pagination) is NOT ported here; if
   v1.1 lifts the deferral, the same mockup sections supply the source.

   Scoping: all rules live under `.home-page` parent so the home dashboard
   header sizes (e.g., `.dash-title { font-size: 22px }`) don't override
   billing.js's existing `.dash-title { font-size: 16px }` rule in
   components.css. Selector specificity wins; flat billing rules stay intact.

   Phase 3 stub note: the home view's State A renders unconditionally because
   `convex/properties.ts::listForUser` returns []. State B's CSS below is
   shipped so visual fidelity is in place once Phase 4 wires real data —
   acceptance-criteria framing per reviewer guardrail: State B is fixture/
   future-backed, NOT real-user-data-proven in Phase 3.
*/

/* ────────────────────────────────────────────────────────────────────
   HOME PAGE WRAPPER
   ──────────────────────────────────────────────────────────────────── */
.home-page {
  padding: 28px 0 60px;
}
.home-page .doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.home-page .home-card {
  background: var(--w);
  border: 1px solid var(--g200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

/* ────────────────────────────────────────────────────────────────────
   STATE A — EMPTY (first-time user)
   ──────────────────────────────────────────────────────────────────── */
.home-page .empty-hero {
  padding: 60px 32px 48px;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--brand-wash) 0%, transparent 65%);
}
.home-page .empty-welcome {
  font: 700 11px var(--m);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.home-page .empty-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--g900);
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 10px;
}
.home-page .empty-title em {
  font-style: italic;
  color: var(--brand);
}
.home-page .empty-sub {
  font-size: 15px;
  color: var(--g600);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Address input — Phase 3 ships this DISABLED with a Phase 4 hint.
   The visual remains identical to the mockup so the layout is locked. */
.home-page .addr-input {
  max-width: 560px;
  margin: 0 auto 14px;
  display: flex;
  gap: 8px;
  background: var(--w);
  border: 2px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--sh-sm);
  transition: border-color var(--tb);
}
.home-page .addr-input:focus-within {
  border-color: var(--brand);
}
.home-page .addr-input.disabled {
  background: var(--g50);
  border-color: var(--g150);
  opacity: 0.85;
}
.home-page .addr-input i {
  width: 17px;
  height: 17px;
  color: var(--g500);
  flex-shrink: 0;
  align-self: center;
}
.home-page .addr-input input {
  flex: 1;
  border: none;
  outline: none;
  font: 500 14.5px var(--f);
  color: var(--g800);
  background: transparent;
  min-width: 0;
  padding: 10px 4px;
}
.home-page .addr-input input::placeholder {
  color: var(--g400);
}
.home-page .addr-submit {
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font: 700 13px var(--f);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background var(--tb);
  flex-shrink: 0;
  cursor: pointer;
}
.home-page .addr-submit:hover {
  background: var(--brand-dk);
}
.home-page .addr-submit:disabled {
  background: var(--g300);
  color: var(--g500);
  cursor: not-allowed;
}
.home-page .addr-submit i {
  width: 14px;
  height: 14px;
}
.home-page .addr-hint {
  font-size: 11px;
  color: var(--g500);
  text-align: center;
}
.home-page .addr-hint code {
  font-size: 10.5px;
}
.home-page .addr-hint.phase4 {
  color: var(--warn);
  font-weight: 600;
}

/* "What happens when you submit" — 3-step explainer */
.home-page .empty-steps {
  padding: 32px;
  border-top: 1px solid var(--g150);
  background: var(--g50);
}
.home-page .empty-steps-t {
  font: 600 13px var(--f);
  color: var(--g600);
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.home-page .empty-steps-t i {
  width: 12px;
  height: 12px;
  color: var(--brand);
}
.home-page .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.home-page .step-card {
  background: var(--w);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: left;
  position: relative;
  box-shadow: var(--sh-sm);
}
.home-page .step-card::before {
  content: attr(data-num);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px var(--m);
  box-shadow: var(--sh-sm);
}
.home-page .step-card-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--g900);
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-page .step-card-t i {
  width: 15px;
  height: 15px;
  color: var(--brand);
}
.home-page .step-card-d {
  font-size: 12.5px;
  color: var(--g600);
  line-height: 1.6;
}
.home-page .step-card-d strong {
  color: var(--g900);
  font-weight: 600;
}
.home-page .step-card-meta {
  font: 500 12px var(--f);
  color: var(--g500);
  letter-spacing: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--g200);
}

/* Secondary links row — sample Outlook + jurisdictions + tour */
.home-page .empty-secondary {
  padding: 24px 32px;
  border-top: 1px solid var(--g150);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--g600);
}
.home-page .empty-secondary a {
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.home-page .empty-secondary a:hover {
  text-decoration: underline;
}
.home-page .empty-secondary a i {
  width: 13px;
  height: 13px;
}
.home-page .empty-secondary .sep {
  color: var(--g300);
}
.home-page .empty-secondary span.muted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--g400);
  cursor: not-allowed;
  font-weight: 500;
}
.home-page .empty-secondary span.muted i {
  width: 13px;
  height: 13px;
}

/* ────────────────────────────────────────────────────────────────────
   STATE B — 3 ANALYSES (light usage)
   Scoped under .home-page so home's header sizes don't collide with
   billing.js's flat .dash-title rule (16px) at components.css:2158.
   ──────────────────────────────────────────────────────────────────── */
.home-page .dash-header {
  padding: 20px 28px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--g150);
}
.home-page .dash-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--g900);
  letter-spacing: 0;
  margin-bottom: 3px;
}
.home-page .dash-sub {
  font-size: 12.5px;
  color: var(--g500);
}
.home-page .dash-sub strong {
  color: var(--g800);
  font-weight: 600;
}
.home-page .dash-actions {
  display: flex;
  gap: 6px;
}

.home-page .dash-filter {
  padding: 12px 28px;
  background: var(--g50);
  border-bottom: 1px solid var(--g150);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-page .filter-search {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: var(--w);
  border: 1px solid var(--g200);
  border-radius: var(--r-md);
  font-size: 12.5px;
}
.home-page .filter-search i {
  width: 13px;
  height: 13px;
  color: var(--g400);
}
.home-page .filter-search input {
  flex: 1;
  border: none;
  outline: none;
  font: 400 12.5px var(--f);
  background: transparent;
  color: var(--g700);
}
.home-page .filter-search input::placeholder {
  color: var(--g400);
}
.home-page .filter-sort {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11.5px;
  color: var(--g500);
}
.home-page .filter-sort-l {
  font: 600 10.5px var(--m);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-page .sort-btn {
  padding: 5px 10px;
  background: var(--w);
  border: 1px solid var(--g200);
  border-radius: var(--r-sm);
  font: 500 11.5px var(--f);
  color: var(--g600);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all var(--tb);
}
.home-page .sort-btn:hover {
  background: var(--g100);
}
.home-page .sort-btn.on {
  background: var(--brand-wash);
  border-color: var(--brand-sub);
  color: var(--brand);
  font-weight: 600;
}
.home-page .sort-btn i {
  width: 10px;
  height: 10px;
}

.home-page .dash-list {
  padding: 16px 28px 22px;
}

/* Analysis card */
.home-page .acard {
  position: relative;
  background: var(--w);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 16px 18px;
  align-items: center;
  transition: all var(--tb);
  cursor: pointer;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
/* Phase 1C — progress track + fill at the bottom edge of pending cards.
   Replaces the earlier floating wedge (which read as a stray decorative
   pill at <100%). Track spans the full card width as a neutral channel;
   fill grows left→right inside it. Card's `overflow: hidden` + 12px
   border-radius clip both the track and fill ends to the rounded corners
   automatically — no per-element radius needed. Renders only when
   `lastProgressPercent != null` (JSX-gated in PendingCard). */
.home-page .acard-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--g150);
  pointer-events: none;
}
.home-page .acard-progress-fill {
  height: 100%;
  background: var(--brand);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-page .acard:hover {
  border-color: var(--brand-sub);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}
.home-page .acard.primary {
  border-color: var(--brand-sub);
  background: linear-gradient(135deg, var(--brand-wash) 0%, transparent 60%);
}
.home-page .acard-temp {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--m);
  font-weight: 700;
}
.home-page .acard-temp.hot {
  background: var(--temp-hot-wash);
  color: var(--temp-hot);
  border: 1px solid rgba(16, 185, 129, 0.22);
}
.home-page .acard-temp.warm {
  background: var(--temp-warm-wash);
  color: #059669;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.home-page .acard-temp.cool {
  background: var(--temp-cool-wash);
  color: #1D4ED8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.home-page .acard-temp.cold {
  background: var(--temp-cold-wash);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.home-page .acard-temp.frozen {
  background: var(--temp-frozen-wash);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.home-page .acard-temp-v {
  font-size: 18px;
  line-height: 1;
}
.home-page .acard-temp-l {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}
.home-page .acard-body {
  min-width: 0;
}
.home-page .acard-addr {
  font-size: 15px;
  font-weight: 700;
  color: var(--g900);
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 3px;
}
.home-page .acard-meta {
  font-size: 11.5px;
  color: var(--g500);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.home-page .acard-meta .sep {
  color: var(--g300);
}
.home-page .acard-meta .chip {
  font: 600 9.5px var(--m);
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: var(--g100);
  color: var(--g600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-page .acard-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
.home-page .acard-metric-l {
  font: 700 9px var(--m);
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.home-page .acard-metric-v {
  font-family: var(--m);
  font-weight: 700;
  font-size: 14px;
  color: var(--g900);
  line-height: 1;
  white-space: nowrap;
}
.home-page .acard-metric-v.ok {
  color: var(--ok);
}
.home-page .acard-metric-v.warn {
  color: #B45309;
}
.home-page .acard-metric-v.err {
  color: var(--err);
}
.home-page .acard-metric-v .u {
  font-family: var(--f);
  font-size: 10px;
  color: var(--g500);
  font-weight: 500;
  margin-left: 2px;
}
.home-page .acard-updated {
  font: 600 10.5px var(--m);
  color: var(--g500);
  white-space: nowrap;
}
.home-page .acard-arrow {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--g100);
  color: var(--g500);
  display: grid;
  place-items: center;
  transition: all var(--tb);
}
.home-page .acard:hover .acard-arrow {
  background: var(--brand);
  color: #fff;
}
.home-page .acard-arrow i {
  width: 14px;
  height: 14px;
}

/* Empty-CTA pinned at the bottom of State B's list */
.home-page .acard-empty-cta {
  padding: 14px 20px;
  background: var(--g50);
  border: 1px dashed var(--g300);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: 12.5px;
  color: var(--g600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--tb);
  margin-top: 4px;
}
.home-page .acard-empty-cta:hover {
  background: var(--brand-wash);
  border-color: var(--brand-sub);
  color: var(--brand);
}
.home-page .acard-empty-cta i {
  width: 15px;
  height: 15px;
}

/* ────────────────────────────────────────────────────────────────────
   ACARD STATE VARIANTS (Phase 4.1 Ship B — per home-dashboard-journey.html)
   --------------------------------------------------------------------
   IN-PROGRESS and FAILED cards use a flex 3-element layout (different
   information density than completed) inside the SAME outer shell as
   completed cards (matching height + padding + border-radius preserves
   list rhythm). No empty placeholder columns.
   ──────────────────────────────────────────────────────────────────── */
@keyframes acard-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* IN-PROGRESS + FAILED variants — Phase 1B-2c rewrite to canonical mockup
   §2/§3 pattern (home-dashboard-card-states.html). Both variants now reuse
   the .acard 6-column grid (auto 1fr auto auto auto auto) so row heights
   stay homogeneous when statuses mix in a list. Content slot mapping:
     col 1 → .acard-temp (state pill)
     col 2 → .acard-body (address + status-meta or fail-reason)
     col 3 → .acard-shimmer-cluster (pending) | empty (failed)
     col 4 → empty
     col 5 → .acard-updated
     col 6 → .acard-arrow (pending) | .acard-retry (failed)
   Phase 4.x: cards stay clickable; calmer hover keeps "in-progress object"
   read instead of "primary data result." Retry button stops propagation. */

.home-page .acard.is-pending {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.home-page .acard.is-pending:hover {
  transform: none;
  box-shadow: var(--sh-md);
  border-color: var(--brand-sub);
}

/* Pending temp pill — neutral grey palette + animated pulse-dot. Mockup §2
   intentionally drops the score number while running (no score until
   completed), replacing it with a small dot that pulses as a "live work"
   cue. Sub-label maps 1:1 to row.status field via PENDING_PILL_LABEL. */
.home-page .acard-temp.pending {
  background: var(--g100);
  color: var(--g500);
  border: 1px solid var(--g200);
}
.home-page .acard-temp.pending .acard-temp-v {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-page .acard-temp.pending .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: acard-pulse 1.4s ease-in-out infinite;
}
@keyframes acard-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

/* Status-meta line replaces the bd/ba/sqft chip row inside .acard-body
   while running. Italic to read as "what we're doing right now," strong
   for any inline numbers (queue position). */
.home-page .acard-status-meta {
  font-size: 12px;
  color: var(--g600);
  font-style: italic;
  line-height: 1.4;
}
.home-page .acard-status-meta strong {
  font-style: normal;
  font-weight: 600;
  color: var(--g800);
}

/* Shimmer cluster sits in the metric columns slot and signals "live work."
   Single Lucide spinner + sub-label-mirror text per mockup §2. */
.home-page .acard-shimmer-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--g500);
  justify-self: end;
  white-space: nowrap;
}
.home-page .acard-shimmer-cluster [data-lucide] {
  width: 13px;
  height: 13px;
  color: var(--brand);
  animation: acard-spin 1.4s linear infinite;
}

/* FAILED variant — soft red wash gradient, NOT a saturated alert. Failure
   reads as recoverable. Border-color tinted err but not loud. */
.home-page .acard.is-failed {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, transparent 70%);
  border-color: rgba(239, 68, 68, 0.2);
  text-decoration: none;
  color: inherit;
}
.home-page .acard.is-failed:hover {
  transform: none;
  box-shadow: var(--sh-md);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Failed temp pill — square mark with alert-triangle + "Failed" sub-label.
   Mirrors the .acard-temp.{band} structure of completed cards so the row
   metric slot lines up. */
.home-page .acard-temp.failed {
  background: rgba(239, 68, 68, 0.08);
  color: var(--err);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.home-page .acard-temp.failed .acard-temp-v {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-page .acard-temp.failed .acard-temp-v [data-lucide] {
  width: 18px;
  height: 18px;
}

/* Fail-reason row replaces the bd/ba/sqft chip line inside .acard-body.
   Reason-icon + copy on a single row; reason text uses .ts-style red.
   Wraps gracefully on narrow widths. */
.home-page .acard-fail-reason {
  font-size: 12px;
  color: #B91C1C;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-page .acard-fail-reason [data-lucide] {
  width: 12px;
  height: 12px;
  color: var(--err);
  flex-shrink: 0;
}
.home-page .acard-fail-retry-error {
  color: var(--g600);
  font-style: italic;
}

.home-page .acard-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font: 600 12px var(--f);
  background: var(--w);
  color: var(--g700);
  border: 1px solid var(--g300);
  cursor: pointer;
  transition: all var(--tb);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-page .acard-retry:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.home-page .acard-retry [data-lucide] {
  width: 12px;
  height: 12px;
}

/* DASH-SUB highlight color for "X analyzing" running-count */
.home-page .dash-sub .sub-running {
  color: var(--brand);
  font-weight: 600;
}

/* Phase 4.1 Ship B fix-up: .tbtn / .tbtn.primary / .tbtn.danger rules
   were referenced in markup across home.js + billing.js (~30 buttons) +
   subscription.js + PaymentInvoices.js since Phase 3 but never had
   matching CSS anywhere in the Property Outlook bundle (admin-dashboard
   precedent assumed a different stylesheet). Without these rules the
   buttons rendered as unstyled browser-default block elements
   everywhere — discovered via getComputedStyle showing
   background:transparent, padding:0, border:none, border-radius:0.
   This is the root cause of the "billing page looks rough" complaint
   from earlier sessions too. Rules are intentionally NOT scoped to
   .home-page so all surfaces benefit. Ported from
   home-dashboard-journey.html mockup. */
.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  font: 500 12px var(--f);
  background: var(--w);
  color: var(--g700);
  border: 1px solid var(--g200);
  cursor: pointer;
  transition: all var(--tb);
  white-space: nowrap;
  text-decoration: none; /* anchor variants in billing.js */
}
.tbtn:hover:not(:disabled) {
  background: var(--g50);
  border-color: var(--g300);
}
.tbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tbtn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tbtn.primary:hover:not(:disabled) {
  background: var(--brand-dk);
}
.tbtn.danger {
  background: var(--w);
  color: var(--err);
  border-color: rgba(239, 68, 68, 0.4);
}
.tbtn.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.06);
  border-color: var(--err);
}
/* [data-lucide] selector handles BOTH the pre-replacement <i> and the
   post-replacement <svg> Lucide produces — same fix as .acard-temp.pending. */
.tbtn [data-lucide] {
  width: 13px;
  height: 13px;
}

/* INLINE NEW-ANALYSIS DRAWER (Ship B — opens via dash-actions "+ New analysis") */
.home-page .new-analysis-drawer {
  padding: 14px 24px 18px;
  background: var(--g50);
  border-bottom: 1px solid var(--g150);
}
.home-page .new-analysis-drawer .addr-input {
  max-width: none;
  margin: 0;
}
.home-page .new-analysis-drawer .drawer-feedback {
  margin-top: 8px;
  font-size: 12px;
  color: var(--g600);
}
.home-page .new-analysis-drawer .drawer-feedback.feedback-error,
.home-page .new-analysis-drawer .drawer-feedback.feedback-blocked {
  color: var(--err);
}

/* ────────────────────────────────────────────────────────────────────
   RESPONSIVE — match mockup line 281-289
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .home-page .empty-title {
    font-size: 24px;
  }
  .home-page .steps-grid {
    grid-template-columns: 1fr;
  }
  .home-page .acard {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .home-page .acard-metric,
  .home-page .acard-updated {
    display: none;
  }
  .home-page .doc {
    padding: 0 18px;
  }
  /* Phase 1B-2b F8 — at 375px, input + submit inline crushed the input to
     ~150px and ellipsed the placeholder. Stack vertically so each takes
     full width; resets the inline flex-row + leading icon padding. */
  .home-page .addr-input {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }
  .home-page .addr-input i { display: none; }
  .home-page .addr-input input {
    padding: 10px 8px;
    width: 100%;
  }
  .home-page .addr-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}
