/* 8gents — "The Map Room" bizdev homepage
   Self-contained stylesheet for index.html only. No dependency on brand.css.
   Palette: ink #0B1B2B · paper #F7F5F0 · text #12202E · amber #E8A33D · green #146B52
   Amber is always paired with dark ink text — never white. */

/* ——— Type: one self-hosted variable font (Sora, latin subset, 25KB) ——— */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1b2b;
  --ink-2: #12202e;
  --paper: #f7f5f0;
  --paper-2: #fdfcf9;
  --amber: #e8a33d;
  --amber-deep: #c9862a;
  --green: #146b52;
  --text: #12202e;
  --muted: #4c5f72;
  --muted-ink: #b9c6d2;
  --line: rgba(11, 27, 43, 0.14);
  --line-ink: rgba(247, 245, 240, 0.16);
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --shadow: 0 18px 40px -28px rgba(11, 27, 43, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5.1vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.3rem); }
h3 { font-size: 1.09rem; line-height: 1.3; }

p { max-width: 65ch; }
a { color: inherit; }
img, svg { max-width: 100%; }
ul { padding-left: 1.1rem; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--green); margin-bottom: 0.9rem; }
.lede { color: var(--muted); font-size: 1.0625rem; }

section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head h2 { max-width: 24ch; margin-bottom: 0.85rem; }
.sec-head .lede { max-width: 62ch; }

/* ——— Skip link + focus ——— */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink-2);
  font-weight: 600;
}
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.on-ink :focus-visible, .hero :focus-visible { outline-color: var(--amber); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--amber); color: var(--ink-2); }
.btn-primary:hover, .btn-primary:focus-visible { background: #f0b355; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(11, 27, 43, 0.05); }
.btn-ghost { border-color: rgba(247, 245, 240, 0.5); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); background: rgba(247, 245, 240, 0.1); }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(52vw, 12rem);
}
.brand-logo--footer {
  height: 32px;
  max-width: min(56vw, 11rem);
}
.nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.4rem); }
.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.nav .btn { font-size: 0.92rem; padding: 0.6rem 1rem; min-height: 44px; }
.nav .btn-primary { color: var(--ink-2); }

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.2rem, 8vw, 6.5rem);
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--paper);
  opacity: 0.13;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(640px, 62vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(232, 163, 61, 0.22), rgba(232, 163, 61, 0) 68%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 46rem; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { margin-bottom: 1.1rem; max-width: 20ch; }
.hero-sub {
  color: var(--muted-ink);
  font-size: clamp(1.05rem, 2vw, 1.19rem);
  max-width: 58ch;
  margin-bottom: 1.9rem;
}
.hero-sub strong { color: var(--paper); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-si {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--muted-ink);
  font-size: 0.95rem;
}
.hero-note { margin-top: 0.75rem; color: var(--muted-ink); font-size: 0.95rem; }

/* ——— Problem ——— */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.problem-item {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: var(--paper-2);
}
.problem-item h3 { margin-bottom: 0.4rem; }
.problem-item p { font-size: 0.98rem; color: var(--muted); }
.problem-close { margin-top: 1.75rem; font-size: 1.09rem; font-weight: 600; max-width: 62ch; }

/* ——— Process: sticky scroll storytelling (desktop) ——— */
.process-steps { display: block; }
.process-slot { padding-bottom: 1.25rem; }
.process-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.process-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
}
.process-card h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 0.6rem; }
.process-card p { color: var(--text); max-width: 60ch; }
.process-gets {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ——— Use cases ——— */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.uc {
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.uc .uc-n { color: var(--green); margin-bottom: 0.7rem; }
.uc h3 { margin-bottom: 0.45rem; }
.uc p { font-size: 0.98rem; color: var(--muted); }

/* ——— Why ——— */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.why-panel {
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 12px;
  background: #fff;
}
.why-panel--alt { border-top-color: var(--amber); }
.why-panel h3 { font-size: 1.25rem; }
.why-by { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 0.9rem; }
.why-panel p { margin-bottom: 0.9rem; font-size: 0.99rem; }
.why-panel ul { display: grid; gap: 0.5rem; margin: 0; padding-left: 1.15rem; }
.why-panel li { font-size: 0.97rem; color: var(--muted); }
.why-panel li strong { color: var(--text); font-weight: 600; }
.why-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--amber);
  background: rgba(232, 163, 61, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  max-width: 68ch;
}

/* ——— AI opportunity check (built by bizdev.js) ——— */
.quiz {
  max-width: 46rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.1);
  overflow: hidden;
}
.quiz-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}
.quiz-status { margin: 0.7rem 0 1.1rem; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.02em; }
.quiz-q { border: 0; padding: 0; margin: 0 0 1.2rem; }
.quiz-legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  padding: 0;
}
.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.quiz-opt:hover { border-color: var(--green); }
.quiz-opt input { margin-top: 0.2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--green); }
.quiz-opt input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.quiz-opt:has(input:checked) { border-color: var(--green); background: rgba(20, 107, 82, 0.07); }
.quiz-opt-label { font-size: 0.99rem; }
.quiz-nav { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.quiz [hidden] { display: none !important; }
.quiz-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.quiz-result:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.quiz-result-kicker { color: var(--green); margin-bottom: 0.5rem; }
.quiz-result h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 0.7rem; }
.quiz-result-note { color: var(--muted); max-width: 58ch; margin-bottom: 0.6rem; }
.quiz-result-fine { color: var(--muted); font-size: 0.92rem; max-width: 58ch; margin-bottom: 1.1rem; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ——— FAQ ——— */
.faq-list { max-width: 60rem; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; background: var(--green); color: var(--paper); border-color: var(--green); }
.faq-body { padding: 0 0 1.15rem; color: var(--muted); max-width: 68ch; }
.faq-body a { color: var(--green); text-decoration: underline; }

/* ——— Consult band ——— */
.consult {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 0;
}
.consult h2 { margin-bottom: 0.9rem; max-width: 26ch; }
.consult p { color: var(--muted-ink); max-width: 60ch; }
.consult-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid var(--line-ink);
  border-radius: 14px;
  background: rgba(247, 245, 240, 0.04);
}
.consult-form label { display: block; font-size: 0.92rem; color: var(--muted-ink); }
.consult-form .opt { color: rgba(185, 198, 210, 0.75); font-size: 0.85rem; }
.consult-form input,
.consult-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-ink);
  border-radius: 8px;
  background: rgba(11, 27, 43, 0.35);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}
