/* ==========================================================================
   ZNELK Intelligence: the product page. Builds on home.css (Option 8):
   same tokens, rules, square corners and type, plus a monospace for data.
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-normal.woff2') format('woff2');
}

.intel {
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --panel: #15122e;
  --panel-line: rgba(199, 184, 255, 0.16);
  --panel-text: #ecebf5;
  --panel-soft: #b3b1c9;
  --cyan: #b9a7ff;
}

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

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.label-gold { color: var(--gold-light) !important; }
.label-gold-ink { color: var(--gold-ink) !important; }

.col-label {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.fine {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
}

.tag-dark {
  border-color: var(--panel-line);
  color: var(--panel-soft) !important;
}

.link-arrow {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.link-arrow:hover { color: var(--ink); }

.stat-big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Hero ---- */

.intel-hero {
  padding-block: clamp(48px, 6vw, 96px) clamp(64px, 8vw, 120px);
  background: var(--paper);
}

.intel-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.intel-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.intel-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 56px;
  align-items: end;
  margin-top: 32px;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.intel-hero-foot .hero7-sub { margin-top: 0; }

.intel-hero-foot .lp-cta { margin-top: 0; }

@media (max-width: 860px) {
  .intel-hero-foot { grid-template-columns: minmax(0, 1fr); }
}

/* The example console: a slice of the product, clearly labelled */
.console {
  border: 1px solid var(--night);
  background: var(--night);
  color: var(--panel-text);
  box-shadow: 18px 18px 0 -1px var(--paper), 18px 18px 0 0 var(--gold);
  margin-right: 18px;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--panel-line);
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--panel-text);
}

.console-mark {
  width: 22px;
  height: 22px;
  animation: halo-spin 14s linear infinite;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 900px) {
  .console-grid { grid-template-columns: minmax(0, 1fr); }
}

.signal-card {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--panel-line);
}

@media (max-width: 900px) {
  .signal-card { border-right: 0; border-bottom: 1px solid var(--panel-line); }
}

.signal-title {
  margin: 14px 0 24px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #ffffff;
}

.signal-metrics { margin: 0; }

.signal-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 90px;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--panel-line);
}

.signal-metrics dt {
  font-size: 0.9rem;
  color: var(--panel-soft);
}

.signal-metrics dd {
  display: contents;
}

.signal-metrics .num {
  color: #ffffff;
  text-align: right;
}

.spark {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) calc(var(--v) * 100%), rgba(199, 184, 255, 0.16) 0);
}

.confidence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-line);
  color: var(--panel-soft);
}

.confidence-bar {
  height: 6px;
  background: rgba(199, 184, 255, 0.16);
}

.confidence-bar > span {
  display: block;
  height: 100%;
  background: var(--gold-light);
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.confidence .num {
  font-size: 1.1rem;
  color: #ffffff;
}

.feed {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--panel-soft);
}

.feed-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.feed-live span {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  animation: live 1.6s ease-in-out infinite;
}

@keyframes live {
  50% { opacity: 0.25; }
}

.feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-list li {
  display: grid;
  grid-template-columns: 3.4rem 4.6rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--panel-line);
  font-size: 0.88rem;
}

.feed-list li.is-new { animation: feed-in 0.6s ease both; }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); background: rgba(185, 167, 255, 0.12); }
  to { opacity: 1; transform: none; background: transparent; }
}

.feed-time,
.feed-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--panel-soft);
}

.feed-type {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feed-what { color: var(--panel-text); }

.feed-note {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-soft);
}

/* ---- Market selector ---- */

