/* VioVerse -- Home v2 surface (tabbed single-card layout)
   Pill/tab bar showing one card at a time. Four tabs: Take action,
   Check your file, Watch the demo, Get your report.
   Three states: paid-with-reports (full), unpaid-with-report (locked),
   unpaid-empty (onboarding). All render inside .container.
   Reference: NewDashboard.png + vioverse-home-spec.md */

/* === LAYOUT === */
.home {
  padding: 30px 0 44px;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

.home .col {
  width: 780px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

/* Loading state: shown while aggregate data is in flight */
.home-loading {
  text-align: center;
  padding: 48px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(30, 42, 53, 0.5);
}
.home-loading a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
}

/* R-C error card (auth-flash-routing, 2026-08-05): shown when the account
   did not open, either because the bootstrap never produced an account_id
   or because the aggregate fetch failed. Deliberately the app's own card
   language -- white card on the bone canvas, navy 800 title, coral pill --
   so a failure still looks like VioVerse rather than like a broken page. */
.home-error {
  display: flex;
  justify-content: center;
  padding: 40px 0 24px;
}

.home-error-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 36px 34px;
  text-align: center;
}

.home-error-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.home-error-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(30, 42, 53, 0.62);
  margin: 14px 0 0;
}

.home-error-retry {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 40px;
  border: none;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.home-error-retry:hover { filter: brightness(0.94); }

/* The second escape, and deliberately quieter than Try again: retrying is
   what we want the consumer to do first. */
.home-error-signout {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 42, 53, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-error-signout:hover { color: var(--text); }

@media (max-width: 480px) {
  .home-error { padding: 24px 0 16px; }
  .home-error-card { padding: 30px 22px 26px; border-radius: var(--radius-sm); }
  .home-error-title { font-size: 25px; }
  /* Full-width tap target on a phone, at the 44 px minimum. */
  .home-error-retry { display: block; width: 100%; padding: 15px 24px; min-height: 44px; }
}

/* Coral keyword accent -- scoped to .home */
.home .coral { color: var(--coral); }

/* === WELCOME === */
.home-welcome {
  margin-bottom: 20px;
}

.home-welcome h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

.home-welcome .home-status {
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 42, 53, 0.6);
  margin-top: 6px;
}

/* === TAB BAR (pill row) === */
.home-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.home-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid rgba(30, 42, 53, 0.2);
  background: transparent;
  color: rgba(30, 42, 53, 0.5);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.home-tab:hover {
  border-color: rgba(30, 42, 53, 0.35);
  color: rgba(30, 42, 53, 0.7);
}

.home-tab-active {
  background: var(--ink-0);
  color: #fff;
  border-color: var(--ink-0);
}
.home-tab-active:hover {
  border-color: var(--ink-0);
  color: #fff;
}

/* Tab label swap: full on desktop, short on mobile */
.tab-short { display: none; }

/* === TAB PANELS === */
.home-tab-panels {
  /* Container for the single visible card panel */
}

/* Equal depth: shared min-height so tab switching doesn't resize the card.
   Derived from the scorecard (tallest) at 780px col width. Desktop only;
   mobile cards size to content. */
.home-tab-panel > .home-card,
.home-tab-panel > .home-tour-mount {
  min-height: 540px;
}

/* === SHARED CARD === */
.home-card {
  background: #fff;
  border: none;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
}

/* === DISPATCHER CARD (Take action) === */
.home-eyebrow {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

.home-dispatch-line {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 14px;
}

/* Walk finding T1 (2026-08-14): the held-back explanation, under the
   dispute button. Quiet by design -- it explains the button's number
   rather than competing with it, so it sits well below the 36px
   dispatch line in both size and weight. */
.home-dispatch-note {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(30, 42, 53, 0.62);
}

/* Action buttons: 8px radius, NOT 999px pill */
.btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-coral:hover { filter: brightness(1.08); }
.btn-coral svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ladder links (secondary actions below primary CTA) */
.home-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.home-ladder a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  transition: color 0.12s;
}
.home-ladder a:hover { color: var(--coral); }

.home-ladder a svg {
  width: 17px;
  height: 17px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Attorney section (bottom-pinned) */
.home-attorney {
  margin-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-attorney h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.home-attorney p {
  font-size: 16px;
  color: rgba(30, 42, 53, 0.62);
  line-height: 1.4;
  margin: 0 0 12px;
}

.btn-attorney {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 190px;
  align-self: flex-end;
  margin-top: auto;
  white-space: nowrap;
  background: var(--ink-0);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(29, 36, 48, 0.3);
  transition: all 0.15s;
}
.btn-attorney:hover {
  box-shadow: 0 6px 20px rgba(29, 36, 48, 0.4);
  transform: translateY(-1px);
}
.btn-attorney svg {
  width: 17px;
  height: 17px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === BENEFITS DRAWER (locked dispatcher, decision #2) === */

/* Trigger: outlined flip when open */
.bd-trigger svg {
  transition: transform 0.3s ease;
}
.home-card.open .bd-trigger {
  background: #fff;
  color: var(--coral);
  border: 2px solid var(--coral);
}
.home-card.open .bd-trigger svg {
  stroke: var(--coral);
  transform: rotate(180deg);
}

/* Drawer body */
.bd-drawer {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
}
.home-card.open .bd-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 24px;
  max-height: 400px;
}

.bd-drawer-head {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

/* 3-column value grid */
.bd-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.bd-value {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bd-value-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #F3EFE7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bd-value-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd-value h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.bd-value p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(30, 42, 53, 0.62);
  margin: 0;
}

/* Pay row (bottom-pinned) */
.bd-payrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
}

.bd-paynote {
  font-size: 13px;
  color: rgba(30, 42, 53, 0.62);
}

/* Pay pill mirrors .btn-coral metrics */
.bd-pay {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bd-drawer,
  .bd-trigger svg {
    transition: none;
  }
}

/* === CLEAN / UNDER-THRESHOLD CARDS (shared .cs-* family) === */

.cs-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(30, 42, 53, 0.62);
  margin-top: 14px;
  max-width: 560px;
}

.cs-coverage-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 30px;
}

.cs-coverage-help {
  font-size: 13.5px;
  color: rgba(30, 42, 53, 0.62);
  margin-top: 5px;
  line-height: 1.5;
}

.cs-coverage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.cs-tile {
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-tile.checked {
  background: #F3EFE7;
}

.cs-tile.unchecked {
  border: 1.5px dashed rgba(30, 42, 53, 0.25);
}

.cs-tile-bureau {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-tile-bureau svg {
  width: 19px;
  height: 19px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-tile-status {
  font-size: 13.5px;
  color: rgba(30, 42, 53, 0.62);
}

.cs-tile.checked .cs-tile-status {
  font-weight: 600;
  color: rgba(30, 42, 53, 0.7);
}

.cs-tile-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  font-family: inherit;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  width: fit-content;
  cursor: pointer;
  transition: background 0.12s;
}
.cs-tile-upload:hover {
  background: rgba(242, 100, 25, 0.06);
}
.cs-tile-upload svg {
  width: 13px;
  height: 13px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Add-action button: dashed coral affordance (not solid -- solid = payment) */
.cs-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 28px;
}

.cs-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 36px;
  border-radius: 8px;
  background: #fff;
  color: var(--coral);
  border: 2px dashed var(--coral);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.15s;
}
.cs-add:hover { filter: brightness(1.08); }
.cs-add svg {
  width: 18px;
  height: 18px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === SCORECARD CARD (Check your file) === */
.home-scorecard {
  justify-content: space-between;
}

.home-sc-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 24px;
}

.home-metric {
  margin-bottom: 22px;
}
.home-metric:last-child { margin-bottom: 0; }

.home-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.home-m-label {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.home-m-note {
  font-size: 18px;
  color: rgba(30, 42, 53, 0.5);
  font-weight: 500;
}

/* Identity findings line in scorecard */
.home-id-sub {
  font-size: 13px;
  color: rgba(30, 42, 53, 0.55);
  margin: -4px 0 8px;
}
.home-id-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  transition: filter 0.15s;
}
.home-id-link:hover {
  filter: brightness(0.9);
}
.home-id-link svg {
  flex-shrink: 0;
}

/* Identity add-line in clean/under-threshold dispatcher */
.cs-id-add {
  color: var(--text);
  font-weight: 500;
}
.cs-id-add a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
}
.cs-id-add a:hover {
  filter: brightness(0.9);
}

/* Slot meter */
.home-meter {
  height: 22px;
  border-radius: 22px;
  background: var(--bone-field);
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.home-meter-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.home-meter-empty {
  height: 100%;
  background: rgba(30, 42, 53, 0.06);
  border-radius: 999px;
  flex: 1;
}

/* Severity bar */
.home-sev-bar {
  display: flex;
  height: 22px;
  border-radius: 22px;
  overflow: hidden;
  gap: 2px;
}

.home-sev { height: 100%; }
.home-sev.strong { background: var(--coral); }
.home-sev.likely { background: rgba(242, 100, 25, 0.5); }
.home-sev.weak { background: rgba(30, 42, 53, 0.25); }

.home-sev-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 16px;
  color: rgba(30, 42, 53, 0.6);
  font-weight: 500;
}

.home-sev-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.home-dot.strong { background: var(--coral); }
.home-dot.likely { background: rgba(242, 100, 25, 0.5); }
.home-dot.weak { background: rgba(30, 42, 53, 0.25); }

/* Bisected progress pill */
.home-progress-bar {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.home-progress-half {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.home-progress-half b {
  font-size: 34px;
  font-weight: 800;
}

.home-progress-left,
.home-progress-right {
  background: rgba(30, 42, 53, 0.05);
}

.home-progress-left {
  border-radius: 8px 0 0 8px;
}

.home-progress-right {
  border-radius: 0 8px 8px 0;
}

/* coral only when a bureau has actually replied */
.home-progress-right.has-replies {
  background: var(--coral);
  color: #fff;
}

/* DA5: reminder for unsent draft letters. Muted, actionable, coral on
   hover -- matches the .home-ladder link tone. Only rendered when drafts
   exist. */
.home-progress-draft-note {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(30, 42, 53, 0.62);
  cursor: pointer;
  width: fit-content;
  transition: color 0.12s;
}
.home-progress-draft-note:hover { color: var(--coral); }

/* === EMPTY STATE: three-card grid === */
.he-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Shared card base */
.he-card {
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s, box-shadow 0.15s;
}
.he-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(28, 20, 14, 0.12);
}

/* Cards 1 + 2: white learn cards */
.he-card-learn {
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* Card 3: coral CTA card */
.he-card-upload {
  background: var(--coral);
  box-shadow: 0 16px 38px -8px rgba(242, 100, 25, 0.34);
}

/* Eyebrow */
.he-card-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 11px;
}
.he-card-eyebrow-light {
  color: rgba(255, 255, 255, 0.72);
}

/* Title */
.he-card-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  line-height: 1.12;
}
.he-card-title-light {
  color: #fff;
}

/* --- Shared poster panel (bone-field bg behind card interiors) --- */
.he-poster-panel {
  flex: 1;
  background: #F3EFE7;
  border-radius: 20px;
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 228px;
}

/* --- Card 1: phone poster + play row --- */
.he-poster-phone {
  width: 202px;
  background: var(--bone-0);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 40px -16px rgba(28, 20, 14, 0.4);
  padding: 22px 16px 0;
  margin-top: 26px;
}

.he-poster-greeks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.45;
  margin-bottom: 13px;
}
.he-greek {
  height: 7px;
  border-radius: 4px;
  background: rgba(30, 42, 53, 0.18);
}

.he-poster-vcard {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(28, 20, 14, 0.12);
  padding: 14px 13px;
}

.he-poster-badge {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.he-poster-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30, 42, 53, 0.5);
  margin-top: 13px;
}

