/* Self-hosted fonts (SIL Open Font License) — no third-party request, GDPR-clean.
   Plex for text and a serif for display. The previous pair is on every
   generated site; a serif headline is the fastest way to stop reading as
   machine-made. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin.woff2") format("woff2");
}

/* Reading measure. The rendered site ran ~104 characters per line, about a
   third wider than comfortable; this caps prose without touching layout
   containers, tables, or the demo panels. */
/* Reading measure. The rendered site ran up to 163 characters per line — twice
   a comfortable measure. Capped on running prose only, so tables, chart panels
   and the demo output keep the full container width. */
p:not([class]),
.section-head p,
.hero-content > p,
article p,
.card p,
.lede,
.collab-example,
.demo-playground-note {
  max-width: 68ch;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #07111f;
  --ink-2: #122236;
  --muted: #5a6472;
  --line: #e2dbcd;
  --paper: #fffdf9;
  --soft: #f1e9db;
  --blue: #1266f1;
  --blue-dark: #0b46a4;
  --blue-text: #0b52c9;
  --teal: #00a78e; /* semantic only: a rising market, never decoration */
  --amber: #ef9f23;
  --coral: #ec5b56;
  /* Warm, human palette (founder section) */
  --sand: #f1e9db;
  --sand-deep: #ece2d2;
  --clay: #a85a39;
  --clay-ink: #7d3f29;
  /* Success/approved. Deliberately leaf, not teal: teal is the cyan tell. */
  --ok: #2f7d4f;
  --bad: #b3352f;
  --ok-bright: #74c48e;
  --shadow: 0 12px 30px rgba(7, 17, 31, 0.09);
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar-inner,
.navbar .container {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link {
  min-width: 96px;
  min-height: 52px;
  justify-content: center;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 0;
}

.brand-logo {
  width: 67px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%) sepia(92%) saturate(560%) hue-rotate(111deg) brightness(96%) contrast(94%);
}

.navbar-brand h2 {
  color: var(--ink);
  font-size: 20px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.navbar-menu a {
  color: #263548;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.navbar-menu a:hover,
.navbar-menu a.active-link {
  color: var(--blue-text);
}

.navbar-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.navbar-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 4px;
}

/* Compact language menu.
   Five languages as a row of labelled pills wants ~250px more than the 1200px
   bar can give, so from 1201px up the nav links were being clipped underneath
   it. i18n.js wraps the switcher in this trigger + popover; the row above is
   the no-JS fallback. */
.lang-menu {
  position: relative;
  flex: 0 0 auto;
}

.lang-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lang-trigger:hover {
  border-color: #cdc1ac;
}

.lang-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lang-trigger-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-trigger[aria-expanded="true"] .lang-trigger-chevron {
  transform: rotate(180deg);
}

.lang-menu .language-switcher {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  min-width: 208px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.14);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-menu.is-open .language-switcher {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lang-menu .lang-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 11px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.lang-menu .lang-btn:hover {
  background: var(--sand);
}

.lang-menu .lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.lang-menu .lang-btn.is-active {
  background: var(--sand);
  color: var(--ink);
}

.lang-check {
  margin-inline-start: auto;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--blue);
  opacity: 0;
}

.lang-btn.is-active .lang-check {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lang-trigger-chevron,
  .lang-menu .language-switcher {
    transition: none;
  }
}

.lang-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #263548;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.lang-btn[hidden] {
  display: none !important;
}

.lang-btn.is-active {
  background: var(--ink);
  color: #ffffff;
}

.flag {
  width: 20px;
  height: 14px;
  display: inline-block;
  border: 1px solid rgba(7, 17, 31, 0.2);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38) inset;
}

.flag-emoji {
  width: 20px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.flag-gb,
.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'%3E%3Cpath fill='%23012169' d='M0 0h60v42H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='M0 0l60 42M60 0L0 42'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 42M60 0L0 42'/%3E%3Cpath stroke='%23fff' stroke-width='14' d='M30 0v42M0 21h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='8' d='M30 0v42M0 21h60'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-color: #012169;
}

.flag-nl {
  background: linear-gradient(#ae1c28 0 33%, #ffffff 33% 66%, #21468b 66% 100%);
}

.flag-de {
  background: linear-gradient(#000000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

.flag-ae {
  background:
    linear-gradient(90deg, #ce1126 0 25%, transparent 25%) 0 0 / 100% 100% no-repeat,
    linear-gradient(#00732f 0 33.33%, #ffffff 33.33% 66.66%, #000000 66.66% 100%);
}

.flag-cn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 30 20%22%3E%3Crect width%3D%2230%22 height%3D%2220%22 fill%3D%22%23de2910%22%2F%3E%3Cg fill%3D%22%23ffde00%22%3E%3Cpath d%3D%22M5.0%2C2.0 L5.7%2C4.1 L7.9%2C4.1 L6.1%2C5.4 L6.8%2C7.4 L5.0%2C6.1 L3.2%2C7.4 L3.9%2C5.4 L2.1%2C4.1 L4.3%2C4.1 Z%22%2F%3E%3Cpath d%3D%22M9.5%2C1.1 L10.0%2C1.6 L10.7%2C1.2 L10.4%2C1.9 L10.9%2C2.4 L10.2%2C2.3 L9.9%2C3.0 L9.7%2C2.3 L9.0%2C2.2 L9.6%2C1.9 Z%22%2F%3E%3Cpath d%3D%22M11.9%2C3.0 L12.2%2C3.7 L12.9%2C3.6 L12.4%2C4.1 L12.7%2C4.7 L12.1%2C4.4 L11.5%2C4.9 L11.7%2C4.2 L11.0%2C3.8 L11.7%2C3.7 Z%22%2F%3E%3Cpath d%3D%22M12.3%2C6.0 L12.3%2C6.8 L13.0%2C7.0 L12.3%2C7.2 L12.3%2C7.9 L11.9%2C7.4 L11.2%2C7.6 L11.6%2C7.0 L11.2%2C6.4 L11.9%2C6.6 Z%22%2F%3E%3Cpath d%3D%22M10.6%2C8.2 L10.4%2C8.9 L10.9%2C9.4 L10.2%2C9.3 L10.0%2C10.0 L9.8%2C9.3 L9.0%2C9.3 L9.6%2C8.9 L9.5%2C8.2 L10.0%2C8.6 Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: cover;
  background-position: center;
  background-color: #de2910;
}

.cta-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn.primary,
.nav-cta {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.22);
}

.cta-btn.primary:hover,
.nav-cta:hover {
  background: var(--blue-dark);
}

.cta-btn.secondary {
  border-color: #b9c6d4;
  color: var(--ink);
}

.cta-btn.secondary:hover {
  border-color: var(--blue);
  color: var(--blue-text);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.08);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 116px;
}

.hero-content h1 {
  max-width: 720px;
  margin: 18px 0 24px;
  color: #ffffff;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 850;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

/* 650px let the last words of a four-line paragraph run under the decorative
   agent card, which sits at roughly 53% of the viewport. The scene is
   aria-hidden, so an overflow check never catches it — only measuring text
   against the cards does. */
.hero-content p {
  max-width: 600px;
  color: #d8e2ee;
  font-size: clamp(18px, 2vw, 22px);
}

/* Label type above a heading, as text. Not a chip: a coloured pill above every
   section heading is the most-copied generated-page device, and blue here would
   also break the rule that blue means something is clickable. */
.eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--clay-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8c9a0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero .cta-btn.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-scene {
  position: absolute;
  /* Confine the decorative scene to the right side so its cards never overlap
     the headline, CTAs, or proof points on the left. */
  inset: 0 0 0 52%;
  z-index: 1;
  opacity: 0.94;
  overflow: hidden;
}

.hero-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-flow .agent-card {
  position: absolute;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(8, 19, 36, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  color: #e5f7ff;
  animation: float-slow 10s ease-in-out infinite;
}

.agent-excel {
  top: 9%;
  inset-inline-start: 4%;
  animation-delay: 0s;
}

.agent-email {
  top: 40%;
  inset-inline-start: 2%;
  animation-delay: 1.2s;
}

.agent-task {
  top: 71%;
  inset-inline-start: 4%;
  animation-delay: 0.8s;
}

.agent-card span {
  display: block;
  color: #bcd4f5;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.agent-card strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}

.flow-path {
  position: absolute;
  border: 1px dashed rgba(168, 90, 57, 0.55);
  border-radius: 999px;
  opacity: 0.68;
}

.flow-path::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #00ffd1;
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.55);
  animation: flow-move 4.6s linear infinite;
}

.flow-path-1 {
  top: 22%;
  inset-inline-start: 21%;
  width: 34%;
  height: 2px;
  transform: rotate(5deg);
}

.flow-path-1::after {
  inset-inline-start: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.flow-path-2 {
  top: 48%;
  inset-inline-start: 47%;
  width: 34%;
  height: 2px;
  transform: rotate(-6deg);
}

.flow-path-2::after {
  inset-inline-start: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

@keyframes flow-move {
  0% { transform: translate(-50%, -50%) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, -50%) translateX(100%); opacity: 0; }
}

.mesh-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(18, 102, 241, 0.7), transparent);
  transform-origin: center;
}

.mesh-line-a {
  inset-inline-end: 7%;
  top: 28%;
  width: 520px;
  transform: rotate(-19deg);
}

.mesh-line-b {
  inset-inline-end: 10%;
  bottom: 31%;
  width: 600px;
  transform: rotate(14deg);
}

.mesh-line-c {
  inset-inline-end: -3%;
  top: 54%;
  width: 710px;
  transform: rotate(-4deg);
}

.scene-node,
.runtime-panel,
.governance-console {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.22);
  backdrop-filter: blur(18px);
}

.scene-node {
  position: absolute;
  min-width: 150px;
  padding: 16px;
}

.scene-node span,
.runtime-panel span {
  display: block;
  color: #d8e2ee;
  font-size: 12px;
}

.scene-node strong,
.runtime-panel strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 18px;
}

.node-research {
  inset-inline-end: 4%;
  top: 8%;
}

.node-planner {
  inset-inline-end: 4%;
  top: 40%;
}

/* Hidden in the confined right-side scene: the runtime panel below already
   conveys the dashboard/decision state, so these would crowd it. */
.node-worker {
  display: none;
  border-color: rgba(239, 159, 35, 0.42);
}

.node-reviewer {
  display: none;
  border-color: rgba(168, 90, 57, 0.42);
}

.runtime-panel {
  position: absolute;
  inset-inline-end: 4%;
  bottom: 6%;
  width: min(320px, 26vw);
  padding: 18px;
  background: rgba(7, 17, 31, 0.64);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trace-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.proof-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  min-height: 118px;
  padding: 26px 24px;
  border-inline-end: 1px solid var(--line);
}

.proof-grid div:first-child {
  border-inline-start: 1px solid var(--line);
}

.proof-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 7px;
}

.proof-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 92px 0;
  scroll-margin-top: 92px;
}

.compact-enhanced {
  scroll-margin-top: 92px;
  padding: 18px 0;
}

.compact-enhanced.compact-is-open {
  padding: 20px 0 74px;
}

.compact-enhanced.compact-is-closed + .compact-enhanced.compact-is-closed {
  border-top: 1px solid var(--line);
}

.compact-content-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 280ms ease, opacity 180ms ease, transform 220ms ease;
  will-change: max-height, opacity, transform;
}

.compact-is-open > .compact-content-panel {
  opacity: 1;
  transform: translateY(0);
}

.compact-toggle-wrap {
  display: block;
}

.compact-toggle {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 18px 20px;
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.compact-toggle:hover,
.compact-toggle:focus-visible {
  border-color: rgba(18, 102, 241, 0.48);
  box-shadow: 0 14px 36px rgba(7, 17, 31, 0.08);
}

.compact-toggle:focus-visible {
  outline: none;
}

.compact-toggle-index {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sand);
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
}

.compact-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.compact-toggle-copy strong {
  color: var(--ink);
  font-size: clamp(19px, 2.5vw, 28px);
  line-height: 1.15;
}

.compact-toggle-copy small {
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.compact-toggle-eyebrow {
  margin: 0;
}

.compact-toggle-action {
  min-width: 112px;
  display: inline-grid;
  grid-template-columns: max-content 32px;
  align-items: center;
  justify-content: flex-end;
  justify-items: center;
  gap: 8px;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.compact-toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
}

.compact-toggle-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sand);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.compact-toggle-action .compact-toggle-icon {
  display: inline-grid;
  flex: 0 0 32px;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.compact-toggle-action .compact-toggle-icon::before {
  width: 1em;
  height: 1em;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.compact-is-open .compact-toggle {
  border-color: rgba(18, 102, 241, 0.42);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.06);
  margin-bottom: 28px;
}

.compact-is-open > .container:not(.compact-toggle-wrap) > .section-heading {
  display: none;
}

.governance-section.compact-enhanced.compact-is-closed,
.governance-section.compact-enhanced.compact-is-open {
  background: var(--ink);
}

.governance-section.compact-enhanced .compact-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: #11233f;
  color: #ffffff;
}
.governance-section.compact-enhanced .compact-toggle-copy strong {
  color: #ffffff;
}
.governance-section.compact-enhanced .compact-toggle-copy small {
  color: #c5d2df;
}
.governance-section.compact-enhanced .compact-toggle-index,
.governance-section.compact-enhanced .compact-toggle-icon {
  background: rgba(232, 201, 160, 0.18);
  color: #e8c9a0;
}
.governance-section.compact-enhanced .compact-toggle-action {
  color: #e8c9a0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline-start: 0;
  text-align: start;
}

