/* Stackfire.io commercial demo: the welcome page, the demo strip of the shell
   and the AI integrations card. The portal pages keep their own styles. */

/* ── Welcome ─────────────────────────────────────────────────────────────── */
.sfd-welcome { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; }
.sfd-welcome__grid { width: 100%; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.sfd-pitch__logo { display: inline-block; margin-bottom: 28px; }
.sfd-pitch__logo img { height: 34px; width: auto; }
.sfd-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--al-muted); margin: 0 0 12px; }
.sfd-title { color: var(--al-fg); font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.sfd-lead { font-size: 17px; line-height: 1.55; color: var(--al-muted); margin: 0 0 24px; max-width: 54ch; }
.sfd-benefits { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.sfd-benefits li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; }
.sfd-benefits i { font-size: 22px; line-height: 1.2; }
.sfd-contact { font-size: 14px; color: var(--al-muted); margin: 0; }
.sfd-contact a, .sfd-check a, .sfd-help a { color: inherit; font-weight: 600; text-decoration: underline; }
.sfd-card.al-auth-card { max-width: none; }
.sfd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--al-line); border-radius: 12px; margin-bottom: 20px; }
.sfd-tab { border: 0; background: transparent; color: var(--al-muted); font-weight: 600; font-size: 14px; padding: 9px 8px; border-radius: 9px; cursor: pointer; }
.sfd-tab.is-active { background: var(--al-ink); color: var(--al-on-ink); }
.sfd-help { font-size: 12.5px; line-height: 1.45; color: var(--al-muted); margin: -8px 0 16px; }
.sfd-help--center { text-align: center; margin: 12px 0 0; }
.sfd-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; margin-bottom: 12px; cursor: pointer; }
.sfd-check input { margin-top: 2px; width: 16px; height: 16px; }
.sfd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sfd-linkbtn { border: 0; background: none; padding: 0; font-weight: 600; font-size: 14px; color: var(--al-fg); cursor: pointer; }
.sfd-linkbtn:hover { text-decoration: underline; }
.sfd-notice { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.sfd-test-note { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.sfd-foot { text-align: center; font-size: 13px; color: var(--al-muted); margin: 32px 0 0; }
@media (max-width: 860px) {
  .sfd-welcome { justify-content: flex-start; }
  .sfd-welcome__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Shell ───────────────────────────────────────────────────────────────── */
html, body.sfd-shell { height: 100%; }
body.sfd-shell { margin: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bs-body-bg); }
.sfd-strip { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 14px; background: #101828; color: #f2f4f7; font-size: 13.5px; }
.sfd-strip__msg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sfd-strip__msg i { font-size: 17px; color: #fdb022; flex: none; }
.sfd-strip__long, .sfd-strip__short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfd-strip__short { display: none; }
.sfd-strip__controls { display: flex; align-items: center; gap: 8px; flex: none; }
.sfd-pick, .sfd-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: inherit; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; }
.sfd-pick:hover, .sfd-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sfd-pick__label { color: #98a2b3; }
.sfd-btn--cta { background: #fff; border-color: #fff; color: #101828; font-weight: 600; }
.sfd-btn--cta:hover { background: #e4e7ec; }
.sfd-btn--icon { padding: 0 9px; }
.sfd-cta__short { display: none; }
.sfd-menu { min-width: 300px; }
.sfd-menu .dropdown-item { display: grid; gap: 2px; white-space: normal; padding-top: 8px; padding-bottom: 8px; }
.sfd-menu__title { font-weight: 600; }
.sfd-menu__sub, .sfd-menu__note { font-size: 12px; opacity: .75; }
.sfd-stage { flex: 1 1 auto; min-height: 0; }
.sfd-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bs-body-bg); }
.sfd-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1080; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 10px; background: #101828; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .3); }
.sfd-optional { font-weight: 400; opacity: .65; font-size: 12px; }
.sfd-modal-lead { font-size: 14px; }
@media (max-width: 1180px) {
  .sfd-strip__long { display: none; }
  .sfd-strip__short { display: inline; }
}
@media (max-width: 860px) {
  .sfd-strip { flex-wrap: wrap; row-gap: 6px; padding: 6px 10px; }
  .sfd-strip__controls { width: 100%; gap: 6px; }
  .sfd-strip__controls > .dropdown { flex: 1 1 0; min-width: 0; }
  .sfd-pick { width: 100%; min-width: 0; padding: 0 8px; }
  .sfd-pick strong { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .sfd-pick__label, .sfd-btn--ghost span, .sfd-cta__long { display: none; }
  .sfd-cta__short { display: inline; }
  .sfd-btn { padding: 0 9px; flex: none; }
}

/* ── Inside the frame: the dashboard additions ───────────────────────────── */
.sf-uso-note { font-size: 12px; margin: 10px 0 0; }
.sfd-ai__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sfd-ai__lead { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.sfd-ai__how { font-size: 13px; }
.sfd-ai__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sfd-ai__example { border: 1px dashed var(--bs-border-color); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.sfd-ai__tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #78350f; }
.sfd-ai__bubble { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.sfd-ai__bubble p { margin: 0 0 6px; }
.sfd-ai__bubble--user { background: var(--bs-tertiary-bg); }
.sfd-ai__who { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin-bottom: 4px; }
.sfd-ai__foot { font-size: 12px; margin: 0; }
@media (max-width: 900px) { .sfd-ai__body { grid-template-columns: 1fr; } }