.he-poster-problem {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--coral);
  margin-top: 4px;
}

.he-poster-btn {
  margin-top: 13px;
  background: var(--ink-0);
  color: #fff;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 9px;
  border-radius: 999px;
}

/* --- Play row (shared by Card 1 + Card 2) --- */
.he-play-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.he-play-circle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  stroke: var(--coral);
}

.he-play-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.he-play-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 42, 53, 0.14);
  overflow: hidden;
}
.he-play-fill {
  width: 0%;
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
}

/* --- Card 2: ACR greeked browser mock --- */
/* The poster-panel container is reused; align-items:center here */
.he-card-learn:nth-child(2) .he-poster-panel {
  align-items: center;
}

.he-acr-browser {
  width: 262px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 16px 38px -12px rgba(28, 20, 14, 0.3);
  overflow: hidden;
}

/* URL bar */
.he-acr-urlbar {
  padding: 11px 13px 9px;
}
.he-acr-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.he-acr-blue { color: #1f5c8f; }
.he-acr-red { color: #b02a1d; }
.he-acr-urlline {
  height: 3px;
  width: 66%;
  border-radius: 2px;
  background: #dad7cf;
  margin-top: 5px;
}

/* Nav bar */
.he-acr-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px 10px;
}
.he-acr-navpill {
  width: 28px;
  height: 12px;
  border-radius: 2px;
  background: #5b6670;
}
.he-acr-navdot {
  width: 34px;
  height: 5px;
  border-radius: 2px;
  background: #d4d1c9;
}

/* Warning block */
.he-acr-warn {
  margin: 0 13px;
  background: #e6e4df;
  border-radius: 4px;
  padding: 9px 11px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.he-acr-tri {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid #EAB308;
  flex: none;
  margin-top: 1px;
}
.he-acr-warnlines {
  flex: 1;
}
.he-acr-warnline {
  height: 4px;
  border-radius: 2px;
  background: #9fb1c4;
  margin-bottom: 4px;
}
.he-acr-warnbtn {
  height: 11px;
  width: 72%;
  border-radius: 999px;
  background: #6a9a7e;
  margin: 4px auto 0;
}

/* Blue hero block */
.he-acr-hero {
  display: flex;
  margin: 9px 13px 13px;
  border-radius: 4px;
  overflow: hidden;
  height: 68px;
}
.he-acr-heroleft {
  flex: 1.25;
  background: #1f6cb0;
  padding: 10px 11px;
}
.he-acr-heroline {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}
.he-acr-herobtn {
  height: 12px;
  width: 74%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}
.he-acr-heroimg {
  width: 42%;
  background: linear-gradient(180deg, #bfe0f5, #9fd0ef);
}

/* --- Card 3: upload box --- */
.he-upload-sub {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 10px;
}

.he-upload-box {
  flex: 1;
  margin-top: 20px;
  border: 2.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  padding: 28px 24px;
  cursor: pointer;
  min-height: 150px;
  transition: background 0.15s, border-color 0.15s;
}
.he-upload-box:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
}

.he-file-icon {
  width: 46px;
  height: 46px;
}

.he-upload-cue {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.he-upload-source {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* === LOCKED STATE (unpaid-with-report) === */
.home-locked .home-scorecard {
  position: relative;
}

.home-locked .home-sc-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 241, 0.7);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.home-locked .home-sc-locked-overlay svg {
  width: 48px;
  height: 48px;
  stroke: rgba(30, 42, 53, 0.25);
  fill: none;
  stroke-width: 1.5;
}

.home-sc-locked-note {
  font-size: 13px;
  color: rgba(30, 42, 53, 0.5);
  margin-top: 8px;
}

/* (Old .home-empty-hero removed -- replaced by .he-cards three-card grid) */

/* === TOUR CARD on Home (relocated from #screen-landing) === */
/* The #tour-card node is physically moved into #home-tour-mount by JS.
   Base .tour-card CSS (grid shell, border, shadow) lives in landing.css
   with display:none. These rules activate it when mounted on Home and
   scale the phone ~46% deeper for readability (tight 16px top/bottom
   padding, --scale 1.18, wider card via negative margins). */
#home-tour-mount .tour-card {
  display: grid;
  grid-template-columns: 500px 1fr;
  max-width: 1100px;
  border-color: transparent;
}
#home-tour-mount .tc-phone {
  --scale: 1.18;
  padding: 32px 0;
}

/* Break out of 780px .col to accommodate the larger phone */
.home-tab-panel > #home-tour-mount {
  margin-left: -180px;
  margin-right: -180px;
}

