/* =========================================================
   Company Brain landing page
   Palette and type follow the Company Brain brief.
   ========================================================= */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 560;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FCFAF5;
  --card: #FFFFFF;
  --ink: #111111;
  --soft: #55524E;
  --muted: #908E8B;
  --line: #E6E3DF;
  --accent: #E8410F;
  --tint: #FBEDE6;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --r-sm: 6px;
  --r: 12px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.018em; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }
.accent { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 8px;
  font: 650 0.98rem/1 var(--sans);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .92rem; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #2a2826; }
.btn-ink:active { transform: translateY(1px); }
.btn-line { border: 1px solid #CFCAC3; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  background: rgba(252, 250, 245, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: auto; height: 22px; }
.brand-name { font-family: var(--serif); font-weight: 560; font-size: 1.42rem; letter-spacing: -0.01em; }

.nav-list { display: flex; align-items: center; gap: 1.9rem; }
.nav-list a { text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--soft); }
.nav-list a:hover { color: var(--ink); }
.nav-list .btn-ink, .nav-list .btn-ink:hover { color: var(--bg); }
.nav-cta-item:first-of-type { margin-left: .6rem; }
.nav-list li:last-child { margin-left: -.6rem; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.6px; background: currentColor; border-radius: 2px;
    transition: transform .22s ease, background-color .22s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; margin: 1rem 0 0; }
  .nav-cta-item:first-of-type { margin-left: 0; }
  .nav-list a:not(.btn) { display: block; padding: .95rem 0; font-size: 1.05rem; color: var(--ink); }
  .nav-list .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.024em;
  font-variation-settings: "opsz" 72;
}
.lede { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.15rem); color: var(--soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The memorable thing: a markdown page writing itself */
.brain-window {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(17,17,17,.03), 0 24px 48px -28px rgba(60, 40, 20, .28);
  overflow: hidden;
}
.bw-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font: 500 .82rem/1.2 var(--mono);
  color: var(--ink);
}
.bw-dir { color: var(--muted); }
.bw-replay {
  font: 600 .8rem/1 var(--sans); color: var(--soft);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .8rem; cursor: pointer;
}
.bw-replay:hover { color: var(--ink); border-color: #CFCAC3; }
.bw-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.bw-sources { padding: 1.1rem 1rem; border-right: 1px solid var(--line); background: var(--bg); }
.bw-label { font-size: .78rem; font-weight: 700; color: var(--soft); margin-bottom: .7rem; }
.bw-sources ul { display: grid; gap: .45rem; }
.src {
  display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start;
  padding: .55rem .6rem; border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
.src svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.src strong { display: block; font-size: .84rem; font-weight: 650; line-height: 1.3; }
.src small { display: block; font-size: .75rem; color: var(--soft); line-height: 1.35; }
.js .src { opacity: .5; }
.js .src.is-reading { opacity: 1; background: var(--tint); }
.js .src.is-reading svg { stroke: var(--accent); }
.js .src.is-done { opacity: 1; background: transparent; border-color: var(--line); }

.bw-file {
  padding: 1.1rem 1.3rem 1.3rem;
  font: 400 .84rem/1.75 var(--mono);
  color: var(--ink);
  min-height: 100%;
}
.md-line { min-height: 1.75em; white-space: normal; }
.md-meta { color: var(--muted); }
.md-meta .k { color: var(--soft); }
.md-h1 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
.md-h2 { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; }
.hash { color: var(--accent); font-family: var(--mono); font-size: .84rem; margin-right: .15em; }
.dash { color: var(--muted); }
.ref {
  display: inline-block; margin-left: .35rem;
  font: 600 .7rem/1 var(--sans); color: var(--soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: .28rem .5rem; vertical-align: 1px; white-space: nowrap;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}
.md-line.is-fresh .ref { background: var(--tint); border-color: var(--tint); color: var(--accent); }
.caret {
  display: inline-block; width: .5em; height: 1.05em; margin-left: .3rem;
  background: var(--accent); vertical-align: -2px; opacity: 0;
}
.is-complete .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.js .md-line { opacity: 0; clip-path: inset(0 100% 0 0); }
.js .md-line.is-in {
  opacity: 1; clip-path: inset(0 -2rem 0 0);
  transition: clip-path .55s cubic-bezier(.3,.7,.3,1), opacity .15s linear;
}

.bw-foot {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--soft);
}
.bw-loader { width: 22px; height: auto; flex: none; }
.bw-loader .faint { stroke-opacity: .16; }
.bw-loader .p { stroke-dasharray: 7 29; animation: gb-flow 1.2s linear infinite; }
.bw-loader .p1 { animation-delay: -.4s; }
.bw-loader .p2 { animation-delay: -.8s; }
.bw-loader .n { transform-box: fill-box; transform-origin: center; animation: gb-pulse 1.2s ease-in-out infinite; }
@keyframes gb-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -36; } }
@keyframes gb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
/* When the page is written, the loader settles into the GoBrain mark */
.is-complete .bw-loader .p, html:not(.js) .bw-loader .p { animation: none; stroke-dasharray: none; }
.is-complete .bw-loader .n, html:not(.js) .bw-loader .n { animation: none; }
.bw-status { display: none; }
.is-complete .bw-status, html:not(.js) .bw-status { display: inline; animation: gb-fade .5s ease; }
.is-complete .bw-status-busy, html:not(.js) .bw-status-busy { display: none; }
@keyframes gb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Problem ---------- */
.problem { padding: var(--section) 0; border-top: 1px solid var(--line); }
.problem-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.statement {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 400;
  font-variation-settings: "opsz" 48;
}
.problem-text { color: var(--soft); font-size: 1.05rem; }
.problem-text p:last-child { color: var(--ink); font-weight: 600; }

