/* =========================================================================
   B2X MARKETING — SHARED LAYOUT/COMPONENT CSS
   Implements the design-system patterns from ui_kits/website/.
   Requires tokens.css (loaded first).
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================================
   NAV — sticky white top bar with brand logo + primary CTA
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--b2x-white);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; }
.nav-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--b2x-black); text-decoration: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-std);
}
.nav-links a:hover { color: var(--b2x-orange); }
.nav-links a[aria-current="page"] {
  color: var(--b2x-orange);
}
.nav-links a.diagnostic-link {
  color: var(--b2x-orange); font-weight: 600;
}
.nav-cta {
  background: var(--b2x-orange) !important;
  color: var(--b2x-white) !important;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-orange);
  transition: background var(--dur-fast) var(--ease-std);
}
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--b2x-white) !important; }

/* Hamburger toggle — hidden on desktop, shown <= 960px */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--dur-fast) var(--ease-std);
}
.nav-toggle:hover { border-color: var(--b2x-orange); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--b2x-orange);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--b2x-black);
  border-radius: 2px;
  transition: transform var(--dur-std) var(--ease-std),
              opacity var(--dur-fast) var(--ease-std);
  transform-origin: center;
}
/* Animate to an X when open */
.nav-inner.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-inner.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-inner.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================================
   HERO — dark teal gradient with triangle motif and bold Poppins headline
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 40px 140px;
  background: linear-gradient(135deg, #003834 0%, #004B45 55%, #00635C 100%);
  color: var(--fg-on-dark);
}
.hero::before {
  /* Thin orange rule, top-left — brand anchor */
  content: "";
  position: absolute; left: 40px; top: 0;
  width: 64px; height: 4px;
  background: var(--accent-on-dark);
}
.hero::after {
  /* Triangle motif, top-right — derived from logo geometry.
     Inline SVG via data-uri so we don't depend on extra files. */
  content: "";
  position: absolute; right: -40px; top: 0;
  width: 520px; height: 520px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><path d='M200 40 L360 200 L200 360 L200 40 Z' fill='%23FE5000' opacity='0.12'/><path d='M200 40 L200 360 L40 200 Z' fill='%23FFFFFF' opacity='0.04'/><path d='M200 200 L360 40 L360 200 Z' fill='%23FE5000' opacity='0.18'/></svg>");
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none;
}
.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.hero-label {
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent-on-dark);
  margin: 0 0 24px;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.015em;
  color: var(--fg-on-dark);
  margin: 0; max-width: 920px;
  text-transform: none;
}
.hero h1 .accent { color: var(--accent-on-dark); }
.hero-tagline {
  font-family: var(--font-body); font-size: 20px; line-height: 1.5;
  color: var(--fg-on-dark-muted);
  margin: 32px 0 40px; max-width: 640px;
}
.hero-cta-group {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.hero-reassurance {
  font-family: var(--font-body); font-size: 14px;
  color: var(--teal-300);
  margin: 16px 0 0;
}

/* Compact hero variant — for inner pages */
.hero-compact { padding: 96px 40px 100px; }
.hero-compact h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none; border-radius: var(--radius-lg);
  transition: all var(--dur-fast) var(--ease-std);
  cursor: pointer;
}
.btn-primary {
  background: var(--b2x-orange); color: var(--b2x-white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--b2x-white);
  padding: 15px 28px;
  border: 1.5px solid var(--b2x-white);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-secondary.on-light {
  color: var(--b2x-black);
  border-color: var(--b2x-black);
}
.btn-secondary.on-light:hover { background: var(--b2x-black); color: var(--b2x-white); }

/* =========================================================================
   SECTIONS — base section frame and shared label/title typography
   ========================================================================= */
.section {
  padding: 96px 40px;
  background: var(--b2x-white);
  border-top: 1px solid var(--border-subtle);
}
.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.section-subtle  { background: var(--neutral-50); }
.section-dark    { background: var(--b2x-black); color: var(--fg-on-dark); border-top: none; }
.section-teal    { background: var(--teal-800); color: var(--fg-on-dark); border-top: none; position: relative; overflow: hidden; }

.section-label {
  font-family: var(--font-heading); font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--b2x-orange);
  margin: 0;
}
.section-dark .section-label,
.section-teal .section-label { color: var(--accent-on-dark); }

