/* Public account entry, using the marketing site's dashboard preview and palette. */
.home-page {
  --color-bg: #fff;
  --color-text: #171717;
  --color-muted: #626262;
  --color-border: #e5e5e5;
  min-width: 0;
}

.home-page .container { width: 100%; max-width: 1240px; min-width: 0; padding-inline: 32px; }
.home-site-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); text-decoration: none; font-size: 0.875rem; }
.home-site-link:hover { color: #171717; text-decoration: underline; }
.home-page a:focus-visible { outline: 3px solid #1565c0; outline-offset: 5px; }

.home-page > .main {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  max-width: none;
  padding: 64px 32px;
  background: radial-gradient(ellipse at 96% 12%, #dff1ff 0, transparent 48%), radial-gradient(ellipse at 0 90%, #e9f0ff 0, transparent 45%), #fff;
}
.home-page > .main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#17324d06 1px, transparent 1px), linear-gradient(90deg, #17324d06 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.home-intro { width: 100%; max-width: 1176px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
.home-copy h1 { max-width: 8em; margin: 0 0 20px; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
.home-description { max-width: 31ch; margin: 0 0 28px; color: var(--color-muted); font-size: 1.0625rem; line-height: 1.7; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Buttons come from main.css, which matches the showcase site. */
.home-access-note { max-width: 42ch; margin: 15px 0 0; color: var(--color-muted); font-size: 0.75rem; line-height: 1.6; }

.home-preview { min-width: 0; margin: 0; }
.home-window { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -12px #1e344c33; }
.home-window-bar { display: flex; align-items: center; gap: 22px; padding: 14px 16px; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.home-window-controls { display: flex; gap: 8px; flex-shrink: 0; }
.home-window-controls span { width: 12px; height: 12px; border-radius: 50%; background: #ff686d; }
.home-window-controls span:nth-child(2) { background: #fbbf24; }
.home-window-controls span:nth-child(3) { background: #34d399; }
.home-window-address { overflow-wrap: anywhere; color: #737373; font: 0.6875rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.home-preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid #e5e5e5; }
.home-preview-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px; }
.home-preview-stats > div + div { border-left: 1px solid #e5e5e5; }
.home-preview-stats dt { margin-top: 4px; color: var(--color-muted); font-size: 0.6875rem; }
.home-preview-stats dd { margin: 0; font-size: 1.625rem; font-weight: 700; line-height: 1.3; }
.home-preview-stats .home-alert-count { color: #dc2626; }
.home-preview-alerts { padding: 20px; }
.home-preview-alerts h2 { font-size: 0.875rem; font-weight: 600; margin: 0 0 14px; }
.home-alert-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.home-alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 12px; border: 1px solid #f0f0f0; border-radius: 8px; background: #fafafa; }
.home-alert-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #a3a3a3; }
.home-alert-company { min-width: 0; flex: 1; }
.home-alert-company p { margin: 0; font-size: 0.8125rem; font-weight: 500; overflow-wrap: anywhere; }
.home-alert-company .home-alert-detail { margin-top: 3px; font: 0.625rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--color-muted); }
.home-alert-tag { flex-shrink: 0; border-radius: 4px; padding: 3px 7px; font-size: 0.625rem; font-weight: 600; background: #f0f0f0; color: #525252; }
.home-alert--rj { border-color: #ffe2e2; background: #fff8f8; }
.home-alert--rj .home-alert-dot { background: #ef4444; }
.home-alert--rj .home-alert-tag { background: #ffe8e8; color: #c62828; }
.home-alert--sale { border-color: #dff1ff; background: #f5fbff; }
.home-alert--sale .home-alert-dot { background: #0ea5e9; }
.home-alert--sale .home-alert-tag { background: #e0f2fe; color: #0369a1; }
.home-preview figcaption { margin-top: 14px; color: var(--color-muted); font-size: 0.6875rem; text-align: center; }
.home-page .footer { background: #fff; padding-block: 22px; font-size: 0.75rem; }

@media (max-width: 1000px) {
  .home-intro { gap: 32px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .home-preview-stats > div { padding: 16px 12px; }
  .home-preview-alerts { padding: 16px; }
}
@media (max-width: 760px) {
  .home-page .container { padding-inline: 24px; }
  .home-page > .main { padding: 40px 24px; }
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home-copy h1 { font-size: clamp(2.5rem, 8vw, 3rem); }
  .home-description { max-width: 36ch; margin-bottom: 24px; }
  .home-preview { width: 100%; max-width: 600px; justify-self: center; }
  .home-preview-stats dd { font-size: 1.375rem; }
  .home-preview-stats dt { font-size: 0.6875rem; line-height: 1.3; }
  .home-preview-alerts { padding: 16px 12px; }
  .home-alert { gap: 9px; padding-inline: 10px; }
  .home-alert-company p { font-size: 0.8125rem; }
  .home-alert-company .home-alert-detail { font-size: 0.6875rem; }
  .home-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .home-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .home-page .container { padding-inline: 18px; }
  .home-page > .main { padding-inline: 18px; }
  .home-window-bar { gap: 12px; padding-inline: 12px; }
  .home-window-address { font-size: 0.5625rem; }
  .home-page .btn { padding-inline: 17px; }
  .home-alert { gap: 7px; }
  .home-alert-tag { padding-inline: 5px; }
  .home-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .btn { transition: none; }
}