.section-heading h2 {
  margin: 14px 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 820;
  line-height: 1.04;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.section-copy-stack {
  display: grid;
  gap: 10px;
}

.buyer-journey-section {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journey-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.journey-card span {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid #c9d5e4;
  border-radius: 999px;
  background: var(--sand);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.journey-card h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
}

.journey-card p {
  color: var(--muted);
  font-size: 15px;
}

.audience-section {
  background: var(--paper);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card,
.decision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.audience-card {
  min-height: 260px;
  padding: 28px;
}

.audience-card i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue-text);
  font-size: 18px;
}

.audience-card:nth-child(2) i {
  background: #e5fbf7;
  color: var(--clay);
}

.audience-card:nth-child(3) i {
  background: #fff3df;
  color: var(--amber);
}

.audience-card span {
  display: block;
  margin-top: 20px;
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-card h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.audience-card p {
  color: var(--muted);
  font-size: 15px;
}

.feature-cards,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.use-case-item,
.contact-card,
.demo-card,
.review-tool,
.tab-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.card {
  padding: 28px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.use-case-item:hover {
  border-color: rgba(18, 102, 241, 0.42);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08);
  transform: translateY(-3px);
}

.card i,
.use-case-item i,
.demo-value-grid i {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue-text);
  font-size: 17px;
}

.card:nth-child(2) i,
.use-case-item:nth-child(2) i {
  background: #e5fbf7;
  color: var(--clay);
}

.card:nth-child(3) i,
.use-case-item:nth-child(3) i {
  background: #fff3df;
  color: var(--amber);
}

.card:nth-child(4) i,
.use-case-item:nth-child(4) i {
  background: #ffeceb;
  color: var(--coral);
}

.use-case-item:nth-child(5) i {
  background: var(--sand);
  color: var(--clay-ink);
}

/* Original hand-drawn SVG illustrations on the capability cards (replaces icon glyphs) */
.use-case-item .uc-illu {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--blue-text);
}
.use-case-item .uc-illu svg { width: 30px; height: 30px; display: block; }
.use-case-item:nth-child(2) .uc-illu { background: #e5fbf7; color: var(--clay); }
.use-case-item:nth-child(3) .uc-illu { background: #fff3df; color: var(--amber); }
.use-case-item:nth-child(4) .uc-illu { background: #ffeceb; color: var(--coral); }
.use-case-item:nth-child(5) .uc-illu { background: var(--sand); color: var(--clay-ink); }
.use-case-item:nth-child(6) .uc-illu { background: #f0ecfe; color: #6741d9; }
.use-case-item:nth-child(7) .uc-illu { background: #e7f5ff; color: #1971c2; }

.real-examples-section .use-case-logo {
  display: block;
  width: min(100%, 160px);
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.card h3,
.use-case-item strong {
  display: block;
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.card p,
.use-case-item p {
  color: var(--muted);
  font-size: 15px;
}

.discover {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.lifecycle-section,
.demo-section,
.contact-page {
  background: var(--soft);
}

.lifecycle-layout,
.governance-layout,
.review-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.lifecycle-list {
  display: grid;
  gap: 14px;
}

.lifecycle-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.lifecycle-step > span {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lifecycle-step h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
}

.lifecycle-step p {
  color: var(--muted);
}

.use-cases {
  background: var(--paper);
}

.use-case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.use-case-item {
  padding: 26px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.governance-section {
  background: var(--ink);
  color: #ffffff;
}

.governance-section .section-heading h2 {
  color: #ffffff;
}

.governance-section .section-heading p,
.governance-section .governance-points span {
  color: #c5d2df;
}

.governance-console {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.governance-console .panel-top {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.governance-console .panel-top span {
  color: #d8e2ee;
}

.governance-console .panel-top strong {
  color: #e8c9a0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.metric-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
}

.metric-grid span {
  display: block;
  color: #c5d2df;
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 26px;
}

.policy-list {
  display: grid;
  gap: 10px;
  color: #e9f0f7;
  font-size: 14px;
}

.policy-list div {
  display: flex;
  gap: 10px;
}

.policy-list i {
  color: #e8c9a0;
}

.governance-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.governance-points div {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border-inline-start: 1px solid var(--clay);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.governance-points strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.decision-section {
  background: var(--paper);
}

.decision-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: center;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .decision-grid { grid-template-columns: 1fr; }
}

.decision-card {
  min-height: 190px;
  padding: 22px;
}

.decision-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.decision-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
}

.decision-card p {
  color: var(--muted);
  font-size: 14px;
}

.pricing-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.pricing-section.compact-enhanced {
  background: var(--paper);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 26px;
}

.pricing-card-featured {
  border-color: rgba(18, 102, 241, 0.46);
  box-shadow: var(--shadow-md);
}

.pricing-label {
  width: fit-content;
  display: inline-flex;
  border: 1px solid #bfd3f6;
  border-radius: 999px;
  background: var(--sand);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.pricing-card h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.pricing-card p,
.pricing-note {
  color: var(--muted);
}

.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.pricing-price strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.pricing-price span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.pricing-list i {
  color: var(--clay-ink);
  margin-top: 3px;
}

.pricing-card .cta-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.pricing-calculator {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
  border: 1px solid rgba(18, 102, 241, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(18, 102, 241, 0.08), transparent 42%),
    #f8fbff;
  padding: 24px;
}

.pricing-calculator-copy h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
}

.pricing-calculator-copy p {
  color: var(--muted);
}

.pricing-benchmark {
  margin-top: 12px;
  border-inline-start: 1px solid var(--blue);
  padding-inline-start: 12px;
  font-size: 13px;
  font-weight: 750;
}

.pricing-calculator-panel {
  display: grid;
  gap: 16px;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.calculator-fields input,
.calculator-fields select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
}

.calculator-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculator-features label {
  min-height: 72px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 11px;
}

.calculator-features input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  padding: 0;
}

.calculator-features label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calculator-result {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 18px;
}

.calculator-result > span,
.calculator-result small {
  color: #c5d2df;
  font-weight: 800;
}

.calculator-result > strong {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.calculator-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
}

.calculator-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d8e2ee;
  font-size: 12px;
}

.calculator-breakdown strong {
  color: #ffffff;
  white-space: nowrap;
}

.pricing-comparison {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.pricing-feature-matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.comparison-heading {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(18, 102, 241, 0.08), transparent 46%),
    #f8fbff;
  padding: 22px 24px;
}

.comparison-heading h3 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
}

.comparison-heading p {
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comparison-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 7px 10px;
}

.comparison-legend i {
  color: var(--blue-text);
}

.comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-feature-matrix table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.pricing-feature-matrix th,
.pricing-feature-matrix td {
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
  vertical-align: middle;
}

.pricing-feature-matrix thead th {
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.pricing-feature-matrix thead th:first-child,
.pricing-feature-matrix tbody th {
  text-align: start;
}

.pricing-feature-matrix tbody th {
  color: var(--ink);
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.pricing-feature-matrix td {
  background: rgba(248, 251, 255, 0.62);
  text-align: center;
}

.pricing-feature-matrix tbody tr:last-child th,
.pricing-feature-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-feature-matrix .comparison-group th {
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  text-transform: uppercase;
}

.comparison-status {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: 12px;
}

.comparison-status.is-included {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(7, 17, 31, 0.18);
}

.comparison-status.is-addon {
  border-color: rgba(168, 90, 57, 0.34);
  background: #e9fbf4;
  color: var(--clay-ink);
}

.comparison-status.is-muted {
  border-color: #d7dde7;
  background: var(--sand);
  color: #8290a3;
}

.pricing-note {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: 14px;
  text-align: center;
}

.release-check-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.release-check-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.release-check-grid span {
  display: inline-flex;
  margin-bottom: 8px;
  border: 1px solid #c9d5e4;
  border-radius: 999px;
  background: var(--sand);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 9px;
}

.release-check-grid strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 5px;
}

.release-check-grid p {
  color: var(--muted);
  font-size: 14px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.technical-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}

.technical-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.technical-detail-grid strong,
.technical-detail-grid span,
.technical-detail-grid code {
  display: block;
}

.technical-detail-grid strong {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 8px;
}

.technical-detail-grid code,
.tab-content code {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #c9d5e4;
  border-radius: 6px;
  background: var(--sand);
  color: var(--blue-dark);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  padding: 3px 7px;
}

.technical-detail-grid span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tab-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.tab-content {
  display: none;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  padding: 26px;
}

.tab-content.active {
  display: grid;
}

.tab-content h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
}

.tab-content p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tab-content label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 102, 241, 0.12);
}

.output {
  min-height: 210px;
  max-height: 360px;
  overflow: auto;
  border-radius: 8px;
  background: #07111f;
  color: #a9ffdf;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.market-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 16px;
}

.market-form label {
  margin-bottom: -4px;
}

.market-disclaimer {
  margin-top: 12px;
  font-size: 12px;
}

/* MARKET SIGNAL BOARD ------------------------------------------------------ */

.tab-content.market-tab {
  grid-template-columns: 1fr;
}

.market-panel {
  min-width: 0;
}

.market-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 16px;
  padding: 16px;
}

.market-setting-wide {
  grid-column: span 2;
}

.market-setting-trio input,
.market-setting input {
  max-width: 130px;
}

/* Slider paired with each number field. Dragging repaints the chart live;
   the board re-scores when the drag ends. */
.market-slider {
  display: block;
  width: 100%;
  max-width: 130px;
  height: 18px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--blue);
  cursor: ew-resize;
}

.market-slider:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.market-setting-name {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-setting label,
.market-setting-trio label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-setting input {
  padding: 9px 11px;
}

.market-setting-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-setting-trio > span {
  display: block;
  min-width: 0;
}

.market-setting-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.market-reset {
  border: 0;
  background: none;
  color: var(--blue-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 2px;
  text-decoration: underline;
}

.market-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.market-group {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 15px;
}

.market-group:hover {
  border-color: var(--blue);
  color: var(--blue-text);
}

.market-group.is-active {
  border-color: var(--blue);
  background: rgba(18, 102, 241, 0.08);
  color: var(--blue-text);
}

.market-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.market-table th {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 12px;
  text-align: start;
  white-space: nowrap;
}

.market-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.market-table tbody tr:last-child td {
  border-bottom: 0;
}

.market-table .is-num {
  text-align: end;
}

.market-table .is-advice {
  text-align: end;
  width: 1%;
}

.market-row {
  cursor: pointer;
}

.market-row:hover,
.market-row:focus-visible {
  background: #f6f9ff;
  outline: none;
}

.market-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.market-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.market-symbol {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.market-cell-value {
  display: block;
}

.market-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.market-cell.is-buy .market-cell-value {
  color: var(--clay-ink);
}

.market-cell.is-sell .market-cell-value {
  color: #b42318;
}

.market-last {
  color: var(--ink);
  font-weight: 800;
}

.market-change.positive {
  color: var(--clay-ink);
  font-weight: 800;
}

.market-change.negative {
  color: #b42318;
  font-weight: 800;
}

.market-advice {
  display: inline-block;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.market-advice.is-buy {
  background: #e7f6ee;
  color: var(--clay-ink);
}

.market-advice.is-sell {
  background: #fdeceb;
  color: #b42318;
}

.market-advice.is-hold {
  background: #eef2f7;
  color: #475569;
}

.market-advice.is-large {
  font-size: 13px;
  padding: 8px 14px;
}

.market-verdict-row td {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  font-weight: 800;
}

.market-row-error {
  color: #b42318;
  font-size: 12.5px;
  white-space: normal;
}

.market-table-foot,
.market-loading,
.market-error {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.market-error {
  color: #b42318;
  font-weight: 700;
}

.market-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  padding: 8px 14px;
}

.market-back:hover {
  border-color: var(--blue);
  color: var(--blue-text);
}

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

@media (max-width: 560px) {
  .market-settings {
    grid-template-columns: 1fr;
  }

  .market-setting-wide {
    grid-column: span 1;
  }

  .market-setting-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.market-output {
  max-height: none;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  white-space: normal;
}

.signal-card {
  display: grid;
  gap: 16px;
}

.signal-topline,
.signal-quote,
.signal-score,
.market-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.signal-topline h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.signal-kicker,
.signal-quote small,
.signal-score small,
.market-source span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signal-badge {
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
}

.signal-constructive .signal-badge {
  background: var(--clay-ink);
}

.signal-neutral .signal-badge {
  background: #475569;
}

.signal-defensive .signal-badge {
  background: #b42318;
}

.signal-quote strong,
.signal-score strong {
  color: var(--ink);
  font-size: 24px;
}

.signal-quote span.positive {
  color: var(--clay-ink);
  font-weight: 900;
}

.signal-quote span.negative {
  color: #b42318;
  font-weight: 900;
}

.market-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* ---------------------------------------------------------------------------
   Ticker detail: terminal masthead, AI read-out button, chart column and the
   scorecard rail on the right.
   --------------------------------------------------------------------------- */
.market-detail-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.market-detail-headmain {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.market-detail-title {
  min-width: 0;
}

.market-detail-nameline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.market-detail-nameline h4 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.market-detail-arrow {
  font-size: 13px;
  line-height: 1;
}

.market-detail-price {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.market-detail-move {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.market-detail-arrow.positive,
.market-detail-move.positive {
  color: #0f9d58;
}

.market-detail-arrow.negative,
.market-detail-move.negative {
  color: #d93025;
}

.market-detail-stamp {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.market-stance-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.market-stance-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.market-stance-pills {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Read-out, not a control: no pointer, no hover state. */
.market-stance {
  cursor: default;
  user-select: none;
}

/* Outlined by default; only the stance the rules produced fills in. */
.market-stance {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 22px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.market-stance.is-buy.is-on {
  border-color: #0f9d58;
  background: #0f9d58;
  color: #ffffff;
}

.market-stance.is-sell.is-on {
  border-color: #d93025;
  background: #d93025;
  color: #ffffff;
}

.market-stance.is-hold.is-on {
  border-color: var(--amber);
  background: var(--amber);
  color: #ffffff;
}

.market-ai-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.market-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  padding: 7px 14px;
  background: var(--paper);
  color: var(--blue-text);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease;
}

.market-ai-btn:hover,
.market-ai-btn.is-active {
  background: var(--blue);
  color: #ffffff;
}

.market-ai-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.market-ai-btn:hover .market-ai-tag,
.market-ai-btn.is-active .market-ai-tag {
  background: var(--paper);
  color: var(--blue-text);
}

.market-ai-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: help;
  font-size: 11px;
  font-weight: 800;
}

.market-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  align-items: start;
  gap: 18px;
}

.market-detail-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.market-scorecard {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 88px;
  min-width: 0;
}

.market-scorecard-title {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.market-score-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px 14px;
}

.market-score-panel h5 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.market-score-value {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.market-score-value.is-buy {
  color: #0f9d58;
}

.market-score-value.is-sell {
  color: #d93025;
}

.market-score-value.is-hold {
  color: var(--amber);
}

.market-score-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.market-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
}

.market-score-row span {
  color: var(--muted);
}

.market-score-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.market-score-row strong.is-buy {
  color: #0f9d58;
}

.market-score-row strong.is-sell {
  color: #d93025;
}

.market-score-row strong.is-hold {
  color: var(--amber);
}

/* Segmented health strip: one filled block per structural check that agrees. */
.market-health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-top: 8px;
}

.market-health-seg {
  height: 5px;
  border-radius: 3px;
  background: #e6ebf2;
}

.market-health-seg.is-on:nth-child(1) {
  background: #d93025;
}

.market-health-seg.is-on:nth-child(2) {
  background: #ef9f23;
}

.market-health-seg.is-on:nth-child(3) {
  background: #8bc34a;
}

.market-health-seg.is-on:nth-child(4) {
  background: #0f9d58;
}

.market-gauge {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 8px auto 0;
}

.market-gauge-arc {
  fill: none;
  stroke-width: 9;
  stroke-linecap: butt;
}

.market-gauge-arc.is-strong-sell {
  stroke: #d93025;
}

.market-gauge-arc.is-sell {
  stroke: #ef7c5b;
}

.market-gauge-arc.is-hold {
  stroke: #efc023;
}

.market-gauge-arc.is-buy {
  stroke: #8bc34a;
}

.market-gauge-arc.is-strong-buy {
  stroke: #0f9d58;
}

.market-gauge-needle {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.market-gauge-hub {
  fill: var(--ink);
}

.market-score-tips {
  margin: 6px 0 0;
  padding-inline-start: 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.market-score-tips li + li {
  margin-top: 5px;
}

/* AI read-out panel, opened by the Analyze chart button. */
.market-analysis {
  border: 1px solid rgba(18, 102, 241, 0.35);
  border-radius: 8px;
  background: #f5f9ff;
  padding: 14px 16px;
}

.market-analysis-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.market-analysis-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.market-analysis-body p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.market-analysis-body p:last-child {
  margin-bottom: 0;
}

.market-analysis-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.market-analysis-tuned {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.market-focus-chip {
  border: 1px solid rgba(18, 102, 241, 0.3);
  border-radius: 20px;
  padding: 2px 9px;
  background: var(--paper);
  color: var(--blue-text);
  font-weight: 800;
}

/* Board-level agent strip: makes the pipeline visible without a click. */
.market-agents-bar {
  border: 1px solid rgba(18, 102, 241, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.market-agents-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.market-agents-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.market-agents-tally {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.market-agents-flow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.market-agent-step {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 10px;
}

.market-agent-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--blue-text);
  font-size: 12px;
  flex: 0 0 auto;
}

.market-agent-step strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}

.market-agent-step small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.market-agents-arrow {
  display: flex;
  align-items: center;
  color: #b9c6d6;
  font-size: 13px;
}

.market-agents-note {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .market-agents-arrow {
    display: none;
  }

  .market-agents-tally {
    margin-inline-start: 0;
    width: 100%;
  }
}

/* Live track record: what the signal said on the day, scored afterwards. */
.market-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px 16px;
}

.market-record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.market-record-stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 11px;
}

.market-record-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.market-record-stat strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.market-record-stat strong.is-buy {
  color: #0f9d58;
}

.market-record-stat strong.is-sell {
  color: #d93025;
}

.market-record-verdict {
  margin: 0 0 10px;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.market-record-verdict.is-buy {
  border-inline-start-color: #0f9d58;
}

.market-record-verdict.is-sell {
  border-inline-start-color: #d93025;
}

/* What the signal learned per indicator: hit rate → weight in the vote. */
.market-learning {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.market-learning h5 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.market-learning-rows {
  display: grid;
  gap: 6px;
}

.market-learning-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.market-learning-name {
  min-width: 76px;
  color: var(--ink);
  font-weight: 800;
}

.market-learning-bar {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #eef2f7;
  overflow: hidden;
}

.market-learning-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #cbd5e1;
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.market-learning-fill.is-buy {
  background: #0f9d58;
}

.market-learning-fill.is-sell {
  background: #d93025;
}

.market-learning-fill.is-idle {
  background: #cbd5e1;
}

.market-learning-value {
  min-width: 96px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

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

.market-record-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding: 6px 0;
  font-size: 12.5px;
}

.market-record-date {
  min-width: 68px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.market-record-outcome {
  color: var(--muted);
  font-weight: 800;
}

.market-record-outcome.is-buy {
  color: #0f9d58;
}

.market-record-outcome.is-sell {
  color: #d93025;
}

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

.demo-ask {
  margin-top: 12px;
}

/* Ask-the-chart panel */
.market-prompt {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px 16px;
}

.market-prompt-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.market-prompt-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
}

.market-prompt-input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.market-prompt-send {
  flex-shrink: 0;
  padding: 9px 18px;
}

.market-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.market-prompt-chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 11px;
  background: #f8fafc;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}

.market-prompt-chip:hover {
  border-color: var(--blue);
  color: var(--blue-text);
}

.market-prompt-item {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
}

.market-prompt-q {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}

.market-prompt-a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.market-prompt-a p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.market-prompt-pending {
  margin-inline-start: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-style: italic;
}

.market-prompt-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.market-prompt-model {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.market-prompt-topic.is-claude {
  background: var(--blue);
  color: #ffffff;
}

.market-prompt-topic {
  flex-shrink: 0;
  border-radius: 4px;
  padding: 2px 7px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .market-prompt-form {
    flex-direction: column;
  }
}

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

  /* Stacked, the rail is the summary: lift it above the chart and tables
     instead of leaving it below the source links. */
  .market-scorecard {
    position: static;
    order: -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-scorecard-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .market-detail-headmain {
    flex-direction: column;
  }

  .market-stance-block {
    width: 100%;
    align-items: flex-start;
  }

  .market-stance-pills {
    width: 100%;
  }

  .market-stance {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
  }

  .market-scorecard {
    grid-template-columns: minmax(0, 1fr);
  }
}

.market-chart-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.market-candle-wick.is-up, .market-candle-body.is-up { stroke: #0f9d58; }
.market-candle-body.is-up { fill: #0f9d58; }
.market-candle-wick.is-down, .market-candle-body.is-down { stroke: #d93025; }
.market-candle-body.is-down { fill: #d93025; }
.market-candle-wick { stroke-width: 1; }
.market-candle-body { stroke-width: 1; }

.market-drawdown-area { fill: rgba(217, 48, 37, 0.12); }
.market-drawdown-line { fill: none; stroke: #d93025; stroke-width: 1.5; stroke-linejoin: round; }

.market-returns-bar.is-up { fill: rgba(15, 157, 88, 0.75); }
.market-returns-bar.is-down { fill: rgba(217, 48, 37, 0.7); }

/* Quote-terminal chart: thin blue line, soft area, grid with right-hand prices. */
.market-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px 14px 8px;
}

.market-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.market-chart-ranges {
  display: flex;
  gap: 2px;
}

.market-range {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.market-range:hover {
  color: var(--ink);
}

.market-range.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue-text);
}

.market-chart-plot {
  position: relative;
  margin: 6px 0 2px;
}

.market-chart svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  /* pan-y keeps vertical page scrolling working on touch, where wheel-zoom
     does not apply. */
  touch-action: pan-y;
}

body.is-chart-panning,
body.is-chart-panning .market-chart svg {
  cursor: grabbing;
  user-select: none;
}

.market-chart-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.market-chart-hint-sep {
  color: #c4cdd8;
}

.market-range.is-reset {
  color: var(--blue-text);
  font-weight: 800;
}

.market-chart-grid {
  stroke: #eceff4;
  stroke-width: 1;
}

.market-chart-grid.is-vertical {
  stroke: #f2f5f9;
}

/* Bollinger channel drawn under price, with its two edges picked out. */
.market-chart-band {
  fill: rgba(41, 98, 255, 0.07);
  stroke: none;
}

.market-chart-band-edge {
  fill: none;
  stroke: rgba(41, 98, 255, 0.34);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.market-chart-sma {
  fill: none;
  stroke: #ef9f23;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-chart-volume.is-up {
  fill: rgba(15, 157, 88, 0.5);
}

.market-chart-volume.is-down {
  fill: rgba(217, 48, 37, 0.45);
}

.market-chart-panel-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-chart-crosshair {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.market-chart-cursor-dot {
  fill: #ffffff;
  stroke: #2962ff;
  stroke-width: 2;
}

/* Legend sits next to the range buttons in the chart header. */
.market-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.market-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 2px 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
}

.market-chart-legend-item.is-toggle {
  border-radius: 4px;
  cursor: pointer;
}

.market-chart-legend-item.is-toggle:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.market-chart-legend-item.is-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* A switched-off series keeps its slot but reads as inactive. */
.market-chart-legend-item.is-off {
  color: #b3bfcd;
  text-decoration: line-through;
}

.market-chart-legend-item.is-off .market-chart-swatch {
  background: #d7dee7;
}

/* Axis chips that ride the crosshair. */
.market-chart-axis-chip {
  fill: #334155;
}

.market-chart-axis-chip-text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

/* Shift-drag measurement band. */
.market-chart-measure.is-up {
  fill: rgba(15, 157, 88, 0.12);
}

.market-chart-measure.is-down {
  fill: rgba(217, 48, 37, 0.11);
}

.market-chart-measure-edge {
  stroke: #64748b;
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.market-chart-measure-label {
  font-size: 11px;
  font-weight: 900;
}

.market-chart-measure-label.is-up {
  fill: #0f9d58;
}

.market-chart-measure-label.is-down {
  fill: #d93025;
}

.market-chart svg:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.market-chart-swatch {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: #cbd5e1;
}

.market-chart-swatch.is-price {
  background: #2962ff;
}

.market-chart-swatch.is-sma {
  background: #ef9f23;
}

.market-chart-swatch.is-band {
  background: rgba(41, 98, 255, 0.34);
}

.market-chart-swatch.is-volume {
  background: rgba(15, 157, 88, 0.5);
}

/* Hover read-out. Positioned by left %, flipped near the right edge. */
.market-chart-tip {
  position: absolute;
  top: 4px;
  z-index: 2;
  min-width: 116px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(7, 17, 31, 0.12);
  padding: 5px 7px;
  pointer-events: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Default corner is the left; .is-right moves it clear of a left-side cursor. */
.market-chart-tip {
  inset-inline-start: 10px;
}

.market-chart-tip.is-right {
  inset-inline-start: auto;
  inset-inline-end: 74px;
}

.market-chart-tip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.market-chart-tip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1px;
  color: var(--muted);
  line-height: 1.35;
}

.market-chart-tip-row b {
  color: var(--ink);
  font-weight: 800;
}

.market-chart-last {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.market-chart-line {
  fill: none;
  stroke: #2962ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-chart-dot {
  fill: #2962ff;
}

.market-chart-price-label,
.market-chart-date-label {
  fill: #8a94a2;
  font-size: 11px;
  font-weight: 600;
}

.market-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
}

.market-chart-foot span,
.market-chart-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-metric,
.market-agent {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.market-metric span,
.market-agent span,
.market-metric small,
.market-agent small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.market-metric strong,
.market-agent strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 15px;
}

.signal-reasons,
.market-agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signal-reasons > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.signal-reasons strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.signal-reasons ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 13px;
}

.market-source {
  align-items: flex-start;
  border-bottom: 0;
  padding-bottom: 0;
}

.market-source a {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
}

.fashion-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 0 0 16px;
}

/* Clickable example prompts under the fashion prompt */
.fashion-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
}
.fashion-samples-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
.fashion-sample {
  border: 1px solid var(--line);
  background: #f3f6fb;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.fashion-sample:hover {
  background: #e7eefb;
  border-color: var(--blue);
}

/* Local model connector (point the demo at a CLIP model on your machine) */
.fashion-model-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.fashion-model-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
}
.fashion-model-presets-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  margin-inline-end: 2px;
}
.fashion-preset {
  border: 1px solid var(--line);
  background: #f3f6fb;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.fashion-preset:hover { background: #e7eefb; border-color: var(--blue); }
.fashion-model-bar input {
  flex: 1 1 240px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}
.fashion-model-btn {
  border: 1px solid var(--line);
  background: #f3f6fb;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.fashion-model-btn:hover { background: #e7eefb; border-color: var(--blue); }
.fashion-model-status {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
/* BI proof card: metric tiles reuse .market-metric, card reuses .fashion-* */
.bi-metric-grid { margin: 14px 0; }
.bi-meta {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.fashion-sample-photos { margin: 10px 0 14px; }
.fashion-sample-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.fashion-sample-photo {
  display: grid;
  gap: 4px;
  justify-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  color: var(--muted);
}
.fashion-sample-photo img {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.fashion-sample-photos-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.fashion-sample-photo:hover { border-color: var(--blue); background: #f0f5ff; }
.fashion-sample-photo.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
  color: var(--blue-text);
}

.fashion-model-note {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.fashion-model-note i {
  color: var(--blue-text);
  margin-top: 2px;
}

/* Compact warning when a configured local model was unreachable */
.fashion-local-warning {
  margin: 12px 0 2px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  padding: 10px 14px;
}
.fashion-local-warning strong {
  display: block;
  color: #92400e;
  font-size: 13px;
  margin-bottom: 3px;
}
.fashion-local-warning p {
  color: #78350f;
  font-size: 12.5px;
  margin: 0 0 8px;
}

/* Upload honesty note: hosted demo matched text only, photo not analyzed */
.fashion-upload-note {
  margin: 12px 0 2px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  padding: 12px 14px;
}
.fashion-upload-note strong {
  display: block;
  color: #92400e;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.fashion-upload-note p {
  color: #78350f;
  font-size: 13px;
  margin: 0 0 10px;
}
.fashion-note-download {
  display: inline-block;
  margin-inline-start: 12px;
  color: var(--blue-text);
  font-size: 12.5px;
  font-weight: 750;
}

/* Generated try-on preview (local/tunnel model /tryon result) in the result card */
.fashion-tryon-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 16px;
}
.fashion-tryon-panel > strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
}
.fashion-tryon-status {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  animation: fashionTryonPulse 1.4s ease-in-out infinite;
}
.fashion-tryon-status.is-error {
  animation: none;
  color: #b45309;
}
@keyframes fashionTryonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.fashion-tryon-image {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.fashion-tryon-engine {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Embedded WeShopAI Virtual Try-On (Hugging Face Space) inside the fashion tab */
.fashion-hf {
  grid-column: 1 / -1;
  min-width: 0; /* keep the horizontal guide/closet scrolling inside, not growing the grid */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px 18px;
}
.fashion-hf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fashion-hf-title {
  display: grid;
  gap: 2px;
  min-width: 240px;
  flex: 1 1 320px;
}
.fashion-hf-title strong {
  color: var(--ink);
  font-size: 15px;
}
.fashion-hf-title span {
  color: var(--muted);
  font-size: 13px;
}
.fashion-hf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fashion-hf-link {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.fashion-hf-link:hover { text-decoration: underline; }
.fashion-hf-frame { margin-top: 14px; }
.tryon-native { display: grid; gap: 14px; margin: 0 0 16px; }
.tryon-native { --tryon-slot-min: 420px; }
.tryon-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tryon-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tryon-slot-min);
  aspect-ratio: 3 / 4;
  padding: 16px;
  text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tryon-slot:hover { border-color: var(--blue); background: #eef4fd; }
.tryon-slot input[type="file"] { display: none; }
.tryon-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.tryon-slot-step {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}
.tryon-slot-label { font-weight: 750; color: var(--ink-2); z-index: 1; }
.tryon-slot-hint { font-size: 13px; color: var(--muted); z-index: 1; max-width: 220px; }
.tryon-slot.has-image .tryon-slot-hint { display: none; }
.tryon-slot.has-image .tryon-slot-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}
.tryon-slot-result { cursor: default; border-style: solid; background: var(--paper); }
.tryon-slot-result:hover { border-color: var(--line); background: var(--paper); }
.tryon-slot-result .fashion-hf-spinner { z-index: 2; }
/* Once a result is in, the slot becomes a magnifier: hovering shows a round
   loupe of the image zoomed in, so visitors can inspect fit and fabric. */
.tryon-slot-result.has-image { cursor: zoom-in; }
.tryon-loupe {
  position: absolute;
  z-index: 4;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 28px rgba(7, 17, 31, 0.35);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  transform: translate(-50%, -50%);
}
.tryon-slot-result.is-zooming .tryon-loupe { opacity: 1; }
/* AI Act art. 50 lid 4: een try-on is een gemanipuleerde afbeelding van een
   echt persoon, dus de herkomst staat op het beeld zelf en niet alleen in de
   omringende tekst. Blijft staan zolang er een resultaat is. */
.tryon-ai-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.tryon-zoom-hint {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
}
.tryon-slot-result.is-zooming .tryon-zoom-hint { opacity: 0; }
@media (hover: none) {
  .tryon-zoom-hint { display: none; }
  .tryon-slot-result.has-image { cursor: default; }
}
.tryon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tryon-actions [hidden], .tryon-slot [hidden] { display: none !important; }
.tryon-status { margin: 0; min-height: 1.3em; font-size: 14px; color: var(--muted); }
.tryon-status.is-error { color: var(--coral); font-weight: 650; }
.fashion-hf-fallback { margin-top: 14px; }
.fashion-hf-fallback > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.fashion-hf-fallback[open] > summary { margin-bottom: 10px; }
@media (max-width: 720px) {
  .tryon-native { --tryon-slot-min: 380px; }
  .tryon-slots { grid-template-columns: 1fr; }
  .tryon-slot { aspect-ratio: 3 / 4; max-height: 620px; }
}
.fashion-hf-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.fashion-hf-guide article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px 14px 12px 44px;
}
.fashion-hf-guide-step {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
.fashion-hf-guide strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.fashion-hf-guide p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 960px) {
  .fashion-hf-guide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  /* Phones: swipeable guide cards instead of a tall stack, tighter studio chrome */
  .fashion-hf-guide {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 340px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .fashion-hf-guide article { scroll-snap-align: start; }
  .fashion-hf { padding: 12px; }
}
/* Animated "how to upload" mini demo above the try-on studio */
.fashion-howto {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px 16px;
}
.fashion-howto-caption {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.fashion-howto-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px;
}
.fashion-howto-box {
  position: relative;
  width: 96px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 8px 8px 10px;
  display: grid;
  gap: 6px;
  justify-items: center;
  background: #f8fafc;
}
.fashion-howto-box > span {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.fashion-howto-box b,
.fashion-howto-genbtn b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
}
.fashion-howto-box img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.fashion-howto-box:not(.fashion-howto-resultbox)::after,
.fashion-howto-gen::after {
  content: '→';
  position: absolute;
  inset-inline-end: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 800;
}
.fashion-howto-gen {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 112px;
}
.fashion-howto-genbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  padding: 7px 6px;
}
.fashion-howto-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.fashion-howto-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 999px;
}
.fashion-howto-resultbox {
  border-style: solid;
  border-color: var(--blue);
}
@keyframes howtoDrop1 {
  0%, 7% { opacity: 0; transform: translateY(-14px) scale(0.7); }
  13%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.7); }
}
@keyframes howtoDrop2 {
  0%, 25% { opacity: 0; transform: translateY(-14px) scale(0.7); }
  31%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.7); }
}
@keyframes howtoPulse {
  0%, 44% { background: #eef2f7; transform: scale(1); box-shadow: none; }
  47% { background: #dbe7fb; transform: scale(1.07); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
  52%, 100% { background: #eef2f7; transform: scale(1); box-shadow: none; }
}
@keyframes howtoBar {
  0%, 48% { width: 0; }
  68%, 96% { width: 100%; }
  100% { width: 0; }
}
@keyframes howtoResult {
  0%, 66% { opacity: 0; transform: scale(0.85); }
  73%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}
.fashion-howto-garment { animation: howtoDrop1 10s ease-in-out infinite; }
.fashion-howto-person { animation: howtoDrop2 10s ease-in-out infinite; }
.fashion-howto-genbtn { animation: howtoPulse 10s ease-in-out infinite; }
.fashion-howto-bar i { animation: howtoBar 10s linear infinite; }
.fashion-howto-result { animation: howtoResult 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .fashion-howto-garment, .fashion-howto-person, .fashion-howto-genbtn, .fashion-howto-bar i, .fashion-howto-result { animation: none; }
  .fashion-howto-bar i { width: 100%; }
}
@media (max-width: 620px) {
  .fashion-howto-stage { gap: 16px; }
  .fashion-howto-box { width: 84px; }
  .fashion-howto-box img { width: 46px; height: 62px; }
  .fashion-howto-gen { width: 92px; }
}

/* Garment closet: browsable demo catalog inside the studio */
.fashion-hf-closet {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 12px 14px;
}
.fashion-hf-closet-head strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.fashion-hf-closet-head > span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 2px 0 8px;
}
.fashion-hf-closet-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.fashion-preset.is-active {
  background: #e7eefb;
  border-color: var(--blue);
  color: var(--blue-text);
}
.fashion-hf-closet-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.fashion-closet-item {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: start;
}
.fashion-closet-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.fashion-closet-item span {
  font-size: 11px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
  text-align: center;
}
.fashion-closet-item small {
  font-size: 11px;
  color: var(--muted);
}
.fashion-closet-item:hover { border-color: var(--blue); }
.fashion-hf-closet-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--blue-text);
  min-height: 16px;
}
@media (max-width: 620px) {
  .fashion-hf-closet-head > span { display: none; }
  .fashion-hf-closet-grid { grid-auto-columns: 96px; }
  .fashion-closet-item img { width: 72px; height: 72px; }
}

.fashion-hf-help {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.fashion-hf-help summary {
  cursor: pointer;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  list-style-position: inside;
}
.fashion-hf-help[open] summary { border-bottom: 1px solid var(--line); }
.fashion-hf-help-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.fashion-hf-help-body article strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.fashion-hf-help-body article p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}
.fashion-hf-help-body a { color: var(--blue-text); }
.fashion-hf-convert {
  display: block;
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #f8fafc;
}
.fashion-hf-convert input { display: none; }
.fashion-hf-convert span {
  color: var(--blue-text);
  font-size: 12.5px;
  font-weight: 750;
}
@media (max-width: 720px) {
  .fashion-hf-help-body { grid-template-columns: 1fr; }
}
.fashion-hf-stage { position: relative; }
.fashion-hf-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.fashion-hf-loading[hidden] { display: none; }
.fashion-hf-loading a { color: var(--blue-text); }
.fashion-hf-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #dbe4f0;
  border-top-color: var(--blue);
  animation: fashionHfSpin 0.9s linear infinite;
}
@keyframes fashionHfSpin { to { transform: rotate(360deg); } }
.fashion-hf-frame iframe {
  width: 100%;
  height: 760px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
@media (max-width: 720px) {
  .fashion-hf-frame iframe { height: 640px; }
}
.fashion-model-status.is-connected { color: var(--clay-ink); }

/* Drag & drop photo zone + image-search badge */
.fashion-dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fafbfe;
  transition: border-color 140ms ease, background 140ms ease;
}
.fashion-dropzone.is-drag {
  border-color: var(--blue);
  background: #eef4ff;
}
.fashion-dropzone input[type="file"] { display: block; margin-bottom: 6px; max-width: 100%; }
.fashion-query-badge {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue-text);
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: middle;
}

.fashion-upload-preview {
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  padding: 12px;
}

.fashion-upload-image-preview {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 12px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fashion-uploaded-head-panel {
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}

.fashion-uploaded-head-photo {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fashion-output {
  max-height: none;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  white-space: normal;
}

.fashion-result-card {
  display: grid;
  gap: 16px;
}

.fashion-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.fashion-result-top span,
.fashion-step-list span,
.fashion-agent small,
.fashion-product span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.fashion-result-top h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.fashion-score-badge {
  border-radius: 999px;
  background: var(--clay-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.fashion-preview-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) 1.25fr;
  gap: 14px;
}

.fashion-figure {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(18, 102, 241, 0.12), transparent 48%),
    linear-gradient(35deg, rgba(168, 90, 57, 0.12), transparent 62%),
    #f8fafc;
}

.fashion-figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #d7b69a;
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.62);
}

.fashion-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 94px;
  width: 90px;
  height: 122px;
  border-radius: 42px 42px 18px 18px;
  background: var(--fashion-top, #ffffff);
  transform: translateX(-50%);
  box-shadow: inset 0 -34px 0 rgba(7, 17, 31, 0.05);
}

.fashion-pants,
.fashion-shoes {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.fashion-pants {
  top: 198px;
  width: 92px;
  height: 94px;
  border-radius: 8px 8px 24px 24px;
  background: var(--fashion-bottom, #2563eb);
  clip-path: polygon(7% 0, 45% 0, 50% 100%, 26% 100%, 0 0, 100% 0, 74% 100%, 50% 100%, 55% 0, 93% 0, 100% 100%, 0 100%);
}

.fashion-shoes {
  top: 286px;
  width: 120px;
  height: 24px;
}

.fashion-shoes::before,
.fashion-shoes::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 18px;
  border-radius: 999px 999px 8px 8px;
  background: var(--fashion-shoes, #ffffff);
  border: 1px solid #cbd5e1;
}

.fashion-shoes::before {
  inset-inline-start: 2px;
}

.fashion-shoes::after {
  inset-inline-end: 2px;
}

.fashion-person-tag {
  position: absolute;
  inset-inline-start: 14px;
  inset-inline-end: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  padding: 10px;
}

.fashion-product-grid,
.fashion-agent-grid,
.fashion-step-list {
  display: grid;
  gap: 10px;
}

.fashion-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fashion-product,
.fashion-agent,
.fashion-step-list li,
.fashion-decision-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.fashion-product strong,
.fashion-agent strong,
.fashion-decision-box strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.fashion-product-visual {
  width: 100%;
  aspect-ratio: 1.12;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: var(--swatch-b, #eff6ff);
  color: var(--swatch-a, #2563eb);
  margin-bottom: 10px;
}
.fashion-product-visual svg {
  width: 58%;
  height: 58%;
  stroke: rgba(15, 23, 42, 0.3);
  stroke-width: 0.8;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.16));
}

.fashion-product-swatch {
  width: 100%;
  aspect-ratio: 1.45;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--swatch-a, #2563eb), var(--swatch-b, #eff6ff));
  margin-bottom: 10px;
}

.fashion-product-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}

.fashion-source-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.fashion-source-link:hover {
  text-decoration: underline;
}

.fashion-fit-photo-stack {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.fashion-fit-piece {
  position: absolute;
  left: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.fashion-fit-shirt {
  top: 96px;
  width: 122px;
  height: 90px;
  z-index: 4;
}

.fashion-fit-jeans {
  top: 180px;
  width: 132px;
  height: 122px;
  z-index: 5;
}

.fashion-fit-shoes {
  top: 280px;
  width: 142px;
  height: 54px;
  z-index: 6;
}

.fashion-fit-generic {
  top: 126px;
  width: 126px;
  height: 112px;
  z-index: 4;
}

.fashion-agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fashion-agent strong {
  color: var(--clay-ink);
}

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

.fashion-decision-box {
  background: var(--sand);
}

.fashion-decision-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-runner-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.dashboard-runner-callout strong,
.dashboard-runner-callout span {
  display: block;
}

.dashboard-runner-callout strong {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}

.dashboard-runner-callout span {
  color: var(--muted);
  font-size: 14px;
}

.review-layout {
  align-items: stretch;
}

.review-tool {
  padding: 24px;
}

.review-tool .output {
  margin-top: 18px;
}

.contact-cta {
  background: var(--sand);
  text-align: center;
}

.contact-cta h2 {
  max-width: 760px;
  margin: 14px auto;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.contact-cta p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  background: #07111f;
  color: #b9c6d4;
  padding: 54px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer p {
  max-width: 440px;
  margin-top: 16px;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-section a {
  display: block;
  color: #b9c6d4;
  text-decoration: none;
  margin: 8px 0;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.demo-landing-page {
  background: var(--soft);
  min-height: calc(100svh - 72px);
  overflow-x: hidden;
  padding: 58px 0 84px;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.demo-hero-left {
  padding: 18px 0;
}

.demo-hero-left h1 {
  max-width: 680px;
  margin: 16px 0 18px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
}

.demo-hero-left p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.demo-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.demo-value-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.workshop-map {
  display: grid;
  gap: 10px;
  margin: 6px 0 30px;
}

.workshop-map article {
  display: grid;
  grid-template-columns: 42px minmax(120px, 0.42fr) 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.workshop-map span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--sand);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 900;
}

.workshop-map strong {
  color: var(--ink);
  font-size: 15px;
}

.workshop-map p {
  color: var(--muted);
  font-size: 14px;
}

.demo-value-grid strong,
.demo-value-grid span {
  display: block;
}

.demo-value-grid strong {
  margin: 14px 0 6px;
  color: var(--ink);
}

.demo-value-grid span {
  color: var(--muted);
  font-size: 14px;
}

.trust-intro {
  margin: 24px 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-logo {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #263548;
  font-weight: 800;
  text-align: center;
}

.demo-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.demo-card h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 26px;
}

.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.checkbox-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-result {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
}

.demo-page-main {
  padding: 48px 24px;
}

.demo-form-actions {
  margin-top: 16px;
}

.company-logo-preview {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
}

.company-logo-preview[hidden] {
  display: none;
}

.company-logo-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--company-accent), #ffffff 55%);
  border-radius: 7px;
  background: var(--company-bg);
  color: var(--company-fg);
  padding: 5px 10px 5px 6px;
}

.company-logo-klm {
  --company-accent: #00a1de;
  --company-bg: #e8f7fd;
  --company-fg: #003b5c;
}

.company-logo-ing {
  --company-accent: #ff6200;
  --company-bg: #fff1e8;
  --company-fg: #301a0a;
}

.company-logo-rabobank {
  --company-accent: #ff6600;
  --company-bg: #fff4e8;
  --company-fg: #2c2417;
}

.company-logo-abn-amro {
  --company-accent: #00856f;
  --company-bg: #e9f7f4;
  --company-fg: #05362f;
}

.company-logo-asml {
  --company-accent: #1f57a4;
  --company-bg: #edf4ff;
  --company-fg: #102a4c;
}

.company-logo-philips {
  --company-accent: #0b5ed7;
  --company-bg: #ebf3ff;
  --company-fg: #0b2444;
}

.company-logo-heineken {
  --company-accent: #007a3d;
  --company-bg: #e9f8ef;
  --company-fg: #0a351f;
}

.company-logo-shell {
  --company-accent: #f7b500;
  --company-bg: #fff8df;
  --company-fg: #3b2c00;
}

.company-logo-booking {
  --company-accent: #003b95;
  --company-bg: #edf4ff;
  --company-fg: #082247;
}

.company-logo-adyen {
  --company-accent: #0abf53;
  --company-bg: #ecfbf2;
  --company-fg: #073b1d;
}

.company-logo-ahold-delhaize {
  --company-accent: #004f9f;
  --company-bg: #edf5ff;
  --company-fg: #092944;
}

.company-logo-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--company-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.company-logo-name {
  color: var(--company-fg);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.company-logo-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.contact-hero {
  padding: 58px 0;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.contact-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  /* German legal headings are single compound words —
     "Allgemeine Geschaeftsbedingungen" has nowhere to break on a phone and
     runs straight off the edge unless it is allowed to. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.contact-details {
  padding: 58px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 24px;
}

.contact-card h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--blue-text);
}

.contact-map-section {
  padding: 12px 0 64px;
}

.contact-map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: stretch;
}

.contact-map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 30px;
}

.contact-map-panel h2 {
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.contact-map-panel p {
  color: var(--muted);
}

.address-lines {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.address-lines > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.address-lines i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(168, 90, 57, 0.12);
  color: var(--clay);
}

.address-lines strong,
.address-lines span,
.address-lines a {
  display: block;
}

.address-lines strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.address-lines span,
.address-lines a {
  color: var(--muted);
  line-height: 1.55;
  text-decoration: none;
}

.address-lines a:hover {
  color: var(--blue-text);
}

.map-link {
  width: 100%;
  justify-content: center;
}

.contact-map-frame {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce4ee;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.contact-copy {
  padding: 0 0 70px;
}

.contact-copy p {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
}

.bi-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(168, 90, 57, 0.22), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(18, 102, 241, 0.22), transparent 32%),
    var(--ink);
  color: #ffffff;
  overflow: hidden;
}

.bi-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 680px;
  padding: 86px 0;
}

.bi-hero-copy {
  min-width: 0;
}

.bi-hero-copy h1 {
  max-width: 720px;
  margin: 16px 0 22px;
  color: #ffffff;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.bi-hero-copy p {
  max-width: 650px;
  color: #d8e2ee;
  font-size: 20px;
}

.bi-dashboard-preview {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.24);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.bi-dashboard-preview .panel-top {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.bi-dashboard-preview .panel-top span,
.bi-dashboard-preview .metric-grid span {
  color: #d8e2ee;
}

.bi-dashboard-preview .panel-top strong,
.bi-dashboard-preview .metric-grid strong {
  color: #ffffff;
}

.bi-chart {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 14px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.42);
}

.bi-chart span {
  display: block;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #5cf0cc, #1266f1);
}

.chart-height-42 {
  height: 42%;
}

.chart-height-52 {
  height: 52%;
}

.chart-height-68 {
  height: 68%;
}

.chart-height-73 {
  height: 73%;
}

.chart-height-84 {
  height: 84%;
}

.chart-height-92 {
  height: 92%;
}

.bi-metrics div {
  background: rgba(255, 255, 255, 0.06);
}

.bi-projects-section {
  background: var(--soft);
}

.bi-client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bi-client-grid a {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bi-client-grid a:hover {
  border-color: rgba(18, 102, 241, 0.42);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08);
  transform: translateY(-3px);
}

.bi-client-grid span {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.bi-pricing-section {
  background: var(--paper);
}

.bi-pricing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.bi-pricing-proof article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
}

.bi-pricing-proof strong,
.bi-pricing-proof span {
  display: block;
}

.bi-pricing-proof strong {
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 7px;
}

.bi-pricing-proof span {
  color: var(--muted);
  font-size: 14px;
}

.bi-contact-section {
  background: var(--soft);
}

.bi-contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.bi-contact-details {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.bi-contact-details p {
  color: var(--muted);
}

.bi-contact-details strong {
  color: var(--ink);
  margin-inline-end: 8px;
}

.bi-contact-details a {
  color: var(--blue-text);
  font-weight: 750;
  text-decoration: none;
}

.demo-hero-page .bi-dashboard-preview {
  background: rgba(7, 17, 31, 0.64);
}

.dashboard-runner-section {
  background: var(--paper);
}

.dashboard-runner-shell {
  display: grid;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.dashboard-prompt-form {
  display: grid;
  gap: 12px;
}

.dashboard-prompt-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.dashboard-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-control-grid label {
  display: grid;
  gap: 7px;
}

.dashboard-control-grid select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 0 38px 0 13px;
}

.dashboard-control-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 102, 241, 0.12);
  outline: none;
}

.dashboard-prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.dashboard-prompt-row input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
}

.dashboard-prompt-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 102, 241, 0.12);
  outline: none;
}

.dashboard-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-example-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.dashboard-example-row button:hover {
  border-color: var(--blue);
  color: var(--blue-text);
}

.dashboard-result {
  min-height: 360px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.dashboard-empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px dashed #bfd0e2;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-empty-state i {
  color: var(--clay);
  font-size: 34px;
}

.generated-dashboard {
  display: grid;
  gap: 22px;
}

.generated-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.generated-dashboard-header h3 {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.generated-dashboard-header p {
  max-width: 740px;
  margin-top: 8px;
  color: var(--muted);
}

.dashboard-source-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 8px 12px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.dashboard-kpi {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
}

.dashboard-kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-kpi strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.dashboard-count {
  display: inline-block;
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpi small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.dashboard-chart,
.dashboard-insights {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.dashboard-chart h4,
.dashboard-insights h4,
.dashboard-table-wrap h4 {
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 16px;
}

.dashboard-bars {
  display: grid;
  gap: 12px;
}

.dashboard-line-chart {
  display: grid;
  gap: 10px;
}

.dashboard-line-chart svg {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-line-axis {
  stroke: #d4deea;
  stroke-width: 1;
}

.dashboard-line-area {
  fill: rgba(18, 102, 241, 0.12);
}

.dashboard-line-area.positive {
  fill: rgba(168, 90, 57, 0.13);
}

.dashboard-line-area.negative {
  fill: rgba(180, 35, 24, 0.11);
}

.dashboard-line-stroke {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-line-stroke.positive,
.dashboard-line-dot.positive {
  stroke: var(--clay-ink);
  fill: var(--clay-ink);
}

.dashboard-line-stroke.negative,
.dashboard-line-dot.negative {
  stroke: #b42318;
  fill: #b42318;
}

.dashboard-line-dot {
  stroke: var(--blue);
  fill: var(--blue);
}

.dashboard-line-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-line-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-line-range strong {
  color: var(--ink);
}

.progress-width-5 {
  --progress-scale: 0.05;
}

.progress-width-10 {
  --progress-scale: 0.1;
}

.progress-width-15 {
  --progress-scale: 0.15;
}

.progress-width-20 {
  --progress-scale: 0.2;
}

.progress-width-25 {
  --progress-scale: 0.25;
}

.progress-width-30 {
  --progress-scale: 0.3;
}

.progress-width-35 {
  --progress-scale: 0.35;
}

.progress-width-40 {
  --progress-scale: 0.4;
}

.progress-width-45 {
  --progress-scale: 0.45;
}

.progress-width-50 {
  --progress-scale: 0.5;
}

.progress-width-55 {
  --progress-scale: 0.55;
}

.progress-width-60 {
  --progress-scale: 0.6;
}

.progress-width-65 {
  --progress-scale: 0.65;
}

.progress-width-70 {
  --progress-scale: 0.7;
}

.progress-width-75 {
  --progress-scale: 0.75;
}

.progress-width-80 {
  --progress-scale: 0.8;
}

.progress-width-85 {
  --progress-scale: 0.85;
}

.progress-width-90 {
  --progress-scale: 0.9;
}

.progress-width-95 {
  --progress-scale: 0.95;
}

.progress-width-100 {
  --progress-scale: 1;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr) minmax(86px, auto);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff6;
}

.dashboard-bar-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 920ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.generated-dashboard.dashboard-motion-ready .dashboard-bar-fill {
  transform: scaleX(var(--progress-scale, 0));
}

.dashboard-bar-value {
  color: var(--muted);
  text-align: end;
  white-space: nowrap;
}

.dashboard-table td:last-child .dashboard-count,
.dashboard-bar-value .dashboard-count {
  min-width: 7ch;
  text-align: end;
}

.dashboard-insights {
  display: grid;
  gap: 12px;
}

.dashboard-insights ul {
  display: grid;
  gap: 10px;
  padding-inline-start: 18px;
  color: var(--muted);
}

.dashboard-technical {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding-top: 12px;
}

.dashboard-report {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.dashboard-report h4 {
  color: var(--ink);
  font-size: 17px;
}

.dashboard-report p {
  max-width: 900px;
  color: var(--muted);
}

.dashboard-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-report-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.dashboard-report-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-report-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.dashboard-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 11px 10px;
  text-align: start;
}

.dashboard-table th {
  color: var(--ink);
  font-weight: 850;
}

.dashboard-table td:last-child,
.dashboard-table th:last-child {
  text-align: end;
}

.dashboard-error {
  border: 1px solid rgba(236, 91, 86, 0.34);
  border-radius: 8px;
  background: rgba(236, 91, 86, 0.08);
  color: var(--ink);
  font-weight: 750;
  padding: 16px;
}

.compact-topic-light {
  background: var(--soft);
  color: var(--ink);
}

.compact-topic-dark {
  background: var(--soft);
  color: var(--ink);
}

.compact-topic-dark.compact-enhanced.compact-is-closed + .compact-enhanced.compact-is-closed,
.compact-topic-light.compact-enhanced.compact-is-closed + .compact-enhanced.compact-is-closed {
  border-top: 0;
}

.compact-topic-dark .compact-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.12);
}

.compact-topic-light .compact-toggle {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.compact-topic-dark .compact-toggle:hover,
.compact-topic-dark .compact-toggle:focus-visible {
  border-color: rgba(232, 201, 160, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.compact-topic-dark .compact-toggle-copy strong {
  color: #ffffff;
}

.compact-topic-dark .compact-toggle-copy small {
  color: #c5d2df;
}

.compact-topic-dark .compact-toggle-eyebrow {
  border-color: rgba(232, 201, 160, 0.34);
  background: rgba(232, 201, 160, 0.12);
  color: #e8c9a0;
}

.compact-topic-light .compact-toggle-copy strong,
.compact-topic-dark .section-heading h2,
.compact-topic-light .section-heading h2 {
  color: var(--ink);
}

.compact-topic-light .compact-toggle-copy small,
.compact-topic-dark .section-heading p,
.compact-topic-dark .section-copy-stack p,
.compact-topic-light .section-heading p,
.compact-topic-light .section-copy-stack p {
  color: var(--muted);
}

.compact-topic-dark .compact-toggle-index,
.compact-topic-dark .compact-toggle-icon {
  background: rgba(232, 201, 160, 0.14);
  color: #e8c9a0;
}

.compact-topic-light .compact-toggle-index,
.compact-topic-light .compact-toggle-icon {
  background: var(--sand);
  color: var(--blue-text);
}

.compact-topic-dark .compact-toggle-action {
  color: #e8c9a0;
}

.compact-topic-light .compact-toggle-action {
  color: var(--blue-text);
}

.compact-topic-dark .cta-btn.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.compact-topic-dark .cta-btn.secondary:hover {
  border-color: rgba(232, 201, 160, 0.56);
  color: #e8c9a0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.compact-enhanced.governance-section,
.compact-enhanced.governance-section.compact-is-closed,
.compact-enhanced.governance-section.compact-is-open {
  background: var(--soft);
  color: var(--ink);
}

.compact-enhanced.governance-section .section-heading h2 {
  color: var(--ink);
}

.compact-enhanced.governance-section .section-heading p,
.compact-enhanced.governance-section .governance-points span {
  color: var(--muted);
}

.compact-enhanced.governance-section .governance-points div {
  border-color: var(--line);
  background: var(--paper);
}

.compact-enhanced.governance-section .governance-points strong {
  color: var(--ink);
}

.admin-mockups-main {
  padding: 32px 0 48px;
}

.admin-file-input {
  margin-top: 10px;
}

.admin-action-row {
  margin-top: 12px;
}

.admin-section-divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-toolbar,
.admin-reference-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar {
  justify-content: space-between;
}

.admin-help-text {
  margin-top: 12px;
  color: #555555;
  font-size: 14px;
}

.admin-reference-row {
  align-items: flex-end;
  margin-top: 18px;
  gap: 10px;
}

.admin-reference-row label {
  font-weight: 700;
}

.admin-reference-row input {
  flex: 1;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 8px;
}

.dropzone {
  border: 2px dashed #0088ff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #333344;
  background: #f7fbff;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.dropzone.dragover {
  background: #e4f0ff;
  border-color: #005fcc;
}

.dropzone p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.dropzone small {
  color: #777777;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mockup-card {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.mockup-card-image {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.mockup-card-title {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
}

.mockup-card-description {
  color: #666666;
  font-size: 13px;
}

.mockup-card-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.local-demo-page {
  background: var(--sand);
  color: var(--ink);
}

.local-demo-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.local-demo-main h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.local-demo-main p {
  margin: 0 0 22px;
  color: var(--muted);
}

.local-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.local-demo-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue-text);
  font-weight: 800;
  text-decoration: none;
  padding: 8px 13px;
}

.local-demo-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.local-demo-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.local-demo-table th,
.local-demo-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
  font-size: 13px;
}

.local-demo-table th {
  position: sticky;
  top: 0;
  background: var(--sand);
  color: var(--ink-2);
  font-size: 12px;
  text-transform: uppercase;
}

.local-demo-table td {
  color: #263548;
}

.local-demo-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-bar-fill {
    transition: none;
  }
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.demo-showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.demo-showcase-card:hover {
  border-color: rgba(18, 102, 241, 0.42);
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.08);
  transform: translateY(-3px);
}

.demo-showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: var(--sand);
}

.demo-showcase-card div {
  padding: 20px;
}

.demo-showcase-card h3 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 8px;
}

.demo-showcase-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.demo-showcase-card a {
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.admin-body {
  min-height: 100svh;
  background: var(--sand);
}

.admin-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-login-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(7, 17, 31, 0.08);
}

.admin-login-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  margin: 9svh auto 0;
  padding: 32px;
}

.admin-login-panel h1,
.admin-dashboard-top h1 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
}

.admin-login-panel p,
.admin-dashboard-top p {
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form label,
.admin-password-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.admin-login-form input,
.admin-password-form input,
.admin-actions select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.admin-dashboard-panel {
  display: grid;
  gap: 22px;
}

.admin-dashboard-panel[hidden],
.admin-contract-panel[hidden],
.admin-login-panel[hidden] {
  display: none;
}

.admin-contract-panel {
  display: grid;
  gap: 22px;
}

.contract-doc {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.contract-doc h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 6px; }
.contract-doc h2 { font-size: 20px; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.contract-doc p,
.contract-doc ul,
.contract-doc ol { margin: 0 0 12px; }
.contract-doc ul,
.contract-doc ol { padding-left: 22px; }
.contract-doc li { margin-bottom: 6px; }
.contract-doc blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--clay-ink);
  background: rgba(168, 90, 57, 0.06);
  border-radius: 0 8px 8px 0;
}
.contract-doc code { font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: rgba(7, 17, 31, 0.06); }
.contract-doc .contract-open { background: rgba(255, 196, 0, 0.22); border-radius: 3px; padding: 0 2px; }
.contract-doc .contract-open[contenteditable] { cursor: text; outline: 1px dashed rgba(180, 130, 0, 0.55); outline-offset: 1px; }
.contract-doc .contract-open[contenteditable]:focus { outline: 2px solid var(--accent, #2563eb); background: #fff; }
.contract-doc .contract-open.is-filled { background: rgba(34, 160, 90, 0.14); outline-color: rgba(34, 160, 90, 0.5); }
.contract-doc .contract-open.is-saving { opacity: 0.6; }
.contract-doc .contract-open.is-error { background: rgba(220, 38, 38, 0.18); outline-color: #dc2626; }
.contract-doc .contract-legend { background: rgba(255, 196, 0, 0.22); border-radius: 3px; padding: 0 2px; }
.contract-doc table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; }
.contract-doc th,
.contract-doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.contract-doc th { background: rgba(7, 17, 31, 0.04); }
.contract-doc .contract-sign td { height: 44px; }
.contract-doc-wrap { overflow-x: auto; }

@media print {
  .admin-body .admin-dashboard-top,
  .admin-body #adminLoginPanel,
  .admin-body #adminDashboardPanel { display: none !important; }
  .admin-body .admin-shell { width: 100%; padding: 0; }
  .contract-doc { box-shadow: none; border: 0; padding: 0; max-width: none; font-size: 11pt; }
  .contract-doc h2 { break-after: avoid; }
  .contract-doc table,
  .contract-doc blockquote { break-inside: avoid; }
  .contract-doc .contract-open { background: none; outline: none; }
}

.admin-dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions select {
  width: auto;
}

.admin-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.admin-filterbar-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.admin-filterbar select {
  min-height: 44px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.admin-filterbar .cta-btn {
  min-height: 44px;
}

.admin-filterbar #adminResetFilters {
  margin-inline-start: auto;
}

.admin-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px 12px;
}

.admin-identity span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-identity strong {
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 900;
}

.admin-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-total-card {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.admin-total-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-total-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.admin-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.admin-pipeline-card {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.admin-pipeline-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-pipeline-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.legal-content {
  padding: 40px 0 80px;
}

.legal-content .container {
  max-width: 820px;
}

.legal-content .container:has(.trading-step-card) {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--ink);
  line-height: 1.6;
}

.legal-content ul {
  padding-inline-start: 20px;
  margin: 12px 0;
}

.legal-content table {
  width: 100%;
  margin: 16px 0;
}

.cookie-consent {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px;
}

.cookie-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-inner p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  color: var(--ink);
}

.cookie-consent-inner a {
  white-space: nowrap;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.admin-lead-status {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-access-panel p {
  color: var(--muted);
}

.admin-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 20px;
  padding: 20px;
}

.admin-password-form {
  display: grid;
  gap: 12px;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel h2 {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  padding: 18px 20px;
}

.admin-behavior-panel {
  background: #07111f;
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-behavior-panel h2 {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.admin-behavior-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  padding: 20px;
}

.admin-behavior-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.admin-behavior-grid h3 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 6px;
}

.admin-behavior-grid p {
  color: #c8d2df;
  font-size: 13px;
  margin-bottom: 14px;
}

.admin-behavior-block {
  min-height: 128px;
}

.admin-funnel {
  display: grid;
  gap: 12px;
}

.admin-funnel-row {
  display: grid;
  gap: 7px;
}

.admin-funnel-row div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-funnel-row span {
  color: #dbe5ef;
  font-size: 13px;
  font-weight: 850;
}

.admin-funnel-row strong {
  color: #ffffff;
  font-size: 15px;
}

.admin-funnel-row i {
  display: block;
  width: var(--progress-width, 5%);
  min-width: 18px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a73e8, #10b981);
}

.admin-scroll-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-scroll-grid div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.admin-scroll-grid span {
  display: block;
  color: #c8d2df;
  font-size: 12px;
  font-weight: 850;
}

.admin-scroll-grid strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  margin-top: 8px;
}

.admin-table-wrap {
  overflow: auto;
}

/* Long tables: cap the height with an internal scroll + an Expand/Collapse toggle,
   so the dashboard stays short. The toggle is injected by admin-portal.js. */
.admin-table-collapsible {
  max-height: 340px;
  overflow: auto;
}
.admin-table-collapsible.is-expanded {
  max-height: none;
}
.admin-table-collapsible .admin-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.admin-collapse-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 10px 16px 14px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.admin-collapse-toggle.is-visible {
  display: inline-flex;
}
.admin-collapse-toggle:hover {
  background: #e9edf2;
}

/* A standalone, always-on scroll box (e.g. Recent events) — never grows the page,
   with a clearly visible scrollbar and a sticky header. */
.admin-table-scroll {
  max-height: 420px;
  overflow: auto;
  scrollbar-gutter: stable;
  border-top: 1px solid var(--line);
}
.admin-table-scroll .admin-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.admin-table-scroll::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
.admin-table-scroll::-webkit-scrollbar-track {
  background: #eef1f5;
}
.admin-table-scroll::-webkit-scrollbar-thumb {
  background: #c2cad6;
  border: 2px solid #eef1f5;
  border-radius: 7px;
}
.admin-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #a9b3c2;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink);
  font-weight: 850;
}

.admin-table code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.admin-table small {
  color: var(--muted);
  font-size: 11px;
}

.admin-empty {
  color: var(--muted);
  font-weight: 750;
  padding: 20px;
}

.admin-status-panel {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.admin-status-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.46fr) 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.admin-status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-status-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-status-row strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.admin-bookings-table {
  min-width: 980px;
}

.admin-journey-table {
  min-width: 1060px;
}

.marketing-shell {
  width: min(1280px, calc(100% - 40px));
}

.marketing-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.marketing-signal-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.marketing-signal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.marketing-signal span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.marketing-signal strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.marketing-signal small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .navbar-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(7, 17, 31, 0.06);
    order: 99;
    margin-inline-start: auto;
    gap: 4px;
  }

  .navbar-toggle span {
    margin: 0;
  }

  .navbar-menu {
    --navbar-safe-bottom: env(safe-area-inset-bottom, 0px);
    display: none;
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 100%;
    z-index: 49;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 22px;
    max-height: calc(100vh - 100% - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 100% - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(7, 17, 31, 0.08);
    transform-origin: top;
  }

  .navbar-menu a {
    white-space: nowrap;
  }

  /* Once the hamburger takes over (<=980px) the switcher stays in the top bar
     next to it, but as the compact trigger — so the labels stay readable
     instead of collapsing to bare flags. Only the trigger shrinks. */
  .lang-trigger {
    padding: 0 10px;
    gap: 6px;
  }

  /* The trigger sits mid-bar on a phone, so hanging the panel off its own edge
     pushed it past the screen. Dropping .lang-menu out of the positioning
     context hands the panel to .navbar-inner, which keeps it inside the
     container gutters in both directions. */
  .lang-menu {
    position: static;
  }

  .lang-menu .language-switcher {
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 200px;
    max-width: calc(100vw - 40px);
  }

  .navbar-open .navbar-menu {
    display: flex;
  }

  .navbar-open .navbar-toggle {
    background: var(--blue);
  }

  .navbar-open .navbar-toggle span {
    background: var(--paper);
  }

  .feature-cards,
  .audience-grid,
  .journey-grid,
  .proof-grid,
  .use-case-grid,
  .pricing-grid,
  .bi-pricing-proof,
  .contact-grid,
  .technical-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifecycle-layout,
  .governance-layout,
  .decision-layout,
  .review-layout,
  .pricing-calculator,
  .demo-hero,
  .tab-content,
  .footer-content,
  .bi-hero-layout,
  .bi-contact-layout,
  .contact-map-layout {
    grid-template-columns: 1fr;
  }

  /* One column is not enough on its own: a grid item still refuses to shrink
     below its own content, so a long heading pushes the column wider than the
     phone and the page scrolls sideways with the last word cut in half. */
  .lifecycle-layout > *,
  .governance-layout > *,
  .decision-layout > *,
  .review-layout > *,
  .bi-hero-layout > *,
  .bi-contact-layout > *,
  .contact-map-layout > * {
    min-width: 0;
  }

  /* Three metric columns inside that one column leave ~90px each. */
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-visual-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bi-client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-dashboard-top,
  .admin-grid,
  .admin-behavior-grid,
  .admin-access-layout,
  .marketing-insight-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-top {
    display: grid;
  }

  .admin-totals {
    grid-template-columns: repeat(3, 1fr);
  }

  .runtime-panel,
  .scene-node {
    opacity: 0.7;
  }

  .demo-value-grid {
    grid-template-columns: 1fr;
  }

  .market-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fashion-preview-grid,
  .fashion-agent-grid {
    grid-template-columns: 1fr;
  }

  .bi-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .navbar-inner,
  .navbar .container {
    gap: 14px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .navbar-inner,
  .navbar .container {
    gap: 8px;
    min-height: 64px;
  }

  .logo-link {
    min-width: 70px;
    min-height: 46px;
  }

  .brand-logo {
    width: 58px;
    height: 38px;
  }

  .nav-cta {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    gap: 0;
    padding: 0;
  }

  .nav-cta span {
    display: none;
  }

  /* Switcher is already flags-only from 980px down (see the hamburger block).
     Here we just keep the flag glyph a touch larger for phone tap targets. */
  .flag {
    width: 20px;
    height: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 76px 0 88px;
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .bi-hero-copy h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .scene-node,
  .runtime-panel,
  .mesh-line {
    display: none;
  }

  .feature-cards,
  .audience-grid,
  .journey-grid,
  .proof-grid,
  .use-case-grid,
  .contact-grid,
  .technical-detail-grid,
  .decision-grid,
  .form-row,
  .trust-grid,
  .bi-client-grid,
  .governance-points,
  .dashboard-control-grid,
  .dashboard-report-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

	  .dashboard-prompt-row {
	    grid-template-columns: 1fr;
	  }

  .market-form,
  .fashion-form-grid,
  .fashion-product-grid,
  .calculator-fields,
  .calculator-features,
  .market-metric-grid,
  .signal-reasons,
  .market-agent-grid,
  .fashion-agent-grid,
  .pricing-grid,
  .bi-pricing-proof,
  .fashion-preview-grid {
    grid-template-columns: 1fr;
  }

  .comparison-heading {
    padding: 18px;
  }

  .comparison-heading h3 {
    font-size: 22px;
  }

  .signal-topline,
  .signal-quote,
  .signal-score,
  .market-source {
    align-items: flex-start;
    display: grid;
  }

	  .dashboard-runner-callout {
	    display: grid;
	  }

  .workshop-map article {
    grid-template-columns: 42px 1fr;
  }

  .workshop-map p {
    grid-column: 2;
  }

  .generated-dashboard-header {
    display: grid;
  }

  .dashboard-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dashboard-bar-value {
    text-align: start;
  }

  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 28px, 1240px);
    padding: 28px 0;
  }

  .admin-login-panel {
    margin-top: 4svh;
    padding: 22px;
  }

  .admin-totals {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-actions select {
    width: 100%;
  }

  .proof-grid div,
  .proof-grid div:first-child {
    border-inline-start: 1px solid var(--line);
  }

  .section {
    padding: 70px 0;
  }

  .compact-enhanced,
  .compact-enhanced.compact-is-open {
    padding: 14px 0;
  }

  .compact-enhanced.compact-is-open {
    padding-bottom: 58px;
  }

  .compact-toggle {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .compact-toggle-index {
    width: 36px;
    height: 36px;
  }

  .compact-toggle-action {
    min-width: 36px;
    width: 36px;
    grid-template-columns: 36px;
    justify-content: center;
    justify-items: center;
  }

  .compact-toggle-state {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compact-toggle-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .tab-content,
  .demo-card,
  .review-tool {
    padding: 20px;
  }

  .contact-map-section {
    padding-bottom: 54px;
  }

  .contact-map-panel {
    padding: 22px;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 360px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo-link {
    min-width: 54px;
  }

  .brand-logo {
    width: 50px;
  }

  /* Narrowest phones: drop the trigger's language code, keep flag + chevron.
     The panel itself stays full width with readable names. */
  .lang-trigger {
    padding: 0 9px;
    gap: 5px;
  }

  .lang-trigger-code {
    display: none;
  }

  .lang-menu .language-switcher {
    min-width: 186px;
  }

  .nav-cta {
    width: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .bi-hero-copy h1 {
    font-size: 34px;
  }
}

/* AI Implementation Scale */
.ai-scale-section {
  background: var(--sand);
}

/* The five levels read as a pyramid, Maslow-style: the base is where everyone
   starts and each tier rests on the one below. DOM order stays 1 → 5 for
   semantics and for reveal.js's stagger; column-reverse puts level 1 at the
   bottom, so the tiers animate into place from the base upward. The apex is
   deliberately not the goal — level 4 is, and it is marked as such. */
.ai-scale-pyramid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

.ai-scale-pyramid > li:nth-child(1) { width: 100%; }
.ai-scale-pyramid > li:nth-child(2) { width: 88%; }
.ai-scale-pyramid > li:nth-child(3) { width: 76%; }
.ai-scale-pyramid > li:nth-child(4) { width: 64%; }
.ai-scale-pyramid > li:nth-child(5) { width: 52%; }

.ai-scale-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 16px 22px;
}

.ai-scale-level {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* One word carries each level; the sentence underneath is the footnote. */
.ai-scale-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: Spectral, Georgia, serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ai-scale-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 46ch;
}

/* Level 4 is the human-approval tier, so it takes clay — the house colour for
   the human register — rather than blue, which is reserved for controls.
   Border only: a border plus a shadow on the same element is banned. */
.ai-scale-card.is-target {
  border-color: var(--clay);
  background: var(--sand-deep);
}

.ai-scale-badge {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--clay-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A sunk panel, not a card: sand fill, no border, no shadow. The blue rule it
   used to carry read as a control, and blue is reserved for things you click. */
.ai-scale-note {
  margin: 24px auto 0;
  max-width: 920px;
  border-radius: 10px;
  background: var(--sand-deep);
  padding: 16px 20px;
}

.ai-scale-note p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.ai-scale-note strong {
  color: var(--ink);
}

/* The taper has to stop before the apex gets too narrow to read. */
@media (max-width: 900px) {
  .ai-scale-pyramid > li:nth-child(1) { width: 100%; }
  .ai-scale-pyramid > li:nth-child(2) { width: 92%; }
  .ai-scale-pyramid > li:nth-child(3) { width: 84%; }
  .ai-scale-pyramid > li:nth-child(4) { width: 76%; }
  .ai-scale-pyramid > li:nth-child(5) { width: 68%; }
}

/* On a phone the pyramid stops being readable, and scrolling downward through
   levels 5 → 1 reads backwards. Below this the tiers are a plain list in
   climbing order instead. */
@media (max-width: 620px) {
  .ai-scale-pyramid {
    flex-direction: column;
    gap: 8px;
  }
  .ai-scale-pyramid > li:nth-child(n) { width: 100%; }
  .ai-scale-card {
    align-items: flex-start;
    text-align: start;
    padding: 14px 16px;
  }
  .ai-scale-card p { max-width: none; }
}

/* FAQ section (AEO) */
.faq-section { background: var(--paper); }
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue-text);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* Comparison page */
.compare-table { width: 100%; margin: 14px 0 8px; }
.compare-table th, .compare-table td { text-align: start; padding: 10px 12px; vertical-align: top; font-size: 14px; }
.compare-table thead th { background: var(--blue-dark); color: #fff; }
.compare-table tbody tr:nth-child(even) { background: #f4f8ff; }
.compare-table td strong { color: var(--blue-dark); }
.author-bio { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 18px 20px; margin: 12px 0 24px; }
.author-bio-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.author-bio p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Human-made polish: scroll reveal + micro-interactions ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-in {
  opacity: 1;
  transform: none;
}
/* Failsafe: content inside collapsible (compact) panels must never stay hidden
   by the reveal animation, since it is display:none until the user opens it. */
.compact-content-panel .reveal,
.compact-is-open .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Hover micro-interactions on cards */
.journey-card,
.ai-scale-card,
.use-case-item,
.card,
.demo-showcase-card,
.pricing-card,
.contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.journey-card:hover,
.ai-scale-card:hover,
.use-case-item:hover,
.card:hover,
.demo-showcase-card:hover,
.pricing-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.10);
  border-color: #c2d4ef;
}
.ai-scale-card.is-target:hover {
  box-shadow: 0 16px 34px rgba(7, 17, 31, 0.22);
}

/* Buttons: subtle lift + icon nudge */
.cta-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
}
.cta-btn.primary:hover {
  box-shadow: 0 10px 22px rgba(7, 17, 31, 0.28);
}
.cta-btn i {
  transition: transform 0.2s ease;
}
.cta-btn:hover i.fa-arrow-right {
  transform: translateX(3px);
}

/* Nav links: animated underline */
.navbar-menu a {
  position: relative;
}
.navbar-menu a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.navbar-menu a:hover::after {
  transform: scaleX(1);
}

/* FAQ open/hover feedback */
.faq-item { transition: border-color 0.2s ease, background-color 0.2s ease; }
.faq-item:hover { border-color: #c2d4ef; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .journey-card:hover, .ai-scale-card:hover, .use-case-item:hover, .card:hover,
  .demo-showcase-card:hover, .pricing-card:hover, .contact-card:hover, .cta-btn:hover {
    transform: none;
  }
}

/* =====================================================================
   PREMIUM DESIGN UPGRADE LAYER
   ===================================================================== */
:root {
  --display: "Spectral", Georgia, serif;
  --grad-blue: linear-gradient(135deg, #1266f1 0%, #0b46a4 100%);
  --grad-accent: linear-gradient(120deg, #1266f1 0%, #a85a39 100%);
  --ring: 0 0 0 1px rgba(18,102,241,0.10);
  --shadow-sm: 0 2px 8px rgba(7,17,31,0.05);
  --shadow-md: 0 12px 30px rgba(7,17,31,0.09);
  --shadow-lg: 0 26px 60px rgba(7,17,31,0.14);
}

h1, h2, h3,
.hero-content h1,
.section-heading h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

/* ---- Hero: layered gradient glow + gradient accent word ---- */
.hero {
  /* Flat night, no glow layers: the radial spotlights were a generated-UI
     signature and the hero earns its depth from content, not lighting. */
  background: linear-gradient(180deg, #06101e 0%, #0a1830 100%);
}

.hero-content h1 {
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
}

/* ---- Section headings: gradient hairline accent above ---- */
.section-heading { position: relative; }
.section-heading h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
}

/* ---- Premium buttons: gradient + shimmer ---- */
.cta-btn.primary {
  background: var(--grad-blue);
  border: none;
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.30);
  position: relative;
  overflow: hidden;
}
.cta-btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.cta-btn.primary:hover::after { left: 140%; }

/* ---- Cards: gradient border on hover + layered depth ---- */
.journey-card,
.ai-scale-card,
.use-case-item,
.card,
.demo-showcase-card,
.faq-item,
.contact-card,
.author-bio {
  position: relative;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.journey-card::before,
.ai-scale-card::before,
.use-case-item::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.journey-card:hover,
.ai-scale-card:hover,
.use-case-item:hover,
.card:hover,
.demo-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.journey-card:hover::before,
.ai-scale-card:hover::before,
.use-case-item:hover::before,
.card:hover::before {
  opacity: 1;
}

/* Icons inside cards: solid, clearly visible accent colour */
.use-case-item > i,
.card > i {
  color: var(--blue-text);
  font-size: 26px;
}

/* ---- Stat numbers in Why-now cards: large gradient display ---- */
.journey-card h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

/* The "premium ladder" styling that used to live here — gradient fills, a
   gradient ring, a border and a shadow on the same element — belonged to the
   pre-sand design. The pyramid defines its own look below. */

/* ---- Proof strip: glassy elevated (dark) ---- */
.proof-strip {
  background: linear-gradient(180deg, #0a1830 0%, #0c1c38 100%);
  border-bottom: none;
}
.proof-grid div,
.proof-grid div:first-child {
  border-color: rgba(255, 255, 255, 0.10);
}
.proof-grid strong {
  color: #ffffff;
}
.proof-grid span {
  color: #aebfd4;
}

/* ---- Compare table polish ---- */
.compare-table { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.compare-table thead th { background: var(--grad-blue); }

/* ---- FAQ items ---- */
.faq-item { border-radius: 12px; }
.faq-item[open] { box-shadow: var(--shadow-md); background: var(--paper); }

/* ---- Footer: hairline rule instead of an accent banner ---- */
.footer { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.09); }

/* ---- Section rhythm ---- */
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }

@media (prefers-reduced-motion: reduce) {
  .cta-btn.primary::after { display: none; }
}

/* ---- Live AI news ticker (top bar) ---- */
.ai-ticker {
  display: flex;
  align-items: stretch;
  height: 38px;
  background: linear-gradient(90deg, #06101e 0%, #0b2a4a 100%);
  color: #eaf2ff;
  font-size: 13px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* when the ticker is present, the sticky navbar sits just below it */
body.has-ai-ticker .navbar {
  top: 38px;
}
.ai-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 14px;
  background: var(--grad-accent, linear-gradient(120deg,#1266f1,#a85a39));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}
.ai-ticker-select {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 10px 0 4px;
  max-width: 150px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 24px 4px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23eaf2ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 9px;
}
.ai-ticker-select:hover { border-color: rgba(255,255,255,0.4); }
.ai-ticker-select:focus-visible { outline: 2px solid #e8c9a0; outline-offset: 1px; }
.ai-ticker-select option { color: #07111f; background: var(--paper); }
@media (max-width: 640px) {
  .ai-ticker-select { max-width: 116px; font-size: 11px; }
}
.ai-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ai-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.ai-ticker-track.is-marquee {
  animation: ai-ticker-scroll linear infinite;
}
.ai-ticker:hover .ai-ticker-track.is-marquee {
  animation-play-state: paused;
}
@keyframes ai-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ai-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  color: #eaf2ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ai-ticker-item:hover .ai-ticker-title { color: #fff; text-decoration: underline; }
.ai-ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay, #a85a39);
  flex: 0 0 auto;
}
.ai-ticker-src { color: #93a8c4; font-size: 12px; }

/* Non-marquee (reduced motion): allow horizontal scroll instead of animation */
@media (prefers-reduced-motion: reduce) {
  .ai-ticker-viewport { overflow-x: auto; }
}
@media (max-width: 640px) {
  .ai-ticker-tag span { display: none; }
}

/* =====================================================================
   Human + AI collaboration animation
   ===================================================================== */
/* This band was still on the pre-sand blue: gradient background, gradient
   avatars, blue chips and connectors. Flat sand, and colour that means
   something — clay for the person, ink for the machine, green for approved. */
.collab-band {
  background: var(--sand);
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
.collab-head { text-align: center; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.collab-head h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; }

.collab-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
}

.collab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 22px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  opacity: 0.55;
  transition: none;
}
.collab-card strong { font-family: var(--display); font-size: 16px; color: var(--ink); }
.collab-card small { color: var(--muted); font-size: 12.5px; max-width: 180px; }

.collab-avatar {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: var(--clay);
}
.collab-avatar-ai { background: var(--ink-2); }
.collab-avatar-approve { background: var(--ok); }

.collab-tools { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.collab-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--ink-2);
  background: var(--sand); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 8px;
}
.chip-excel i { color: #1d6f42; }
.chip-word i { color: #2b579a; }
.chip-email i { color: #d9a400; }
.chip-pdf i { color: #d23b2e; }
.chip-task i { color: #b3361f; }
.chip-dash i { color: var(--clay-ink); }
.chip-out i { color: #d23b2e; }
.chip-approve i { color: var(--ok); }
.chip-audit i { color: var(--clay-ink); }
.chip-sap i { color: #1a6fb5; }
.chip-db i { color: #5b6b82; }
.chip-reconcile i { color: var(--clay-ink); }
.chip-kpi i { color: #ef9f23; }

.collab-example {
  grid-column: 1 / -1;
  margin: 18px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.collab-example i { color: var(--clay-ink); flex: 0 0 auto; }

/* AI "thinking" lines */
.collab-ai-lines { display: flex; flex-direction: column; gap: 4px; width: 110px; }
.collab-ai-lines span { height: 5px; border-radius: 3px; background: var(--clay); }
.collab-ai-lines span:nth-child(1) { width: 100%; }
.collab-ai-lines span:nth-child(2) { width: 72%; }
.collab-ai-lines span:nth-child(3) { width: 88%; }

.collab-scan {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 2px;
  background: var(--paper); box-shadow: 0 0 8px #fff; opacity: 0.9;
}

/* Stages 1 and 2 are drawn rather than iconed: a person at a screen, and the
   wall of documents the AI reads. Flat geometry in the house palette — no
   faces, no detail that a hand-drawn figure would get wrong. */
.collab-scene {
  width: min(150px, 78%);
  height: auto;
  margin: 2px auto 0;
  display: block;
}
.cs-desk { fill: var(--line); }
.cs-solid { fill: var(--ink-2); }
.cs-hair { fill: var(--clay); }
.cs-screen { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.6; }
.cs-lines rect { fill: #d9cfbc; }
.cs-arm {
  fill: none; stroke: var(--ink-2);
  stroke-width: 4.5; stroke-linecap: round;
}

/* Stage 2: the sheets pinned to the wall, with the AI reading across them. */
.cs-sheets rect { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; }
.cs-pins rect { fill: var(--ink-2); }
.cs-sheetlines rect { fill: #d9cfbc; }
.cs-scan { fill: var(--clay); opacity: 0; }
.collab-scene-wall .cs-scan { animation: collabSweep 8s ease-in-out infinite; }

@keyframes collabSweep {
  0%, 34% { transform: translateX(0); opacity: 0; }
  38% { opacity: 0.55; }
  62% { transform: translateX(93px); opacity: 0.55; }
  66%, 100% { transform: translateX(93px); opacity: 0; }
}

/* Stage 3: the validation happens on the document, not on abstract chips.
   Three rules on a page, each ticked off in turn, then the page settles. Drawn
   in the house palette rather than the blue this band inherited. */
.collab-validate {
  width: min(150px, 78%);
  height: auto;
  margin: 2px auto 0;
  display: block;
  overflow: visible;
}
.cv-page {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.5;
}
.cv-rules rect { fill: #d9cfbc; }
.cv-ticks path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}
.cv-ticks path:nth-child(1) { animation: collabTick 8s ease-in-out infinite; }
.cv-ticks path:nth-child(2) { animation: collabTick 8s ease-in-out infinite 0.22s; }
.cv-ticks path:nth-child(3) { animation: collabTick 8s ease-in-out infinite 0.44s; }

@keyframes collabTick {
  0%, 68% { stroke-dashoffset: 18; }
  76%, 96% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 18; }
}

/* Approve check overlay */
.collab-check {
  position: absolute; right: -6px; bottom: -6px;
  width: 26px; height: 26px;
  background: var(--paper); border-radius: 50%; padding: 4px;
  box-shadow: 0 2px 8px rgba(7,17,31,0.2);
}
.collab-check path {
  fill: none; stroke: var(--ok); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
}

/* Arrows / connectors */
.collab-arrow { position: relative; height: 3px; min-width: 60px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #cfc3ae 0 8px, transparent 8px 14px); }
.collab-doc {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: var(--ink-2);
  box-shadow: 0 4px 10px rgba(7,17,31,0.18); opacity: 0;
}
.collab-doc-ai { background: var(--clay); }

/* Return arrow: clearly flows from stage 3 back to stage 1 */
.collab-return {
  grid-column: 1 / -1;
  position: relative;
  height: 30px;
  margin-top: 14px;
}
.collab-return-line {
  position: absolute; left: 6%; right: 6%; top: 50%;
  height: 2px; border-radius: 2px;
  background: var(--line);
}
.collab-return-line::before {
  content: ""; position: absolute; left: -1px; top: 50%;
  width: 0; height: 0; transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-inline-end: 1px solid #7e98ba;
}
.collab-return-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sand-deep); padding: 3px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clay-ink);
}
.collab-return-label i { color: var(--clay); }

/* ---- Animations (8s loop) ---- */
.collab-stage-1 .collab-card { animation: collabA1 8s ease-in-out infinite; }
.collab-stage-2 .collab-card { animation: collabA2 8s ease-in-out infinite; }
.collab-stage-3 .collab-card { animation: collabA3 8s ease-in-out infinite; }
.collab-arrow-1 .collab-doc { animation: collabDoc1 8s ease-in-out infinite; }
.collab-arrow-2 .collab-doc { animation: collabDoc2 8s ease-in-out infinite; }
.collab-check path { animation: collabCheck 8s ease-in-out infinite; }
.collab-scan { animation: collabScan 8s ease-in-out infinite; }
.collab-ai-lines span { animation: collabType 8s ease-in-out infinite; }
.collab-loop { animation: collabPulse 8s ease-in-out infinite; }

@keyframes collabA1 { 0%,28% { opacity:1; transform: translateY(-3px); } 36%,100% { opacity:.5; transform:none; } }
@keyframes collabA2 { 0%,30% { opacity:.5; } 38%,60% { opacity:1; transform: translateY(-3px);} 68%,100% { opacity:.5; transform:none;} }
@keyframes collabA3 { 0%,62% { opacity:.5; } 70%,92% { opacity:1; transform: translateY(-3px);} 100% { opacity:.5; } }
@keyframes collabDoc1 { 0%,18%{left:0;opacity:0;} 24%{opacity:1;} 36%{left:calc(100% - 26px);opacity:1;} 42%,100%{left:calc(100% - 26px);opacity:0;} }
@keyframes collabDoc2 { 0%,56%{left:0;opacity:0;} 62%{opacity:1;} 72%{left:calc(100% - 26px);opacity:1;} 78%,100%{left:calc(100% - 26px);opacity:0;} }
@keyframes collabCheck { 0%,66%{stroke-dashoffset:40;} 82%,100%{stroke-dashoffset:0;} }
@keyframes collabScan { 0%,30%{top:18%;opacity:0;} 40%{opacity:.9;} 58%{top:82%;opacity:.9;} 66%,100%{opacity:0;} }
@keyframes collabType { 0%,30%{opacity:.3;} 45%{opacity:1;} 62%,100%{opacity:.3;} }
@keyframes collabPulse { 0%,90%{opacity:.45;} 95%{opacity:1;} 100%{opacity:.45;} }

@media (max-width: 760px) {
  .collab-flow { grid-template-columns: 1fr; gap: 14px; }
  .collab-arrow { display: none; }
  .collab-loop { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .collab-card, .collab-loop { opacity: 1 !important; animation: none !important; transform: none !important; }
  .collab-doc { display: none; }
  .collab-scan { display: none; }
  .collab-check path { stroke-dashoffset: 0 !important; animation: none !important; }
  .cv-ticks path { stroke-dashoffset: 0 !important; animation: none !important; }
  .cs-scan { display: none; }
  .collab-ai-lines span { opacity: 1 !important; animation: none !important; }
}

/* ---- "Worked with" wordmark strip (text-only, no brand logo files) ---- */
.worked-with {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.worked-with-label {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.worked-with-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
}
.worked-with-marks .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 23px);
  letter-spacing: -0.01em;
  color: #9aa7b6;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}
.worked-with-marks .wordmark:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .worked-with-marks .wordmark:hover { transform: none; }
}

/* Why-now cards: reveal the source line only on hover/focus (kept in DOM for AEO) */
.pilot-purgatory-section .journey-card p {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pilot-purgatory-section .journey-card:hover p,
.pilot-purgatory-section .journey-card:focus-within p {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .pilot-purgatory-section .journey-card p { transition: none; }
}

/* =====================================================================
   Design feedback pass: calmer non-clickable cards, footnotes,
   hero proof points, stronger proof strip
   ===================================================================== */

/* 4a — these blocks are NOT links, so remove the button-like hover.
   Keep a faint static border tint only, no lift / big shadow / gradient ring. */
.journey-card,
.ai-scale-card,
.use-case-item,
.card,
.demo-showcase-card,
.pricing-card,
.contact-card {
  transition: border-color 0.2s ease;
}
.journey-card:hover,
.ai-scale-card:hover,
.use-case-item:hover,
.card:hover,
.demo-showcase-card:hover,
.pricing-card:hover,
.contact-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: #cdd9e8;
}
.journey-card:hover::before,
.ai-scale-card:hover::before,
.use-case-item:hover::before,
.card:hover::before {
  opacity: 0;
}
/* ---- AI scale pyramid: final say ----
   The shared card rules above give every card a shadow and a gradient hover
   ring. The tiers are a diagram, not cards, so they take a border and no
   shadow, and level 4 is marked in clay because it is the human-approval tier.
   This block sits after those rules so it wins without !important. */
.ai-scale-pyramid .ai-scale-card,
.ai-scale-pyramid .ai-scale-card:hover {
  border-radius: 10px;
  box-shadow: none;
  transform: none;
}

.ai-scale-pyramid .ai-scale-card::before,
.ai-scale-pyramid .ai-scale-card:hover::before {
  opacity: 0;
  content: none;
}

.ai-scale-pyramid .ai-scale-card:hover {
  border-color: #cdc1ac;
}

.ai-scale-pyramid .ai-scale-card.is-target,
.ai-scale-pyramid .ai-scale-card.is-target:hover {
  background: var(--sand-deep);
  border-color: var(--clay);
  box-shadow: none;
}

.ai-scale-pyramid .ai-scale-badge {
  background: none;
  box-shadow: none;
  color: var(--clay-ink);
  padding: 0;
}

/* 4b — footnotes / sources under a section */
.journey-card h3 .fn-mark { color: var(--blue-text); font-weight: 700; }
.fn-mark { font-size: 0.62em; }
.section-footnotes {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.section-footnotes > span:first-child { font-weight: 700; color: #6b7888; }
.section-footnotes .fn-mark { color: var(--blue-text); margin-inline-end: 2px; }

/* revert: sources are no longer inside the cards, so no hover-reveal needed */
.pilot-purgatory-section .journey-card p { opacity: 1; }

/* 1 — hero proof points */
.hero-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  max-width: 540px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8e2ee;
  font-size: 15px;
  font-weight: 500;
}
.hero-points li i {
  font-size: 12px;
  color: #06101e;
  background: #e8c9a0;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* 3 — stronger proof strip (more presence, not skippable) */
.proof-strip { padding: clamp(34px, 5vw, 56px) 0; }
.proof-strip-title {
  text-align: center;
  color: #9fc7ff;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.proof-grid div { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.proof-grid div > i {
  font-size: 22px;
  color: #e8c9a0;
  margin-bottom: 4px;
}
.proof-grid strong { font-family: var(--display); font-size: 20px; }
.proof-grid span { font-size: 14.5px; line-height: 1.5; }

@media (max-width: 760px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* Demo section "illustrative playground" note */
.demo-playground-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f8ff;
  padding: 7px 14px;
  color: var(--muted);
  font-size: 13px;
}
.demo-playground-note i { color: var(--blue-text); }

/* Desktop: the decorative scene occupies the right ~48%, so keep the headline
   and proof points within the left zone to guarantee they never collide. */
@media (min-width: 1201px) {
  .hero-content h1 { max-width: min(720px, 50vw); }
}
/* Tablet & small laptop: hide the decorative hero scene — there isn't enough
   room beside the headline, so it would crowd the text. */
@media (max-width: 1200px) {
  .hero-scene { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding: 64px 0 76px; }
}
/* Mobile: shrink the headline so long words never overflow. */
@media (max-width: 900px) {
  .hero-content { padding: 56px 0 64px; }
  .hero-content h1 { font-size: clamp(30px, 7.6vw, 48px); overflow-wrap: break-word; hyphens: none; }
}

/* Per-page sentiment widget */
.db-sentiment {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 65;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(7,17,31,0.16);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.db-sentiment.is-in { opacity: 1; transform: none; }
.db-sentiment-q { font-family: var(--display, sans-serif); font-weight: 600; color: var(--ink); font-size: 15px; padding-inline-end: 16px; }
.db-sentiment-btns { display: flex; gap: 8px; }
.db-sentiment-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.db-sentiment-btn:hover { border-color: var(--blue); background: var(--sand); transform: translateY(-1px); }
.db-sentiment-btn[data-v="up"] i { color: var(--ok); }
.db-sentiment-btn[data-v="down"] i { color: #ec5b56; }
.db-sentiment-x {
  position: absolute; top: 8px; right: 10px;
  border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 18px; line-height: 1;
}
.db-sentiment-x:hover { color: var(--ink); }
.db-sentiment-thanks { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.db-sentiment-thanks i { color: var(--ok); }
@media (max-width: 480px) {
  .db-sentiment { right: 10px; left: 10px; bottom: 10px; max-width: none; }
}

/* Admin: new metric panels (sales, SEO/traffic, sentiment) */
.admin-metric-grid, .admin-sentiment-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.admin-metric-card {
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 10px;
  background: var(--sand);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-metric-card span { color: #506072; font-size: 12.5px; font-weight: 600; }
.admin-metric-card strong { color: #07111f; font-size: 24px; font-weight: 800; }
.admin-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.admin-breakdown-block h4 { margin: 0 0 8px; font-size: 13px; color: #07111f; }
.admin-trend {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  overflow-x: auto;
  padding-top: 8px;
}
.admin-trend-col {
  flex: 1 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.admin-trend-col i {
  width: 100%;
  min-height: 3px;
  height: var(--progress-width, 5%);
  background: linear-gradient(180deg, #1266f1, #0b46a4);
  border-radius: 3px 3px 0 0;
  display: block;
}
.admin-trend-col span { font-size: 11px; color: #889; white-space: nowrap; transform: rotate(-45deg); transform-origin: top left; }

/* Tactical experience survey widget (bottom-left, distinct from sentiment) */
.db-survey {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 65;
  width: 300px;
  max-width: calc(100vw - 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(7,17,31,0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.db-survey.is-in { opacity: 1; transform: none; }
.db-survey-step { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue, #1266f1); }
.db-survey-q { font-family: var(--display, sans-serif); font-weight: 600; color: var(--ink, #07111f); font-size: 16px; margin: 0; padding-inline-end: 14px; }
.db-survey-opts { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.db-survey-opt {
  text-align: start;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 8px;
  background: var(--sand);
  color: var(--ink, #07111f);
  font-size: 14px; font-weight: 500;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.db-survey-opt:hover { border-color: var(--blue, #1266f1); background: var(--sand); transform: translateX(2px); }
.db-survey-other { display: flex; gap: 7px; width: 100%; }
.db-survey-other-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink, #07111f);
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
}
.db-survey-other-input:focus { outline: none; border-color: var(--blue, #1266f1); }
.db-survey-other-send { flex: 0 0 auto; white-space: nowrap; }
.db-survey-x {
  position: absolute; top: 10px; right: 12px;
  border: none; background: none; cursor: pointer;
  color: var(--muted, #506072); font-size: 18px; line-height: 1;
}
.db-survey-x:hover { color: var(--ink, #07111f); }
.db-survey-thanks { display: flex; align-items: center; gap: 8px; color: var(--ink, #07111f); font-size: 15px; font-weight: 600; }
.db-survey-thanks i { color: var(--ok); }
.db-survey-cta {
  display: inline-block; margin-top: 4px;
  background: var(--blue, #1266f1); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 8px; text-align: center;
}
.db-survey-cta:hover { background: var(--blue-dark, #0b46a4); }
@media (max-width: 520px) {
  .db-survey { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* Conversion: mid-page CTA banner + reassurance line */
.mid-cta-section { background: linear-gradient(135deg, #0b2a4a 0%, #1266f1 100%); }
.mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.mid-cta-text h2 { color: #fff; font-family: var(--display, sans-serif); font-size: clamp(22px, 3vw, 32px); margin: 0 0 8px; letter-spacing: -0.02em; }
.mid-cta-text p { color: var(--paper); font-size: 16px; margin: 0; max-width: 620px; }
.mid-cta .cta-btn.primary { background: var(--paper); color: var(--blue-dark, #0b46a4); border: none; flex: 0 0 auto; box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.mid-cta .cta-btn.primary:hover { background: #eaf2ff; }
.cta-reassure {
  margin-top: 16px;
  color: var(--muted, #506072);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-reassure i { color: var(--ok); }
.contact-cta .cta-reassure { justify-content: center; width: 100%; }
@media (max-width: 700px) {
  .mid-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Warm, personal founder section — adds human warmth lower on
   the page while keeping the dark hero cover intact.
   ============================================================ */
.founder-section {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.founder-inner-solo { grid-template-columns: 1fr; }
.founder-copy .eyebrow {
  color: var(--clay-ink);
}
.founder-copy h2 {
  margin: 16px 0 14px;
  color: var(--ink);
  max-width: 20ch;
}
.founder-copy p {
  color: #3b4655;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.62;
  max-width: 60ch;
}
/* The story runs to four paragraphs, where the contact page's version is one.
   Give them air, and stop the heading from stranding a two-letter last line. */
#story .founder-copy h2 {
  max-width: 24ch;
  text-wrap: balance;
}
#story .founder-copy p + p { margin-top: 15px; }
/* Centring reads fine for the contact page's single blurb; four paragraphs of
   narrative need a straight left edge to follow. */
@media (max-width: 820px) {
  #story .founder-copy,
  #story .founder-copy h2,
  #story .founder-copy p { text-align: start; }
}

.founder-sign-line { margin-top: 12px; }
.founder-sign {
  font-family: Spectral, Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--clay-ink);
}

/* Portrait strip inside the founder section */
.founder-team {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 26px);
  align-items: flex-start;
  justify-content: center;
}
.founder-team .founder-portrait-frame { width: min(158px, 40vw); }

/* Founder portrait (monogram placeholder; swaps to a photo at /assets/jalal.jpg) */
.founder-portrait { margin: 0; text-align: center; }
.founder-portrait-frame {
  position: relative;
  width: min(240px, 60vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #16263f 0%, #0b1a30 100%);
  box-shadow: 0 28px 64px rgba(7, 17, 31, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
/* The headshot stays in colour by choice; a light grade and a vignette tie it
   into the section's dark ground. */
.founder-photo {
  filter: saturate(0.9) sepia(10%) contrast(1.04) brightness(0.99);
}
.founder-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(168, 90, 57, 0.07) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 17, 31, 0) 38%, rgba(7, 17, 31, 0.34) 100%);
}

.founder-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 0; /* hide alt text if the photo is not yet in place */
}
.founder-monogram {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
}
.founder-portrait figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-portrait figcaption strong { font-size: 18px; color: var(--ink); }
.founder-portrait figcaption span { font-size: 14px; color: var(--muted); }
.founder-portrait figcaption .founder-role-desc { font-size: 12px; line-height: 1.4; max-width: 22ch; margin: 2px auto 0; }

@media (max-width: 820px) {
  .founder-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }
  .founder-copy { text-align: center; }
  .founder-copy h2, .founder-copy p { max-width: none; }
  .founder-portrait-frame { width: min(200px, 56vw); }
}

/* ============================================================
   Site-wide announcement banner (toggled from admin Site control)
   ============================================================ */
.db-site-banner {
  width: 100%;
  background: linear-gradient(90deg, var(--blue, #1266f1), var(--blue-dark, #0b46a4));
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
}

/* Admin "Site control" panel */
.admin-sitecontrol .admin-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
}
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.admin-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.admin-banner-label {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-sitecontrol input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}
.admin-sitecontrol-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Public banner: optional CTA button + dismiss, responsive (wraps on phones) */
.db-site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 44px;
}
.db-site-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  padding: 4px 13px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.db-site-banner-cta:hover { background: rgba(255, 255, 255, 0.3); }
.db-site-banner-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 2px 8px;
}
.db-site-banner-close:hover { opacity: 1; }

/* Admin: targeted-banner rule editor */
.admin-banner-rules { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.admin-banner-rules-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-banner-rules-head h3 { font-size: 15px; font-weight: 850; color: var(--ink); margin: 0; }
.admin-mini-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #f3f5f8; color: var(--ink);
  font-weight: 800; font-size: 12.5px; border-radius: 6px; padding: 6px 12px; cursor: pointer;
}
.admin-mini-btn:hover { background: #e9edf2; }
.admin-banner-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.admin-banner-rules-list { display: grid; gap: 12px; }
.scr-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfe; display: grid; gap: 8px; }
.scr-line1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scr-enable { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; cursor: pointer; }
.scr-enable input { width: 16px; height: 16px; accent-color: var(--blue); }
.scr-to { font-size: 13px; color: var(--muted); font-weight: 700; }
.scr-audience { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; padding: 0 10px; }
.scr-remove { margin-inline-start: auto; border: 0; background: transparent; color: #f0533f; font-size: 15px; cursor: pointer; font-weight: 800; }
.scr-row input.scr-text, .scr-row input.scr-cta, .scr-row input.scr-href {
  width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; padding: 0 12px;
}
.scr-line3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
@media (max-width: 640px) { .scr-line3 { grid-template-columns: 1fr; } }
.scr-i18n { border-top: 1px dashed var(--line); padding-top: 8px; }
.scr-i18n > summary { font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.scr-i18n-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 8px; }
.scr-i18n-grid input { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; padding: 0 10px; font-size: 13px; }
@media (max-width: 640px) { .scr-i18n-grid { grid-template-columns: 1fr; } }

/* Case-study page list + homepage case teaser */
.case-list {
  margin: 4px 0 10px;
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.case-list li {
  position: relative;
  padding-inline-start: 28px;
  line-height: 1.55;
}
.case-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--blue-text);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
}
.real-examples-case {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft, var(--sand));
}
.real-examples-case span { color: var(--muted); font-size: 15px; }
.real-examples-case a { font-weight: 800; color: var(--blue-text); white-space: nowrap; }

/* Case hub: topic cards + in-page navigation links */
.case-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 8px 0 10px;
}
.case-topic {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-topic h3 { margin: 0; font-size: 18px; color: var(--ink); line-height: 1.3; }
.case-topic p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.case-topic a { margin-top: auto; font-weight: 800; color: var(--blue-text); }
.case-topic a i { margin-inline-start: 4px; transition: transform 0.15s ease; }
.case-topic a:hover i { transform: translateX(3px); }
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}
.case-back:hover { color: var(--blue-text); }
.case-next {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft, var(--sand));
}
.case-next span { color: var(--muted); font-weight: 700; font-size: 14px; }
.case-next a { font-weight: 800; color: var(--blue-text); }

/* Decision trees + code snippets on the case detail pages (technical blocks) */
.decision-tree,
.code-block {
  background: #0e1f38;
  color: #e8eef7;
  border: 1px solid #1d3354;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 12px 0 10px;
  overflow-x: auto;
  white-space: pre;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}
.decision-tree .dt-yes { color: #5fd0a0; }
.decision-tree .dt-no { color: #ff8d7a; }

/* Collapsible "more technical detail" dropdown wrapping a code snippet */
.tech-details {
  margin: 10px 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.tech-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-text);
}
.tech-details > summary::-webkit-details-marker { display: none; }
.tech-details > summary::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.15s ease;
}
.tech-details[open] > summary::before { transform: rotate(90deg); }
.tech-details > .code-block { margin: 0; border-radius: 0; border: 0; border-top: 1px solid #1d3354; }

/* "Trusted by" wordmark line under the hero (above-the-fold social proof) */
.hero-trustbar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.hero-trustbar-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero-trustbar-names {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

/* Translatable HTML decision list (replaces the ASCII decision-tree blocks) */
.decision-list {
  background: #0e1f38;
  color: #e8eef7;
  border: 1px solid #1d3354;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 12px 0 10px;
  font-size: 14px;
  line-height: 1.55;
}
.decision-list .dl-q { margin: 16px 0 8px; font-weight: 800; color: #ffffff; }
.decision-list .dl-q:first-child { margin-top: 0; }
.decision-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.decision-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3px 14px;
  align-items: baseline;
  padding-inline-start: 16px;
  position: relative;
}
.decision-list li::before { content: "\251C"; position: absolute; left: 0; color: #5b6f8c; }
.decision-list li:last-child::before { content: "\2514"; }
.decision-list .dl-if { color: #cdd8e8; }
.decision-list .dl-then { color: #8ab6ff; font-weight: 600; }
.decision-list .dl-then::before { content: "\2192  "; color: #5b6f8c; font-weight: 400; }
.decision-list .dl-note { margin: 10px 0 0; color: #9fb0c8; font-size: 13px; }
.decision-list .dl-note:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .decision-list li { grid-template-columns: 1fr; gap: 0; }
  .decision-list .dl-then::before { content: "\2192 "; }
}

/* Paid entry offer: the fixed-fee "decision pilot" section */
.first-step-section { background: var(--soft, var(--sand)); }
.first-step-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.first-step-cta .cta-reassure { margin: 0; }

/* Trademark/referential-use disclaimer under the client logos */
.logo-disclaimer {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 70ch;
}

/* Credibility band: the first thing under the hero. The track record used to
   sit six sections down, which is too late to be the reason someone keeps
   reading. Paper, so it separates the dark hero from the sand story below. */
.credibility-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 4vw, 40px) 0 clamp(20px, 3vw, 30px);
}

.credibility-line {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.credibility-band .logo-marquee {
  margin: 20px 0 0;
}

.credibility-band .logo-disclaimer {
  margin: 18px auto 0;
  text-align: center;
  font-size: 11.5px;
  max-width: 78ch;
}

/* Auto-scrolling client logo carousel (marquee) */
.logo-marquee {
  margin: 24px 0 8px;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  width: max-content;
  animation: logo-marquee-scroll 32s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-item {
  height: 34px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.logo-marquee-item:hover { opacity: 1; filter: grayscale(0%); }
/* KLM stacks its crown above the wordmark, so at the row's 34px it reads far
   smaller than the wide wordmarks beside it. Match optical weight, not height. */
.logo-marquee-item[src*="klm"] { height: 52px; }
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}
.ai-outlook-section .outlook-poc-heading {
  margin-top: 56px;
}

.ai-outlook-section .outlook-poc-heading h3 {
  margin: 14px 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}

/* Multi-agent page: source citations, breadcrumb, dateline, comparison table */
.source-line {
  margin: -6px 0 14px;
  font-size: 13px;
}
.source-line a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
}
.source-line a:hover { color: var(--blue-text); }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--blue-text); text-decoration: underline; }

.page-dateline {
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}

.agent-compare { max-width: 640px; margin-top: 18px; }
img.author-bio-avatar { object-fit: cover; }

/* Fix: keep all desktop nav links clickable (not hidden under the language
   switcher). The nav container caps at ~1180px, so default spacing is too wide
   for the longest (Dutch) label set at every desktop width — tighten it from
   the mobile breakpoint up, in every language. */
@media (min-width: 981px) {
  .navbar-menu { gap: 15px; }
  .navbar-menu a { font-size: 13px; }
  .navbar-inner,
  .navbar .container { gap: 14px; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .navbar-menu { gap: 10px; }
  .navbar-menu a { font-size: 12px; }
  .navbar-inner,
  .navbar .container { gap: 8px; }
  .language-switcher { gap: 1px; padding: 3px; }
  .lang-btn { padding-inline-start: 5px; padding-inline-end: 5px; }
  .nav-cta { padding-inline-start: 10px; padding-inline-end: 10px; }
}

/* Keep the language buttons on one line (中文 was wrapping to two rows) */
.lang-btn { white-space: nowrap; }

/* "Find your own garment" block under the closet: Google Shopping search + image-link loader */
.fashion-hf-search {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.fashion-hf-search > strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.fashion-hf-search > span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 2px 0 10px;
}
.fashion-hf-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.fashion-hf-search-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}
.fashion-hf-search-row .cta-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.fashion-hf-search-status {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 1em;
}
@media (max-width: 640px) {
  .fashion-hf-search-row { flex-direction: column; }
  .fashion-hf-search-row .cta-btn { width: 100%; justify-content: center; }
}

/* Shopping-search result tiles: garment button + licensed retailer link */
#fashionSearchResults:empty { display: none; }
.fashion-result { display: flex; flex-direction: column; gap: 3px; }
.fashion-result-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fashion-result-link:hover { color: var(--blue-text); }

/* ---- Trading bot demo page ---- */
.trading-warn {
  display: flex; align-items: flex-start; gap: 9px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
  padding: 10px 12px; font-size: 13.5px; color: #9a3412; margin-top: 14px;
}
.trading-warn i { color: #ea580c; margin-top: 2px; flex: 0 0 auto; }
.trading-controls {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 12px;
  align-items: end; margin: 8px 0 20px; padding: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
}
.trading-field { display: flex; flex-direction: column; gap: 5px; }
.trading-field label { font-size: 12px; font-weight: 800; color: var(--muted); }
.trading-field select, .trading-field input {
  min-height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; padding: 0 10px;
}
.trading-field-hint { justify-content: center; }
.trading-field-hint span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) { .trading-controls { grid-template-columns: 1fr 1fr; } .trading-field-hint { grid-column: 1 / -1; } }

.trading-inline-status { font-size: 13px; color: var(--muted); margin-inline-start: 10px; }
.trading-out { margin: 6px 0 10px; }
.trading-out:empty { display: none; }
.trading-out h3 { margin: 6px 0 12px; font-size: 18px; color: var(--ink); }

.trading-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
@media (max-width: 560px) { .trading-stats { grid-template-columns: repeat(2, 1fr); } }
.trading-stat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--paper); }
.trading-stat-label { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.trading-stat-value { display: block; font-size: 19px; color: var(--ink); margin-top: 3px; }
.trading-stat.pos .trading-stat-value { color: var(--ok); }
.trading-stat.neg .trading-stat-value { color: var(--bad); }

.trading-verdict { font-size: 14px; font-weight: 700; margin: 4px 0 14px; }
.trading-verdict.pos { color: var(--ok); }
.trading-verdict.neg { color: #92400e; }

.trading-lab-link { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13.5px; color: var(--muted); background: #f8fafc; }
.trading-lab-link i { color: var(--blue-text); margin-top: 2px; }
.trading-lab-link a { color: var(--blue-text); font-weight: 700; }
@media (prefers-color-scheme: dark) { .trading-lab-link { background: rgba(255,255,255,0.03); } }

/* In-sample vs out-of-sample (overfitting demo) */
.trading-split { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; background: #f8fafc; }
.trading-split-title { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.trading-split-intro { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.trading-split-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); margin-bottom: 14px; }
.trading-split-btn { appearance: none; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 16px; border-radius: 999px; transition: background .15s, color .15s; }
.trading-split-btn:hover { color: var(--ink); }
.trading-split-btn.active { background: var(--blue); color: #fff; }
.trading-split-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.trading-split-range { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin: 0 0 10px; }
.trading-split-verdict { font-size: 13.5px; font-weight: 700; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.5; }
.trading-split-verdict.pos { color: var(--ok); }
.trading-split-verdict.neg { color: var(--bad); }
@media (prefers-color-scheme: dark) {
  .trading-split { background: rgba(255,255,255,0.03); }
  .trading-split-switch { background: rgba(0,0,0,0.25); }
}

.trading-agents { border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 12px 14px; margin: 12px 0; }
.trading-agents > strong { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.trading-agent-row { display: flex; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.trading-agent-row:first-of-type { border-top: 0; }
.trading-agent-name { flex: 0 0 145px; font-weight: 800; color: var(--blue-text); font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.trading-agent-detail { color: var(--ink); }
@media (max-width: 560px) { .trading-agent-row { flex-direction: column; gap: 2px; } .trading-agent-name { flex-basis: auto; } }

.trading-proposal { border: 1px solid var(--line); border-inline-start-width: 1px; border-radius: 8px; padding: 12px 14px; margin: 12px 0; background: var(--paper); }
.trading-proposal.buy { border-inline-start-color: var(--ok); }
.trading-proposal.sell { border-inline-start-color: var(--bad); }
.trading-proposal.hold { border-inline-start-color: #94a3b8; }
.trading-proposal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trading-proposal-side { font-weight: 900; font-size: 16px; letter-spacing: 0.03em; }
.trading-proposal.buy .trading-proposal-side { color: var(--ok); }
.trading-proposal.sell .trading-proposal-side { color: var(--bad); }
.trading-proposal.hold .trading-proposal-side { color: #64748b; }
.trading-proposal-detail { font-size: 15px; color: var(--ink); font-weight: 600; }
.trading-proposal-notional { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.trading-approve { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0 6px; }
.trading-done { color: var(--ok); font-weight: 800; font-size: 14px; }
.trading-rejected, .trading-hold-note { color: var(--muted); font-size: 13.5px; }
.trading-error { color: var(--bad); font-size: 14px; font-weight: 600; }
.trading-empty { color: var(--muted); font-size: 14px; }

.trading-trades { margin: 10px 0; }
.trading-trades > summary { font-size: 13px; font-weight: 800; color: var(--blue-text); cursor: pointer; }
.trading-trades td.pos, .trading-stats .pos, td.pos { color: var(--ok); font-weight: 700; }
.trading-trades td.neg, td.neg { color: var(--bad); font-weight: 700; }
.trading-history { margin: 10px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--ink); }
.trading-history li { margin: 2px 0; }
.trading-disc { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 10px; }

/* Trading bot: experience-level picker */
.trading-level {
  display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 8px;
  align-items: stretch; margin-top: 16px;
}
.trading-level-label { display: flex; align-items: center; font-size: 13px; font-weight: 800; color: var(--muted); padding-inline-end: 2px; }
.trading-level-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 10px 12px; cursor: pointer; text-align: start; font: inherit; color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.trading-level-btn i { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.trading-level-name { font-weight: 800; font-size: 13.5px; }
.trading-level-btn small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.trading-level-btn:hover { border-color: rgba(18, 102, 241, 0.4); }
.trading-level-btn.is-active { border-color: var(--blue); background: #eff6ff; box-shadow: 0 0 0 1px var(--blue) inset; }
.trading-level-btn.is-active i, .trading-level-btn.is-active .trading-level-name { color: var(--blue-text); }
@media (max-width: 720px) { .trading-level { grid-template-columns: 1fr; } .trading-level-label { padding: 0 0 2px; } }

.trading-glossary { margin: 4px 0 4px; }
.trading-glossary summary { font-size: 12px; color: var(--blue-text); font-weight: 700; cursor: pointer; }
.trading-glossary-body { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.trading-plain-verdict { border: 1px solid var(--line); border-inline-start: 1px solid var(--blue); border-radius: 8px; background: #eff6ff; padding: 10px 12px; margin: 10px 0; font-size: 14px; color: var(--ink); }
.trading-plain-verdict strong { color: var(--blue-text); }

/* Trading bot: animated "how it works" strip (mirrors .fashion-howto) */
.trading-howto {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px 16px;
  max-width: 100%;
  width: fit-content;
}
.trading-howto-caption {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.trading-howto-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px;
}
.trading-howto-box {
  position: relative;
  width: 118px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 8px;
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  background: #f8fafc;
  min-height: 90px;
}
.trading-howto-box > span {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
  line-height: 1.3;
}
.trading-howto-box b,
.trading-howto-genbtn b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  flex: 0 0 auto;
}
.trading-howto-icon {
  font-size: 26px;
  color: var(--blue-text);
}
.trading-howto-box:not(.trading-howto-resultbox)::after,
.trading-howto-gen::after {
  content: '→';
  position: absolute;
  inset-inline-end: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 800;
}
.trading-howto-gen {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 112px;
}
.trading-howto-genbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  padding: 7px 6px;
}
.trading-howto-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.trading-howto-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 999px;
}
.trading-howto-resultbox {
  border-style: solid;
  border-color: var(--ok);
}
.trading-howto-resultbox .trading-howto-icon { color: var(--ok); }
@keyframes tradingHowtoDrop1 {
  0%, 7% { opacity: 0; transform: translateY(-14px) scale(0.7); }
  13%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.7); }
}
@keyframes tradingHowtoDrop2 {
  0%, 25% { opacity: 0; transform: translateY(-14px) scale(0.7); }
  31%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.7); }
}
@keyframes tradingHowtoPulse {
  0%, 44% { background: #eef2f7; transform: scale(1); box-shadow: none; }
  47% { background: #dbe7fb; transform: scale(1.07); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
  52%, 100% { background: #eef2f7; transform: scale(1); box-shadow: none; }
}
@keyframes tradingHowtoBar {
  0%, 48% { width: 0; }
  68%, 96% { width: 100%; }
  100% { width: 0; }
}
@keyframes tradingHowtoResult {
  0%, 66% { opacity: 0; transform: scale(0.85); }
  73%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}
.trading-howto-step1 .trading-howto-icon { animation: tradingHowtoDrop1 10s ease-in-out infinite; }
.trading-howto-step2 .trading-howto-icon { animation: tradingHowtoDrop2 10s ease-in-out infinite; }
.trading-howto-genbtn { animation: tradingHowtoPulse 10s ease-in-out infinite; }
.trading-howto-bar i { animation: tradingHowtoBar 10s linear infinite; }
.trading-howto-result { animation: tradingHowtoResult 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .trading-howto-step1 .trading-howto-icon, .trading-howto-step2 .trading-howto-icon, .trading-howto-genbtn, .trading-howto-bar i, .trading-howto-result { animation: none; }
  .trading-howto-bar i { width: 100%; }
}
@media (max-width: 620px) {
  .trading-howto-stage { gap: 12px 16px; }
  .trading-howto-box { width: 100px; }
  .trading-howto-gen { width: 100px; }
  .trading-howto-box:not(.trading-howto-resultbox)::after,
  .trading-howto-gen::after { display: none; }
}

/* Trading bot: step cards (Backtest / Ask the agents / Portfolio) */
.trading-step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 24px 26px 26px;
  box-shadow: 0 1px 2px rgba(7, 17, 31, 0.04);
}
.trading-step-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.trading-step-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  margin-top: 2px;
}
.trading-step-num-done { background: var(--ok); }
.trading-step-head h2 { margin: 0 0 4px; font-size: 20px; }
.trading-step-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.trading-step-cta { margin: 14px 0 4px; }
.trading-step-connector {
  display: flex; justify-content: center; color: #94a3b8; font-size: 15px;
  margin: -2px 0;
}
.trading-step-card-portfolio { border-color: rgba(4, 120, 87, 0.28); }
.trading-cta-band {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sand);
  padding: 24px 26px;
}
.trading-cta-band h2 { margin-top: 0; }
@media (max-width: 620px) {
  .trading-step-card, .trading-cta-band { padding: 18px 16px 20px; border-radius: 12px; }
  .trading-step-head { gap: 12px; }
  .trading-step-num { width: 28px; height: 28px; font-size: 13px; }
}

/* ============================================================
   Right-to-left (Arabic)
   The layout itself mirrors on its own: every directional margin,
   padding, border and offset above uses logical properties, so
   dir="rtl" flips them without a parallel stylesheet. What is left
   here is what logical properties cannot express.
   ============================================================ */

/* The self-hosted Spectral and Plex subsets are Latin only, so Arabic would
   fall back to whatever the browser picks. Name the good system faces instead
   of shipping an Arabic webfont: no third-party request, so it stays within
   the same GDPR rule as the rest of the type. */
[lang="ar"] body,
[dir="rtl"] body {
  font-family: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Naskh Arabic",
    "Noto Sans Arabic", "Traditional Arabic", Tahoma, sans-serif;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic",
    "Traditional Arabic", Tahoma, serif;
  /* Arabic has no ascender/descender rhythm to tighten against, and the
     Latin display tracking makes it look cramped. */
  letter-spacing: 0;
  line-height: 1.35;
}

/* Arrows carry direction, so they have to turn round; logos, spinners,
   external-link and play icons must not. */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-angle-right,
[dir="rtl"] .fa-angle-left,
[dir="rtl"] .fa-long-arrow-right {
  transform: scaleX(-1);
}

/* Gradients and shadows take an angle, which no logical property covers. */
[dir="rtl"] .flag-ae {
  background:
    linear-gradient(270deg, #ce1126 0 25%, transparent 25%) 0 0 / 100% 100% no-repeat,
    linear-gradient(#00732f 0 33.33%, #ffffff 33.33% 66.66%, #000000 66.66% 100%);
}

/* Numbers, dates and prices stay Western-Arabic and left-to-right inside an
   otherwise right-to-left line, which is what Gulf business writing does. */
[dir="rtl"] .stat-value,
[dir="rtl"] .trading-stat-value,
[dir="rtl"] .market-price,
[dir="rtl"] table td.num,
[dir="rtl"] .tabular {
  direction: ltr;
  unicode-bidi: embed;
  text-align: end;
}

/* The switcher keeps one reading order in every language, so a visitor does
   not have to hunt for the flag they arrived on. The trigger is part of that
   control, so it holds the same order as the panel it opens. */
[dir="rtl"] .language-switcher,
[dir="rtl"] .lang-trigger {
  direction: ltr;
}

/* .hero-scene is the decorative layer behind the headline (aria-hidden): cards
   pinned at percentages that were tuned against the text column beside them.
   Mirroring drops them straight on top of the headline, so the whole scene
   stays left-to-right. Its labels still read correctly because plaintext lets
   each one take its direction from its own first strong character — which does
   not touch positioning, unlike setting direction on the card. */
[dir="rtl"] .hero {
  /* Keep the two-column composition as designed — text column, then scene —
     rather than swapping them under the fixed-percentage decoration. */
  direction: ltr;
}

[dir="rtl"] .hero-content {
  direction: rtl;
  text-align: right;
}

/* .hero-content is itself the centred container, so the width cap belongs on
   its children. Each one keeps the left half — where .hero-scene isn't — and
   right-aligns its text inside that. The margins are physical on purpose: a
   logical margin resolves against the block's own rtl direction and would put
   the text straight back underneath the decoration.
   Only above 1200px: below that the scene is hidden, so the text takes the
   full width like it does in the other languages. */
@media (min-width: 1201px) {
  [dir="rtl"] .hero-content > * {
    max-width: min(600px, 52%);
    margin-left: 0;
    margin-right: auto;
  }
}

[dir="rtl"] .hero-content .hero-ctas,
[dir="rtl"] .hero-content ul {
  justify-content: flex-end;
}

[dir="rtl"] .hero-scene {
  direction: ltr;
}

[dir="rtl"] .hero-scene span,
[dir="rtl"] .hero-scene strong,
[dir="rtl"] .hero-scene p,
[dir="rtl"] .hero-scene div {
  unicode-bidi: plaintext;
}

/* ---- Deposit checkout under the pricing calculator ----
   Hidden until /api/checkout.php reports that payments are configured, so the
   page never shows a pay button that cannot take a payment. */
.deposit-block {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border-radius: 8px;
  background: var(--sand-deep);
}
.deposit-lead {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
/* Buyer type and product choice. The block sits on --sand-deep, so the
   choices are drawn with a border and no second shadow. */
/* Sub-articles in the terms: smaller than an article heading, but still a
   heading — the numbering carries the hierarchy, so the type only has to
   confirm it. */
.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.deposit-choice {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.deposit-choice legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.deposit-choice > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.deposit-options {
  display: grid;
  gap: 8px;
}
.deposit-options > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-inline-end: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.deposit-options > label:has(input:checked) {
  border-color: var(--clay);
}
/* The stylesheet gives every input width:100% for the text fields it was
   written for. A radio button inherits that too, eats the whole row and
   pushes its own label out of the box, so both choice rows opt out. */
.deposit-choice input,
.deposit-options input {
  width: auto;
  flex: none;
}
.deposit-options input {
  margin-top: 3px;
}
.deposit-options > label > span {
  min-width: 0;
}
.deposit-option-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}
.deposit-option-desc {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.deposit-option[hidden] { display: none; }

.deposit-sum {
  margin: 0 0 14px;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}
.deposit-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.deposit-sum dt { color: var(--muted); }
.deposit-sum dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.deposit-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.deposit-total dt, .deposit-total dd { color: var(--ink); }

.deposit-fields { display: grid; gap: 8px; margin-bottom: 12px; }
.deposit-fields label { display: grid; gap: 4px; }
.deposit-fields span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.deposit-fields input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
}
.deposit-fields input:focus-visible { outline: 2px solid var(--clay-ink); outline-offset: 1px; }

.deposit-pay { width: 100%; justify-content: center; }
.deposit-pay[disabled] { opacity: 0.6; cursor: progress; }

.deposit-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.deposit-note.is-error { color: var(--bad); font-weight: 700; }

@media (min-width: 640px) {
  .deposit-fields { grid-template-columns: 1fr 1fr; }
  .deposit-fields label:last-child { grid-column: 1 / -1; }
}

/* The withdrawal acknowledgement sits directly above the pay button, because a
   consumer only loses that right if they were asked before paying. */
.deposit-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.deposit-consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.deposit-terms { margin: -6px 0 12px; font-size: 12px; }
.deposit-terms a { color: var(--clay-ink); }

/* Herroepfunctie: verplicht sinds 25 juni 2026, en de wet vraagt dat opzeggen
   net zo makkelijk is als kopen. Vandaar een echt formulier met een knop, en
   geen verwijzing naar een e-mailadres. */
.withdraw-panel {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 12px;
  background: var(--sand-deep);
}
.withdraw-fields { display: grid; gap: 12px; margin-bottom: 14px; }
.withdraw-fields label { display: grid; gap: 4px; }
.withdraw-fields span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.withdraw-fields small { color: var(--muted); font-size: 11.5px; }
.withdraw-fields input,
.withdraw-fields textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.withdraw-fields input { min-height: 42px; }
.withdraw-fields input:focus-visible,
.withdraw-fields textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.withdraw-submit { width: 100%; justify-content: center; }
.withdraw-submit[disabled] { opacity: 0.6; cursor: progress; }
.withdraw-status { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.withdraw-status.is-error { color: var(--bad); font-weight: 700; }
.withdraw-status.is-done { color: var(--ok); font-weight: 700; }

/* Right-to-left: the endpoint labels flip with the flex row but the SVG text
   beneath them does not, so the first year ended up under the last value. And
   a bar growing from the left grows away from its own label. */
[dir="rtl"] .dashboard-line-range { flex-direction: row-reverse; }
[dir="rtl"] .dashboard-bar-fill { transform-origin: right center; }
.admin-contract-hint { font-size: 14px; opacity: 0.75; margin-top: 4px; }
@media print { .admin-contract-hint { display: none; } }