.section-title {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--b2x-black);
  margin: 20px 0 0;
  text-wrap: balance;
}
.section-dark .section-title,
.section-teal .section-title { color: var(--fg-on-dark); }

.section-body {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--fg-muted);
  max-width: 760px;
  margin: 24px 0 0;
}
.section-dark .section-body,
.section-teal .section-body { color: var(--fg-on-dark-muted); }

/* =========================================================================
   PROBLEM / TWO-COLUMN — "The Quiet Disruption" pattern
   Eyebrow+title left, narrative+callout right
   ========================================================================= */
.problem-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  align-items: start; margin-top: 56px;
}
.problem-narrative p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.problem-narrative p:first-child { margin-top: 0; }
.problem-narrative p.emphasis {
  color: var(--b2x-black); font-weight: 500;
}
.problem-callout {
  border-left: 3px solid var(--b2x-orange);
  padding: 8px 0 8px 24px;
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--b2x-black); font-weight: 500;
  margin-top: 32px;
}

/* =========================================================================
   PROCESS / PLAN STRIP — dark background, 3 numbered cards with orange left border
   ========================================================================= */
.plan-section { background: var(--b2x-black); color: var(--fg-on-dark); border-top: none; }
.plan-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 56px;
}
.step-card {
  padding: 32px 28px;
  border-left: 2px solid var(--accent-on-dark);
  position: relative;
}
.step-icon {
  display: block;
  color: var(--accent-on-dark);
  font-size: 32px;
  margin-bottom: 16px;
}
.step-number {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--fg-on-black-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 24px;
  color: var(--fg-on-dark);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.step-desc {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--fg-on-black-muted);
  margin: 12px 0 0;
}

/* =========================================================================
   SERVICES GRID — 6-up grid with corner triangle, hairline borders
   ========================================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  margin-top: 48px;
}
.service-card {
  background: var(--b2x-white);
  padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: background var(--dur-fast) var(--ease-std);
}
.service-card::after {
  /* Top-right corner triangle — brand mark echo */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--b2x-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.service-card:hover { background: var(--neutral-50); }
.service-icon {
  color: var(--b2x-black);
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Material Symbols Outlined', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.service-icon.orange { color: var(--b2x-orange); }
.service-icon.teal   { color: var(--teal-600); }
.service-icon.blue   { color: var(--blue-500); }
.service-name {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
  color: var(--b2x-black);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.service-desc {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 10px 0 0;
}

/* =========================================================================
   FOUNDERS BAND — 2 portraits + 3 pillars
   ========================================================================= */
.founders-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin: 56px 0 64px;
}
.founder-card {
  display: flex; gap: 24px; align-items: flex-start;
}
.founder-photo {
  width: 140px; height: 140px; flex: 0 0 140px;
  object-fit: cover; object-position: center 18%;
  background: var(--b2x-black);
  border-radius: 0;
}
.founder-info { flex: 1; }
.founder-role {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--b2x-orange);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 6px;
}
.founder-name {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px;
  color: var(--b2x-black);
  margin: 0 0 8px;
  text-transform: none; letter-spacing: 0;
}
.founder-bio {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.authority-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.pillar-card { padding: 0; }
.pillar-number {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 12px;
}
.pillar-orange .pillar-number { color: var(--b2x-orange); }
.pillar-teal   .pillar-number { color: var(--teal-600); }
.pillar-blue   .pillar-number { color: var(--blue-500); }
.pillar-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px;
  color: var(--b2x-black);
  margin: 0;
  text-transform: none; letter-spacing: 0;
}
.pillar-desc {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 12px 0 0;
}

/* =========================================================================
   CTA BAND — dark teal closing band with triangle motif
   ========================================================================= */
