/* Scoped to the optional Home questionnaire. */
.profile-intro-dialog, .profile-intro-banner,
.profile-intro-dialog *, .profile-intro-banner * { box-sizing: border-box; }
.profile-intro-banner, .profile-intro-dialog {
  --intro-bg: #122638;
  --intro-text: #f1f6fa;
  --intro-muted: #bbcbd7;
  --intro-line: #385166;
  --intro-field: #0c1c2b;
  --intro-accent: #88e4cc;
  color: var(--intro-text);
}
[data-ainvestor-theme="day"] .profile-intro-banner,
[data-ainvestor-theme="day"] .profile-intro-dialog {
  --intro-bg: #ffffff;
  --intro-text: #173246;
  --intro-muted: #496374;
  --intro-line: #bdcfd9;
  --intro-field: #f3f8fb;
  --intro-accent: #09694f;
}
.profile-intro-banner[hidden], .profile-intro-dialog [hidden] { display: none !important; }
.profile-intro-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--intro-bg); border: 1px solid var(--intro-line);
  border-radius: 16px; padding: 20px 24px; margin: 24px 0; text-align: left;
}
.profile-intro-banner strong { font-size: 1.1rem; }
.profile-intro-banner p { color: var(--intro-muted); margin: 4px 0 0; font-size: .95rem; }
.profile-intro-dialog {
  width: min(600px, calc(100% - 28px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 34px; border: 1px solid var(--intro-line);
  border-radius: 22px; background: var(--intro-bg); text-align: left;
  box-shadow: 0 24px 80px #0007; overflow-y: auto; overscroll-behavior: contain;
  font: 400 16px/1.5 system-ui, sans-serif;
}
.profile-intro-dialog::backdrop { background: #071322aa; backdrop-filter: blur(3px); }
.profile-intro-dialog h2 { color: var(--intro-text); font-size: 1.7rem; margin: 10px 24px 12px 0; line-height: 1.2; }
.profile-intro-eyebrow { color: var(--intro-accent); font-size: .73rem; letter-spacing: .12em; font-weight: 700; }
.profile-intro-lead { color: var(--intro-muted); margin: 0 0 22px; }
.profile-intro-benefits { border-block: 1px solid var(--intro-line); padding: 10px 0; margin: 20px 0; }
.profile-intro-benefits p { display: flex; gap: 14px; align-items: center; margin: 13px 0; }
.profile-intro-benefits span, .profile-intro-question > span { color: var(--intro-accent); font-weight: 700; font-size: .8rem; margin-right: 8px; }
.profile-intro-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.profile-intro-primary, .profile-intro-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; border-radius: 10px; font-size: .95rem;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.4;
}
.profile-intro-primary { background: #a5efd7; color: #092e27; border: 1px solid #a5efd7; }
.profile-intro-primary:hover { background: #c2f6e6; color: #092e27; }
.profile-intro-secondary { background: transparent; color: var(--intro-text); border: 1px solid var(--intro-line); }
.profile-intro-secondary:hover { background: var(--intro-field); color: var(--intro-text); }
.profile-intro-dialog button:disabled { opacity: .6; cursor: wait; }
.profile-intro-close {
  position: absolute; right: 12px; top: 10px; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: var(--intro-muted);
  font-size: 1.7rem; cursor: pointer;
}
.profile-intro-question { display: block; font-weight: 600; margin: 16px 0 6px; }
.profile-intro-dialog select {
  display: block; width: 100%; min-height: 46px; border: 1px solid var(--intro-line);
  border-radius: 9px; padding: 10px 12px; background: var(--intro-field);
  color: var(--intro-text); font: inherit;
}
.profile-intro-consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 10px; font-size: .88rem; }
.profile-intro-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: #238b6c; }
.profile-intro-note { color: var(--intro-muted); font-size: .8rem; margin: 16px 0 0; }
.profile-intro-error { color: #ffbdbd; margin-top: 16px; }
[data-ainvestor-theme="day"] .profile-intro-error { color: #a32020; }
.profile-intro-summary { background: var(--intro-field); border-radius: 12px; padding: 16px; }
.profile-intro-dialog :focus-visible, .profile-intro-banner :focus-visible { outline: 3px solid var(--intro-accent); outline-offset: 3px; }
html.profile-intro-open { overflow: hidden; }
@media (max-width: 540px) {
  .profile-intro-dialog { padding: 28px 20px; }
  .profile-intro-dialog h2 { font-size: 1.45rem; }
  .profile-intro-banner { align-items: stretch; flex-direction: column; padding: 18px; }
  .profile-intro-actions > * { flex: 1 1 auto; }
}
