/* ─────────────────────────────────────────────────────────────────────────────
   Compliance360 by LLM Advocates — Master Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2744;
  --navy-light:  #2c3e6b;
  --red:         #e63946;
  --red-dark:    #c0392b;
  --gold:        #f59f00;
  --white:       #ffffff;
  --off-white:   #f5f7ff;
  --border:      #dde3f0;
  --text:        #2d2d2d;
  --text-muted:  #6b7db3;
  --text-light:  #9aa5c0;
  --success:     #22c55e;
  --warning:     #f59f00;
  --danger:      #e63946;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 4px rgba(26,39,68,0.08);
  --shadow-md:   0 4px 16px rgba(26,39,68,0.12);
  --shadow-lg:   0 8px 32px rgba(26,39,68,0.16);

  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --navbar-h:    60px;
  --progress-h:  48px;
  --sidebar-w:   260px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Navbar (shared) ─────────────────────────────────────────────────────── */
.navbar, .chat-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  height: var(--navbar-h);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--white);
  flex-shrink: 0;
}
.brand-icon.small { width: 30px; height: 30px; font-size: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 17px; font-weight: 800;
  color: var(--white); letter-spacing: -0.3px;
}
.brand-360 { color: var(--red); }
.brand-by { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 400; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 13px;
  transition: background .2s, transform .15s;
}
.btn-nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── Landing Page ─────────────────────────────────────────────────────────── */
.landing-page { overflow-x: hidden; }

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, #1e3a5f 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(230,57,70,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(44,62,107,0.4) 0%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-accent { color: var(--red); }
.hero-subtitle {
  max-width: 620px; font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.7); margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

.btn-primary {
  background: var(--red); color: var(--white);
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 15px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(230,57,70,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,57,70,0.45); }
.btn-primary.btn-large { padding: 16px 40px; font-size: 16px; }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); padding: 14px 28px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl); padding: 20px 36px;
  backdrop-filter: blur(12px); flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Sections */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--navy); line-height: 1.2;
  letter-spacing: -0.5px; margin-bottom: 48px;
}

/* Features */
.features { padding: 100px 0; background: var(--white); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.feature-card.feature-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent; color: var(--white);
}
.feature-card.feature-primary h3 { color: var(--white); }
.feature-card.feature-primary p  { color: rgba(255,255,255,0.75); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Coverage */
.coverage { padding: 100px 0; background: var(--off-white); }
.coverage-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.coverage-col {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: background .2s;
}
.coverage-col:last-child { border-right: none; }
.coverage-col:hover { background: #f0f4ff; }
.coverage-col h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.coverage-col ul { list-style: none; }
.coverage-col li { font-size: 13px; color: var(--text-muted); padding: 3px 0; position: relative; padding-left: 14px; }
.coverage-col li::before { content: '›'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* About */
.about { padding: 100px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-family: var(--font-serif); font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 20px; letter-spacing: -0.5px; }
.about-text p  { color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-size: 15px; }
.disclaimer-box {
  background: #fff8e1; border: 1px solid #f0e0a0;
  border-radius: var(--radius-md); padding: 16px 20px;
  font-size: 13px; color: #7c5e00; line-height: 1.6; margin-top: 24px;
}
.about-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl); padding: 48px 40px; text-align: center; color: var(--white);
}
.about-cta-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.about-cta-card p  { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 15px; line-height: 1.6; }
.cta-features { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cta-features span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Footer */
.footer { background: var(--navy); padding: 32px 0; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.footer-note { font-size: 11px; color: rgba(255,255,255,0.35); max-width: 560px; line-height: 1.6; }

/* ── Chat Page ────────────────────────────────────────────────────────────── */
.chat-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* Chat Nav Actions */
.chat-nav-actions { display: flex; align-items: center; gap: 8px; }
.phase-indicator {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); padding: 5px 14px; margin-right: 4px;
}
.phase-label { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }
.phase-num { font-size: 14px; font-weight: 800; color: var(--white); }

.btn-icon {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); padding: 6px 14px;
  border-radius: var(--radius-md); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-icon:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.btn-icon.danger:hover { background: rgba(230,57,70,0.3); color: #ff8a94; }

/* Phase Progress Bar */
.phase-progress-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--progress-h);
  flex-shrink: 0;
  overflow-x: auto;
}
.phase-steps {
  display: flex; align-items: center; gap: 4px;
  padding: 0 20px; height: 100%;
  min-width: max-content;
}
.phase-step {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--off-white);
  transition: all .25s; cursor: default;
}
.phase-step.active {
  background: #e8eeff; border-color: var(--navy-light);
}
.phase-step.done {
  background: #e8f5e9; border-color: #a5d6a7;
}
.phase-step-num {
  width: 20px; height: 20px;
  background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0;
}
.phase-step.active .phase-step-num { background: var(--navy); color: var(--white); }
.phase-step.done .phase-step-num   { background: #22c55e; color: var(--white); }
.phase-step-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.phase-step.active .phase-step-label { color: var(--navy); }
.phase-step.done .phase-step-label   { color: #2e7d32; }
.phase-step-arrow { color: var(--border); font-size: 14px; flex-shrink: 0; }

/* Chat Layout */
.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
}
.sidebar-section {
  padding: 18px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-light); margin-bottom: 14px;
}

