/* ═══════════════════════════════════════════════
   EverydAI — shared subpage stylesheet
   Extracted lean from index.html. One source of truth
   for every page except the homepage (for now).
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg:#fafaf7;
  --surface:#f4f7fb;
  --card:#ffffff;
  --blue:#1d4ed8;
  --blue-hover:#1e40af;
  --blue-soft:#eef3ff;
  --ink:#0b1b34;
  --body:#475569;
  --muted:#64748b;
  --border:#e6ebf2;
  --shadow-sm:0 1px 2px rgba(11,27,52,.06);
  --shadow:0 12px 32px rgba(11,27,52,.08);
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--body); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--blue); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: ""; display: inline-block; width: 1.4rem; height: 2px;
  background: var(--blue); border-radius: 2px;
  vertical-align: middle; margin-right: 0.6rem; transform: translateY(-2px);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
nav.scrolled { box-shadow: 0 1px 0 rgba(29,78,216,0.14), 0 10px 34px rgba(11,27,52,0.08); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.6rem; color: var(--ink);
}
.nav-logo-img { height: 32px; width: 32px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: right .25s ease;
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: var(--blue); color: #ffffff !important;
  padding: 0.55rem 1.2rem; border-radius: 4px;
  font-weight: 600 !important; font-size: 0.875rem;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-hover) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #ffffff;
  padding: 0.85rem 2rem; border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(29,78,216,0.28); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }

/* ── PAGE HEADER ── */
.page-head { padding: 10rem 0 3.5rem; border-bottom: 1px solid var(--border); }
.page-head-meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.page-head-meta .meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.meta-kind { color: var(--muted); }
.meta-industry { color: var(--blue); }
.meta-tier { color: #1d4ed8; }
.page-head .standfirst {
  margin-top: 1.5rem; max-width: 620px;
  font-size: 1.12rem; line-height: 1.7; color: var(--body);
}

/* ── FACT STRIP ── */
.fact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 3rem;
}
.fact {
  background: var(--card); padding: 1.75rem;
}
.fact-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--blue); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.4rem;
}
.fact p { font-size: 0.85rem; line-height: 1.6; }

/* ── PROSE ── */
.prose { padding: 3.5rem 0; }
.prose + .prose { padding-top: 0; }
.prose h2 { margin-bottom: 1.25rem; }
.prose p { margin-bottom: 1.15rem; font-size: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* ── PULL QUOTE ── */
.pullquote { padding: 3.5rem 0; }
.pullquote-inner {
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 12px 12px 0;
  padding: 2.25rem 2.5rem;
}
.pullquote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em;
}
.pullquote-cite { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.pullquote-cite strong { color: var(--ink); font-weight: 600; }

/* ── BUILD CARD ── */
.build-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 2.25rem; box-shadow: var(--shadow-sm); margin: 1rem 0 0;
}
.build-card h3 { margin-bottom: 1rem; }
.build-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.build-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--body); line-height: 1.6; }
.build-list li::before {
  content: ''; position: absolute; left: 0; top: 0.58rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.build-list strong { color: var(--ink); font-weight: 600; }

/* ── CASE CARDS (index) ── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.case-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(29,78,216,0.14); border-color: rgba(29,78,216,0.32); }
.case-card-industry {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.9rem;
}
.case-card-metric {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.case-card-quote { font-size: 0.9rem; line-height: 1.7; flex: 1; }
.case-card-foot {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; font-weight: 600;
}
.case-card-name { color: var(--ink); }
.case-card-link { color: var(--blue); }
.case-card-soon { color: var(--muted); font-weight: 500; font-size: 0.78rem; }

/* ── CROSS LINKS ── */
.crosslinks { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.crosslinks h2 { margin-bottom: 0.75rem; }
.crosslinks-sub { margin-bottom: 2rem; max-width: 560px; }
.crosslinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.crosslink {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.crosslink:hover { border-color: rgba(29,78,216,0.32); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(29,78,216,0.08); }
.crosslink-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.crosslink-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── CTA BAND ── */
.cta-band { text-align: center; padding: 5rem 0; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 540px; margin: 0 auto 2rem; }
.cta-band .btn-primary { margin-bottom: 1.5rem; display: inline-block; }
.cta-band .cta-note { max-width: 560px; margin: 0.55rem auto 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.cta-note::before { content: '✓'; color: var(--blue); font-weight: 700; margin-right: 0.4rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.footer-brand-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; max-width: 23rem; line-height: 1.65; }
.footer-h {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink); margin: 0 0 1rem; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { padding-top: 1.5rem; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--blue); }

/* ── ACCESSIBILITY / MOTION ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .case-grid, .crosslinks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .page-head { padding: 8rem 0 2.75rem; }
  .fact-strip { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem; gap: 1.25rem;
  }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .pullquote-inner { padding: 1.75rem 1.5rem; }
}

/* ═══════════════════════════════════════════════
   CONVERSION LAYER — questionnaire modal + mobile dock
   Injected on every subpage by /assets/site.js
   ═══════════════════════════════════════════════ */

/* ── QUESTIONNAIRE MODAL ── */
.q-overlay {
  position: fixed; inset: 0;
  background: rgba(11,27,52,0.55);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; transition: opacity 0.25s ease;
}
.q-overlay.visible { opacity: 1; }
.q-overlay[hidden] { display: none; }

.q-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; padding: 2.5rem; position: relative;
}
.q-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.75rem;
}
.q-modal-header h3 { color: var(--ink); font-size: 1.25rem; }
.q-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0.25rem;
  flex-shrink: 0; transition: color 0.15s;
}
.q-close:hover { color: var(--ink); }
.q-intro { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.65; }