.cta-section {
  position: relative; overflow: hidden;
  padding: 96px 40px;
  background: var(--teal-800);
  color: var(--fg-on-dark);
}
.cta-section::after {
  content: "";
  position: absolute; right: -80px; top: -60px;
  width: 640px; height: 420px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'><path d='M300 40 L560 200 L300 360 Z' fill='%23FE5000' opacity='0.15'/><path d='M300 40 L300 360 L40 200 Z' fill='%23FAF6F4' opacity='0.10'/></svg>");
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none;
}
.cta-content {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.cta-title {
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--fg-on-dark);
  margin: 20px 0 20px;
  max-width: 900px;
  text-wrap: balance;
}
.cta-body {
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  color: var(--fg-on-dark-muted);
  margin: 0 0 36px; max-width: 640px;
}
.cta-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* =========================================================================
   FEATURE CARDS — generic 3-up (or 4-up) card grid
   Used for problem cards, differentiators, principles, etc.
   Variants:  .card-grid-3 / .card-grid-4
   Card accents: add .accent-orange / .accent-teal / .accent-blue
   Dark surface: wrap in .section-dark, or add .feature-cards.on-dark
   ========================================================================= */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }

.feature-card {
  background: var(--b2x-white);
  border: 1px solid var(--border-subtle);
  padding: 32px 28px;
  transition: box-shadow var(--dur-std) var(--ease-std), transform var(--dur-std) var(--ease-std);
}
.feature-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.feature-card.accent-orange { border-top: 3px solid var(--b2x-orange); }
.feature-card.accent-teal   { border-top: 3px solid var(--teal-500); }
.feature-card.accent-blue   { border-top: 3px solid var(--blue-500); }

.feature-card-icon {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
  color: var(--b2x-orange);
}
.accent-teal .feature-card-icon { color: var(--teal-600); }
.accent-blue .feature-card-icon { color: var(--blue-500); }

.feature-card-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  color: var(--b2x-black);
  margin: 0 0 10px;
  text-transform: none; letter-spacing: 0;
}
.feature-card-desc {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.section-dark .feature-card,
.section-teal .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.section-dark .feature-card-title,
.section-teal .feature-card-title { color: var(--fg-on-dark); }
.section-dark .feature-card-desc,
.section-teal .feature-card-desc { color: var(--fg-on-black-muted); }
.section-dark .feature-card.accent-orange,
.section-teal .feature-card.accent-orange { border-top-color: var(--accent-on-dark); }
.section-dark .feature-card.accent-teal,
.section-teal .feature-card.accent-teal { border-top-color: var(--teal-300); }
.section-dark .feature-card.accent-blue,
.section-teal .feature-card.accent-blue { border-top-color: var(--blue-300); }
.section-dark .feature-card-icon { color: var(--accent-on-dark); }
.section-dark .accent-teal .feature-card-icon { color: var(--teal-300); }
.section-dark .accent-blue .feature-card-icon { color: var(--blue-300); }

/* =========================================================================
   PROCESS STEP ROWS — vertical numbered list (used on How We Work)
   Big teal number + icon column, content column with deliverable callout.
   ========================================================================= */
.process-rows { margin-top: 48px; }
.process-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 40px; align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.process-row:first-child { padding-top: 8px; }
.process-row:last-child  { border-bottom: none; }

.process-row-marker {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
}
.process-row-number {
  font-family: var(--font-heading); font-weight: 200;
  font-size: 4rem; line-height: 1;
  color: var(--teal-600);
  letter-spacing: -0.02em;
}
.process-row-icon {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 32px;
  color: var(--teal-600);
}
.process-row-body { max-width: 760px; }
.process-row-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 24px;
  color: var(--b2x-black);
  margin: 0 0 12px;
  text-transform: none; letter-spacing: 0;
}
.process-row-desc {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.process-row-deliverable {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--teal-700);
  border-left: 3px solid var(--teal-300);
  padding-left: 16px;
  margin: 16px 0 0;
}
.process-row-deliverable strong {
  font-weight: 600; color: var(--b2x-black);
}

/* =========================================================================
   ENGAGEMENT — narrative paragraphs + emphasis callout pattern
   ========================================================================= */
.narrative {
  margin: 32px 0 0;
  max-width: 760px;
}
.narrative p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.narrative p:last-child { margin-bottom: 0; }
.narrative strong { color: var(--b2x-black); font-weight: 600; }

.callout-orange {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--b2x-black);
  border-left: 4px solid var(--b2x-orange);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
  max-width: 820px;
  font-weight: 500;
}