.industries {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.industry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 150px;
  padding: 20px 20px 18px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font: 400 1.15rem/1.15 var(--serif);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.industry:hover { background: #ecebf5; }

.industry[aria-pressed='true'] {
  background: var(--ink);
  color: #ffffff;
}

.industry-state {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.industry-state.is-soon { color: var(--gold-ink); }

.industry[aria-pressed='true'] .industry-state { color: #c7b8ff; }

.industry[aria-pressed='true'] .industry-state.is-soon { color: var(--gold-light); }

.market-panel {
  border: 1px solid var(--rule);
  border-top: 0;
  background: var(--paper);
}

.market-live,
.market-watch { padding: clamp(24px, 3.4vw, 48px); }

.market-live.is-swapping { animation: swap 0.45s ease; }

@keyframes swap {
  from { opacity: 0.2; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.market-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px clamp(28px, 5vw, 80px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--rule);
}

.market-stats .tag { margin-left: auto; }

.stat-cap {
  margin-top: 10px;
  color: var(--ink-soft);
}

.market-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(24px, 3vw, 36px);
}

@media (max-width: 860px) {
  .market-cols { grid-template-columns: minmax(0, 1fr); }
}

.taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy li {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink);
}

.pick-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.pick-count {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}

.picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

@media (max-width: 480px) {
  .picks { grid-template-columns: minmax(0, 1fr); }
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.check input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check input::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.check input:checked { border-color: var(--ink); }

.check input:checked::after { transform: scale(1); }

.check input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check.is-locked {
  color: rgba(11, 13, 20, 0.45);
  cursor: not-allowed;
}

.check.is-locked input { cursor: not-allowed; border-style: dashed; }

.lock {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.pick-note {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gold-ink);
}

.scale { margin-top: 26px; }

.scale-options,
.signal-switch,
.adoption-switch {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--rule-strong);
  width: fit-content;
  max-width: 100%;
}

.scale-options button,
.signal-switch button,
.adoption-switch button {
  padding: 11px 16px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  font: 500 0.85rem/1 var(--mono);
  color: var(--ink);
  cursor: pointer;
}

.scale-options button:last-child,
.signal-switch button:last-child,
.adoption-switch button:last-child { border-right: 0; }

.scale-options button[aria-pressed='true'],
.adoption-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: #ffffff;
}

.market-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

@media (max-width: 860px) {
  .market-watch { grid-template-columns: minmax(0, 1fr); }
}

.market-watch[hidden],
.market-live[hidden] { display: none; }

.watch-copy h3 {
  margin: 14px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.watch-ask {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent) !important;
}

.watch-taxonomy {
  margin-top: 16px;
  font-size: 0.92rem;
}

.sooner {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.sooner .mono {
  margin-bottom: 10px;
  color: var(--ink);
}

.intel-form select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  font: 400 1rem var(--sans);
  color: var(--ink);
}

.form-note {
  margin-top: 6px;
  font-size: 0.82rem;
}

.form7 .form-status {
  margin-top: 10px;
  font-size: 0.92rem;
}

.optional {
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

/* ---- Your companies and your whole market ---- */

.market-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .market-scope { grid-template-columns: minmax(0, 1fr); }
}

.market-scope > div {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px clamp(20px, 3vw, 40px) 26px 0;
}

.market-scope > div + div {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .market-scope > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.market-scope p:not(.mono) { color: var(--ink-soft); }

.market-scope strong { font-weight: 600; color: var(--ink); }

.market-scope .tag { margin-left: 6px; vertical-align: 1px; }

/* ---- Modules ---- */

.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (max-width: 1000px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .modules { grid-template-columns: minmax(0, 1fr); }
}

.module {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 34px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background-color 0.25s ease;
}

.module:hover { background: #ecebf5; }

.module-name { color: var(--accent); }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .process { grid-template-columns: minmax(0, 1fr); }
}

.process li {
  display: grid;
  gap: 8px;
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--ink);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.process .mono { color: var(--accent); }

/* ---- Strategic signals ---- */

.signal-switch {
  margin-bottom: 32px;
  border-color: rgba(199, 184, 255, 0.45);
}

.signal-switch button {
  border-right-color: var(--night-rule);
  color: #d6d3e6;
}

.signal-switch button[aria-pressed='true'] {
  background: #f5f6fa;
  color: var(--night);
}

.chain {
  display: grid;
  gap: 18px;
}

.chain-evidence {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-rule);
  border-left: 1px solid var(--night-rule);
}

@media (max-width: 1000px) {
  .chain-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .chain-evidence { grid-template-columns: minmax(0, 1fr); }
}

.chain-evidence li {
  position: relative;
  padding: 20px 18px;
  border-right: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  background: rgba(11, 13, 20, 0.86);
  opacity: 0.35;
  transition: opacity 0.5s ease, background-color 0.5s ease;
}

.chain.is-lit .chain-evidence li { opacity: 1; }

.chain-evidence li.is-on {
  opacity: 1;
  background: #1b1735;
}

.chain-evidence .ev-source {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.chain-evidence .ev-what {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.chain-evidence .ev-date {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #c7b8ff;
}

.chain-arrow {
  justify-self: center;
  font-size: 1.6rem;
  color: var(--gold-light);
}

.chain-result {
  width: 100%;
  padding: clamp(28px, 4.4vw, 64px);
  border: 1px solid rgba(226, 189, 116, 0.55);
  background: rgba(11, 13, 20, 0.92);
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

.chain.is-lit .chain-result,
.chain.is-done .chain-result { opacity: 1; }

.chain-claim {
  max-width: 22ch;
  margin: 18px 0 clamp(24px, 3vw, 40px);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.06;
  color: #ffffff !important;
}

.chain-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 40px;
  padding-top: 22px;
  border-top: 1px solid var(--night-rule);
}

@media (max-width: 700px) {
  .chain-meta { grid-template-columns: minmax(0, 1fr); }
}

.chain-result .confidence {
  margin: 0;
  padding: 0;
  border: 0;
  color: #d6d3e6;
}

.chain-result .confidence-bar { height: 10px; }

.chain-result .confidence .num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.chain-count { color: #c7b8ff !important; }

.evidence {
  margin-top: 20px;
  border-top: 1px solid var(--night-rule);
}

.evidence summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #ffffff;
}

.evidence summary::-webkit-details-marker { display: none; }

.evidence summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.evidence[open] summary::after { content: '−'; }

.evidence-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.evidence-table th {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--night-rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: #c7b8ff;
}

.evidence-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--night-rule);
  vertical-align: top;
  color: #d6d3e6;
}

.evidence-table td:first-child { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }

.disclaimer {
  position: relative;
  max-width: 70ch;
  background: var(--night);
  margin-top: 36px;
  font-size: 0.92rem;
  color: #c5c3d6 !important;
}

.disclaimer .mono {
  display: block;
  margin-top: 8px;
  color: #c7b8ff;
}

/* ---- Ask the market ---- */

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ask-chips button {
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font: 400 0.9rem/1.3 var(--sans);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ask-chips button:hover { background: #ecebf5; }

.ask-chips button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.ask-window {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.ask-input {
  display: flex;
  border-bottom: 1px solid var(--rule-strong);
}

.ask-input input {
  flex: 1;
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 40px);
  border: 0;
  font: 400 clamp(1.1rem, 2vw, 1.6rem) var(--serif);
  color: var(--ink);
}

.ask-input input::placeholder { color: #6a6e80; }

.ask-input input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ask-input .button {
  min-height: clamp(64px, 7vw, 92px);
  padding-inline: clamp(20px, 2.6vw, 36px);
}

@media (max-width: 640px) {
  .ask-input { flex-wrap: wrap; }
  .ask-input input { flex-basis: 100%; min-height: 64px; font-size: 1.05rem; }
  .ask-input .button { flex: 1; min-height: 52px; justify-content: space-between; }
}

.ask-answer { padding: clamp(28px, 4.4vw, 64px); }

.ask-status {
  color: var(--accent);
  min-height: 1.4em;
}

.ask-text {
  max-width: 26ch;
  min-height: 3.2em;
  margin: 18px 0 clamp(28px, 3.4vw, 48px);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  color: var(--ink) !important;
}

.ask-table { font-size: clamp(0.98rem, 1.2vw, 1.12rem); }

.ask-table th {
  color: var(--ink-soft);
  border-bottom-color: var(--rule-strong);
}

.ask-table td {
  padding-block: 16px;
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.ask-table td:first-child { font-size: 0.86rem; }

@media (max-width: 640px) {
  .ask-table thead { display: none; }
  .ask-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .ask-table td { padding: 0; border: 0; }
  .ask-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ask-table td:nth-child(n+3) { font-family: var(--mono); font-size: 0.78rem; }
}

.ask-table td:nth-child(3) { color: var(--accent); }

.ask-table tbody tr { animation: feed-in 0.5s ease both; }

.ask-answer .feed-note { color: var(--ink-soft); }

/* ---- Memory ---- */

.adoption {
  margin: 0;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.adoption-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.adoption-head figcaption { color: var(--ink-soft); }

.bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: end;
  height: clamp(220px, 28vw, 380px);
  border-bottom: 1px solid var(--ink);
}

.bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.bar-fill {
  position: relative;
  height: 0;
  background: var(--ink);
  transition: height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bar:last-child .bar-fill { background: var(--accent); }

.bar-value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-align: center;
  color: var(--ink);
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.precursor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .precursor { grid-template-columns: minmax(0, 1fr); }
}

.precursor h3 {
  margin: 14px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.sequence {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--ink);
}

.sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0 16px 28px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

.sequence li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 24px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.seq-t { color: var(--ink-soft); }

.seq-outcome::before {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.seq-outcome { color: var(--accent) !important; }

/* ---- Dashboard ---- */

.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--panel-line);
  background: #0a0914;
  color: var(--panel-text);
}

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
}

.app-side {
  padding: 22px 0;
  border-right: 1px solid var(--panel-line);
}

@media (max-width: 860px) {
  .app-side { border-right: 0; border-bottom: 1px solid var(--panel-line); padding-bottom: 0; }
}

.app-workspace {
  display: grid;
  gap: 4px;
  padding: 0 20px 18px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #ffffff !important;
}

.app-workspace .mono {
  font-size: 0.64rem;
  color: var(--panel-soft);
}

.app-nav { display: grid; }

@media (max-width: 860px) {
  .app-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-top: 1px solid var(--panel-line);
  }
}

.app-nav button {
  padding: 9px 20px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  font: 400 0.98rem var(--sans);
  color: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.app-nav button:hover { color: #ffffff; }

.app-nav button[aria-selected='true'] {
  border-left-color: var(--gold-light);
  background: rgba(199, 184, 255, 0.08);
  color: #ffffff;
}

.app-main {
  min-width: 0;
  padding: clamp(22px, 3.4vw, 48px);
  min-height: 600px;
}

.app-main:focus-visible {
  outline: 2px solid #c7b8ff;
  outline-offset: -2px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-view {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: #ffffff !important;
}

.app .col-label { color: var(--panel-soft); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px;
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
}

@media (max-width: 1100px) {
  .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.month-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.month-grid dt {
  font-size: 0.86rem;
  color: var(--panel-soft);
}

.month-grid dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: #ffffff;
}

.month-grid .is-key { background: rgba(226, 189, 116, 0.12); }

.month-grid .is-key dd { color: var(--gold-light); }

.app-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
}

@media (max-width: 700px) {
  .app-panels { grid-template-columns: minmax(0, 1fr); }
}

.app-panel {
  padding: clamp(18px, 2.4vw, 28px);
  border-right: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.app-panel h3 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold-light);
}

.rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--panel-line);
  font-size: 1rem;
  color: var(--panel-text);
}

.rows li:last-child { border-bottom: 0; }

.rows .num { color: var(--cyan); }

.trend {
  flex: none;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) calc(var(--v) * 100%), rgba(199, 184, 255, 0.16) 0);
}