.q-progress { margin-bottom: 2rem; }
.q-progress-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem; }
.q-progress-fill { height: 100%; background: var(--blue); border-radius: 2px; transition: width 0.4s ease; width: 14.3%; }
.q-progress-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.q-step { display: none; }
.q-step.active { display: block; }
.q-label {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem;
}
.q-hint { font-size: 0.825rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; }

.q-textarea, .q-input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  padding: 0.9rem 1rem; transition: border-color 0.2s;
}
.q-textarea { line-height: 1.6; resize: vertical; }
.q-textarea:focus, .q-input:focus { outline: none; border-color: var(--blue); }
.q-textarea::placeholder, .q-input::placeholder { color: var(--muted); opacity: 0.6; }

.q-options { display: flex; flex-direction: column; gap: 0.6rem; }
.q-option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: border-color 0.2s, background 0.15s;
  font-size: 0.9rem; color: var(--body);
}
.q-option:hover { border-color: rgba(29,78,216,0.4); color: var(--ink); }
.q-option input[type="radio"] { accent-color: var(--blue); flex-shrink: 0; }
.q-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }

.q-fields { display: flex; flex-direction: column; gap: 0.75rem; }

.q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; gap: 1rem; }
.q-btn-back {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 0.7rem 1.25rem; border-radius: 4px; cursor: pointer;
  font-size: 0.875rem; font-family: 'Inter', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.q-btn-back:hover { color: var(--ink); border-color: var(--ink); }
.q-nav .btn-primary { border: none; cursor: pointer; }

.q-success { text-align: center; padding: 2rem 0; }
.q-success[hidden] { display: none; }
.q-success-icon {
  width: 56px; height: 56px;
  background: var(--blue-soft); border: 1px solid rgba(29,78,216,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--blue); margin: 0 auto 1.5rem;
}
.q-success h3 { color: var(--ink); margin-bottom: 0.75rem; }
.q-success p { font-size: 0.9rem; color: var(--muted); }

/* ── STICKY MOBILE DOCK ── */
.mobile-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid rgba(29,78,216,0.2);
  box-shadow: 0 -8px 30px rgba(11,27,52,0.12);
  transform: translateY(125%);
  transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.mobile-dock.show { transform: translateY(0); }
.mobile-dock-meta { display: flex; flex-direction: column; line-height: 1.25; }
.mobile-dock-meta strong {
  color: var(--ink); font-size: 0.92rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}
.mobile-dock-meta span { color: var(--muted); font-size: 0.72rem; }
.mobile-dock .btn-primary { white-space: nowrap; padding: 0.72rem 1.15rem; font-size: 0.9rem; }
@media (max-width: 768px) { .mobile-dock { display: flex; } }
@media (max-width: 768px) { footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); } }

