﻿:root {
  --forest-deep: #0F3D2E;
  --forest-mid:  #1B5E3E;
  --forest-light:#2D8B5F;
  --sat-blue:    #1E9CD8;
  --ember-red:   #C8341A;
  --ember-orange:#E8711A;
  --ember-amber: #F2B23E;
  
  /* Dark mode mappings by default */
  --ink:         #FAF8F3; /* Light in dark mode */
  --charcoal:    #EAF0E8; /* Light primary text */
  --slate:       #8A9AAA;
  --smoke:       #4A5568;
  --paper:       #131820;
  --paper-light: #0B0E12;
  --card-green:  #162E25;
  --card-ember:  #2D1916;
  --card-amber:  #2E2516;
  --card-slate:  #1E2530;
  --line:        rgba(255,255,255,0.07);
  --white:       #FFFFFF;
  
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  
  --header-bg:   rgba(7,9,12,0.92);
  --hover-bg:    rgba(255,255,255,0.06);
}

  [data-theme="light"] {
    --ink:         #0F1A14;
    --charcoal:    #1F2A23;
    --slate:       #475569;
    --smoke:       #94A3B8;
    --paper:       #F5F1EA;
    --paper-light: #FAF8F3;
    --card-green:  #EAF2EC;
    --card-ember:  #FCEEE6;
    --card-amber:  #FBF3DD;
    --card-slate:  #ECEFF3;
    --line:        #E2E0DA;
    --white:       #FFFFFF;
    
    --header-bg:   rgba(255,255,255,0.96);
    --hover-bg:    rgba(0,0,0,0.05);
  }
  
  /* Logo preservation for light mode */
  [data-theme="light"] .site-logo img {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.9);
    transition: filter 0.3s ease;
  }
  
  /* Theme toggle styling */
  .theme-toggle-report {
    background: none;
    border: none;
    color: var(--slate);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    margin-left: 12px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
  }
  .theme-toggle-report:hover {
    color: var(--ink);
    transform: scale(1.08);
    background: var(--hover-bg);
  }
  .theme-toggle-report svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
  }
  .sun-icon { display: none; }
  .moon-icon { display: block; }
  [data-theme="light"] .sun-icon { display: block; }
  [data-theme="light"] .moon-icon { display: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper-light);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--ember-orange); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; color: var(--charcoal); flex-wrap: wrap; }
.site-nav a { color: var(--charcoal); }
.site-nav a:hover { color: var(--ember-orange); }
.cta-btn {
  display: inline-block; padding: 10px 20px;
  background: var(--ember-orange); color: var(--white) !important;
  border-radius: 4px; font-weight: 600; font-size: 14px;
}
.cta-btn:hover { background: var(--ember-red); color: var(--white) !important; }
@media (max-width: 980px) { .site-nav { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(232,113,26,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(30,156,216,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ember-amber); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head); font-size: 52px; line-height: 1.12;
  font-weight: 700; margin-bottom: 24px; max-width: 980px;
}
.hero h1 em { color: var(--ember-amber); font-style: italic; }
.hero .lead {
  font-size: 19px; line-height: 1.55; max-width: 820px;
  color: rgba(255,255,255,0.9); margin-bottom: 32px;
}
.hero-disclaimer {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  max-width: 820px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 16px;
}
@media (max-width: 760px) {
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { padding: 70px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--ink); color: var(--white); }
section.dark p, section.dark li { color: rgba(255,255,255,0.85); }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ember-orange); margin-bottom: 14px;
}
section.dark .section-eyebrow { color: var(--ember-amber); }
.section-title {
  font-family: var(--font-head); font-size: 38px; line-height: 1.2;
  font-weight: 700; color: var(--ink); margin-bottom: 16px; max-width: 920px;
}
section.dark .section-title { color: var(--white); }
.section-lead {
  font-size: 17px; line-height: 1.65; color: var(--slate);
  max-width: 860px; margin-bottom: 36px;
}
section.dark .section-lead { color: rgba(255,255,255,0.78); }
@media (max-width: 760px) {
  section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  .section-lead { font-size: 15.5px; }
}

/* ============================================================
   FRAMING: 5 categories overview
   ============================================================ */
.cat-overview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 980px) { .cat-overview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-overview { grid-template-columns: 1fr; } }
.cat-tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest-mid);
  border-radius: 6px;
  padding: 18px 16px;
}
.cat-tag:nth-child(1) { border-top-color: var(--forest-light); }
.cat-tag:nth-child(2) { border-top-color: var(--ember-orange); }
.cat-tag:nth-child(3) { border-top-color: var(--sat-blue); }
.cat-tag:nth-child(4) { border-top-color: var(--ember-amber); }
.cat-tag:nth-child(5) { border-top-color: var(--ember-red); }
.cat-tag .label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 6px;
}
.cat-tag h4 {
  font-family: var(--font-head); font-size: 15px;
  color: var(--forest-deep); margin-bottom: 8px; line-height: 1.3;
}
.cat-tag .companies {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

/* ============================================================
   COMPETITOR PROFILE CARDS â€” long form
   ============================================================ */
.profile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 22px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.profile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--forest-mid);
  border-radius: 10px 10px 0 0;
}
.profile.cat-prevention::before { background: var(--forest-light); }
.profile.cat-detection::before { background: var(--ember-orange); }
.profile.cat-vegetation::before { background: var(--ember-amber); }
.profile.cat-mrv::before { background: var(--sat-blue); }
.profile.cat-eo::before { background: var(--forest-mid); }
.profile.cat-insurance::before { background: var(--ember-red); }
.profile.cat-restore::before { background: var(--forest-deep); }

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-header .name-block { flex: 1; min-width: 240px; }
.profile-cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember-orange);
  margin-bottom: 8px;
}
.profile.cat-prevention .profile-cat-label { color: var(--forest-light); }
.profile.cat-detection .profile-cat-label { color: var(--ember-orange); }
.profile.cat-vegetation .profile-cat-label { color: var(--ember-amber); }
.profile.cat-mrv .profile-cat-label { color: var(--sat-blue); }
.profile.cat-eo .profile-cat-label { color: var(--forest-mid); }
.profile.cat-insurance .profile-cat-label { color: var(--ember-red); }
.profile.cat-restore .profile-cat-label { color: var(--forest-deep); }

