.welcome-page .welcome-main {
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.welcome-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 0;
}
.welcome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.welcome-dot.is-active {
  background: var(--ev-burgundy, #8b1a2f);
}
.welcome-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin: 1.5rem 0 0.75rem;
}
.welcome-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
.welcome-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--ev-gray);
  margin: 0 0 0.35rem;
}
.welcome-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ev-gray);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.welcome-cta {
  display: block;
  margin: 1.25rem auto 0;
  min-width: min(280px, 100%);
}
.welcome-skip {
  display: block;
  margin: 1.5rem auto 0;
  background: none;
  border: none;
  color: var(--ev-gray);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}
.welcome-form .field {
  margin-bottom: 0.85rem;
}
.welcome-loading {
  text-align: center;
  color: var(--ev-gray);
  font-style: italic;
  min-height: 1.5rem;
}
.welcome-result-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ev-border-subtle);
  border-radius: 8px;
  background: #fff;
}
.welcome-result-card pre {
  white-space: pre-wrap;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.welcome-result-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--ev-gray);
  font-style: italic;
}
.welcome-portal-preview {
  border: 1px solid var(--ev-border-subtle);
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
  margin-bottom: 1rem;
}
.portal-preview-banner {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.portal-preview-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}
.portal-preview-timeline span {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #eee;
}
.portal-preview-timeline .is-active {
  background: var(--ev-burgundy, #8b1a2f);
  color: #fff;
}
.portal-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.portal-preview-metrics div {
  border: 1px solid var(--ev-border-subtle);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  background: #fff;
}
.portal-preview-metrics strong {
  display: block;
  font-size: 1rem;
}
.metric-strong strong {
  color: #2e7d32;
}
.portal-preview-advisors {
  font-size: 0.82rem;
  color: var(--ev-gray);
}
.portal-preview-advisors p {
  margin: 0.2rem 0;
}
.welcome-portal-url {
  text-align: center;
  font-size: 0.88rem;
}
.welcome-portal-url code {
  color: var(--ev-burgundy, #8b1a2f);
  font-family: ui-monospace, monospace;
  word-break: break-all;
}
.welcome-digest-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.digest-card {
  border: 1px solid var(--ev-border-subtle);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}
.digest-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.badge-high {
  background: #eaf5ea;
  color: #2e7d32;
}
.badge-medium {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #999;
}
.digest-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ev-gray);
}
.welcome-footnote {
  font-size: 0.75rem;
  color: var(--ev-gray);
  text-align: center;
  margin: 1rem 0;
}

@media (max-width: 375px) {
  .portal-preview-metrics {
    grid-template-columns: 1fr;
  }
}