/* =========================================================================
   FOOTER — dark, logo + nav + copyright
   ========================================================================= */
.footer {
  padding: 56px 40px 36px;
  background: var(--b2x-black);
  color: var(--fg-on-dark);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-logo-img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg-on-black-muted);
  margin: 18px 0 0; line-height: 1.5;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 36px; flex-wrap: wrap;
}
.footer-links a {
  color: var(--fg-on-dark); text-decoration: none;
  font-family: var(--font-ui); font-size: 14px;
  transition: color var(--dur-fast) var(--ease-std);
}
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-copyright {
  border-top: 1px solid var(--neutral-700);
  margin-top: 40px; padding-top: 24px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--neutral-400);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .nav-inner {
    padding: 16px 24px;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav-toggle { display: flex; }

  /* Collapsed state: hide the menu */
  .nav-links {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 16px -24px 0;
    padding: 8px 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--b2x-white);
  }
  .nav-inner.is-open .nav-links {
    display: flex;
    animation: navSlideDown var(--dur-std) var(--ease-out);
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a.nav-cta {
    margin: 12px 24px 8px;
    padding: 12px 18px;
    text-align: center;
    border-bottom: 0;
    border-radius: var(--radius-lg);
  }
  .hero { padding: 80px 24px 100px; }
  .hero::after { width: 320px; height: 320px; right: -60px; opacity: 0.6; }
  .section, .plan-section, .cta-section, .footer { padding-left: 24px; padding-right: 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan-steps, .services-grid, .authority-pillars { grid-template-columns: 1fr; gap: 24px; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .process-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .process-row-marker { flex-direction: row; align-items: center; gap: 20px; }
  .process-row-number { font-size: 3rem; }
  .founders-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .founder-card { flex-direction: column; }
  .founder-photo { width: 100%; height: 220px; flex: none; }
}

/* =========================================================================
   LONG-FORM CONTENT — blog posts and legal pages
   Modernized port of the per-page article styles. Single source of truth.
   ========================================================================= */

/* ---- Material Symbols utility ---- */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ---- Blog post hero — same gradient + triangle motif as the marketing hero ---- */
.blog-hero {
  position: relative; overflow: hidden;
  padding: 96px 40px 100px;
  background: linear-gradient(135deg, #003834 0%, #004B45 55%, #00635C 100%);
  color: var(--fg-on-dark);
}
.blog-hero::before {
  content: "";
  position: absolute; left: 40px; top: 0;
  width: 64px; height: 4px;
  background: var(--accent-on-dark);
}
.blog-hero::after {
  content: "";
  position: absolute; right: -40px; top: 0;
  width: 520px; height: 520px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><path d='M200 40 L360 200 L200 360 L200 40 Z' fill='%23FE5000' opacity='0.12'/><path d='M200 40 L200 360 L40 200 Z' fill='%23FFFFFF' opacity='0.04'/><path d='M200 200 L360 40 L360 200 Z' fill='%23FE5000' opacity='0.18'/></svg>");
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none;
}
.blog-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--w-bold);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--fg-on-dark);
  margin: 0; max-width: 920px;
  text-transform: none;
  text-wrap: balance;
}
.blog-hero .byline {
  font-family: var(--font-heading); font-weight: var(--w-medium);
  font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent-on-dark);
  margin: 0 0 24px;
}
.blog-hero .abstract {
  font-family: var(--font-body); font-size: 20px; line-height: 1.5;
  color: var(--fg-on-dark-muted);
  margin: 32px 0 0; max-width: 680px;
}

/* ---- Featured image strip (between hero and body) ---- */
.featured-image {
  max-width: var(--container-max);
  margin: 0 auto; padding: 48px 40px 0;
  text-align: center;
}
.featured-image img {
  width: 100%; max-width: 1100px;
  border-radius: var(--radius-lg);
  display: block; margin: 0 auto;
}