.profile h3 {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.15;
}
.profile-tagline {
  font-size: 15px;
  color: var(--slate);
  font-style: italic;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-width: 280px;
}
@media (max-width: 760px) {
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .profile-stats { grid-template-columns: 1fr; }
}
.stat-box {
  background: var(--paper-light);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
}
.stat-box .v {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.1;
  margin-bottom: 2px;
}
.stat-box .l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--smoke);
}

.profile-body { font-size: 15px; line-height: 1.7; }
.profile-body p { margin-bottom: 14px; }
.profile-body h4 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--forest-deep);
  margin: 24px 0 10px;
}
.profile-body strong { color: var(--charcoal); font-weight: 700; }

.diff-block {
  background: linear-gradient(135deg, var(--card-ember) 0%, #FBF3DD 100%);
  border-left: 4px solid var(--ember-orange);
  padding: 22px 26px;
  border-radius: 0 6px 6px 0;
  margin: 22px 0 6px;
}
.diff-block h4 {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ember-red);
  margin: 0 0 8px;
  font-weight: 700;
}
.diff-block p {
  font-size: 14.5px;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}
.diff-block strong { color: var(--ember-red); }

@media (max-width: 760px) {
  .profile { padding: 28px 22px; }
  .profile h3 { font-size: 24px; }
  .profile-body { font-size: 14.5px; }
}

/* ============================================================
   MASTER MATRIX
   ============================================================ */
.matrix-hint {
  display: none;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--smoke);
  font-style: italic;
}
@media (max-width: 1100px) { .matrix-hint { display: block; } }
.matrix-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  -webkit-overflow-scrolling: touch;
}
.matrix {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
  background: var(--white); min-width: 1080px;
}
.matrix thead { background: var(--forest-deep); color: var(--white); }
.matrix th {
  padding: 14px 8px; text-align: center; font-weight: 600;
  font-size: 11px; letter-spacing: 0.4px;
  border-right: 1px solid rgba(255,255,255,0.10);
  vertical-align: bottom;
}
.matrix th.cap-col { text-align: left; padding: 14px 12px; }
.matrix th:last-child { border-right: none; }
.matrix th.fs-th { background: var(--ember-orange); color: var(--white); }
.matrix td {
  padding: 10px 6px; text-align: center;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  color: var(--charcoal);
  font-size: 12px;
}
.matrix td:last-child { border-right: none; }
.matrix td.cap-row {
  text-align: left; padding: 10px 12px;
  font-weight: 600; color: var(--forest-deep);
  background: var(--paper-light); white-space: nowrap;
}
.matrix td.fs-cell { background: var(--card-ember); font-weight: 600; }
.matrix .yes { color: var(--forest-light); font-size: 18px; font-weight: 700; }
.matrix .partial { color: var(--ember-amber); font-size: 18px; font-weight: 700; }
.matrix .no { color: #C5C5C5; font-size: 14px; font-weight: 700; }
.matrix-legend {
  margin-top: 14px; font-size: 12.5px; color: var(--slate);
  display: flex; gap: 22px; flex-wrap: wrap;
}
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-legend .yes { color: var(--forest-light); }
.matrix-legend .partial { color: var(--ember-amber); }
.matrix-legend .no { color: #C5C5C5; }

/* ============================================================
   CONCLUSION
   ============================================================ */
.conclusion {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 50%, var(--forest-light) 100%);
  color: var(--white);
  padding: 90px 0;
}
.conclusion .container { max-width: 880px; }
.conclusion h2 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--white);
}
.conclusion h2 em { color: var(--ember-amber); font-style: italic; }
.conclusion p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
}
.conclusion .signoff {
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember-amber);
  font-weight: 600;
}

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta-footer { background: var(--ink); color: var(--white); padding: 70px 0; text-align: center; }
.cta-footer h2 { font-family: var(--font-head); font-size: 32px; margin-bottom: 14px; }
.cta-footer p {
  font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 28px;
  max-width: 660px; margin-left: auto; margin-right: auto;
}
.cta-footer .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 4px; font-weight: 600; font-size: 14.5px; }
.btn-primary { background: var(--ember-orange); color: var(--white) !important; }
.btn-primary:hover { background: var(--ember-red); }
.btn-secondary { background: transparent; color: var(--white) !important; border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.10); }
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.5); padding: 26px 0;
  font-size: 12.5px; text-align: center; border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .tagline {
  color: var(--ember-amber); font-style: italic; margin-bottom: 8px;
  font-family: var(--font-head); font-size: 14px;
}