/* Progress Ring */
.progress-ring-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.progress-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring-bg  { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fill { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.progress-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-pct   { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1; }
.ring-label { font-size: 9px; color: var(--text-light); font-weight: 500; margin-top: 2px; }

/* Score Display */
.score-display {
  display: flex; align-items: baseline; gap: 4px;
}
.score-num { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1; }
.score-num.risk { color: var(--red); }
.score-label { font-size: 14px; color: var(--text-light); }
.score-band { font-size: 11px; font-weight: 600; margin-top: 4px; padding: 3px 10px; border-radius: var(--radius-full); display: inline-block; }
.score-band.strong   { background: #e8f5e9; color: #2e7d32; }
.score-band.adequate { background: #e8eeff; color: var(--navy); }
.score-band.at-risk  { background: #fff8e1; color: #7c5e00; }
.score-band.high-risk { background: #fed7aa; color: #9a3412; }
.score-band.critical-risk { background: #fee2e2; color: #991b1b; }

/* Gap Chips */
.gap-chips { display: flex; flex-direction: column; gap: 6px; }
.gap-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-radius: var(--radius-md); font-size: 12px; font-weight: 600;
}
.gap-chip span { font-size: 18px; font-weight: 800; margin-right: 4px; }
.gap-chip.critical { background: #fee2e2; color: #991b1b; }
.gap-chip.high     { background: #fed7aa; color: #9a3412; }
.gap-chip.medium   { background: #fef08a; color: #713f12; }
.gap-chip.low      { background: #bbf7d0; color: #14532d; }

/* Quick Buttons */
.quick-btns { display: flex; flex-direction: column; gap: 6px; }
.quick-btn {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  cursor: pointer; text-align: left; transition: all .15s;
}
.quick-btn:hover { background: #e8eeff; border-color: var(--navy-light); }

/* Sidebar Disclaimer */
.sidebar-disclaimer {
  margin-top: auto; padding: 14px 18px;
  background: #fff8e1; border-top: 1px solid #f0e0a0;
  font-size: 10.5px; color: #7c5e00; line-height: 1.5;
}

/* Chat Main */
.chat-main {
  flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0;
}

/* Messages Container */
.messages-container {
  flex: 1; overflow-y: auto;
  padding: 20px 20px 12px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Message Bubbles */
.msg-row {
  display: flex; gap: 10px; align-items: flex-start;
}
.msg-row.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.msg-avatar.ai   { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); }
.msg-avatar.user { background: var(--red); color: var(--white); font-size: 10px; }

.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 14px; line-height: 1.65;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text);
}
.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: none; color: var(--white);
  border-radius: 16px 16px 4px 16px;
}

/* Markdown inside bubbles */
.msg-bubble h1 { font-size: 17px; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 6px; margin: 14px 0 10px; }
.msg-bubble h2 { font-size: 14px; font-weight: 700; color: var(--navy); border-left: 3px solid var(--red); padding-left: 10px; margin: 12px 0 8px; }
.msg-bubble h3 { font-size: 13px; font-weight: 700; color: var(--navy-light); margin: 10px 0 6px; }
.msg-bubble p  { margin: 4px 0 8px; }
.msg-bubble ul, .msg-bubble ol { margin: 6px 0 10px 20px; }
.msg-bubble li { margin: 3px 0; }
.msg-bubble strong { font-weight: 700; }
.msg-bubble code  { background: #f0f4ff; padding: 1px 5px; border-radius: 3px; font-size: 12px; font-family: monospace; color: var(--navy-light); }
.msg-bubble hr    { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.msg-bubble blockquote { background: #fff8e1; border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 6px 6px 0; margin: 8px 0; font-size: 13px; color: #7c5e00; }

.msg-row.user .msg-bubble h1,
.msg-row.user .msg-bubble h2,
.msg-row.user .msg-bubble h3 { color: var(--white); border-color: rgba(255,255,255,0.4); }
.msg-row.user .msg-bubble p  { color: rgba(255,255,255,0.92); }
.msg-row.user .msg-bubble code { background: rgba(255,255,255,0.15); color: var(--white); }

/* Tables in messages */
.msg-bubble table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.msg-bubble th { background: var(--navy); color: var(--white); padding: 7px 10px; font-weight: 600; text-align: left; font-size: 11px; }
.msg-bubble td { padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.msg-bubble tr:nth-child(even) td { background: var(--off-white); }

/* Alert badges in messages */
.badge-critical { display: inline-flex; align-items: center; gap: 4px; background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.badge-high     { display: inline-flex; align-items: center; gap: 4px; background: #fed7aa; color: #9a3412; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.badge-medium   { display: inline-flex; align-items: center; gap: 4px; background: #fef08a; color: #713f12; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.badge-low      { display: inline-flex; align-items: center; gap: 4px; background: #bbf7d0; color: #14532d; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }

/* Warning / Penalty box */
.penalty-box { background: #fff8e1; border: 1px solid #f0e0a0; border-radius: var(--radius-md); padding: 10px 14px; margin: 8px 0; font-size: 12px; color: #7c5e00; }
.warning-inline { background: #fff8e1; color: #7c5e00; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 12px; font-style: italic; }

/* Typing indicator */
.typing-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  max-width: 180px;
}
.typing-dots { display: flex; gap: 4px; }
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted);
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
.typing-text { font-size: 12px; color: var(--text-muted); font-style: italic; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1.0); opacity: 1; }
}

/* Report Banner */
.report-banner {
  background: linear-gradient(90deg, #e8f5e9, #f0fdf4);
  border-top: 2px solid #22c55e;
  padding: 12px 20px; flex-shrink: 0;
}
.report-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.report-banner-text { display: flex; flex-direction: column; }
.report-banner-text strong { font-size: 14px; color: #14532d; }
.report-banner-text span   { font-size: 12px; color: #166534; margin-top: 2px; }
.report-banner-actions { display: flex; gap: 8px; }
.btn-download {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-md);
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-download:hover { background: var(--navy-light); }
.btn-download.secondary { background: var(--white); color: var(--navy); border: 1px solid var(--border); }
.btn-download.secondary:hover { background: var(--off-white); }

/* Input Area */
.input-area {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
  flex-shrink: 0;
}
.input-suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.suggestion-chip {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 4px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--navy-light);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.suggestion-chip:hover { background: #e8eeff; border-color: var(--navy-light); color: var(--navy); }
.input-row { display: flex; gap: 8px; }
.input-wrap { flex: 1; position: relative; }
.input-wrap textarea {
  width: 100%; resize: none; overflow: hidden;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; font-size: 14px; font-family: var(--font);
  color: var(--text); background: var(--off-white);
  outline: none; transition: border-color .2s;
  line-height: 1.5; min-height: 44px; max-height: 160px;
}
.input-wrap textarea:focus { border-color: var(--navy-light); background: var(--white); }
.btn-send {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.btn-send:hover    { background: var(--navy-light); }
.btn-send:disabled { background: var(--border); cursor: not-allowed; }
.input-hint { font-size: 10.5px; color: var(--text-light); margin-top: 5px; padding-left: 2px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .chat-sidebar { display: none; }
  .about-inner  { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 0; padding: 16px 20px; }
  .stat { padding: 0 16px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: 32px; }
  .hero-stats .stat-divider { display: none; }
  .hero-stats .stat { padding: 8px 12px; }
  .hero-stats { flex-direction: column; gap: 4px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .btn-icon span { display: none; }
  .chat-nav-actions gap { gap: 4px; }
  .msg-bubble { max-width: 90%; font-size: 13px; }
  .phase-progress-bar { display: none; }
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-row { animation: fadeInUp .25s ease; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.loading-pulse { animation: pulse 1.5s ease infinite; }