/* Deck subhead (landing resting has no deck; demo tab adds one) */
.tour-rest-deck {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(30, 42, 53, 0.55);
  line-height: 1.5;
}

/* === EMPTY-STATE CONTAINED PLAYER ===
   Card 1 launches startTour() which mounts the tour card into
   #home-tour-mount and adds .is-playing. On desktop the player
   must stay CONTAINED-INLINE (matching the demo tab's presentation:
   inside the framed content area, L-frame visible). No position:fixed
   on desktop. The existing demo-tab grid rules (#home-tour-mount
   .tour-card: grid 500px 1fr, max-width 1100px) apply here too.

   Three helper rules, all scoped to .home-empty:
   1. Wire breakout margins so the contained player gets demo-tab width.
   2. Hide the three cards while playing (pure CSS :has(), no JS).
   3. Hide the resting (not-playing) tour card so no poster shows
      under the cards after close. */

/* 1. Breakout margins for contained player (matches demo-tab selector) */
.home-empty .col > #home-tour-mount {
  margin-left: -180px;
  margin-right: -180px;
}

/* 2. Hide cards while tour plays; they return automatically when
   walkthrough.js removes .is-playing on close. */
.home-empty:has(.tour-card.is-playing) .he-cards { display: none; }

/* 3. Hide resting card — only visible when .is-playing */
.home-empty #home-tour-mount .tour-card:not(.is-playing) { display: none; }

