:root {
  color-scheme: light;
  --oi-bg: #ffffff;
  --oi-bg-alt: #f8fafc;
  --oi-text: #0f172a;
  --oi-muted: #475569;
  --oi-border: #e2e8f0;
  --oi-primary: #0f172a;
  --oi-radius: 12px;
  --oi-shell: 1200px;

  --oi-tile-bg: #f1f5f9;
  --oi-tile-border: #cbd5e1;
  --oi-tile-hover-bg: #e2e8f0;
  --oi-tile-hover-border: #0f172a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--oi-text);
  background: var(--oi-bg);
}

.oi-shell {
  max-width: var(--oi-shell);
  margin: 0 auto;
  padding: 0 30px;
}

/* --- HEADER --- */
.oi-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--oi-border);
  height: 115px;
  display: flex;
  align-items: center;
}

.oi-header .oi-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Unified brand link used across all pages */
.oi-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  margin-left: -36px;
}

.oi-logo-img {
  height: 85px;
  width: auto;
  display: block;
}

.oi-wordmark {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1;
}

.oi-nav {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}

.oi-nav a,
.oi-nav a:visited {
  text-decoration: none;
  color: #64748b;
  transition: color 0.2s;
}

.oi-nav a:hover { color: #0f172a; }

/* --- HOME HERO (animated canvas) --- */
.oi-hero {
  position: relative;
  padding: 60px 0 120px;
  background: #0B0F19;
  color: #ffffff;
  overflow: hidden;
}

#orbital-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.oi-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.oi-hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: #ffffff;
}

.oi-hero p {
  font-size: 20px;
  margin: 0 0 36px;
  color: #cbd5e1;
  max-width: 650px;
}

.oi-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- STATIC HERO (for service pages, no canvas) --- */
.oi-hero-static {
  padding: 70px 0 70px;
  background: #0B0F19;
  color: #ffffff;
}

.oi-hero-static .oi-hero-inner {
  max-width: 900px;
}

.oi-hero-static h1 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #ffffff;
}

.oi-hero-static p {
  font-size: 18px;
  margin: 0;
  color: #cbd5e1;
  max-width: 820px;
}

/* Buttons */
.oi-button,
.oi-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #0B0F19;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  /* Subtle dark border for pill buttons across light sections and sub-pages */
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.oi-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  border-color: rgba(15, 23, 42, 0.32);
}

.oi-button-secondary,
.oi-button-secondary:visited {
  background: #ffffff;
  color: #0B0F19;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.oi-button-secondary:hover {
  background: #ffffff;
  color: #0B0F19;
  border-color: rgba(15, 23, 42, 0.28);
}

/* Keep the TWO large home hero buttons as-is (light border on dark hero) */
.oi-hero .oi-hero-actions .oi-button,
.oi-hero .oi-hero-actions .oi-button:visited,
.oi-hero .oi-hero-actions .oi-button-secondary,
.oi-hero .oi-hero-actions .oi-button-secondary:visited {
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.oi-hero .oi-hero-actions .oi-button:hover,
.oi-hero .oi-hero-actions .oi-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

/* Prevent hero link colour overrides from making white-on-white buttons */
.oi-hero .oi-button,
.oi-hero .oi-button:visited,
.oi-hero .oi-button-secondary,
.oi-hero .oi-button-secondary:visited,
.oi-hero-static .oi-button,
.oi-hero-static .oi-button:visited,
.oi-hero-static .oi-button-secondary,
.oi-hero-static .oi-button-secondary:visited {
  color: #0B0F19 !important;
}


/* --- SECTIONS --- */
.oi-section { padding: 90px 0; background: #ffffff; }
.oi-section-alt {
  background: #f8fafc;
  border-top: 1px solid var(--oi-border);
  border-bottom: 1px solid var(--oi-border);
}

.oi-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}

.oi-section h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

/* --- SERVICES TILES --- */
a.oi-service,
a.oi-service:visited {
  display: block;
  text-decoration: none;
  padding: 26px 30px;
  border-radius: 12px;
  border: 1px solid var(--oi-tile-border);
  background: var(--oi-tile-bg);
  margin-bottom: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: inherit;
}

a.oi-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12);
  border-color: var(--oi-tile-hover-border);
  background: var(--oi-tile-hover-bg);
}

.oi-service h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oi-service h3::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  color: #0f172a;
}

a.oi-service:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}

.oi-service p { margin: 0; font-size: 16px; color: #475569; }

/* Contact link */
.oi-contact-line a,
.oi-contact-line a:visited {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.25);
}
.oi-contact-line a:hover { border-bottom-color: rgba(15, 23, 42, 0.5); }

/* --- SUBPAGE STYLES (kept for non-service pages like Privacy) --- */
.oi-subpage-header {
  padding: 80px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--oi-border);
}

.oi-subpage-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.oi-subpage-header p {
  font-size: 20px;
  color: #475569;
  max-width: 700px;
  margin: 0;
}