.consult-form textarea { resize: vertical; }
.consult-form input:focus-visible,
.consult-form textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.consult-consent { color: var(--muted-ink); font-size: 0.85rem; }
.consult-err { color: #ffb4a2; font-size: 0.9rem; min-height: 1.1rem; }
.consult-noscript { color: var(--muted-ink); font-size: 0.9rem; }
.consult-noscript a { color: var(--amber); }
.consult-form .btn { justify-self: start; }
.consult-form .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.consult-mail { margin-top: 1.2rem; color: var(--muted-ink); font-size: 0.97rem; }
.consult-mail a { color: var(--amber); }

/* ——— Motion (classes added by bizdev.js; content visible without JS) ——— */
.js-reveal {
  opacity: 1;
  transform: none;
}
html.js-motion .js-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
  transition-delay: var(--rd, 0ms);
}
html.js-motion .js-reveal.is-in {
  opacity: 1;
  transform: none;
}
.process-card { transition: border-color 200ms ease, box-shadow 200ms ease; }
.process-card.is-active {
  border-color: var(--amber);
  box-shadow: 0 18px 40px -24px rgba(11, 27, 43, 0.5);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.footer-note { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; margin-left: auto; }
.footer-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ——— Chat widget token bridge ———
   widget.css reads brand.css tokens; this page never loads brand.css, so the
   widget's palette is defined here, scoped to the widget root only. */
#eg-chat {
  --bg-0: #0b1b2b;
  --bg-1: #12202e;
  --bg-2: #1b2c3e;
  --text-0: #f7f5f0;
  --text-1: #d3dce4;
  --text-2: #b9c6d2;
  --text-3: #8ea3b6;
  --line-1: rgba(247, 245, 240, 0.1);
  --line-2: rgba(247, 245, 240, 0.18);
  --blue: #146b52;
  --blue-bright: #1a8464;
  --blue-soft: rgba(20, 107, 82, 0.28);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ——— Responsive ——— */
@media (max-width: 1000px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .process-slot { padding-bottom: 0; min-height: 0; }
  .process-card { position: static; }
  .process-steps { display: grid; gap: 1rem; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .process-slot { min-height: 58vh; }
  .process-slot:last-child { min-height: 0; padding-bottom: 0; }
  .process-card { position: sticky; top: calc(5.6rem + (var(--i, 0) * 1.15rem)); }
}

@media (max-width: 700px) {
  .nav .nav-link { display: none; }
  .brand-logo { height: 28px; }
  .brand-logo--footer { height: 28px; }
  .hero-si { margin-bottom: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .problem-grid, .uc-grid { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}

@media (min-width: 1100px) {
  .brand-logo { height: 36px; }
}

/* Honeypot must never be visible on / even before widget.css loads. */
.eg-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .process-slot { min-height: 0; padding-bottom: 1rem; }
  .process-card { position: static; transition: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .quiz-progress-fill { transition: none; }
}

/* ——— Privacy, terms, and 404 ——— */
.doc { padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(3rem, 7vw, 5rem); }
.doc-inner { max-width: 44rem; }
.doc h1 { margin: 0.35rem 0 1rem; max-width: 16ch; }
.doc h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 2rem 0 0.55rem; }
.doc h3 { margin: 1.25rem 0 0.4rem; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-bottom: 0.85rem; }
.doc .lede { font-size: 1.12rem; color: var(--text); }
.doc ul { margin: 0.35rem 0 1rem; }
.doc li { margin: 0.3rem 0; }
.doc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.doc-mail { margin-top: 1.25rem; }
