/* ------------------------------------------------------------------
   Bfor — design system
   Structure and density from WorkOS. Warm palette and light headline
   weights from Sierra. Light-mode only, committed.
------------------------------------------------------------------ */

:root {
  /* warm neutral ramp, between Sierra's #302E2D and WorkOS's slate */
  --ink:        #23211F;
  --ink-2:      #4A4642;
  --muted:      #78736C;
  --faint:      #9C968D;
  --line:       #E4E0DA;
  --line-soft:  #EFECE7;
  --surface:    #F7F5F2;
  --surface-2:  #FBFAF8;
  --white:      #FFFFFF;

  /* deep green accent — reads verified/approved, not SaaS-indigo */
  --accent:     #10503A;
  --accent-2:   #0B3A29;
  --accent-tint:#E8F0EC;

  /* provenance semantics — muted, metadata not badges */
  --confirmed:  #10503A;
  --confirmed-bg:#E8F0EC;
  --inferred:   #8A5A11;
  --inferred-bg:#F7EFE0;
  --unknown:    #78736C;
  --unknown-bg: #EFECE7;
  --human:      #3B3A7A;
  --human-bg:   #EAEAF4;
  --alert:      #8C3320;
  --alert-bg:   #F7EAE6;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.narrow { max-width: 780px; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6.2vw, 74px); letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: 16px; letter-spacing: -0.01em; line-height: 1.4; }

p { margin: 0; }

.lede {
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }

a { color: inherit; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }

.btn-plain {
  background: none; border: 0; padding: 0;
  font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-plain:hover { color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
/* Wordmark. The colon lives inside the word, so no separate icon sits
   beside it: that would read the b twice. The icon survives for favicon,
   app icon and avatars, where a wordmark cannot fit.

   The colon is logo-only. In plain text it is always bfor.ai, because a
   colon in a URL means a port and b:for.ai will not resolve. */
.brand {
  display: inline-flex; align-items: center;
  font-size: 21px; font-weight: 600; letter-spacing: -0.025em;
  text-decoration: none; white-space: nowrap;
}
.brand .tld { font-weight: 500; color: var(--faint); }

.brand-colon {
  width: auto; height: .56em; margin: 0 .07em;
  color: var(--accent); flex: none;
}
/* Small cut: below ~24px the outline ring stops reading, so the lower dot
   solidifies. Same design, simplified, not a different logo. */
.brand-colon .vendor-open { display: none; }
.brand-colon .vendor-solid { display: inline; }

@media (min-width: 901px) {
  .brand { font-size: 25px; }
  .brand-colon .vendor-open { display: inline; }
  .brand-colon .vendor-solid { display: none; }
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- sections ---------- */

section { padding: 92px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin: 14px 0 16px; }

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }

/* Oversized colon as hero artwork. Low opacity so it sits behind the type
   rather than competing with it. */
.hero-colon {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  height: 500px;
  width: auto;
  opacity: .09;
  pointer-events: none;
}

.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero .lede { max-width: 56ch; margin-bottom: 34px; }
.hero-note {
  margin-top: 20px; font-size: 13.5px; color: var(--faint);
}

/* ---------- console (the demo) ---------- */

.console {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(35,33,31,.04), 0 14px 40px -22px rgba(35,33,31,.22);
  overflow: hidden;
}

.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.console-bar-l { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--confirmed); flex: none; }
.dot.idle { background: var(--faint); }
.console-title { font-size: 13.5px; font-weight: 500; }
.console-meta { font-size: 12px; color: var(--faint); }

.console-body { padding: 30px; }

/* stage: interview */
.q-step { display: none; }
.q-step.active { display: block; animation: rise .3s ease both; }
.q-num {
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  letter-spacing: .04em; margin-bottom: 12px;
}
.q-step h3 { margin-bottom: 7px; }
.q-hint { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.q-step textarea {
  width: 100%;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit; font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--white);
  resize: vertical;
}
.q-step textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.q-actions {
  display: flex; align-items: center; gap: 16px; margin-top: 18px;
}
.q-progress { display: flex; gap: 5px; margin-left: auto; }
.q-pip { width: 22px; height: 3px; border-radius: 2px; background: var(--line); }
.q-pip.done { background: var(--accent); }

/* stage: transcript */
.split { display: grid; grid-template-columns: 1fr 316px; gap: 0; }
.stream {
  padding: 26px 30px;
  max-height: 560px; overflow-y: auto;
  border-right: 1px solid var(--line-soft);
}
.rail {
  padding: 22px 22px;
  background: var(--surface-2);
  max-height: 560px; overflow-y: auto;
}
.rail-head {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 16px;
}

.turn { margin-bottom: 26px; animation: rise .34s ease both; }
.turn-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
}
.turn-who {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.turn-who.buyer  { color: var(--human); }
.turn-who.vendor { color: var(--accent); }
.turn-body {
  font-size: 15px; line-height: 1.62; color: var(--ink-2);
  padding-left: 13px; border-left: 2px solid var(--line);
}
.turn.buyer  .turn-body { border-left-color: #C9C9E2; }
.turn.vendor .turn-body { border-left-color: #BBD3C7; }

.turn-sys {
  font-size: 13px; color: var(--faint);
  padding: 10px 13px; background: var(--surface);
  border-radius: 8px; margin-bottom: 22px;
  animation: rise .34s ease both;
}

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap;
}
.tag-confirmed { color: var(--confirmed); background: var(--confirmed-bg); }
.tag-inferred  { color: var(--inferred);  background: var(--inferred-bg); }
.tag-unknown   { color: var(--unknown);   background: var(--unknown-bg); }
.tag-human     { color: var(--human);     background: var(--human-bg); }
.tag-alert     { color: var(--alert);     background: var(--alert-bg); }

.find {
  margin-top: 12px; margin-left: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--inferred);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
}
.find-lab {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--inferred); margin-bottom: 5px;
}
.find h4 { margin-bottom: 5px; }
.find p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* rail events */
.ev {
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
  animation: rise .3s ease both;
}
.ev:last-child { border-bottom: 0; }
.ev-top { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.ev-ico { font-family: var(--mono); font-size: 10px; color: var(--faint); flex: none; }
.ev-lab { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.ev-det { font-size: 12px; line-height: 1.5; color: var(--muted); padding-left: 17px; }
.ev.flag .ev-lab { color: var(--alert); }

/* stage: brief */
.brief-tabs {
  display: flex; gap: 4px; padding: 12px 18px 0;
  border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.brief-tab {
  border: 1px solid transparent; border-bottom: 0;
  background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted);
  padding: 9px 16px; border-radius: 8px 8px 0 0;
  position: relative; top: 1px;
}
.brief-tab.active {
  background: var(--white); color: var(--ink);
  border-color: var(--line-soft); border-bottom: 1px solid var(--white);
}

.brief { padding: 40px 46px 46px; max-height: 620px; overflow-y: auto; }
.brief-pane { display: none; }
.brief-pane.active { display: block; animation: rise .3s ease both; }

.brief-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.brief-head h2 { font-size: 30px; margin: 8px 0 6px; }
.brief-head .sub { font-size: 14.5px; color: var(--muted); }
.brief-obj {
  margin-top: 18px; padding: 14px 16px;
  background: var(--surface); border-radius: 8px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.brief-obj span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }

/* The verdict. Deliberately not a badge or a score: a judgment stated in
   words, with its basis shown so the reader can disagree with it. */
.verdict {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  padding: 22px 26px 24px;
  margin-bottom: 34px;
}
.verdict-lab {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.verdict h3 { font-size: 20px; margin-bottom: 10px; }
.verdict-body { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
ol.verdict-list { margin: 0; padding-left: 20px; }
ol.verdict-list li {
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  margin-bottom: 9px; padding-left: 4px;
}
ol.verdict-list li:last-child { margin-bottom: 0; }
.verdict-basis {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.55; color: var(--faint);
}

.brief-sec { margin-bottom: 34px; }
.brief-sec > h3 { margin-bottom: 4px; }
.brief-sec > .cap { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.f-item { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.f-item:first-of-type { border-top: 0; padding-top: 4px; }
.f-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.f-id { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.f-item p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

table.reqs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.reqs th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
  padding: 0 12px 9px 0; border-bottom: 1px solid var(--line);
}
table.reqs td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.reqs td:first-child { font-weight: 500; width: 27%; }
table.reqs td:nth-child(2) { width: 22%; white-space: nowrap; }
table.reqs td:last-child { color: var(--muted); font-size: 13.5px; }

ol.agenda { margin: 0; padding-left: 20px; }
ol.agenda li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; padding-left: 4px; }

.kv { border-top: 1px solid var(--line-soft); padding: 13px 0; display: grid; grid-template-columns: 190px 1fr; gap: 18px; }
.kv:first-of-type { border-top: 0; }
.kv dt { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.kv dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.risk { padding: 15px 0; border-top: 1px solid var(--line-soft); }
.risk:first-of-type { border-top: 0; }
.risk-top { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.risk p { font-size: 14px; line-height: 1.58; color: var(--ink-2); }

ul.plain { margin: 0; padding: 0; list-style: none; }
ul.plain li {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  padding: 9px 0 9px 20px; border-top: 1px solid var(--line-soft);
  position: relative;
}
ul.plain li:first-child { border-top: 0; }
ul.plain li::before {
  content: ''; position: absolute; left: 3px; top: 17px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--faint);
}

.private-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border-radius: 8px;
  background: var(--human-bg); color: #34336B;
  font-size: 13.5px; line-height: 1.5; margin-bottom: 30px;
}

/* ---------- generic grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.cell { background: var(--white); padding: 28px 26px; }
.cell .n { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 14px; }
.cell h3 { margin-bottom: 9px; }
.cell p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.section-alt .cell { background: var(--surface-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- use cases ---------- */

.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.use {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 30px 28px 26px; background: var(--white);
  display: flex; flex-direction: column;
}
.use h3 { margin: 12px 0 12px; }
.use > p { font-size: 14.5px; line-height: 1.62; color: var(--muted); }

ul.flow { list-style: none; margin: 22px 0 0; padding: 0; }
ul.flow li {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
ul.flow li span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint);
  padding-top: 2px;
}
ul.flow li:last-child { color: var(--ink); }
ul.flow li:last-child span { color: var(--accent); }

.use-more {
  display: grid; grid-template-columns: 150px 1fr 1fr; gap: 28px;
  margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--line);
}
.use-more .lab {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.use-more div { font-size: 14px; line-height: 1.6; color: var(--muted); }
.use-more strong { color: var(--ink); font-weight: 600; }

.ctrl { padding: 20px 0; border-top: 1px solid var(--line); }
.ctrl:first-child { border-top: 0; padding-top: 0; }
.ctrl h4 { margin-bottom: 6px; }
.ctrl p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.principle {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32; letter-spacing: -0.025em; font-weight: 500;
  max-width: 20ch;
}
.principle em { font-style: normal; color: var(--faint); }

/* ---------- pricing ---------- */

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px 28px; background: var(--white);
  display: flex; flex-direction: column;
}
.price.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-name { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.price-amt { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price-amt small { font-size: 14px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.price-desc { font-size: 13.5px; color: var(--muted); margin: 12px 0 18px; line-height: 1.55; min-height: 42px; }
.price ul { margin: 0 0 22px; padding: 0; list-style: none; }
.price ul li {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  padding: 7px 0 7px 19px; position: relative;
}
.price ul li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.price .btn { width: 100%; justify-content: center; margin-top: auto; }

.pricing-note {
  margin-top: 26px; font-size: 13.5px; color: var(--faint);
  max-width: 62ch; line-height: 1.6;
}

/* ---------- fan-out: parallel lanes ---------- */

.run-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}

.lane { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.lane:first-child { border-top: 0; }
.lane.is-pending { opacity: .55; }
.lane-top {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 9px; flex-wrap: wrap;
}
.lane-name { font-size: 14.5px; font-weight: 500; }
.lane-kit { font-size: 12px; color: var(--faint); }
.lane-kit.stale, .rank-kit.stale { color: var(--inferred); }
.lane-state {
  margin-left: auto; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); white-space: nowrap;
}
.lane-state.done { color: var(--accent); }
.lane-state.pending { color: var(--faint); }
.lane-bar { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.lane-bar i {
  display: block; height: 100%; background: var(--accent);
  transition: width .32s ease;
}

/* ---------- fan-out: ranked list ---------- */

.rank {
  display: grid; grid-template-columns: 62px 1fr; gap: 18px;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.rank:first-of-type { border-top: 0; }
.rank-score {
  font-size: 19px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--accent); padding-top: 1px;
}
.rank-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.rank-body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.rank-kit { display: block; margin-top: 7px; font-size: 12px; color: var(--faint); }

/* ---------- fan-out: comparison matrix ---------- */

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; min-width: 860px; }
.matrix th {
  text-align: left; vertical-align: bottom;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  padding: 0 14px 10px 0; border-bottom: 1px solid var(--line);
}
.matrix th:first-child {
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
}
.matrix th span { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.matrix td {
  padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.matrix td.req { font-size: 14px; font-weight: 500; width: 200px; }
.echip-note {
  display: block; margin-top: 5px;
  font-size: 11.5px; line-height: 1.45; color: var(--faint);
}

/* Evidence chip for the comparison matrix. Named echip, not cell: a .cell
   class already exists for the How it works cards, and the later rule
   silently turned those cards into inline chips. */
.echip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.echip i { font-style: normal; font-size: 10px; }
.echip-v { color: var(--confirmed); background: var(--confirmed-bg); }
.echip-c { color: var(--inferred);  background: var(--inferred-bg); }
.echip-n { color: var(--alert);     background: var(--alert-bg); }
.echip-u { color: var(--unknown);   background: var(--unknown-bg); }
.echip-h { color: var(--human);     background: var(--human-bg); }

@media (max-width: 900px) {
  .rank { grid-template-columns: 46px 1fr; gap: 14px; }
}

/* ---------- the two doors ---------- */
/* The two sides of the market want different things on arrival, so the hero
   stops trying to address both in one sentence and gives each a door. */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 22px; max-width: 860px; }
.door {
  display: flex; flex-direction: column; gap: 7px;
  padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); text-decoration: none; color: inherit;
  transition: border-color .14s ease, transform .14s ease;
}
.door:hover { border-color: var(--accent); transform: translateY(-2px); }
.door-who { font: 600 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.door b { font-size: 17px; font-weight: 600; line-height: 1.32; color: var(--ink); }
.door-what { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.door-go { margin-top: 5px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.door-alt { background: var(--surface); }
.door-alt:hover { background: var(--white); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

footer {
  padding: 46px 0; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--faint);
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

.typing { display: inline-flex; gap: 3px; padding-left: 13px; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--faint);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .rail { border-top: 1px solid var(--line-soft); max-height: 300px; }
  .stream { border-right: 0; max-height: none; }
  .grid-3, .prices, .use-grid { grid-template-columns: 1fr; }
  .use-more { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 34px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-colon { display: none; }
  section { padding: 64px 0; }
  .brief { padding: 28px 24px 34px; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .container { padding: 0 20px; }
  .console-body { padding: 22px; }
}