@media (max-width: 768px) {
  .q-modal { padding: 1.75rem 1.25rem; }
}

/* ═══════════════════════════════════════════════
   PORTAL + SYSTEMS PAGES
   ═══════════════════════════════════════════════ */

/* ── PORTAL CAPABILITIES ── */
.cap-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.cap-col-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue);
  margin-bottom: 1rem;
}
.cap-col { display: flex; flex-direction: column; gap: 1rem; }
.cap-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(29,78,216,0.12); border-color: rgba(29,78,216,0.3); }
.cap-verb {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.6rem;
}
.cap-verb::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); transform: translateY(-1px); }
.cap-what { font-size: 0.92rem; color: var(--body); line-height: 1.65; margin-top: 0.5rem; }
.cap-proof { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
@media (max-width: 820px) { .cap-columns { grid-template-columns: 1fr; } }

/* ── SURFACE BAND ── */
.band-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-narrow { max-width: 760px; margin: 0 auto; }
.band-narrow h2 { margin-bottom: 1.25rem; }
.band-narrow p { margin-bottom: 1.1rem; }
.band-narrow p:last-child { margin-bottom: 0; }
.statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600;
  color: var(--ink); line-height: 1.5; letter-spacing: -0.01em;
}

/* ── SYSTEMS LADDERS ── */
.tier-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.tier-key-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.6rem;
}
.tier-key-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  display: block; margin-bottom: 0.35rem;
}
.tier-key-tag {
  display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.tier-key-card p { font-size: 0.875rem; line-height: 1.6; }
.tag-auto { color: var(--muted); }
.tag-agent { color: var(--blue); }
.tag-fleet { color: #1e40af; }
@media (max-width: 820px) { .tier-key { grid-template-columns: 1fr; } }

.sys-block {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 2.25rem; box-shadow: var(--shadow-sm); margin-top: 1.25rem;
}
.sys-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.sys-block h3 { font-size: 1.25rem; }
.sys-side { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.sys-pain { font-size: 0.95rem; color: var(--body); margin-bottom: 1.4rem; }
.sys-ladder { display: flex; flex-direction: column; }
.sys-rung {
  display: grid; grid-template-columns: 7.5rem 12rem 1fr; gap: 1rem; align-items: baseline;
  padding: 0.9rem 0; border-top: 1px solid var(--border);
}
.sys-rung-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sys-rung-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.sys-rung-desc { font-size: 0.875rem; color: var(--body); line-height: 1.6; }
.sys-works { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--border); font-size: 0.78rem; color: var(--muted); }
@media (max-width: 760px) {
  .sys-block { padding: 1.5rem 1.25rem; }
  .sys-rung { grid-template-columns: 1fr; gap: 0.2rem; }
}
.sys-group-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue);
  margin-top: 3rem;
}
.sys-group-label:first-of-type { margin-top: 2.5rem; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES + HOW IT WORKS
   ═══════════════════════════════════════════════ */

/* ── LEGAL PROSE ── */
.legal-body { font-size: 0.95rem; line-height: 1.75; color: var(--body); padding: 3rem 0 1rem; }
.legal-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600;
  color: var(--ink); margin: 2rem 0 0.75rem;
}
.legal-body p, .legal-body li { margin-bottom: 0.85rem; }
.legal-body ul { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.5rem; }
.legal-note {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.85rem; color: var(--muted);
}

