:root {
  --blue: #62b5e5;
  --blue-dark: #11111f;
  --navy: #11111f;
  --navy-2: #181829;
  --text: #1f2937;
  --text-light: #5b6472;
  --white: #ffffff;
  --border: #e6e9ee;
  --max-width: 1120px;
  /* Semantic surface tokens — separate from --white (which stays "true
     white" for text/logos on dark backgrounds like the hero and footer)
     so dark mode can repaint content surfaces without breaking those. */
  --surface: var(--white);
  --surface-alt: #f7f9fc;
  --header-bg: rgba(255,255,255,0.92);
}

[data-theme="dark"] {
  --text: #e6e9ee;
  --text-light: #a8b2c2;
  --border: #363c4d;
  --surface: #15151f;
  --surface-alt: #262b3b;
  --blue-dark: #f2f6fb;
  --header-bg: rgba(17,17,31,0.85);
}

[data-theme="dark"] .field-label { color: var(--text-light); font-weight: 600; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  scroll-behavior: smooth;
}

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

/* Inline text links inside body copy need to look clickable — the reset
   above makes them invisible otherwise (no color/underline difference
   from surrounding text). Nav, footer, buttons and cards define their
   own link treatment, so this only targets plain paragraph links. */
.card p a,
.service-block p a,
section > .wrap > p a,
.article p a {
  color: var(--blue);
  text-decoration: underline;
}
.card p a:hover,
.service-block p a:hover,
section > .wrap > p a:hover,
.article p a:hover {
  color: var(--blue-dark);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

#introSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#introSplash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#introSplash img {
  max-width: 280px;
  width: 60vw;
  height: auto;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--blue-dark);
}

.logo svg { flex-shrink: 0; }

.logo-icon {
  flex-shrink: 0;
  display: block;
  width: 30px;
  height: auto;
}

.logo-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

.logo-wordmark-dark-only { display: none; }
[data-theme="dark"] .logo-wordmark-light { display: none; }
[data-theme="dark"] .logo-wordmark-dark-only { display: block; }

.footer-logo {
  height: 20px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--blue-dark);
  padding: 10px;
  line-height: 1;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  transition: border-color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #142544 0%, var(--navy) 60%, #060a12 100%);
  color: var(--white);
  padding: 220px 24px 140px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(14px) brightness(0.6) saturate(0.85);
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,18,32,0.65) 0%, rgba(11,18,32,0.85) 65%, rgba(11,18,32,0.95) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: #b8c4d9;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.4rem !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.5 !important;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: #6bb3ec;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 6px;
  border: 2px solid var(--blue);
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.15s;
}

.btn-outline:hover {
  background: rgba(98,181,229,0.1);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-1px);
}

.page-hero {
  padding: 90px 24px 70px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Sections */
section {
  padding: 80px 0;
}

section.alt {
  background: var(--surface-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--blue-dark);
}

.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(11,18,32,0.08);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(79,163,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Service rows (detailed) */
.service-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-block .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(79,163,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.service-block h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--blue-dark);
}

.service-block p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

/* About */
.about-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-content h1 {
  color: var(--blue-dark);
}

.founder-intro {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}

.founder-col {
  flex-shrink: 0;
  width: 180px;
  text-align: center;
}

.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(17,17,31,0.14);
  display: block;
}

.founder-name {
  margin-top: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.founder-title {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 2px;
}

.founder-intro > p {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .founder-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  text-align: center;
}

.stats .stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--blue);
}

.stats .stat span {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info h3 {
  color: var(--blue-dark);
  margin: 0 0 6px;
}

.contact-info p {
  color: var(--text-light);
  margin: 0 0 28px;
}

.contact-info .item {
  margin-bottom: 24px;
}

.contact-info .item label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafbfc;
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}