.rows-large li {
  padding: 18px 0;
  font-size: 1.08rem;
}

.rows-large .row-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--panel-soft);
  white-space: nowrap;
}

.app-desc {
  margin-bottom: 16px;
  color: var(--panel-soft) !important;
}

.movement {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 180px;
}

.movement .col {
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
}

.movement .col span { display: block; }

.movement .s1, .movement-key .k1 { background: #8a6dff; }
.movement .s2, .movement-key .k2 { background: var(--cyan); }
.movement .s3, .movement-key .k3 { background: var(--gold-light); }
.movement .s4, .movement-key .k4 { background: #c7b8ff; }

.movement-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 0.62rem;
  color: var(--panel-soft);
}

.movement-key span {
  width: 9px;
  height: 9px;
  margin-left: 6px;
}

/* ---- Alerts ---- */

.alerts {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 88px);
}

.alerts-title {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

@media (max-width: 900px) {
  .alerts { grid-template-columns: minmax(0, 1fr); }
}

.prefs {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.prefs-table {
  width: 100%;
  border-collapse: collapse;
}

.prefs-table th {
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}

.prefs-table td {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  text-align: right;
}

.freq {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
}

.freq button {
  padding: 8px 11px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
}

.freq button:last-child { border-right: 0; }

.freq button[aria-pressed='true'] {
  background: var(--ink);
  color: #ffffff;
}

@media (max-width: 600px) {
  .prefs-table tr { display: grid; }
  .prefs-table th { padding-bottom: 6px; }
  .prefs-table td { border-top: 0; padding-top: 0; text-align: left; }
}

.prefs-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink) !important;
}