/* ---- Article body typography ---- */
.article-body {
  max-width: 880px; margin: 0 auto;
  padding: 48px 40px 80px;
  background: var(--b2x-white);
}
.article-body h2 {
  font-family: var(--font-heading);
  font-weight: var(--w-semibold);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  color: var(--b2x-black);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-transform: none; letter-spacing: 0;
  line-height: var(--lh-snug);
}
.article-body h3 {
  font-family: var(--font-heading);
  font-weight: var(--w-semibold);
  font-size: 1.2rem;
  color: var(--teal-600);
  margin: 24px 0 8px;
  letter-spacing: 0;
}
.article-body p {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.8;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.article-body strong { color: var(--neutral-700); font-weight: var(--w-semibold); }
.article-body a { color: var(--teal-500); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--b2x-orange); }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 20px; }
.article-body li {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7;
  color: var(--fg-muted); margin: 0 0 8px;
}
.article-body blockquote {
  border-left: 4px solid var(--b2x-orange);
  padding: 4px 0 4px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--fg-subtle);
}

/* ---- Sources card (citations at end of article) ---- */
.sources-card {
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
}
.sources-card h2 {
  font-family: var(--font-heading);
  font-weight: var(--w-semibold);
  font-size: 1.2rem;
  color: var(--b2x-black);
  margin: 0 0 16px;
  padding-top: 0; border-top: none;
  text-transform: none; letter-spacing: 0;
}
.sources-card ul { padding-left: 20px; margin: 0; }
.sources-card li {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: var(--fg-subtle);
  margin: 0 0 6px;
}
.sources-card a { color: var(--teal-500); text-decoration: underline; font-size: 15px; }
.sources-card a:hover { color: var(--b2x-orange); }

/* ---- Back-to-blog link ---- */
.back-to-blog { padding: 40px 24px; text-align: center; }
.back-to-blog a {
  font-family: var(--font-ui);
  font-weight: var(--w-medium); font-size: 16px;
  color: var(--teal-500); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std);
}
.back-to-blog a:hover { color: var(--b2x-orange); }

/* =========================================================================
   LEGAL PAGES — privacy policy, terms, etc. (long-form structured doc)
   ========================================================================= */
.legal-section { padding: 80px 40px; background: var(--b2x-white); }
.legal-inner { max-width: 880px; margin: 0 auto; }
.legal-meta {
  font-family: var(--font-mono);
  font-weight: var(--w-medium); font-size: 13px;
  color: var(--fg-subtle);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 40px;
}
.legal-inner > p {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.75;
  color: var(--neutral-700);
  margin: 0 0 20px;
}
.legal-inner h2 {
  font-family: var(--font-heading);
  font-weight: var(--w-light);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--b2x-black); line-height: 1.2;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-inner h3 {
  font-family: var(--font-heading);
  font-weight: var(--w-semibold); font-size: 1.2rem;
  color: var(--b2x-black);
  margin: 28px 0 12px;
  text-transform: none; letter-spacing: 0;
}
.legal-inner h4 {
  font-family: var(--font-heading);
  font-weight: var(--w-semibold); font-size: 1rem;
  color: var(--neutral-700);
  margin: 24px 0 10px;
  letter-spacing: 0.02em;
}
.legal-inner ul { list-style: disc; padding-left: 24px; margin: 0 0 20px; }
.legal-inner li {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7;
  color: var(--neutral-700);
  margin: 0 0 8px;
}
.legal-inner a {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-std);
}
.legal-inner a:hover { color: var(--b2x-orange); }
.legal-inner code {
  font-family: var(--font-mono);
  background: var(--neutral-100);
  padding: 1px 6px; border-radius: var(--radius-md);
  font-size: 0.95em;
  color: var(--neutral-700);
}
.legal-inner strong { color: var(--b2x-black); font-weight: var(--w-semibold); }

.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.legal-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.5;
  color: var(--neutral-700);
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: var(--neutral-50);
  font-weight: var(--w-semibold);
  color: var(--b2x-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ---- Long-form responsive ---- */
@media (max-width: 960px) {
  .blog-hero { padding: 80px 24px 88px; }
  .blog-hero::after { width: 320px; height: 320px; right: -60px; opacity: 0.6; }
  .blog-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .blog-hero .abstract { font-size: 17px; }
  .featured-image { padding: 32px 24px 0; }
  .article-body { padding: 36px 24px 56px; }
  .legal-section { padding: 56px 24px; }
}
