
:root {
  --navy: #0d1b6b;
  --navy-deep: #08134b;
  --blue: #2f63ff;
  --blue-soft: #e8efff;
  --indigo: #5b6cff;
  --text: #172039;
  --muted: #5a6585;
  --bg: #eef2fb;
  --card: rgba(255,255,255,0.97);
  --line: rgba(13, 27, 107, 0.09);
  --success: #19b36b;
  --warning: #ffb02e;
  --shadow: 0 18px 50px rgba(13, 27, 107, 0.14);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #dfe8ff 0%, #eef2fb 35%, #eef2fb 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body { min-height: 100vh; }
.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.phone-frame {
  width: 100%;
  max-width: 540px;
  min-height: 88vh;
  background: linear-gradient(180deg, #f7f9ff 0%, #edf2ff 100%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.app-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 52%, #2a56dd 100%);
  color: white;
  padding: 22px 18px 18px;
}
.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.logo-badge {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 18px 30px rgba(8, 19, 75, 0.18);
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.title-block { min-width: 0; }
.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .86;
}
h1 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}
.ghost-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.ghost-btn:hover { background: rgba(255,255,255,0.14); }
.subhead-card {
  margin-top: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
}
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.progress-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #91f0c1 0%, #24d087 100%);
  transition: width .35s ease;
}
.subhead-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: .92;
}
.chat-window {
  flex: 1;
  overflow: auto;
  padding: 18px 16px 8px;
  scroll-behavior: smooth;
}
.message-row { display: flex; margin-bottom: 12px; }
.message-row.bot { justify-content: flex-start; }
.message-row.user { justify-content: flex-end; }
.bubble {
  max-width: 88%;
  border-radius: 22px;
  padding: 14px 15px;
  line-height: 1.58;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(13,27,107,.07);
}
.bot .bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}
.user .bubble {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  color: white;
  border-bottom-right-radius: 8px;
}
.bubble h3, .bubble h4, .bubble p { margin: 0 0 10px; }
.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 0 0 10px 18px; padding: 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #edf2ff;
  border: 1px solid rgba(47,99,255,.12);
  padding: 7px 10px;
  border-radius: 999px;
}
.callout {
  margin-top: 10px;
  border-radius: 16px;
  padding: 12px 12px;
  background: #f5f8ff;
  border: 1px solid rgba(47,99,255,.12);
}
.callout.warning { background: #fff8ea; border-color: rgba(255,176,46,.3); }
.callout.success { background: #edfdf5; border-color: rgba(25,179,107,.25); }
.callout-title { font-weight: 800; margin-bottom: 6px; font-size: 13px; }
.quick-actions {
  padding: 10px 16px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(180deg, rgba(238,242,251,0) 0%, rgba(238,242,251,.95) 24%, rgba(238,242,251,1) 100%);
}
.choice-btn, .link-btn {
  appearance: none;
  border: none;
  border-radius: 18px;
  padding: 13px 14px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 22px rgba(13,27,107,.07);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.choice-btn:hover, .link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13,27,107,.1);
}
.choice-btn {
  background: white;
  color: var(--navy);
  border: 1px solid rgba(13,27,107,.08);
  font-weight: 700;
  text-align: left;
  flex: 1 1 100%;
}
.choice-btn.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  color: white;
}
.choice-btn.soft { background: var(--blue-soft); color: var(--navy); }
.choice-btn.small { flex: 1 1 calc(50% - 10px); }
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  color: white;
  font-weight: 800;
  margin-top: 10px;
}
.link-btn.secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(13,27,107,.08);
}
.chat-footer { padding: 10px 16px 18px; background: #eef2fb; }
.footer-note {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.8);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(13,27,107,.06);
}
.typing { display: inline-flex; gap: 5px; align-items: center; }
.typing span {
  display:inline-block;
  width: 8px;
  height: 8px;
  background:#9aa7d4;
  border-radius:999px;
  animation: bounce 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(.75); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}
.complete-card {
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edfff5 0%, #f3fff8 100%);
  border: 1px solid rgba(25,179,107,.2);
}
.complete-card h4 { margin: 0 0 6px; color: #0c6a3f; }
.complete-card p { margin: 0; }
@media (max-width: 520px) {
  .app-shell { padding: 0; }
  .phone-frame { min-height: 100vh; max-width: 100vw; border-radius: 0; }
  .bubble { max-width: 93%; }
  .header-top { align-items: flex-start; }
  .brand-wrap { align-items: flex-start; }
  .logo-badge { padding: 8px 10px; }
  .brand-logo { height: 44px; }
  .ghost-btn { padding: 9px 12px; font-size: 12px; }
}