.layers {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.layers li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

.layers .mono { color: var(--accent); }

.layers-later {
  font-family: var(--sans) !important;
  font-size: 0.92rem !important;
  color: var(--ink-soft) !important;
}

.layers-later .mono { color: var(--gold-ink); }

/* ---- Cross-industry ---- */

.cross {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}

.cross h3 {
  margin: 14px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.cross-quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--ink) !important;
}

@media (max-width: 900px) {
  .cross { grid-template-columns: minmax(0, 1fr); }
}

.cross-chart {
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--rule);
}

.cross-chart figcaption {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.cross-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.cross-chart .grid line {
  stroke: var(--rule);
  stroke-width: 1;
}

.cross-chart .axis text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-soft);
}

.cross-chart .line-a,
.cross-chart .line-b {
  fill: none;
  stroke-width: 2.5;
}

.cross-chart .line-a { stroke: var(--accent); }
.cross-chart .dots-a { fill: var(--accent); }
.cross-chart .line-b { stroke: var(--gold); }
.cross-chart .dots-b { fill: var(--gold); }

.cross-chart .label-a,
.cross-chart .label-b {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.cross-chart .label-a { fill: var(--accent); }
.cross-chart .label-b { fill: var(--gold-ink); }

.cross-chart .lead {
  stroke: var(--ink);
  stroke-dasharray: 3 4;
}

.cross-chart .lead-text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink);
}

