/* ============================================================
   SunsetBuyers — Global Stylesheet
   Palette: Amber #C2622A · Navy #1C2B3A · Gold #E8A84E · Cream #FAF7F2
   Fonts: Playfair Display (serif display) + Source Sans 3 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1C2B3A;
  background: #FAF7F2;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: #1C2B3A;
}

a { color: #C2622A; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* ── Navigation ───────────────────────────────────────────── */
nav {
  background: #1C2B3A;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FAF7F2;
  letter-spacing: -0.3px;
}
.nav-logo span { color: #E8A84E; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(250,247,242,0.82);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #E8A84E; text-decoration: none; }

.nav-cta {
  background: #C2622A;
  color: #FAF7F2 !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #a8521f !important; text-decoration: none !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: #C2622A;
  color: #FAF7F2;
}
.btn-primary:hover { background: #a8521f; text-decoration: none; color: #FAF7F2; }

.btn-secondary {
  background: transparent;
  color: #C2622A;
  border: 2px solid #C2622A;
}
.btn-secondary:hover { background: #C2622A; color: #FAF7F2; text-decoration: none; }

.btn-gold {
  background: #E8A84E;
  color: #1C2B3A;
}
.btn-gold:hover { background: #d4943a; text-decoration: none; color: #1C2B3A; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1C2B3A 0%, #2d4560 50%, #3d2010 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(194,98,42,0.25) 0%, transparent 65%),
              radial-gradient(ellipse at 30% 80%, rgba(232,168,78,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,168,78,0.15);
  border: 1px solid rgba(232,168,78,0.35);
  color: #E8A84E;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: #FAF7F2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 em {
  color: #E8A84E;
  font-style: normal;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(250,247,242,0.78);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: rgba(250,247,242,0.5);
  margin-top: 16px;
}

/* Hero trust card */
.hero-card {
  background: rgba(250,247,242,0.06);
  border: 1px solid rgba(250,247,242,0.12);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  color: #E8A84E;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(250,247,242,0.85);
  font-size: 15px;
  line-height: 1.4;
}

.trust-icon {
  width: 22px;
  height: 22px;
  background: #C2622A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 11px;
  color: white;
  font-weight: 700;
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: #1C2B3A;
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250,247,242,0.8);
  font-size: 14px;
  font-weight: 500;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8A84E;
  flex-shrink: 0;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C2622A;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: #5a6a7a;
  max-width: 580px;
  margin: 0 auto 48px;
}

.text-center { text-align: center; }

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works { background: white; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  background: #FAF7F2;
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #C2622A;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-card p {
  color: #5a6a7a;
  font-size: 15px;
}

/* ── Why Sell To Us ───────────────────────────────────────── */
.why-sell { background: #FAF7F2; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: white;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(194,98,42,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: #5a6a7a; line-height: 1.5; }

/* ── Business Types ───────────────────────────────────────── */
.biz-types { background: white; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.type-pill {
  background: #FAF7F2;
  border: 1px solid #e8e0d5;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #1C2B3A;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #C2622A 0%, #a8521f 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: #FAF7F2;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(250,247,242,0.82);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Inner page hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1C2B3A 0%, #2d4560 100%);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 { color: #FAF7F2; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.page-hero p  { color: rgba(250,247,242,0.75); font-size: 1.05rem; margin-top: 12px; }

/* ── How It Works page ────────────────────────────────────── */
.how-detail { background: white; }

.steps-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.step-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
}

.step-detail .step-num { margin: 0; }

.step-detail-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-detail-body p  { color: #5a6a7a; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { background: #FAF7F2; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e8e0d5;
  background: white;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1C2B3A;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}
.faq-q:hover { background: #FAF7F2; }

.faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(194,98,42,0.1);
  color: #C2622A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: transform .25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: #5a6a7a;
  font-size: 15px;
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* ── About page ───────────────────────────────────────────── */
.about-body { background: white; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p  { color: #5a6a7a; margin-bottom: 16px; }

.about-values { background: #FAF7F2; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: white;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.value-card .icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p  { font-size: 14px; color: #5a6a7a; }

/* ── Privacy page ─────────────────────────────────────────── */
.privacy-body { background: white; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; color: #1C2B3A; }
.prose h2:first-child { margin-top: 0; }
.prose p  { color: #5a6a7a; margin-bottom: 16px; line-height: 1.7; }
.prose ul { color: #5a6a7a; padding-left: 24px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 6px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #1C2B3A;
  padding: 48px 0 32px;
  color: rgba(250,247,242,0.65);
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #FAF7F2;
  margin-bottom: 10px;
}
.footer-logo span { color: #E8A84E; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-links a { color: rgba(250,247,242,0.55); font-size: 14px; }
.footer-links a:hover { color: #E8A84E; text-decoration: none; }

.footer-copy {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(250,247,242,0.1);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(250,247,242,0.35);
}

/* ── Chat Widget ──────────────────────────────────────────── */
#chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #C2622A;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(194,98,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform .2s, background .2s;
}
#chat-bubble:hover { background: #a8521f; transform: scale(1.06); }
#chat-bubble svg { width: 26px; height: 26px; fill: white; }

#chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 370px;
  max-height: 540px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(28,43,58,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  overflow: hidden;
}
#chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, #C2622A 0%, #a8521f 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250,247,242,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chat-header-info { flex: 1; }
.chat-header-name  { font-weight: 700; color: #FAF7F2; font-size: 15px; }
.chat-header-status { font-size: 12px; color: rgba(250,247,242,0.7); }

.chat-close {
  background: none;
  border: none;
  color: rgba(250,247,242,0.7);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
}
.chat-close:hover { color: #FAF7F2; }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: msgIn .2s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.ai {
  background: #FAF7F2;
  border: 1px solid #e8e0d5;
  color: #1C2B3A;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: #C2622A;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 18px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: #C2622A;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
  opacity: 0.6;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

.chat-footer {
  padding: 12px 16px;
  border-top: 1px solid #f0ebe3;
  display: flex;
  gap: 10px;
  align-items: center;
}

#chat-input {
  flex: 1;
  border: 1px solid #e8e0d5;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  outline: none;
  color: #1C2B3A;
  background: #FAF7F2;
  resize: none;
  line-height: 1.4;
}
#chat-input:focus { border-color: #C2622A; }
#chat-input::placeholder { color: #aaa; }

#chat-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #C2622A;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
#chat-send:hover { background: #a8521f; }
#chat-send svg { width: 17px; height: 17px; fill: white; }

.chat-done {
  padding: 24px;
  text-align: center;
  color: #5a6a7a;
  font-size: 14px;
}
.chat-done-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.chat-done h4 { color: #1C2B3A; margin-bottom: 8px; }

/* ── Admin Dashboard ──────────────────────────────────────── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF7F2;
}

.admin-login-card {
  background: white;
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(28,43,58,0.08);
}
.admin-login-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.admin-login-card p  { color: #5a6a7a; font-size: 14px; margin-bottom: 28px; }

.admin-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e8e0d5;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  margin-bottom: 14px;
  outline: none;
  color: #1C2B3A;
}
.admin-input:focus { border-color: #C2622A; }

.admin-wrap { display: none; }

.admin-header {
  background: #1C2B3A;
  padding: 16px 0;
}
.admin-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 {
  color: #FAF7F2;
  font-size: 1.3rem;
}
.admin-header h1 span { color: #E8A84E; }

.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-select, .admin-date {
  padding: 9px 14px;
  border: 1px solid #e8e0d5;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: #1C2B3A;
  background: white;
  outline: none;
}
.admin-select:focus, .admin-date:focus { border-color: #C2622A; }

.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-pill {
  background: white;
  border: 1px solid #e8e0d5;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  color: #5a6a7a;
}
.stat-pill strong { color: #1C2B3A; font-size: 15px; margin-right: 4px; }

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid #e8e0d5;
  border-radius: 12px;
}

#leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

#leads-table th {
  background: #FAF7F2;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #5a6a7a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e8e0d5;
  white-space: nowrap;
}

#leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0ebe3;
  color: #1C2B3A;
  vertical-align: top;
}
#leads-table tr:last-child td { border-bottom: none; }
#leads-table tr:hover td { background: #faf8f5; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-New       { background: #dbeafe; color: #1e40af; }
.status-Contacted { background: #fef3c7; color: #92400e; }
.status-Offer-Sent{ background: #d1fae5; color: #065f46; }
.status-Under-LOI { background: #ede9fe; color: #5b21b6; }
.status-Closed    { background: #d1fae5; color: #065f46; }
.status-Pass      { background: #fee2e2; color: #991b1b; }

.transcript-btn {
  background: none;
  border: 1px solid #e8e0d5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #5a6a7a;
  white-space: nowrap;
}
.transcript-btn:hover { border-color: #C2622A; color: #C2622A; }

.inline-select {
  border: 1px solid #e8e0d5;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #1C2B3A;
  background: white;
  cursor: pointer;
}
.inline-select:focus { outline: none; border-color: #C2622A; }

.notes-input {
  border: 1px solid #e8e0d5;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  width: 160px;
  font-family: 'Source Sans 3', sans-serif;
  color: #1C2B3A;
}
.notes-input:focus { outline: none; border-color: #C2622A; }

/* Transcript modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,43,58,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e0d5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 { font-size: 1.05rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #5a6a7a;
  line-height: 1;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
}
.t-msg.user { background: #C2622A; color: white; align-self: flex-end; }
.t-msg.ai   { background: #FAF7F2; border: 1px solid #e8e0d5; color: #1C2B3A; align-self: flex-start; }
.t-msg .t-role { font-size: 10px; opacity: 0.65; margin-bottom: 4px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner         { grid-template-columns: 1fr; gap: 40px; }
  .hero-card          { display: none; }
  .steps-grid         { grid-template-columns: 1fr; }
  .why-grid           { grid-template-columns: 1fr; }
  .types-grid         { grid-template-columns: repeat(2, 1fr); }
  .about-grid         { grid-template-columns: 1fr; gap: 32px; }
  .values-grid        { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr; }
  .trust-bar-inner    { gap: 24px; }
  nav .nav-links      { display: none; }
  #chat-panel         { width: calc(100vw - 40px); right: 20px; bottom: 90px; }
  .admin-controls     { flex-direction: column; align-items: flex-start; }
  .step-detail        { grid-template-columns: 60px 1fr; gap: 16px; }
}