/* ── METHOD LOOP ── */
.method-loop { margin-top: 3rem; }
.method-track {
  display: flex; align-items: stretch; gap: 0.75rem; flex-wrap: wrap;
}
.method-stage {
  flex: 1; min-width: 180px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem 1.5rem; position: relative; box-shadow: var(--shadow-sm);
}
.method-stage-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  display: block; margin-bottom: 0.4rem;
}
.method-stage-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem;
  color: var(--ink); display: block; margin-bottom: 0.35rem; letter-spacing: -0.01em;
}
.method-stage p { font-size: 0.82rem; line-height: 1.55; }
.method-arrow {
  align-self: center; color: var(--blue); font-size: 1.1rem; font-weight: 700; flex: 0 0 auto;
}
.method-loopback {
  margin-top: 1.25rem; text-align: center; font-size: 0.85rem; color: var(--muted);
}
.method-loopback strong { color: var(--blue); font-weight: 600; }
@media (max-width: 900px) {
  .method-track { flex-direction: column; }
  .method-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1.5rem; }
}

/* ── PROCESS STEPS ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 2.5rem;
}
.step {
  background: var(--card); padding: 2.25rem 1.75rem;
  transition: background 0.2s ease;
}
.step:hover { background: var(--blue-soft); }
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700;
  color: var(--blue); opacity: 0.25; line-height: 1; margin-bottom: 1.25rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.88rem; }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

/* ── RUN CARDS ── */
.run-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 1000px; margin: 2.5rem auto 0; align-items: stretch;
}
.run-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 2.25rem 2rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.run-eyebrow {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem;
}
.run-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.run-card > p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.run-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.run-steps li { position: relative; padding-left: 1.4rem; font-size: 0.92rem; color: var(--body); line-height: 1.6; }
.run-steps li::before {
  content: ''; position: absolute; left: 0; top: 0.6rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.run-steps strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.1rem; }
@media (max-width: 880px) { .run-grid { grid-template-columns: 1fr; } }

.integration-note { max-width: 680px; margin: 3rem auto 0; text-align: center; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.integration-note h3 { margin-bottom: 0.75rem; }
.integration-note p { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════
   THE DEBRIEF PAGE
   ═══════════════════════════════════════════════ */

/* ── EXAMPLE WEEKLY SCREEN ── */
.db-frame { max-width: 640px; margin: 3rem auto 0; }
.db-example-tag {
  text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem;
}
.db-screen {
  background: var(--card); border: 1px solid rgba(29,78,216,0.28); border-radius: 16px;
  padding: 1.9rem 2rem; box-shadow: 0 24px 60px rgba(13,42,92,0.12);
}
.db-week {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}
.db-headline {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 1.4rem;
}
.db-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.db-num { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; }
.db-num-val {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.db-num-delta { font-size: 0.75rem; font-weight: 700; margin-left: 0.3rem; }
.db-up { color: var(--blue); }
.db-down { color: var(--muted); }
.db-num-label { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.35; }
.db-block { padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--border); }
.db-block-label {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); display: block; margin-bottom: 0.4rem;
}
.db-block p { font-size: 0.9rem; line-height: 1.65; color: var(--body); }
.db-why { font-size: 0.78rem !important; color: var(--muted) !important; margin-top: 0.5rem; }
.db-q { font-style: italic; color: var(--ink) !important; }
@media (max-width: 560px) { .db-nums { grid-template-columns: 1fr; } .db-screen { padding: 1.3rem 1.1rem; } }

/* ── SIGNALS GRID ── */
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.signal {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.signal-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--ink); display: flex; align-items: baseline; gap: 0.55rem; margin-bottom: 0.4rem;
}
.signal-name::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); flex-shrink: 0; transform: translateY(-1px); }
.signal p { font-size: 0.86rem; line-height: 1.6; }
@media (max-width: 860px) { .signal-grid { grid-template-columns: 1fr; } }