/* ---- Access ---- */

.tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (max-width: 1100px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}

.tier {
  padding: clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.tier-name { color: var(--accent); }

.tier-main {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink) !important;
}

.tier ul { border-top: 1px solid var(--rule); }

.tier li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tier-dark { background: var(--night); }

.tier-dark .tier-name { color: var(--gold-light); }

.tier-dark .tier-main { color: #ffffff !important; }

.tier-dark ul,
.tier-dark li { border-color: var(--night-rule); }

.tier-dark li { color: #d6d3e6; }

.access-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 32px;
}

/* ---- Evidence trail ---- */

.trail-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--night-rule);
  background: var(--night);
}

@media (max-width: 900px) {
  .trail-block { grid-template-columns: minmax(0, 1fr); }
}

.trail-block h3 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  color: #ffffff;
}

.trail-copy p { color: #d6d3e6 !important; }

.trail {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--gold-light);
}

.trail li {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--night-rule);
}

.trail li:last-child { border-bottom: 0; }

.trail li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--night);
  border: 1px solid var(--gold-light);
}

.trail li:last-child::before { background: var(--gold-light); }

.trail .mono { color: var(--gold-light); }

.trail-value {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  color: #ffffff;
}

@media (max-width: 520px) {
  .trail li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---- Bridge to the consultancy ---- */

.bridge { padding-block: clamp(56px, 7vw, 96px); }

.bridge-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

@media (max-width: 860px) {
  .bridge-inner { grid-template-columns: minmax(0, 1fr); }
}

.bridge h2 { margin-top: 18px; }

.bridge-tags {
  margin: 12px 0 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
}

/* ---- Final call ---- */

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}

@media (max-width: 860px) {
  .final-grid { grid-template-columns: minmax(0, 1fr); }
}

.final h2 {
  margin: 18px 0 32px;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.04;
}

.final .sec-label { color: #d6d3e6; }

.band-navy .form7 label,
.band-navy .optional { color: #d6d3e6; }

.band-navy .form-note,
.band-navy .form7 .form-status { color: #d6d3e6 !important; }

/* ---- Motion preferences ---- */

@media (prefers-reduced-motion: reduce) {
  .console-mark,
  .feed-live span { animation: none; }
  .feed-list li.is-new,
  .ask-table tbody tr,
  .market-live.is-swapping { animation: none; }
  .chain-evidence li,
  .chain-result { opacity: 1; transition: none; }
  .bar-fill,
  .confidence-bar > span { transition: none; }
}