/* === MOBILE === */
@media (max-width: 768px) {
  .home { padding: 20px 0 32px; }

  .home .col {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 16px;
  }

  /* Three-card empty state: single column on mobile */
  .he-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .he-card {
    padding: 24px 22px 22px;
  }

  .he-card-eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .he-card-title {
    font-size: 22px;
  }

  .he-poster-panel {
    margin-top: 18px;
    min-height: 172px;
    border-radius: 18px;
  }

  .he-poster-phone {
    width: 188px;
    border-radius: 20px 20px 0 0;
    padding: 18px 14px 0;
    margin-top: 20px;
  }

  .he-poster-greeks { gap: 7px; margin-bottom: 11px; }
  .he-greek { height: 6px; }
  .he-poster-vcard { border-radius: 12px; padding: 12px; }
  .he-poster-badge { font-size: 8px; padding: 3px 8px; }
  .he-poster-label { margin-top: 11px; font-size: 8px; }
  .he-poster-problem { font-size: 12.5px; margin-top: 3px; }
  .he-poster-btn { margin-top: 11px; font-size: 10px; padding: 8px; }

  .he-play-row { margin-top: 18px; gap: 11px; }
  .he-play-circle { width: 30px; height: 30px; flex: 0 0 30px; }
  .he-play-label { font-size: 14px; }

  .he-acr-browser {
    width: 228px;
    border-radius: 8px;
  }
  .he-acr-urlbar { padding: 10px 12px 8px; }
  .he-acr-brand { font-size: 10px; }
  .he-acr-urlline { margin-top: 4px; }
  .he-acr-nav { gap: 4px; padding: 0 12px 9px; }
  .he-acr-navpill { width: 24px; height: 11px; }
  .he-acr-navdot { height: 4px; }
  .he-acr-warn { margin: 0 12px; padding: 8px 10px; gap: 8px; }
  .he-acr-tri { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 9px; }
  .he-acr-warnline { margin-bottom: 4px; }
  .he-acr-warnbtn { height: 10px; margin-top: 3px; }
  .he-acr-hero { margin: 8px 12px 12px; height: 60px; }
  .he-acr-heroleft { padding: 9px 10px; }
  .he-acr-heroline { height: 4px; margin-bottom: 4px; }
  .he-acr-herobtn { height: 11px; margin-top: 5px; }

  .he-upload-sub { font-size: 14px; margin-top: 8px; }
  .he-upload-box { margin-top: 16px; border-radius: 16px; padding: 24px 18px; }
  .he-file-icon { width: 38px; height: 38px; }
  .he-upload-cue { font-size: 16px; }
  .he-upload-source { font-size: 12.5px; }

  .home-welcome h1 {
    font-size: 30px;
  }

  .home-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .home-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Short labels on mobile; full labels on desktop */
  .tab-full { display: none; }
  .tab-short { display: inline; }

  /* Remove equal-depth floor on mobile; cards size to content */
  .home-tab-panel > .home-card,
  .home-tab-panel > .home-tour-mount {
    min-height: auto;
  }

  .home-card {
    padding: 22px 20px;
  }

  /* Dispatcher mobile step-downs */
  .home-eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .home-dispatch-line {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .home-dispatch-note {
    margin-top: 10px;
    font-size: 13px;
  }

  .btn-coral {
    font-size: 15px;
    padding: 8px 24px;
    gap: 8px;
  }

  .btn-coral svg {
    width: 15px;
    height: 15px;
  }

  .home-ladder {
    gap: 6px;
    margin-top: 14px;
  }

  .home-ladder a {
    font-size: 14px;
    gap: 6px;
  }

  .home-ladder a svg {
    width: 13px;
    height: 13px;
  }

  .home-attorney {
    margin-top: 14px;
  }

  .home-attorney h3 {
    font-size: 17px;
    margin-bottom: 5px;
  }

  .home-attorney p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .btn-attorney {
    font-size: 13px;
    width: 140px;
    padding: 10px 8px;
    gap: 7px;
  }

  .btn-attorney svg {
    width: 13px;
    height: 13px;
  }

  /* Benefits drawer mobile */
  .bd-trigger {
    font-size: 15px;
    padding: 10px 24px;
  }

  .home-card.open .bd-drawer {
    margin-top: 16px;
  }

  .bd-drawer-head {
    font-size: 16px;
  }

  .bd-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bd-value {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .bd-value-icon {
    flex: 0 0 38px;
  }

  .bd-value h4 {
    font-size: 15px;
  }

  .bd-value p {
    font-size: 13px;
    margin-top: 3px;
  }

  .bd-payrow {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
  }

  .bd-pay {
    width: 100%;
    justify-content: center;
  }

  .bd-paynote {
    text-align: center;
    font-size: 12px;
  }

  /* Locked scorecard: give the centered lock icon room between title and note */
  .home-locked .home-scorecard .home-sc-title {
    margin-bottom: 80px;
  }
  .home-locked .home-scorecard .home-sc-locked-note {
    margin-top: 60px;
  }

  /* Clean / under-threshold card mobile */
  .cs-sub {
    font-size: 14px;
    margin-top: 12px;
  }

  .cs-coverage-label {
    margin-top: 24px;
  }

  .cs-coverage {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .cs-tile {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .cs-tile-bureau {
    font-size: 15px;
  }

  .cs-tile-status {
    font-size: 12.5px;
  }

  .cs-actions {
    justify-content: stretch;
    padding-top: 24px;
  }

  .cs-add {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 10px 24px;
  }

  /* Scorecard mobile step-downs */
  .home-sc-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .home-metric {
    margin-bottom: 16px;
  }

  .home-m-label {
    font-size: 14px;
  }

  .home-m-note {
    font-size: 13px;
  }

  .home-meter {
    height: 14px;
    border-radius: 14px;
  }

  .home-sev-bar {
    height: 14px;
    border-radius: 14px;
  }

  .home-sev-legend {
    font-size: 12px;
    gap: 12px;
  }

  .home-dot {
    width: 8px;
    height: 8px;
  }

  .home-progress-half {
    padding: 11px 9px;
    font-size: 12px;
  }

  .home-progress-half b {
    font-size: 18px;
  }

  .tour-rest-deck {
    font-size: 13px;
    margin: 8px 0 0;
  }
}

/* === TOUR CARD mobile on Home ===
   Matches the landing's 860px breakpoint (landing.css .tour-card rules)
   rather than home.css's 768px breakpoint. */
@media (max-width: 860px) {
  /* Kill the desktop breakout margins on mobile */
  .home-tab-panel > #home-tour-mount,
  .home-empty .col > #home-tour-mount {
    margin-left: 0;
    margin-right: 0;
  }

  /* Reset desktop column/max-width overrides; let landing.css mobile
     rules (single-column grid, max-width 440px) take effect */
  #home-tour-mount .tour-card {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  /* Reset desktop phone padding; landing.css mobile sets its own */
  #home-tour-mount .tc-phone {
    padding: 22px 0 22px;
  }

  /* Full-screen player */
  #screen-home .tour-card.is-playing {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column;
    max-width: none; margin: 0;
    border: none; border-radius: 0;
    background: var(--bone-0); box-shadow: none;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
}