/* Estimator */
.estimator {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.estimator-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.field-group {
  margin-bottom: 32px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  font-size: 1rem;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.option-btn strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.option-btn span {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--blue);
}

.option-btn.active {
  border-color: var(--blue);
  background: rgba(98,181,229,0.1);
}

.estimator-result {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.result-cost {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.result-timeline {
  color: #b8c4d9;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.result-compare {
  color: #8a96ab;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.result-disclaimer {
  color: #6b7385;
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 18px 0 0;
}

@media (max-width: 860px) {
  .estimator {
    grid-template-columns: 1fr;
  }
  .estimator-result {
    position: static;
  }
  .option-row-3 {
    grid-template-columns: 1fr;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
  .scorecard {
    grid-template-columns: 1fr;
  }
  .scorecard-result {
    position: static;
  }
}

/* Due Diligence Scorecard */
.scorecard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.scorecard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.scorecard-category-heading {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.scorecard-category-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.scorecard-result {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px;
  position: sticky;
  top: 100px;
}

.scorecard-result[hidden] {
  display: none;
}

.scorecard-progress {
  color: #8a96ab;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.scorecard-overall {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.scorecard-overall-pct {
  font-size: 2.6rem;
  font-weight: 800;
  display: block;
}

.scorecard-overall-label {
  color: #b8c4d9;
  font-size: 1rem;
  font-weight: 600;
}

.scorecard-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.scorecard-bar-label {
  flex: 0 0 120px;
  color: #b8c4d9;
}

.scorecard-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}

.scorecard-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.scorecard-bar-pct {
  flex: 0 0 36px;
  text-align: right;
  font-weight: 700;
}

/* ROI Calculator */
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.field-input:focus {
  outline: none;
  border-color: var(--blue);
}

.field-prefix {
  position: relative;
}

.field-prefix span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.field-prefix .field-input {
  padding-left: 30px;
}

.roi-slider {
  width: 100%;
  accent-color: var(--blue);
}

.roi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.roi-result-row:last-of-type {
  border-bottom: none;
}

.roi-result-label {
  color: #b8c4d9;
  font-size: 0.9rem;
}

.roi-result-value {
  font-size: 1.3rem;
  font-weight: 800;
}

.roi-result-value.big {
  font-size: 2rem;
  color: var(--blue);
}

/* Nav dropdown ("Tools") */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(11,18,32,0.14);
  min-width: 220px;
  padding: 8px;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu .nav-dropdown-all {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 8px;
  color: var(--blue);
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--text);
}

.nav-dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--blue);
}

@media (max-width: 860px) {
  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    margin: 0;
    padding: 0;
  }
  .nav-dropdown-menu a {
    padding: 12px 24px 12px 40px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
}

/* Process Prioritizer */
.prioritizer-row {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.prioritizer-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.prioritizer-name {
  flex: 1;
}

.prioritizer-badge {
  flex-shrink: 0;
  color: #11111f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.prioritizer-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.prioritizer-remove:hover { color: #d9534f; }

.prioritizer-sliders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.prioritizer-slider-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.prioritizer-slider-field strong {
  color: var(--blue-dark);
}

@media (max-width: 600px) {
  .prioritizer-sliders {
    grid-template-columns: 1fr;
  }
}

/* Tools hub */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.how-tools-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

@media (max-width: 760px) {
  .how-tools-work {
    grid-template-columns: 1fr;
  }
}

.how-tools-step-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-style: italic;
  color: var(--blue);
  margin-bottom: 8px;
}

.print-only { display: none; }

@media print {
  body > *:not(.print-only) { display: none !important; }
  .print-only {
    display: block !important;
    position: static;
    width: 100%;
    padding: 40px;
    color: #11111f;
    background: #fff;
  }
  .print-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid #62b5e5;
  }
  .print-header img { height: 26px; width: auto; display: block; }
  .print-header span {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #11111f;
  }
  .print-only h1 { font-size: 1.6rem; margin: 0 0 4px; color: #11111f; }
  .print-only .print-meta { color: #5b6472; font-size: 0.85rem; margin: 0 0 24px; }
  .print-only h2 { font-size: 1.2rem; margin: 0 0 16px; color: #11111f; }
  .print-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
  .print-table th {
    text-align: left;
    padding: 10px 12px;
    background: #11111f;
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .print-table th:first-child { border-radius: 6px 0 0 6px; }
  .print-table th:last-child { border-radius: 0 6px 6px 0; }
  .print-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9ee;
    font-size: 0.9rem;
    color: #11111f;
  }
  .print-note {
    font-size: 0.8rem;
    color: #5b6472;
    max-width: 520px;
    margin-top: 8px;
  }
  .print-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #e6e9ee;
    font-size: 0.75rem;
    color: #8a96ab;
    display: flex;
    justify-content: space-between;
  }
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.insight-card:hover {
  box-shadow: 0 12px 28px rgba(11,18,32,0.08);
  transform: translateY(-3px);
}

.insight-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.insight-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--blue-dark);
  line-height: 1.35;
}

.insight-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.insight-card .read-more {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.insight-card .read-more::after {
  content: " →";
}

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--blue);
}

.article h1 {
  color: var(--blue-dark);
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.article .lede {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.article h2 {
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin: 44px 0 16px;
}

.article p {
  color: #3a4250;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
}

.article ul, .article ol {
  color: #3a4250;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 10px;
}

.article strong {
  color: var(--blue-dark);
}

.article .back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.article-footer-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--surface-alt);
  border-radius: 10px;
  text-align: center;
}

.article-footer-cta p {
  margin: 0 0 18px;
}

@media (max-width: 860px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* Chat widget */
#frontalChat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  font-family: inherit;
}

.fc-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(11,18,32,0.25);
  transition: transform 0.15s;
}

.fc-toggle:hover {
  transform: translateY(-2px);
}

.fc-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(11,18,32,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fc-panel[hidden] {
  display: none;
}

.fc-header {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.fc-header img { border-radius: 4px; width: 20px; height: auto; }

.fc-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.fc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.fc-msg-assistant {
  background: var(--surface-alt);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.fc-msg-user {
  background: var(--blue);
  color: var(--navy);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.fc-thinking {
  opacity: 0.6;
}

.fc-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.fc-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.fc-input:focus {
  outline: none;
  border-color: var(--blue);
}

.fc-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .fc-panel {
    width: calc(100vw - 24px);
    right: -8px;
  }
}

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #8a96ab;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .logo { color: var(--white); }

footer.site-footer a:hover { color: var(--blue); }

.header-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  margin-left: 8px;
  transition: border-color 0.2s, transform 0.15s, color 0.15s;
}

.header-social:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.header-social svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open {
    display: flex;
    box-shadow: 0 12px 24px rgba(17,17,31,0.12);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 18px 24px;
    width: 100%;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
  }
  .nav-links a:active {
    background: rgba(98,181,229,0.08);
  }
  @media (hover: hover) {
    .nav-links a:hover {
      background: rgba(98,181,229,0.08);
    }
  }
  .menu-toggle { display: block; }
}
