/* Atlas Mutual — design system */

:root {
  --green-900: #0F2E24;
  --green-800: #1B4D3E;
  --green-700: #266B56;
  --green-100: #E8F3EF;
  --terra: #C45D3A;
  --terra-dark: #9A4528;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --charcoal: #1A1A1A;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-300: #B0B0B0;
  --gray-100: #F2F2F2;
  --white: #FAFAF8;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);

  --banner-h: 32px;
  --header-h: 64px;
  --max-w: 1200px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Demo banner */
.demo-banner {
  background: var(--charcoal);
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 500;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}
.marquee-chunk { display: inline-block; padding-right: 2rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Header */
.site-header {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  z-index: 999;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--charcoal);
}
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a { color: var(--gray-700); }
.main-nav a:hover { color: var(--green-800); }
#employeeLogin {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-800);
  background: var(--white);
  color: var(--green-800);
  cursor: pointer;
  text-decoration: none;
}
#employeeLogin:hover {
  background: var(--green-100);
}

/* Layout helpers */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gap);
}
.section-sub {
  color: var(--gray-500);
  font-size: 18px;
  max-width: 560px;
  margin-top: 12px;
}
h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-700); }
.btn-secondary {
  background: var(--white);
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn-secondary:hover { background: var(--green-100); }

/* Hero */
.hero {
  padding-top: calc(var(--banner-h) + var(--header-h));
  background: var(--cream);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--green-900);
}
.hero-lead {
  font-size: 18px;
  color: var(--gray-700);
  margin-top: 20px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-800);
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
}
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Estimator (signature element) */
.estimator { background: var(--white); }
.estimator h2 { text-align: center; }
.estimator .section-sub { text-align: center; margin: 12px auto 0; }
.estimator-card {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.estimator-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--green-800);
}
.estimator-result {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-dark);
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.result-label { font-size: 16px; font-weight: 600; color: var(--gray-700); }
.result-range { font-size: 28px; font-weight: 800; color: var(--green-800); }
.result-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}
.result-agent {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.agent-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.agent-info { display: flex; flex-direction: column; gap: 2px; }
.agent-info strong { font-size: 15px; }
.agent-info span { font-size: 13px; color: var(--gray-500); }

/* Products */
.products { background: var(--green-100); }
.products h2 { text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--cream-dark);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.product-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.product-card h3 { font-size: 18px; font-weight: 700; }
.product-card p { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.product-card .link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--terra);
}
.product-card .link:hover { color: var(--terra-dark); }

/* Security proof */
.security-proof { background: var(--white); }
.proof-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
}
.proof-visual {
  display: flex;
  align-items: center;
  gap: 0;
}
.proof-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  min-width: 80px;
}
.proof-step.done { color: var(--green-100); }
.proof-step.active { color: var(--white); }
.proof-step.active .proof-dot { background: var(--terra); border-color: var(--terra); }
.proof-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: transparent;
}
.proof-step.done .proof-dot {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}
.proof-connector {
  width: 32px;
  height: 2px;
  background: var(--gray-700);
  margin: 0 4px;
  position: relative;
  top: -14px;
}
.proof-text h3 { font-size: 28px; font-weight: 700; }
.proof-text p { color: var(--gray-300); margin-top: 12px; font-size: 15px; }
.proof-text .link { color: var(--terra); font-weight: 600; display: inline-block; margin-top: 16px; }

/* Claims */
.claims { background: var(--cream); }
.claims-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.claims-text h2 { font-size: 32px; }
.claims-text p { color: var(--gray-700); margin-top: 16px; font-size: 17px; }
.claims-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.claims-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-700);
}
.claims-list li svg { color: var(--green-800); flex-shrink: 0; }
.claims-text .btn { margin-top: 28px; }
.claims-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.claims-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Stats */
.stats { background: var(--green-800); color: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--green-100);
  margin-top: 6px;
}

/* Agents */
.agents { background: var(--white); }
.agents h2 { text-align: center; }
.agent-locator { margin-top: 40px; }
.locator-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 32px;
}
.locator-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.locator-form input:focus { outline: none; border-color: var(--green-800); }
.agent-map {
  background: var(--green-100);
  border-radius: var(--radius);
  height: 320px;
  position: relative;
  overflow: hidden;
}
.map-dots { position: absolute; inset: 0; }
.map-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--green-800);
  border-radius: 50%;
  opacity: 0.7;
}
.map-label {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--gap) 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-word { font-size: 20px; font-weight: 700; color: var(--white); }
.footer-brand p { color: var(--gray-300); font-size: 14px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-links strong { display: block; font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { display: block; color: var(--green-100); font-size: 14px; margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--green-800);
  padding-top: 24px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
}

/* Chat widget */
#chatLaunch {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1001;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--green-800);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
#chatLaunch:hover { transform: scale(1.05); }
#chatPanel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1001;
  width: 360px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
}
#chatPanel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
#chatPanel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--green-800);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}
#chatClose {
  background: transparent; border: none; color: var(--white);
  font-size: 22px; cursor: pointer; line-height: 1;
}
#chatLog {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}
.msg.bot { background: var(--green-100); color: var(--charcoal); align-self: flex-start; }
.msg.user { background: var(--green-800); color: var(--white); align-self: flex-end; }
.msg.system { background: var(--cream); color: var(--gray-700); font-size: 13px; align-self: center; text-align: center; }
.msg.typing { background: var(--green-100); color: var(--gray-500); font-size: 13px; font-style: italic; }
#chatForm {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--cream-dark);
}
#chatInput {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}
#chatInput:focus { outline: none; border-color: var(--green-800); }
#chatSend {
  padding: 10px 16px;
  background: var(--green-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#chatSend:disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual img { height: 280px; }
  .claims-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-card { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .estimator-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-text h1 { font-size: 32px; }
  .main-nav { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section-inner { padding: 56px var(--gap); }
  .product-grid { grid-template-columns: 1fr; }
  .proof-card { padding: 28px; }
  .proof-visual { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .proof-connector { display: none; }
  #chatPanel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .footer-links { grid-template-columns: 1fr; }
}