/* ── TRUST ROW ── */
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.trust-card {
  background: var(--card); border: 1px solid rgba(29,78,216,0.22); border-radius: 12px;
  padding: 1.5rem 1.6rem;
}
.trust-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.trust-card p { font-size: 0.86rem; line-height: 1.6; }
@media (max-width: 860px) { .trust-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   CONNECTIONS PAGE
   ═══════════════════════════════════════════════ */
.conn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.conn-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.9rem 2rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.conn-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(29,78,216,0.1); border-color: rgba(29,78,216,0.28); }
.conn-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-soft); border: 1px solid rgba(29,78,216,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.conn-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.conn-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.conn-what { font-size: 0.92rem; color: var(--body); line-height: 1.65; margin-bottom: 0.9rem; }
.conn-once { font-size: 0.88rem; color: var(--body); line-height: 1.65; }
.conn-once strong { color: var(--ink); font-weight: 600; }
.conn-tools {
  margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--border);
  font-size: 0.78rem; color: var(--muted); line-height: 1.55;
}
.conn-tools span { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .conn-grid { grid-template-columns: 1fr; } }

.conn-anything {
  max-width: 720px; margin: 3rem auto 0; text-align: center;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.conn-anything h3 { margin-bottom: 0.75rem; }
.conn-anything p { font-size: 0.95rem; }

/* ── DEBRIEF CAPABILITY STACK ── */
.cap-stack { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; }
.cap-row { display: flex; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--border); align-items: baseline; }
.cap-row:last-child { border-bottom: 1px solid var(--border); }
.cap-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); flex: 0 0 auto; letter-spacing: 0.02em; }
.cap-text h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.cap-text p { font-size: 0.98rem; line-height: 1.7; color: var(--body); max-width: 62ch; }
@media (max-width: 600px) { .cap-row { flex-direction: column; gap: 0.5rem; } }

/* ═══════════════════════════════════════════════
   APPROACH PAGE + ALTERNATING VISUAL/TEXT ROWS
   ═══════════════════════════════════════════════ */
.method-def { max-width: 760px; margin: 0 auto; text-align: center; }
.method-def .big { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.method-def p { font-size: 1.05rem; color: var(--body); line-height: 1.7; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.pillar { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.pillar-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.pillar h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; color: var(--ink); margin: 0.6rem 0 1.25rem; }
.pillar-item { padding: 1rem 0; border-top: 1px solid var(--border); }
.pillar-item h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.3rem; }
.pillar-item p { font-size: 0.9rem; color: var(--body); line-height: 1.6; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* alternating image/text rows (used on approach + homepage) */
.vrow { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin: 0 auto; max-width: 1040px; }
.vrow + .vrow { margin-top: 4rem; }
.vrow.flip .vrow-visual { order: 2; }
.vrow-text h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1rem; }
.vrow-text p { font-size: 1rem; color: var(--body); line-height: 1.7; }
.vrow-text .section-label { margin-bottom: 0.75rem; display: inline-block; }
.vrow-visual { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.vrow-visual svg { display: block; width: 100%; height: auto; }
@media (max-width: 820px) {
  .vrow { grid-template-columns: 1fr; gap: 1.75rem; }
  .vrow.flip .vrow-visual { order: 0; }
}

/* ═══════════════════════════════════════════════
   DROPDOWN MEGA-NAV
   ═══════════════════════════════════════════════ */
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; background: none; border: none; font-family: inherit; font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 0; transition: color 0.2s; }
.nav-parent:hover, .nav-item:hover .nav-parent { color: var(--white); }
.nav-parent svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-item:hover .nav-parent svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13,42,92,0.16); padding: 0.9rem; min-width: 420px;
  opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 200;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
}
.nav-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .nav-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-panel.single { grid-template-columns: 1fr; min-width: 300px; }
.np-link { display: block; padding: 0.7rem 0.85rem; border-radius: 9px; transition: background 0.15s; }
.np-link:hover { background: var(--surface); }
.np-link strong { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }
.np-link span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* mobile menu (shared, all screen sizes) */
/* ── menu panel: anchored card, not a takeover ── */
.m-menu {
  position: fixed; top: 76px; right: 20px; left: auto; bottom: auto;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: #ffffff; border: 1px solid var(--border); border-radius: 18px;
  padding: 0.6rem;
  box-shadow: 0 24px 64px rgba(11,27,52,0.18), 0 0 0 100vmax rgba(11,27,52,0.26);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 500;
}
.m-menu.open { opacity: 1; visibility: visible; transform: none; }
.m-group { padding: 0.55rem 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
.m-group:last-of-type { border-bottom: 0; }
.m-group-h { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0.35rem 0.35rem 0.45rem; }
.m-menu a { display: block; padding: 0.5rem 0.6rem; border-radius: 10px; font-size: 0.97rem; color: var(--ink); font-weight: 500; text-decoration: none; transition: background 0.12s ease, color 0.12s ease; }
.m-menu a:hover { background: var(--surface); color: var(--blue); }
.m-menu .m-cta { margin: 0.55rem 0.65rem 0.4rem; text-align: center; background: var(--blue); color: #fff; padding: 0.85rem; border-radius: 12px; font-weight: 600; }
.m-menu .m-cta:hover { background: var(--blue-hover); color: #fff; }
@media (max-width: 560px) { .m-menu { top: 68px; right: 12px; left: 12px; width: auto; } }
/* hamburger morphs to a cross */
.nav-hamburger span { transition: transform 0.2s ease, opacity 0.15s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* split hero/section layout + shared visual styles */
.ph-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .ph-split { grid-template-columns: 1fr; gap: 1.75rem; } }
.ph-split .ev-vis { margin: 0; }
.ev-vis { max-width: 720px; margin: 2.5rem auto 0; }
.ev-vis svg { width: 100%; height: auto; display: block; }
.ev-vis text { font-family: 'Inter', sans-serif; }
.ev-vis .ev-t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .ev-dash { stroke-dasharray: 6 6; animation: evFlow 1.2s linear infinite; }
  @keyframes evFlow { to { stroke-dashoffset: -12; } }
}

/* uniform section visuals */
.ph-split .ev-vis { width: 100%; max-width: 440px; justify-self: center; }
/* benefit-style card grid */
.ben-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
@media (max-width: 720px) { .ben-grid { grid-template-columns: 1fr; } }
.ben-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .ben-grid.cols-3 { grid-template-columns: 1fr; } }
.ben-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); }
.ben-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--ink); margin: 0 0 0.5rem; }
.ben-card p { font-size: 0.93rem; color: var(--body); line-height: 1.6; margin: 0; }
/* collapsible system ladders */
.sys-block details { margin-top: 1rem; }
.sys-block summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--blue); padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; }
.sys-block summary::-webkit-details-marker { display: none; }
.sys-block summary::after { content: '+'; font-size: 1.1rem; line-height: 1; }
.sys-block details[open] summary::after { content: '\2212'; }

