/* ============================================================
   Atlas Metrics — Shared styles
   Brand: Dark blue #1B3A5C | Accent #2E75B6 | Light #D5E8F0
   Font: Inter
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #1B3A5C;
  --dark-2: #14304a;
  --accent: #2E75B6;
  --accent-2: #245d92;
  --light: #D5E8F0;
  --light-2: #eef5f9;
  --bg: #ffffff;
  --text: #0f1f2e;
  --muted: #4a5d72;
  --muted-2: #7a8a9c;
  --border: #e2ecf2;
  --border-strong: #c4d6e2;
  --success: #1f9d55;
  --warning: #d97706;
  --danger: #dc2626;
  --r: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 46, 0.04);
  --shadow: 0 4px 14px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 58, 92, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--dark);
  text-decoration: none; letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 14px;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--dark); background: var(--light-2);
  text-decoration: none;
}
.nav-links a.active { color: var(--dark); background: var(--light-2); }
.nav-cta {
  background: var(--dark); color: white !important;
  padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.nav-cta:hover { background: var(--dark-2); text-decoration: none; transform: translateY(-1px); }

.burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all 0.3s;
}
.mob-menu {
  display: none; flex-direction: column;
  padding: 12px 24px 20px; gap: 2px;
  border-bottom: 1px solid var(--border);
  background: white;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  padding: 11px 14px; border-radius: 8px;
  color: var(--muted); font-size: 15px; font-weight: 500;
}
.mob-menu a:hover { background: var(--light-2); color: var(--dark); text-decoration: none; }
.mob-menu .nav-cta { text-align: center; margin-top: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.15s; letter-spacing: -0.01em;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--dark); color: white;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.18);
}
.btn-primary:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(27, 58, 92, 0.25); }
.btn-accent {
  background: var(--accent); color: white;
  box-shadow: 0 4px 14px rgba(46, 117, 182, 0.25);
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(46, 117, 182, 0.35); }
.btn-outline {
  background: white; color: var(--dark);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--dark);
}
.btn-ghost:hover { background: var(--light-2); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, var(--light-2) 0%, white 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(46, 117, 182, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(27, 58, 92, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px;
  font-size: 13px; color: var(--accent); font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 117, 182, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 117, 182, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(46, 117, 182, 0.05); }
}

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--dark);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted); line-height: 1.6;
  max-width: 720px; margin: 0 auto 36px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 22px; font-size: 13px; color: var(--muted-2);
  align-items: center;
}
.hero-trust .check { color: var(--success); font-weight: 700; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 72px 0; }
.section-bg { background: var(--light-2); }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.75); }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-tag::before {
  content: ''; width: 20px; height: 1.5px;
  background: var(--accent); border-radius: 1px;
}
.section-h {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 14px;
  color: var(--dark);
}
.section-sub {
  font-size: 17px; color: var(--muted);
  max-width: 640px; line-height: 1.7;
  margin-bottom: 40px;
}
.section-head-center { text-align: center; }
.section-head-center .section-tag { justify-content: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--light); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  font-weight: 700;
}
.card h3 {
  font-size: 19px; font-weight: 700; margin-bottom: 10px;
  color: var(--dark);
}
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.price-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 20px 50px rgba(46, 117, 182, 0.18);
  transform: translateY(-4px);
}
.price-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 100px;
}
.price-card .tier {
  font-size: 13px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.price-card h3 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--dark);
}
.price-card .price {
  font-size: 40px; font-weight: 800;
  color: var(--dark); line-height: 1;
  margin: 16px 0 4px; letter-spacing: -0.03em;
}
.price-card .price .per {
  font-size: 16px; font-weight: 500; color: var(--muted);
}
.price-card .price-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 24px;
}
.price-card ul { list-style: none; margin: 0 0 28px; flex: 1; }
.price-card ul li {
  font-size: 14px; color: var(--muted); padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.price-card ul li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: white; color: var(--text);
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}
.form-control.error { border-color: var(--danger); }
.form-error {
  display: none; font-size: 13px; color: var(--danger);
  margin-top: 4px;
}
.form-error.show { display: block; }
.form-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow);
}

/* ============================================================
   PHONE DEMO
   ============================================================ */
.phone-demo {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(27, 58, 92, 0.25);
}
.phone-demo .label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.85; margin-bottom: 10px;
}
.phone-demo .num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
  display: inline-block; padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px; margin: 8px 0;
  font-family: 'Inter', sans-serif;
  color: white; text-decoration: none;
}
.phone-demo .num:hover { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
.phone-demo .hint {
  font-size: 14px; opacity: 0.85; margin-top: 12px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: 32px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n {
  font-size: 38px; font-weight: 800;
  color: var(--dark); line-height: 1; margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-l { font-size: 14px; color: var(--muted); }

/* ============================================================
   FAQ / LIST BLOCKS
   ============================================================ */
.faq-item {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-size: 16px; font-weight: 600; color: var(--dark);
  cursor: pointer; list-style: none; position: relative;
  padding-right: 24px;
}
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  font-size: 24px; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark); color: rgba(255,255,255,0.85);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: white; }
.footer-brand .logo-mark {
  background: linear-gradient(135deg, white 0%, var(--light) 100%);
  color: var(--dark);
}
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.7);
  margin-top: 14px; max-width: 320px; line-height: 1.7;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}

/* ============================================================
   GENERIC PAGE HEAD
   ============================================================ */
.page-head {
  background: linear-gradient(180deg, var(--light-2) 0%, white 100%);
  padding: 72px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  margin-bottom: 14px; color: var(--dark);
  letter-spacing: -0.03em;
}
.page-head p {
  font-size: 18px; color: var(--muted);
  max-width: 640px; margin: 0 auto;
}

/* ============================================================
   PROSE / CONTENT BLOCKS
   ============================================================ */
.prose h2 { font-size: 26px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 6px; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 20px; margin: 24px 0;
  color: var(--muted); font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 840px) {
  .card-grid, .card-grid.two, .card-grid.four,
  .pricing-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero { padding: 56px 24px 48px; }
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* Loading spinner for audit */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* Compliance badge */
.compliance-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 12px;
}
.compliance-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