.oi-breadcrumb,
.oi-breadcrumb:visited {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.oi-breadcrumb:hover { color: #0f172a; }

.oi-content-block {
  padding: 80px 0;
}

/* --- REPORT PAGE CARD + HUBSPOT FORM --- */
.oi-report-card {
  margin-top: 26px;
  padding: 22px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  max-width: 720px;
}

.oi-report-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.oi-report-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 15px;
}

.oi-privacy-note {
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 13px;
}

/* HubSpot form styling on dark hero */
.oi-hero .hs-form,
.oi-hero .hs-form label,
.oi-hero .hs-form legend,
.oi-hero .hs-form .hs-form-field label,
.oi-hero-static .hs-form,
.oi-hero-static .hs-form label,
.oi-hero-static .hs-form legend,
.oi-hero-static .hs-form .hs-form-field label {
  color: #e2e8f0 !important;
}

.oi-hero .hs-form input[type="text"],
.oi-hero .hs-form input[type="email"],
.oi-hero .hs-form input[type="tel"],
.oi-hero .hs-form input[type="number"],
.oi-hero .hs-form textarea,
.oi-hero .hs-form select,
.oi-hero-static .hs-form input[type="text"],
.oi-hero-static .hs-form input[type="email"],
.oi-hero-static .hs-form input[type="tel"],
.oi-hero-static .hs-form input[type="number"],
.oi-hero-static .hs-form textarea,
.oi-hero-static .hs-form select {
  width: 100% !important;
  background: #ffffff !important;
  color: #0B0F19 !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  border-radius: 10px !important;
  padding: 12px 12px !important;
  outline: none !important;
}

.oi-hero .hs-form input::placeholder,
.oi-hero .hs-form textarea::placeholder,
.oi-hero-static .hs-form input::placeholder,
.oi-hero-static .hs-form textarea::placeholder {
  color: #64748b !important;
}

.oi-hero .hs-form input:focus,
.oi-hero .hs-form textarea:focus,
.oi-hero .hs-form select:focus,
.oi-hero-static .hs-form input:focus,
.oi-hero-static .hs-form textarea:focus,
.oi-hero-static .hs-form select:focus {
  border-color: rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

.oi-hero .hs-form .hs-button,
.oi-hero .hs-form input[type="submit"],
.oi-hero-static .hs-form .hs-button,
.oi-hero-static .hs-form input[type="submit"] {
  background: #ffffff !important;
  color: #0B0F19 !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.oi-hero .hs-form .hs-button:hover,
.oi-hero .hs-form input[type="submit"]:hover,
.oi-hero-static .hs-form .hs-button:hover,
.oi-hero-static .hs-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- ANALYTICS TILE ON HOME PAGE --- */
a.oi-service.oi-service-analytics,
a.oi-service.oi-service-analytics:visited {
  background: linear-gradient(135deg, #f8f6f0 0%, var(--oi-tile-bg) 100%);
  border-color: rgba(201, 168, 76, 0.30);
  border-left: 3px solid #C9A84C;
}

a.oi-service.oi-service-analytics:hover {
  border-color: #C9A84C;
  border-left: 3px solid #C9A84C;
  background: linear-gradient(135deg, #f5f2e8 0%, var(--oi-tile-hover-bg) 100%);
}

.oi-service-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8B7424;
  background: rgba(201, 168, 76, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* --- BIO SECTION --- */
.oi-bio {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: start;
}

.oi-bio-photo img {
  width: 210px;
  height: auto;
  border-radius: 10px;
  display: block;
  filter: grayscale(100%);
}

.oi-bio-text p:first-child { margin-top: 0; }

@media (max-width: 800px) {
  .oi-bio {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .oi-bio-photo {
    text-align: center;
  }

  .oi-bio-photo img {
    width: 180px;
  }
}

/* --- FOOTER --- */
.oi-footer {
  border-top: 1px solid var(--oi-border);
  padding: 40px 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.oi-footer-link,
.oi-footer-link:visited {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oi-footer-link:hover { opacity: 0.85; }

.oi-footer-sep { opacity: 0.6; }

/* --- PRIVACY PAGE ONLY --- */
.oi-page-privacy .oi-subpage-header { text-align: left; }
.oi-page-privacy .oi-policy { text-align: left; }

.oi-page-privacy .oi-policy h2 {
  font-size: 28px;
  color: #0f172a;
  margin: 40px 0 12px;
  max-width: 72ch;
}

.oi-page-privacy .oi-policy p {
  margin: 0 0 18px;
  font-size: 17px;
  color: #334155;
  max-width: 72ch;
}

.oi-page-privacy .oi-policy a,
.oi-page-privacy .oi-policy a:visited {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.25);
}

.oi-page-privacy .oi-policy a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.5);
}

/* --- MOBILE HAMBURGER MENU --- */
.oi-hamburger {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--oi-border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.oi-hamburger svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
  .oi-hamburger { display: block; }

  .oi-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid var(--oi-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 100;
  }

  .oi-nav.is-open { display: flex; }

  .oi-nav a {
    padding: 14px 30px;
    font-size: 16px;
    border-bottom: 1px solid var(--oi-border);
  }

  .oi-nav a:last-child { border-bottom: none; }

  .oi-grid { grid-template-columns: 1fr; gap: 30px; }
  .oi-hero h1 { font-size: 36px; }
  .oi-hero { padding-top: 40px; }

  .oi-hero-static { padding: 56px 0 56px; }
  .oi-hero-static h1 { font-size: 34px; }

  .oi-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .oi-hero-actions .oi-button,
  .oi-hero-actions .oi-button-secondary {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* SHARED PRICING PATTERN (used across all service pages)              */
/* ------------------------------------------------------------------ */

.oi-muted {
  color: #475569;
  font-size: 15px;
  margin-top: 0;
}

.oi-details {
  border: 1px solid var(--oi-border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.oi-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid var(--oi-border);
}

.oi-details summary::-webkit-details-marker { display: none; }

.oi-details summary::after {
  content: "＋";
  float: right;
  color: #64748b;
  font-weight: 800;
}

.oi-details[open] summary::after { content: "−"; }

.oi-table-wrap {
  border-top: none;
  overflow: auto;
  background: #ffffff;
}

.oi-pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.oi-pricing-table thead th {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 14px;

  /* Branded navy header */
  background: #0B0F19;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.oi-pricing-table tbody td {
  vertical-align: top;
  padding: 14px 14px;
  border-bottom: 1px solid var(--oi-border);
  color: #0f172a;
  font-size: 15px;
}

.oi-pricing-table tbody tr:last-child td { border-bottom: none; }

.oi-pricing-footer { margin-top: 18px; }

/* Pricing tables stay usable on mobile */
@media (max-width: 800px) {
  .oi-pricing-table { min-width: 760px; }
}

/* FORCE navy header on pricing tables */
.oi-pricing-table thead th {
  background: #0B0F19 !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}


/* ================================================================== */
/* ORBITAL ANALYTICS — oa- prefixed styles                            */
/* Gold (#C9A84C) + Navy (#0B0F19) sub-brand palette                  */
/* ================================================================== */

:root {
  --oa-gold: #C9A84C;
  --oa-gold-light: #DAC382;
  --oa-gold-dim: rgba(201, 168, 76, 0.18);
  --oa-navy: #0B0F19;
}

/* Header gold accent stripe */
.oa-header {
  border-bottom: 1px solid var(--oi-border);
  box-shadow: inset 0 -3px 0 0 var(--oa-gold);
}

/* Wordmark gold accent on "ANALYTICS" */
.oa-wordmark-accent {
  color: var(--oa-gold);
}

/* Hero label above h1 */
.oa-hero .oa-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oa-gold);
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
}

/* Hero canvas (same absolute positioning as main site) */
#oa-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Gold-tinted service tiles on analytics page */
div.oa-service {
  display: block;
  padding: 26px 30px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: linear-gradient(135deg, #f8f6f0 0%, var(--oi-tile-bg) 100%);
  margin-bottom: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

div.oa-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(201, 168, 76, 0.18);
  border-color: var(--oa-gold);
  background: linear-gradient(135deg, #f5f2e8 0%, var(--oi-tile-hover-bg) 100%);
}

/* Gold primary button variant */
.oa-button,
.oa-button:visited {
  background: var(--oa-gold) !important;
  color: #0B0F19 !important;
  border-color: var(--oa-gold) !important;
}

.oa-button:hover {
  background: var(--oa-gold-light) !important;
  border-color: var(--oa-gold-light) !important;
}

/* Analytics page hero buttons — gold border on dark background */
.oa-hero .oi-hero-actions .oi-button,
.oa-hero .oi-hero-actions .oi-button:visited,
.oa-hero .oi-hero-actions .oi-button-secondary,
.oa-hero .oi-hero-actions .oi-button-secondary:visited {
  border: 1px solid rgba(201, 168, 76, 0.55);
}

.oa-hero .oi-hero-actions .oi-button:hover,
.oa-hero .oi-hero-actions .oi-button-secondary:hover {
  border-color: rgba(201, 168, 76, 0.85);
}

/* ---- Report gallery ---- */
.oa-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.oa-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--oi-border);
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.oa-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12);
}

.oa-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder until real screenshots are added */
.oa-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f1f0ec 0%, #e8e6e0 100%);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

/* Analytics h2 gold accent underline */
.oa-page .oi-section h2,
.oa-page .oi-section-alt h2 {
  position: relative;
  padding-bottom: 12px;
}

.oa-page .oi-section h2::after,
.oa-page .oi-section-alt h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--oa-gold);
  border-radius: 2px;
}

/* Responsive gallery */
@media (max-width: 800px) {
  .oa-gallery {
    grid-template-columns: 1fr;
  }

  .oa-hero .oa-hero-label {
    font-size: 11px;
  }
}

/* --- LIGHTBOX --- */
.oa-gallery-item {
  cursor: pointer;
}

.oa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.oa-lightbox.is-open {
  display: flex;
}

.oa-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.oa-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.oa-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
}

.oa-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}