/* burger nav on all screen sizes */
.nav-desktop { display: none !important; }
.nav-hamburger { display: flex !important; }
.nav-cta-bar { white-space: nowrap; margin-left: auto; margin-right: 1.1rem; padding: 0.65rem 1.15rem !important; border-radius: 10px; }
@media (max-width: 560px) { .nav-cta-bar { display: none !important; } }

/* case study energy */
.build-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
@media (max-width: 680px) { .build-list { grid-template-columns: 1fr; } }
.build-list li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.3rem; font-size: 0.93rem; color: var(--body); line-height: 1.6; box-shadow: var(--shadow-sm); }
.build-list li strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.45rem; }
.case-banner { background: var(--blue); padding: 4rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.case-banner .cb-big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3.6rem); color: #ffffff; letter-spacing: -0.02em; line-height: 1.1; }
.case-banner .cb-sub { margin-top: 0.9rem; color: #c7d6f8; font-size: 1rem; }
.case-quote-wrap { position: relative; }
blockquote, .endquote { position: relative; }

/* where we stand: pattern interrupt */
.stand-band { background: var(--blue); padding: 4.5rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.stand-band .stand-label { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #c7d6f8; margin-bottom: 1.1rem; }
.stand-band .stand-big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 2.6rem); color: #ffffff; letter-spacing: -0.02em; line-height: 1.15; }
.stand-band .stand-body { max-width: 680px; margin: 1.5rem auto 0; color: #dbe6fb; font-size: 1.02rem; line-height: 1.75; }
.stand-band .stand-close { max-width: 680px; margin: 1.4rem auto 0; color: #ffffff; font-weight: 600; font-size: 1.05rem; }
