/* ── BASE / SHARED ACROSS ALL PAGES ──
   Reset, design tokens, typography, header, nav, footer, common buttons.
   Page-specific styles live inline on each page. */

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

:root {
  --crimson: #c7325d;
  --navy-dark: #063156;
  --hero-bg: linear-gradient(160deg, #031e36 0%, #063156 45%, #221a28 100%);
  --light-bg: #f4f7fb;
  --white: #ffffff;
  --text-light: rgba(255,255,255,0.72);
  --accent-gradient: linear-gradient(135deg, #c7325d, #e9973e, #97c451);
  --font-heading: "Inter", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --header-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1a2e4a;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding: 0 48px;
  background: var(--navy-dark);
  box-shadow: 0 2px 24px rgba(3,20,40,0.25);
}

.site-header.is-scrolled {
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 32px; width: auto; display: block; }

/* ── NAV ── */
.site-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover { color: #fff; }

.nav-menu a.active { color: #fff; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--crimson);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.btn-free-demo {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-free-demo:hover { background: #a8224a; }

@media (max-width: 900px) {
  .site-header { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-dark);
    box-shadow: 0 12px 24px rgba(3,20,40,0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-menu.open { max-height: 480px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; width: 100%; padding: 14px 24px; }
  .nav-menu a.active::after { display: none; }
  .nav-menu a.active { background: rgba(255,255,255,0.06); }
}

/* ── COMMON BUTTONS (used across multiple pages) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 10px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #a8224a; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.phone-icon {
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}
.section-eyebrow.dark { color: rgba(255,255,255,0.6); }

.hero-dots { display: flex; gap: 5px; }
.hero-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.hero-dots .d1 { background: #c7325d; }
.hero-dots .d2 { background: #e9973e; }
.hero-dots .d3 { background: #97c451; }

/* ── FOOTER ── */
.site-footer {
  background: #0d1e35;
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 28px; width: auto; display: block; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.site-footer > .footer-inner > p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── MOCK DASHBOARD COMPONENTS (dark panel UI mocks, used on homepage + flex-ai page) ── */
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mock-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.mock-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #97c451;
  font-weight: 600;
}
.mock-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #97c451;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.mock-stat-card {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.mock-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.mock-stat-num sup {
  font-size: 16px;
}
.mock-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.mock-transcript {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
}
.mock-transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mock-transcript-meta {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(151,196,81,0.2);
  color: #97c451;
  letter-spacing: 0.05em;
}

.mock-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mock-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-heading);
}
.mock-avatar.jt { background: #5b8cf8; }
.mock-avatar.sm { background: #c7325d; }

.mock-bubble {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
}

.mock-ai-summary {
  background: rgba(97,196,81,0.1);
  border-radius: 10px;
  padding: 10px 12px;
}
.mock-ai-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #97c451;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.mock-ai-text {
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
  margin-bottom: 10px;
}
.mock-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mock-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.mock-analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mock-analytics-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.mock-analytics-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1;
}
.mock-analytics-num small { font-size: 13px; font-weight: 600; }
.mock-analytics-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }

.mock-chart {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.mock-chart-title {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.mock-chart-legend {
  display: flex; gap: 12px;
}
.mock-chart-legend-item {
  display: flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(255,255,255,0.4);
}
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.in { background: #5b8cf8; }
.legend-dot.out { background: #97c451; }

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
}
.mock-bar-group {
  flex: 1;
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
.mock-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
}
.mock-bar.in { background: rgba(91,140,248,0.6); }
.mock-bar.out { background: rgba(151,196,81,0.6); }

.mock-bar-labels {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.mock-bar-label {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
}

.mock-report-builder {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
}
.mock-rb-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mock-rb-title { font-size: 11px; color: rgba(255,255,255,0.4); }
.mock-rb-live { font-size: 10px; color: #97c451; font-weight: 600; }
.mock-rb-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mock-rb-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.mock-rb-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mock-rb-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.mock-rb-key { color: rgba(255,255,255,0.45); }
.mock-rb-val { color: #fff; font-weight: 600; }
.mock-rb-val .up { color: #97c451; font-size: 10px; }

/* ── GENERIC CONTENT PAGE (legal pages + admin-created custom pages) ── */
.legal-banner {
  background: var(--navy-dark);
  padding: 64px 24px 48px;
  text-align: center;
}
.legal-banner .section-eyebrow { justify-content: center; }
.legal-banner h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.legal-banner .legal-updated {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.tpl-hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.tpl-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tpl-final-cta { background: var(--navy-dark); padding: 72px 24px; text-align: center; }
.tpl-final-cta-inner { max-width: 640px; margin: 0 auto; }
.tpl-final-cta-inner .section-eyebrow { justify-content: center; }
.tpl-final-cta-inner h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 12px 0 12px;
}
.tpl-final-cta-inner p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.tpl-final-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tpl-content-inner { text-align: center; }

.legal-content { background: #fff; padding: 64px 24px 96px; }
.legal-content-inner { max-width: 760px; margin: 0 auto; }

.legal-crosslinks {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 40px;
  font-size: 14.5px;
  color: #5a6a7a;
  line-height: 1.7;
}
.legal-crosslinks a { color: var(--crimson); font-weight: 600; text-decoration: underline; }

.legal-content-inner h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0d1e35;
  margin: 44px 0 16px;
  padding-top: 8px;
  border-top: 1px solid #eef1f5;
}
.legal-content-inner h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.legal-content-inner h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #0d1e35;
  margin: 26px 0 10px;
}

.legal-content-inner p {
  font-size: 15.5px;
  color: #3a4a5a;
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content-inner p.page-body { white-space: pre-line; }

.legal-content-inner ul,
.legal-content-inner ol {
  margin: 0 0 16px 22px;
}
.legal-content-inner ul li { list-style: disc; }
.legal-content-inner ol li { list-style: decimal; }
.legal-content-inner li {
  font-size: 15.5px;
  color: #3a4a5a;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content-inner a { color: var(--crimson); text-decoration: underline; }
.legal-content-inner strong { color: #0d1e35; }

.legal-address {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a4a5a;
}

/* ── FORM SUBMISSION FEEDBACK (shared across all lead-gen forms) ── */
.form-success, .form-error {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-success { background: #e9f7e3; color: #2f6b1f; border: 1px solid #c8e8bb; }
.form-error { background: #fdecef; color: #a8224a; border: 1px solid #f6c6d2; }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px; height: 42px;
  background: var(--crimson);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
