/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: #fafbfc;
  color: #0A1A2A;
}

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

/* Layout */
.container {
  max-width: 1115px;      /* match ROI width */
  padding: 0 8px;         /* 8px inset left/right like ROI */
  margin: 0 auto;
}

/* =========================
   HEADER (match ROI style)
   ========================= */

.header {
  background: #ffffff;
  border-bottom: 1px solid #e4e7ec;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0; /* use nav-wrapper for vertical spacing */
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0; /* same vertical rhythm as ROI */
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-wrap img {
  height: 48px;  /* your approved height */
  width: auto;
  margin-left: 8px; /* small inward offset from left edge */
}

/* Keep .logo class for any other usage, but logo-wrap img wins */
.logo {
  display: block;
}

/* NAV LINKS */
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #0A1A2A;
  padding-bottom: 2px; /* space for underline */
}

/* Active/hover underline like ROI page */
nav a:hover::after,
nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #14b6ff; /* ROI cyan accent */
}

/* Pull last menu item (Whitepapers) slightly inward from right edge */
nav a:last-child {
  margin-right: 8px;
}

/* MOBILE HEADER */
@media (max-width: 768px) {
  .header {
    position: relative;
    z-index: 10;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  nav a {
    margin: 0;
  }

  .logo-wrap {
    margin-bottom: 12px;
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================
   HERO (Homepage)
   ========================= */

.hero {
  padding: 80px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.left h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.08;
  color: #062455;
  margin: 0 0 20px;
}

.sub {
  font-size: 20px;
  margin: 0 0 32px;
  color: #31415a;
}

.form {
  display: flex;
  flex-direction: column;
  max-width: 360px;
}

.form input {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #d5dce3;
  font-size: 15px;
  outline: none;
}

.form input:focus {
  border-color: #0a6fb5;
  box-shadow: 0 0 0 1px rgba(10, 111, 181, 0.15);
}

.form button {
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #0a3b78;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover {
  opacity: 0.95;
}

.consent {
  margin-top: 14px;
  font-size: 13px;
  color: #6c7b8a;
}

.right {
  display: flex;
  justify-content: center;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
}

/* Strip */
.strip {
  background: #ffffff;
  border-top: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
  padding: 16px 0;
}

.strip-inner {
  text-align: center;
  font-size: 14px;
  color: #4b5665;
}

/* Services preview on homepage */
.services-preview {
  padding: 64px 0 96px;
}

.services-preview h2 {
  font-size: 26px;
  margin: 0 0 32px;
  text-align: left;
}

/* Shared card grid */
.card-grid {
  display: grid;
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid #e4e7ec;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card ul {
  padding-left: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  color: #4b5665;
}

.card p {
  font-size: 14px;
  color: #4b5665;
}

/* Page layouts */
.page {
  padding-bottom: 72px;
}

.page-hero {
  padding: 64px 0 32px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.page-hero p {
  margin: 0;
  font-size: 15px;
  color: #4b5665;
}

.page-section {
  padding: 0 0 48px;
}

.card.tall {
  min-height: 260px;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7b8a;
  margin-bottom: 4px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
}

.card.highlighted {
  border-color: #0a6fb5;
  box-shadow: 0 10px 28px rgba(10, 111, 181, 0.18);
}

/* Footer */
.footer {
  border-top: 1px solid #e4e7ec;
  background: #ffffff;
  padding: 18px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6c7b8a;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .left h1 {
    font-size: 42px;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
    margin-right: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
