/* Etiqor Labs corporate site styles.
   Layout: one centred column (max 1160px) of full-width bands; dark-first,
   Etiqor identity: graphite ground, warm off-white text, emerald accent (as halalterminal.com), IBM Plex. */

/* Fonts are self-hosted (IBM Plex, SIL Open Font Licence): no third-party requests. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0D1014;
  --surface: #12161C;
  --raise: #181D25;
  --ink: #ECEAE4;
  --muted: #A3A9B2;
  --line: #232A33;
  --accent: #10B981;
  --accent-ink: #05070B;
  --link: #7DD3FC;
  --link-hover: #BAE6FD;
  --ok: #7FC79B;
  --hold: #10B981;
  --ph-bg: rgba(249, 250, 251, 0.06);
  --ph-line: #A3A9B2;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --step-3: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F5F6; --surface: #FFFFFF; --raise: #ECEEF0; --ink: #12161C; --muted: #4D5560;
    --line: #D8DCE1; --accent: #047857; --accent-ink: #FFFFFF; --link: #0369A1; --link-hover: #075985; --ok: #1E7A46; --hold: #047857;
    --ph-bg: rgba(18, 22, 28, 0.05); --ph-line: #4D5560; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F5F6; --surface: #FFFFFF; --raise: #ECEEF0; --ink: #12161C; --muted: #4D5560;
    --line: #D8DCE1; --accent: #047857; --accent-ink: #FFFFFF; --link: #0369A1; --link-hover: #075985; --ok: #1E7A46; --hold: #047857;
    --ph-bg: rgba(18, 22, 28, 0.05); --ph-line: #4D5560; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: clamp(100%, 93.75% + 0.3vw, 112.5%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.band--alt { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.measure { max-width: 64ch; }
.eyebrow { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: var(--step-1); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 500; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 600; letter-spacing: 0.16em; font-size: 0.95rem; text-transform: uppercase; }
.brand-by { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: var(--step--1); padding: 8px 14px; min-height: 44px; cursor: pointer; }
.nav-list { display: flex; align-items: center; gap: 4px 24px; list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.nav-list a { color: var(--muted); text-decoration: none; display: inline-block; padding: 10px 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-list .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 10px 16px; box-shadow: none; }
.nav-list .nav-cta:hover { color: var(--accent-ink); filter: brightness(1.08); }
@media (max-width: 860px) {
  .brand-by { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav[data-open="false"] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav-list a { padding: 12px 0; }
  .nav-list a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-list .nav-cta { text-align: center; margin-top: 8px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: inherit; font-size: 0.98rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; }
.hero h1 .stay { display: block; color: var(--accent); }
.hero .lede { max-width: 56ch; }
.hero-note { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }

/* Illustrative decision record */
.record { background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.875rem; min-width: 0; }
.record-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.875rem; }
.record-tag { color: var(--hold); }
.record dl { margin: 0; padding: 6px 18px 4px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 16px; }
.record dt, .record dd { padding: 10px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.record dt { color: var(--muted); }
.record dd { color: var(--ink); overflow-wrap: anywhere; }
.record dl > :nth-last-child(-n+2) { border-bottom: none; }
.pill { display: inline-block; padding: 1px 8px; border: 1px solid currentColor; font-size: 0.875rem; letter-spacing: 0.04em; }
.pill--ok { color: var(--ok); }
.pill--hold { color: var(--hold); }
.record-out { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--raise); display: flex; flex-direction: column; gap: 4px; }
.record-out strong { font-weight: 600; color: var(--ink); }
.record-foot { padding: 10px 18px 14px; color: var(--muted); font-size: 0.875rem; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.cell { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cell p { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.band--alt .panel { background: var(--bg); }
.code { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); letter-spacing: 0.08em; }
.status { font-family: var(--mono); font-size: 0.875rem; color: var(--hold); letter-spacing: 0.06em; text-transform: uppercase; }

/* Evidence gate */
.gate { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: gate; border: 1px solid var(--line); background: var(--surface); }
.gate li { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; counter-increment: gate; min-width: 0; }
.gate li + li { border-left: 1px solid var(--line); }
.gate li::before { content: "Stage " counter(gate); font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gate li + li::after { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.gate p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 860px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate li + li { border-left: none; border-top: 1px solid var(--line); }
  .gate li + li::after { left: 26px; top: -7px; transform: rotate(135deg); }
}

/* Numbered path */
.path { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; }
.path li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.path li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 0.95rem; padding-top: 2px; }
.path p { color: var(--muted); }

/* Doctrine quotes */
.doctrine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.doctrine li { border-top: 1px solid var(--line); padding: 18px 0; font-size: var(--step-1); font-weight: 300; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: var(--step-1); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }

/* Risk notice */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--hold); background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.notice strong { color: var(--ink); font-weight: 600; }

/* Placeholders: visible until confirmed */
.ph { background: var(--ph-bg); outline: 1px dashed var(--ph-line); outline-offset: 1px; padding: 0 4px; font-family: var(--mono); font-size: 0.86em; color: var(--ink); }
.ph-banner { border: 1px dashed var(--ph-line); background: var(--ph-bg); padding: 12px 16px; font-family: var(--mono); font-size: 0.875rem; color: var(--ink); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--hold); }
.error { color: var(--hold); font-size: 0.875rem; }
.composed { border: 1px solid var(--line); background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.composed pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.875rem; color: var(--ink); max-height: 320px; overflow: auto; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr { font-family: var(--mono); font-size: 1rem; user-select: all; color: var(--ink); }
.copy-btn { font: inherit; font-size: 0.875rem; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 12px; min-height: 36px; cursor: pointer; }
.copy-btn:hover { border-color: var(--muted); }
.live { font-size: 0.875rem; color: var(--ok); min-height: 1.3em; }

/* Legal / prose pages */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: var(--step-2); font-weight: 500; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose li::marker { color: var(--muted); }
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: var(--step-3); font-weight: 300; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h2 { font-size: 0.875rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-grid a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }

/* Corporate additions */
.hero--plain h1 { max-width: 18ch; }
.hero--plain .lede { max-width: 60ch; }
.regline { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; }
@media (max-width: 720px) { .work { grid-template-columns: minmax(0, 1fr); } }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: none; padding-bottom: 0; } }
.footer-grid a.brand { display: inline-flex; color: var(--ink); }
.triad { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; }
.triad span { display: block; }
.triad .em { color: var(--accent); }
.cell .code { margin-bottom: 2px; }
.triad--sm { font-size: var(--step-3); }