/* ---------- Generic section ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2, .split-copy h2, .faq h2 { font-size: clamp(2rem, 3.6vw, 2.95rem); line-height: 1.08; font-variation-settings: "opsz" 60; }
.section-head p { margin-top: .9rem; color: var(--soft); font-size: 1.08rem; }

/* ---------- How it works ---------- */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: none; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  content: ""; position: absolute; top: 15px; left: 40px; right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
  height: 1px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font: 700 .85rem/1 var(--sans);
}
.step:last-child .step-num { background: var(--accent); }
.step h3 { margin-bottom: .55rem; }
.step p { color: var(--soft); font-size: .98rem; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy > p { margin-top: 1.2rem; color: var(--soft); max-width: 32em; }
.split-copy h2 + p { margin-top: 1.4rem; }

.points { margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.points > div { padding-left: 1.1rem; border-left: 2px solid var(--line); }
.points > div:first-child { border-left-color: var(--accent); }
.points dt { font-weight: 700; }
.points dd { margin: .25rem 0 0; color: var(--soft); }

.tree-card {
  background: var(--card);
  border: 1px dashed #D9D4CD;
  border-radius: var(--r);
  padding: 1.6rem 1.7rem;
  font-family: var(--mono);
  font-size: .9rem;
}
.tree-title { font-weight: 600; margin-bottom: .6rem; }
.tree-title::before, .dir::before { content: ""; display: inline-block; width: 13px; height: 10px; margin-right: .55rem; border: 1.4px solid var(--soft); border-radius: 2px; vertical-align: 0; }
.tree { padding-left: .5rem; }
.tree > li { padding: .3rem 0; }
.tree ul { margin: .2rem 0 0 .3rem; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.file { padding: .22rem .5rem; color: var(--soft); border-radius: 5px; }
.file.is-open { background: var(--tint); color: var(--ink); font-weight: 600; }
.tree-note {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: .9rem; color: var(--soft);
}
.tree-note em { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); }

/* ---------- Dark band (MCP) ---------- */
.dark { background: var(--ink); color: #F2EEE6; }
.dark .split-copy > p { color: #BDB8B0; }
.dark .muted-note { color: #8D8880; font-size: .95rem; padding-top: 1.1rem; border-top: 1px solid #2E2C2A; margin-top: 1.6rem; }
.dark :focus-visible { outline-color: #F2EEE6; }

.chat { display: grid; gap: 1rem; }
.msg { border-radius: var(--r); padding: 1.15rem 1.3rem; max-width: 34rem; }
.msg p { margin: 0; }
.msg p + p { margin-top: .6rem; }
.who { font-size: .8rem; font-weight: 700; color: #9A958D; margin-bottom: .45rem !important; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.msg-you { background: #22201E; justify-self: end; border-bottom-right-radius: 4px; }
.msg-ai { background: var(--bg); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-ai .who { color: var(--soft); }
.msg-ai p:not(.who) { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.reading {
  font: 600 .72rem/1 var(--mono); color: var(--accent);
  background: var(--tint); border-radius: 999px; padding: .32rem .55rem;
}

/* ---------- Workflows ---------- */
.list-title { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1rem; }
.plain-list li {
  position: relative; padding: .7rem 0 .7rem 1.4rem;
  border-top: 1px solid var(--line); color: var(--soft);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.run {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.run-trigger {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3;
  padding-bottom: 1.2rem; margin-bottom: 1.4rem !important; border-bottom: 1px solid var(--line);
}
.run-when {
  display: inline-block; margin-right: .4rem;
  font: 700 .78rem/1 var(--sans); color: var(--accent);
  background: var(--tint); padding: .38rem .6rem; border-radius: 5px; vertical-align: 3px;
}
.run-steps { display: grid; gap: 0; counter-reset: run; }
.run-steps li {
  counter-increment: run;
  position: relative; display: flex; align-items: center; gap: 1rem;
  padding: .7rem 0;
}
.run-steps li::before {
  content: counter(run);
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .8rem/1 var(--sans);
  background: var(--ink); color: var(--card);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.run-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13.5px; top: calc(50% + 17px); bottom: calc(17px - 50%);
  width: 1px; background: var(--line);
}
.js .run-steps li { color: var(--muted); }
.js .run-steps li::before { background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.js .run-steps li.is-done { color: var(--ink); transition: color .35s ease; }
.js .run-steps li.is-done::before { background: var(--ink); color: var(--card); box-shadow: none; }
.run-done { margin-top: 1.2rem !important; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--soft); }
.js .run-done { opacity: 0; transition: opacity .5s ease; }
.js .run.is-complete .run-done { opacity: 1; }

/* ---------- Proof ---------- */
.proof { padding: 0 0 var(--section); }
.proof-box {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: start;
}
.proof-head { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; }
.proof-box p { font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: #3A3734; }

/* ---------- Teams table ---------- */
.teams { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.uc-table { width: 100%; border-collapse: collapse; }
.uc-table thead th {
  text-align: left; font-size: .85rem; font-weight: 700; color: var(--soft);
  padding: 0 1.2rem .9rem 0; border-bottom: 1.5px solid var(--ink);
}
.uc-table tbody th, .uc-table td { text-align: left; vertical-align: top; padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.uc-table tbody th { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; width: 18%; padding-top: 1.1rem; }
.uc-table td { color: var(--soft); width: 41%; }
.uc-table td:last-child { color: var(--ink); font-weight: 550; }
@media (max-width: 720px) {
  .uc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .uc-table, .uc-table tbody, .uc-table tr, .uc-table th, .uc-table td { display: block; width: auto; }
  .uc-table tr { padding: 1.3rem 0; border-top: 1px solid var(--line); }
  .uc-table tr:last-child { border-bottom: 1px solid var(--line); }
  .uc-table tbody th, .uc-table td { border: 0; padding: 0; }
  .uc-table tbody th { margin-bottom: .6rem; }
  .uc-table td + td { margin-top: .7rem; }
  .uc-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
}

/* ---------- Connectors ---------- */
.sources-grid { display: flex; flex-wrap: wrap; gap: .7rem; max-width: 52rem; }
.sources-grid li {
  padding: .8rem 1.15rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .98rem;
}
.connect-note { margin-top: 1.8rem; color: var(--soft); }
.connect-note a { color: var(--ink); font-weight: 650; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-weight: 650; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.6px solid var(--soft); border-bottom: 1.6px solid var(--soft);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--soft); padding: 0 2.5rem 1.4rem 0; max-width: 40em; }
.faq details[open] p { animation: faq-in .3s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Final CTA ---------- */
.final { padding: var(--section) 0; border-top: 1px solid var(--line); text-align: center; }
.final h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.022em; font-variation-settings: "opsz" 72; }
.final p { margin-top: 1rem; color: var(--soft); font-size: 1.1rem; }
.final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--soft); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem 3.5rem; align-items: start; }
.footer-brand .brand-name { color: var(--ink); font-size: 1.2rem; }
.footer-brand .brand-mark { height: 18px; }
.footer-brand p { margin-top: .2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { text-align: right; }
.footer-contact a { color: var(--ink); font-weight: 600; }
.footer-contact p { margin-top: .2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.8rem; }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 860px) {
  .problem-inner, .split, .proof-box, .faq-inner { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}
@media (max-width: 600px) {
  .bw-body { grid-template-columns: 1fr; }
  .bw-sources { border-right: 0; border-bottom: 1px solid var(--line); padding: .9rem; }
  .bw-label, .bw-dir { display: none; }
  .bw-sources ul { grid-template-columns: 1fr 1fr; gap: .35rem; }
  .src { padding: .45rem .5rem; gap: .45rem; grid-template-columns: 16px 1fr; }
  .src svg { width: 16px; height: 16px; }
  .src small { display: none; }
  .bw-file { padding: .9rem 1rem 1.1rem; font-size: .8rem; }
  .steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .step { padding-top: 0; padding-left: 3.1rem; }
  .step::before { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .msg-ai p:not(.who) { font-size: 1.08rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Solid header while the mobile menu is open */
.site-header:has(.nav-list.is-open) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); }

.nowrap { white-space: nowrap; }