/* One-page navigation */
[id] { scroll-margin-top: 80px; }
.nav-list a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); z-index: 15; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.faq .prose h3 { font-size: var(--step-0); font-weight: 600; color: var(--ink); margin-top: 8px; }
.faq summary { color: var(--ink); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.band--cta { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.band--proof { padding-block: 40px; background: var(--surface); }
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 32px; }
.proof li { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--accent); padding-left: 16px; min-width: 0; }
.proof-n { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); white-space: nowrap; font-weight: 300; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof-l { color: var(--muted); font-size: 0.94rem; }

/* Partner ecosystem chain */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.node { position: relative; border: 1px solid var(--line); background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.node + .node::before { content: ""; position: absolute; left: -28px; top: 50%; width: 28px; height: 1px; background: var(--accent); }
.node + .node::after { content: ""; position: absolute; left: -9px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.node-k { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.node-t { font-size: var(--step-1); font-weight: 500; color: var(--ink); }
.node-s { font-size: 0.875rem; color: var(--muted); }
.node--core { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.node--core .node-k { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .node--core { animation: pulse 3.2s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); } }
}
@media (max-width: 900px) {
  .chain { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .node + .node::before { left: 50%; top: -22px; width: 1px; height: 22px; }
  .node + .node::after { left: calc(50% - 4px); top: -9px; transform: rotate(135deg); }
}
.markets { margin: 0; font-size: var(--step-1); color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.markets-k { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.markets-more { color: var(--muted); }
.pcard { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcard p { color: var(--muted); flex: 1; }
.pcard a { font-weight: 500; }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px; }
p a, li a, dd a { font-weight: 500; }

/* AI assistant */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: none; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.chat-fab:hover { filter: brightness(1.08); }
.chat-panel { width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-weight: 600; }
.chat-head span { display: block; font-size: 0.875rem; color: var(--muted); }
.chat-close { background: none; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; min-width: 32px; min-height: 32px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { background: var(--raise); color: var(--ink); align-self: flex-start; }
.msg--user { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--ink); align-self: flex-end; }
.msg--typing { color: var(--muted); font-style: italic; }
.msg .btn { margin-top: 10px; min-height: 40px; font-size: 0.88rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chip { font: inherit; font-size: 0.875rem; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; min-height: 44px; }
.chat-form .btn { min-height: 44px; padding: 0 16px; }
.chat-note { margin: 0; padding: 0 16px 12px; font-size: 0.875rem; color: var(--muted); }
.to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }


/* Hero particle network */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 45%, #000 75%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 45%, #000 75%); }
@media (prefers-reduced-motion: reduce) { .hero-fx { display: none; } }

/* Section rhythm: each section fits one screen on desktop */
.sec { gap: clamp(24px, 4.5vh, 44px); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
@media (min-width: 900px) {
  .band { padding-block: clamp(44px, 8vh, 104px); }
  .head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(32px, 5vw, 72px); row-gap: 12px; align-items: end; }
  .head-row .eyebrow { grid-column: 1 / -1; }
  .head-row .lede { margin: 0; }
  .cell { padding-top: 14px; gap: 6px; }
  .node { padding: 14px 14px; }
  .form { gap: 14px; }
  .field textarea { min-height: 96px; }
  .hero { min-height: max(460px, calc(100svh - 65px - 172px)); display: grid; align-content: center; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .pcard p { font-size: 0.95rem; }
  .field input, .field select { min-height: 44px; padding-block: 9px; }
  .head-row .triad--sm { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); }
}

/* Jebon: icon-only launcher */
.chat-fab { width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; border-radius: 0; }
.chat-fab .ico-jebon { width: 26px; height: 26px; }
.chat[data-open="true"] .chat-fab { transform: scale(.92); }
.jebon-open { align-self: flex-start; gap: 10px; }

/* Hero: deep-space backdrop in dark mode */
:root { --space: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --space:
  radial-gradient(60% 70% at 78% 30%, rgba(16,185,129,.16), transparent 70%),
  radial-gradient(50% 60% at 15% 85%, rgba(79,70,229,.22), transparent 70%),
  radial-gradient(40% 50% at 55% 0%, rgba(14,165,233,.12), transparent 70%),
  linear-gradient(180deg, #070B18 0%, #0A1024 55%, #0B0F1A 100%); } }
:root[data-theme="dark"] { --space:
  radial-gradient(60% 70% at 78% 30%, rgba(16,185,129,.16), transparent 70%),
  radial-gradient(50% 60% at 15% 85%, rgba(79,70,229,.22), transparent 70%),
  radial-gradient(40% 50% at 55% 0%, rgba(14,165,233,.12), transparent 70%),
  linear-gradient(180deg, #070B18 0%, #0A1024 55%, #0B0F1A 100%); }
.hero { background: var(--space), var(--bg); }

.head-side { gap: 12px; }
.markets { font-size: var(--step-0); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (min-width: 900px) {
  .band.band--proof { padding-block: 32px; }
  .chain { gap: 22px; }
  .node + .node::before { left: -22px; width: 22px; }
  #contact .split > .stack { gap: 20px !important; }
  .facts dt, .facts dd { padding: 9px 0; }
}
@media (min-width: 900px) and (max-height: 950px) { .node-s { display: none; } }
@media (min-width: 900px) {
  .pcard h3 { font-size: var(--step-1); }
  .pcard { gap: 6px; padding-top: 14px; }
  #partners .head-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .band { padding-block: clamp(32px, 5.5vh, 60px); }
  .sec { gap: clamp(20px, 3.4vh, 32px); }
}
.jebon-name { color: var(--accent); }
/* Market names in amber */
:root { --amber: #B45309; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --amber: #F59E0B; } }
:root[data-theme="dark"] { --amber: #F59E0B; }
.markets { color: var(--amber); }
.markets [aria-hidden="true"] { color: var(--muted); }

/* Jebon: live-chat feel */
.chat-head { align-items: center; }
.chat-id { flex: 1; min-width: 0; }
.avatar { flex: none; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem; }
.avatar--sm { width: 28px; height: 28px; font-size: 0.8rem; }
.dot-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row--user { justify-content: flex-end; }
.row .msg { max-width: 82%; }
.msg { border-radius: 14px; }
.msg--bot { border-bottom-left-radius: 4px; }
.msg--user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg--typing { font-style: normal; padding: 12px 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
.chip { border-radius: 999px; padding: 7px 12px; }
.chat-chips { padding-left: 52px; }
.chat-form input { border-radius: 999px; padding-inline: 16px; }
.chat-send { flex: none; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { filter: brightness(1.08); }
.chat-note { font-size: 0.8rem; }
.chat-head .avatar { display: grid; place-items: center; color: var(--accent-ink); font-size: 1rem; }
.chat-head .chat-id span { display: block; }

/* Partners: even 4-up grid, research as one line */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1023px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.research-line { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.research-line a { font-weight: 500; }
@media (min-width: 900px) { .pcard h3 { font-size: var(--step-1); } }

/* Keep the chat button clear of the page's last lines */
.site-footer { padding-bottom: calc(40px + 72px); }

/* CTA band: one warm, light breathing point in both themes */
.band--cta {
  --bg: #F1FBF6; --surface: #FFFFFF; --raise: #E6F4EC; --ink: #0F1A14; --muted: #46574D; --line: #CFE6D9;
  --accent: #047857; --accent-ink: #FFFFFF; --link: #0369A1;
  background: linear-gradient(120deg, #F3FBF7 0%, #E7F6EE 55%, #FBF6EA 100%); color: var(--ink); border-top-color: transparent;
}
.band--cta h2 { color: var(--ink); }

/* Preview 1: slim flow strip */
.chain--slim { gap: 18px; }
.chain--slim .node { padding: 10px 14px; flex-direction: row; align-items: center; gap: 0; justify-content: center; text-align: center; }
.chain--slim .node-k, .chain--slim .node-s { display: none; }
.chain--slim .node-t { font-size: var(--step-0); font-weight: 500; }
.chain--slim .node--core .node-t { color: var(--accent); }
.chain--slim .node + .node::before { left: -18px; width: 18px; }
@media (max-width: 860px) { .chain--slim { gap: 22px; } .chain--slim .node + .node::before { left: 50%; width: 1px; } }

/* Preview 1: Etiqor decision-path dividers between sections */
.band:not(.band--proof):not(.band--cta) { position: relative; border-top-color: transparent; }
.band:not(.band--proof):not(.band--cta)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 24px; pointer-events: none;
  background: var(--accent); opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%271200%27%20height%3D%2724%27%20viewBox%3D%270%200%201200%2024%27%3E%3Cpolyline%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.4%27%20stroke-linejoin%3D%27round%27%20points%3D%270%2C14%20130%2C14%20210%2C6%20330%2C18%20470%2C10%20600%2C12%20720%2C4%20860%2C16%20990%2C9%201110%2C15%201200%2C12%27/%3E%3Cg%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%27210%27%20cy%3D%276%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27470%27%20cy%3D%2710%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27720%27%20cy%3D%274%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27990%27%20cy%3D%279%27%20r%3D%272.6%27/%3E%3C/g%3E%3C/svg%3E") center / 1200px 24px repeat-x; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%271200%27%20height%3D%2724%27%20viewBox%3D%270%200%201200%2024%27%3E%3Cpolyline%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.4%27%20stroke-linejoin%3D%27round%27%20points%3D%270%2C14%20130%2C14%20210%2C6%20330%2C18%20470%2C10%20600%2C12%20720%2C4%20860%2C16%20990%2C9%201110%2C15%201200%2C12%27/%3E%3Cg%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%27210%27%20cy%3D%276%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27470%27%20cy%3D%2710%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27720%27%20cy%3D%274%27%20r%3D%272.6%27/%3E%3Ccircle%20cx%3D%27990%27%20cy%3D%279%27%20r%3D%272.6%27/%3E%3C/g%3E%3C/svg%3E") center / 1200px 24px repeat-x;
}

/* Preview 3: light by default; the hero stays a dark "space" stage */
html:root:not(.x) { --bg: #F3F3EF; --surface: #F9F9F6; --raise: #ECECE6; --ink: #14171C; --text: #374151; --muted: #636B78; --line: #CDD1D6; --label: #047857; --accent: #047857; --accent-ink: #FFFFFF; --link: #0B63B8; --link-hover: #084C8E; --ok: #1E7A46; --hold: #047857; --ph-bg: rgba(27, 36, 32, 0.04); --ph-line: #5A6661; --amber: #B45309; --space: none; color-scheme: light; }
.hero { --bg: #0D1014; --surface: #12161C; --raise: #181D25; --ink: #ECEAE4; --muted: #A3A9B2; --line: #232A33; --accent: #10B981; --accent-ink: #05070B; --link: #7DD3FC; --link-hover: #BAE6FD; color-scheme: dark; color: var(--ink); background: radial-gradient(60% 70% at 78% 30%, rgba(16,185,129,.16), transparent 70%),
    radial-gradient(50% 60% at 15% 85%, rgba(79,70,229,.22), transparent 70%),
    radial-gradient(40% 50% at 55% 0%, rgba(14,165,233,.12), transparent 70%),
    linear-gradient(180deg, #070B18 0%, #0A1024 55%, #0B0F1A 100%); }
.hero .btn--ghost { color: var(--ink); border-color: var(--line); }
.band--proof { background: var(--surface); }
.band--cta { background: linear-gradient(120deg, #E3F5EC 0%, #D5EFE2 55%, #F6EEDB 100%); }

/* Preview 3 comfort palette: softer ground, softer text, quieter borders */
body { color: var(--text); }
h1, h2, h3, .triad, .proof-n, .node-t, strong { color: var(--ink); }
.hero p, .hero .lede { color: var(--muted); }
.field input, .field select, .field textarea, .chat-form input { background: #FCFCFA; }
.panel, .chat-panel { box-shadow: 0 1px 2px rgba(27,36,32,.04), 0 8px 24px rgba(27,36,32,.06); }

/* Preview 3: firmer type and borders */
h2, .triad { font-weight: 400; }
.hero h1 { font-weight: 300; }
h3, .node-t { font-weight: 600; }
.code, .eyebrow, .markets-k { color: var(--accent); }
.node { border-color: var(--line); background: #FBFBF8; }
.node--core { border-color: var(--accent); }
.cell, .facts, .facts dt, .facts dd, .research-line { border-color: var(--line); }
.panel, .chat-panel { border-color: var(--line); }
.field input, .field select, .field textarea, .chat-form input { border-color: #B8BDC4; }
.btn--ghost, .copy-btn { border-color: #B8BDC4; color: var(--ink); }
.cell p, .pcard p, .proof-l, .research-line, .facts dd, .lede { color: var(--text); }

/* Preview 3: firmer small labels */
.eyebrow, .code, .markets-k, .node--core .node-k { color: var(--label); font-weight: 500; }
.hero .eyebrow { color: #34D399; }

/* Quieter chat launcher: smaller, light, and hidden where the inline Jebon button is visible */
.chat-fab { width: 50px; height: 50px; background: var(--surface); color: var(--accent); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(17,26,21,.12); }
.chat-fab .ico-jebon { width: 22px; height: 22px; }
.chat-fab:hover { background: var(--accent); color: var(--accent-ink); filter: none; }
.chat[data-open="true"] .chat-fab { background: var(--accent); color: var(--accent-ink); }
.chat.is-tucked:not([data-open="true"]) .chat-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }
.chat-fab { transition: opacity .2s ease, transform .2s ease, background .2s ease; }

/* Preview 3: clear colour roles - black headings, slate body, grey notes, emerald labels, blue links */
.eyebrow, .code, .markets-k { color: var(--label); font-weight: 500; letter-spacing: .14em; }
.lede { color: var(--muted); }
.cell p, .pcard p, .proof-l, .research-line, .facts dd { color: var(--text); }
.facts dt, .small, .muted, .chat-note, .hint { color: var(--muted); }
.markets-more { color: var(--muted); }

/* Preview 3: livelier green and amber */
html:root:not(.x) { --label: #00805A; --vivid: #10B981; }
.eyebrow, .code, .markets-k { color: var(--label); }
.pcard { border-top-color: var(--vivid); }
.proof li { border-left-color: var(--vivid); }
.node + .node::before { background: var(--vivid); }
.node + .node::after { border-color: var(--vivid); }
.band:not(.band--proof):not(.band--cta)::before { background: var(--vivid); opacity: .75; }
.chain--slim .node--core { background: #DDF4E8; border: 1.5px solid var(--vivid); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.chain--slim .node--core .node-t { color: #00694A; font-weight: 600; }
.triad .em { color: var(--label); }
/* Markets as warm amber chips */
.markets { color: var(--muted); gap: 8px; }
.markets [aria-hidden="true"] { display: none; }
.mkt { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #FDEFD8; color: #8F4500; border: 1px solid #F6D5A3; font-weight: 500; font-size: 0.95em; }

/* Preview 3: living lines - mint-tinted borders, emerald-to-mint card rules */
html:root:not(.x) { --line: #C3E2D2; --line-strong: #9FD3B9; }
.cell { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--vivid) 0%, var(--vivid) 30%, var(--line-strong) 70%, var(--line) 100%) 1; }
.research-line { border-top: 1px solid transparent; border-image: linear-gradient(90deg, var(--vivid), var(--line) 60%) 1; }
.node { border-color: var(--line-strong); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.node:hover { border-color: var(--vivid); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,185,129,.12); }
.facts, .facts dt, .facts dd { border-color: var(--line); }
.panel { border-color: var(--line-strong); }
.field input, .field select, .field textarea, .chat-form input { border-color: var(--line-strong); }
.btn--ghost, .copy-btn { border-color: var(--line-strong); }
.btn--ghost:hover, .copy-btn:hover { border-color: var(--vivid); }
.pcard { border-top-width: 3px; }

/* Preview 3: neutral dark grey for text, black kept for headings */
html:root:not(.x) { --ink: #141414; --text: #404040; --muted: #666666; }

/* Preview 3: vivid blue links; amber as text, not boxes */
html:root:not(.x) { --link: #0060DF; --link-hover: #0047A8; }
.mkt { padding: 0; border: 0; border-radius: 0; background: none; color: #C96A00; font-weight: 600; font-size: 1.1rem; }
.markets [aria-hidden="true"] { display: inline; color: var(--muted); }
.markets { gap: 6px 10px; }

/* Preview 3: signature gloss on two large accent phrases only */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .triad .em {
    background: linear-gradient(100deg, #00694A 0%, #059669 45%, #10B981 75%, #2BC48A 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero h1 .sheen {
    background: linear-gradient(100deg, #FFFFFF 0%, #E9FFF5 40%, #6EE7B7 75%, #34D399 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 18px rgba(52, 211, 153, .18));
  }
}

/* Preview 3: larger logo mark beside the wordmark */
.site-header .brand img { width: 40px; height: 40px; }
.site-header .brand { gap: 12px; }
.footer-grid .brand img { width: 34px; height: 34px; }
@media (max-width: 520px) { .site-header .brand img { width: 34px; height: 34px; } }

/* Preview 3: larger footer */
.site-footer { font-size: 1.0625rem; padding-top: 64px; }
.footer-grid h2 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { gap: 6px; }
.footer-grid a { font-size: 1.0625rem; }
.footer-grid .brand .brand-name { font-size: 1.1rem; }
.footer-grid .brand img { width: 44px; height: 44px; }
.footer-legal { font-size: 0.95rem; }

/* Preview 3: confident borders - thicker and stronger green-grey */
html:root:not(.x) { --line: #8FCDB0; --line-strong: #5FBF93; }
.node { border-width: 2px; border-color: var(--line-strong); }
.chain--slim .node--core { border-width: 2px; }
.panel { border: 2px solid var(--line-strong); }
.chat-panel { border: 2px solid var(--line-strong); }
.btn--ghost, .copy-btn { border-width: 2px; border-color: var(--line-strong); }
.field input, .field select, .field textarea, .chat-form input { border-width: 2px; border-color: var(--line-strong); }
.facts { border-top: 2px solid var(--line); }
.facts dt, .facts dd { border-bottom: 2px solid var(--line); }
.faq details { border-top: 2px solid var(--line); }
.faq { border-bottom: 2px solid var(--line); }
.research-line { border-top-width: 2px; }
.cell { border-top-width: 3px; }
.site-footer { border-top: 2px solid var(--line); }
.footer-legal { border-top: 2px solid var(--line); }
.site-header { border-bottom: 2px solid var(--line); }
.chip { border-width: 2px; border-color: var(--line-strong); }
.research-line { border-image: none; border-top: 2px solid var(--line-strong); }
.to-top, .chat-fab { border-width: 2px; border-color: var(--line-strong); }


/* Preview 3: footer line spans the centre column only */
.site-footer { border-top: 0; padding-top: 0; }
.site-footer > .wrap { padding-top: 0; }
.footer-grid { border-top: 0; padding-top: 40px; }

/* Legal notices open as a dialog from the footer and form links */
.legal-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(82vh, 900px); padding: 0; border: 2px solid var(--line-strong, var(--line)); background: var(--surface); color: var(--text, var(--ink)); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.legal-dialog::backdrop { background: rgba(10, 14, 20, .55); backdrop-filter: blur(2px); }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 2px solid var(--line); }
.legal-head h2 { font-size: var(--step-2); margin: 0; }
.legal-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; min-width: 40px; min-height: 40px; }
.legal-close:hover { color: var(--ink); }
.legal-body { overflow-y: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 10px; max-width: none; }
.legal-body h3 { font-size: var(--step-0); font-weight: 600; color: var(--ink); margin-top: 10px; }

/* Phones: tidy company details and keep only one floating button */
@media (max-width: 520px) {
  .facts dt { border-bottom: 0; padding-bottom: 0; padding-top: 12px; }
  .facts dd { padding-top: 2px; padding-bottom: 12px; }
}
@media (max-width: 720px) {
  .to-top { display: none !important; }
  .chat-fab { width: 46px; height: 46px; }
}

/* Flow: clearer arrows, no hover jump */
.node:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.chain--slim .node--core:hover { border-color: var(--vivid); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.chain--slim { gap: 30px; }
.chain--slim .node + .node::before { left: -30px; width: 30px; height: 2px; top: calc(50% - 1px); background: #059669; }
.chain--slim .node + .node::after { left: -12px; top: calc(50% - 5px); width: 10px; height: 10px; border-top: 2px solid #059669; border-right: 2px solid #059669; }
@media (max-width: 860px) {
  .chain--slim { gap: 30px; }
  .chain--slim .node + .node::before { left: calc(50% - 1px); top: -30px; width: 2px; height: 30px; }
  .chain--slim .node + .node::after { left: calc(50% - 5px); top: -12px; transform: rotate(135deg); }
}

/* ===== Minimalist pass ===== */
/* Darker greys */
html:root:not(.x) { --text: #303030; --muted: #4A4A4A; }

/* 1. Let space separate things: borders only on the form and the Decision engine */
.site-header { border-bottom: 0; }
.cell { border-top: 0; border-image: none; padding-top: 0; }
.pcard { border-top: 0; padding-top: 0; }
.research-line { border-top: 0; padding-top: 0; }
.proof li { border-left: 0; padding-left: 0; }
.facts, .facts dt, .facts dd { border: 0; }
.footer-legal { border-top: 0; }
#work .panel { border: 0; box-shadow: none; background: var(--raise); }
.band--alt { border-top: 0; }
.node { border: 0; background: var(--raise); }
.chain--slim .node--core { border: 2px solid var(--vivid); background: #DDF4E8; box-shadow: none; }
.chain--slim .node--core:hover { box-shadow: none; }

/* 2. No section dividers */
.band:not(.band--proof):not(.band--cta)::before { display: none; }

/* 4. One accent: market names in dark text */
.mkt { color: var(--ink); font-weight: 500; font-size: 1em; }

/* 5. No flow arrows */
.node + .node::before, .node + .node::after,
.chain--slim .node + .node::before, .chain--slim .node + .node::after { display: none !important; }
.chain--slim { gap: 12px; }
@media (max-width: 860px) { .chain--slim { gap: 10px; } }

/* Mobile menu: hamburger that turns into a cross */
.nav-toggle { width: 44px; height: 44px; padding: 0; border: 0; background: none; align-items: center; justify-content: center; }
@media (max-width: 860px) { .nav-toggle { display: inline-flex !important; } }
.burger { position: relative; width: 24px; height: 18px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 8px; } .burger i:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 8px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger i { transition: none; } }

/* Proof strip: its own faint mint ground so it separates from "How we build" */
.band--proof { background: #E6F2EB; }

/* Phones and small tablets: tighter section padding so headings sit higher */
@media (max-width: 860px) {
  .band { padding-block: 44px; }
  .band.band--proof { padding-block: 32px; }
}
