/* CogniBiz marketing site. Layout and marketing-only styles.
   Colours, type, spacing and components come from cognibiz-tokens.css and cognibiz-components.css
   (copied from Functional and Technical Docs/CogniBiz/Design System; keep in sync, do not edit the copies). */

/* ---------- Dark sections: same values as the design system's dark theme, scoped to a block ---------- */
.on-dark {
  --cb-ink: #E5E9F0; --cb-ink-2: #C9D1DE; --cb-muted: #A3AEC2;
  --cb-surface: #151A2B; --cb-surface-hover: #1C2338; --cb-line: #2E3650; --cb-line-strong: #66728F;
  --cb-action: #B9A4FC; --cb-action-hover: #CDBDFD; --cb-action-soft: #241D40; --cb-on-action: #1A1033;
  --cb-focus: #C4B5FD;
  color: var(--cb-ink);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cb-bg); }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
img { max-width: 100%; display: block; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--cb-space-6); }
@media (max-width: 480px) { .wrap { padding: 0 var(--cb-space-4); } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: var(--cb-z-toast); background: #FFFFFF; color: var(--cb-action); padding: 8px 14px; border-radius: var(--cb-radius-md); font-weight: 600; }
.skip:focus { left: 16px; }

.cb-btn { text-decoration: none; }
.cb-btn .ic { width: 18px; height: 18px; }
.btn-outline-light { background: transparent; color: #F3F6FB; border-color: #66728F; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #A3AEC2; }

.pill { display: inline-block; font-size: var(--cb-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #67E8F9; border: 1px solid #22D3EE; border-radius: var(--cb-radius-pill); padding: 6px 14px; }
.grad { background: linear-gradient(90deg, #22D3EE 0%, #60A5FA 55%, #A78BFA 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #22D3EE; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: var(--cb-z-sticky); background: rgba(5, 7, 13, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #1E2638; }
.head-in { display: flex; align-items: center; gap: var(--cb-space-8); height: 68px; }
.brand { color: #FFFFFF; text-decoration: none; font-size: 24px; padding: 10px 0; }
/* Comfortable tap height for inline text links */
.text-link, .demo-contact a, .foot-links a { padding: 8px 0; }
.site-nav ul { display: flex; gap: var(--cb-space-6); list-style: none; padding: 0; }
.site-nav a { color: #C9D1DE; text-decoration: none; font-weight: 500; padding: 6px 2px; }
.site-nav a:hover { color: #FFFFFF; }
.head-cta { margin-left: auto; --cb-action: #B9A4FC; --cb-action-hover: #CDBDFD; --cb-on-action: #1A1033; }
.brand-emblem { height: 52px; width: 52px; flex: none; margin: -6px 0; }
.foot-brand .brand-emblem { height: 56px; width: 56px; }
@media (max-width: 380px) { .brand-emblem { height: 40px; width: 40px; margin: -4px 0; } .brand { gap: .3em; } }
.site-head :focus-visible { outline-color: #C4B5FD; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid #3A4460; border-radius: var(--cb-radius-md); background: transparent; color: #F3F6FB; cursor: pointer; place-items: center; }
.menu-btn .ic { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .head-in { gap: var(--cb-space-3); }
  .menu-btn { display: grid; }
  .head-cta { height: var(--cb-control-h-sm); padding: 0 var(--cb-space-3); font-size: var(--cb-text-sm); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #0B0F1C; border-bottom: 1px solid #1E2638; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: var(--cb-space-2) var(--cb-space-4) var(--cb-space-4); }
  .site-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid #1E2638; font-size: var(--cb-text-lg); }
}
@media (max-width: 380px) { .brand { font-size: 20px; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 88% 0%, #0C3642 0%, rgba(5, 7, 13, 0) 46%),
              radial-gradient(circle at 0% 100%, #2B2452 0%, rgba(5, 7, 13, 0) 48%), #05070D;
  padding: 72px 0 96px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6.2vw, 76px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 20px; color: #F3F6FB; }
.lead { font-size: 20px; line-height: 1.55; color: #C9D1DE; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--cb-space-3); margin-top: var(--cb-space-8); }
.trust { display: flex; flex-wrap: wrap; gap: var(--cb-space-2) var(--cb-space-6); list-style: none; padding: 0; margin-top: var(--cb-space-8); color: #A3AEC2; font-size: var(--cb-text-sm); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { width: 16px; height: 16px; color: #22D3EE; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 480px) {
  .lead { font-size: 18px; }
  .hero-actions .cb-btn { flex: 1 1 100%; }
}

/* ---------- Product preview (built from design-system components, sample data) ---------- */
.preview { border-radius: 14px; overflow: hidden; background: var(--cb-bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); font-size: var(--cb-text-sm); }
.pv-bar { display: flex; align-items: center; gap: var(--cb-space-3); height: 48px; padding: 0 var(--cb-space-4); background: var(--cb-brand-ground); border-bottom: 2px solid transparent; border-image: var(--cb-brand-gradient) 1; }
.pv-logo { color: #FFFFFF; font-size: 16px; }
.pv-search { flex: 1; max-width: 280px; height: 28px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #3A4460; border-radius: var(--cb-radius-md); background: #121829; color: #A3AEC2; font-size: 12px; white-space: nowrap; overflow: hidden; }
.pv-user { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #241D40; color: #C4B5FD; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.pv-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
.pv-nav { display: flex; flex-direction: column; gap: 2px; padding: var(--cb-space-3) var(--cb-space-2); background: var(--cb-surface); border-right: 1px solid var(--cb-line); }
.pv-nav span { padding: 7px 10px; border-radius: var(--cb-radius-md); color: var(--cb-ink-2); font-weight: 500; font-size: 12.5px; }
.pv-nav .is-on { background: var(--cb-action-soft); color: var(--cb-action); font-weight: 600; }
.pv-main { padding: var(--cb-space-4); display: flex; flex-direction: column; gap: var(--cb-space-3); min-width: 0; }
.pv-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--cb-text-md); font-weight: 700; }
.pv-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-space-2); }
.pv-kpis .cb-kpi { padding: 10px 12px; }
.pv-kpis .cb-kpi__label { font-size: 11.5px; }
.pv-kpis .cb-kpi__value { font-size: 22px; }
.pv-table { overflow: hidden; }
.pv-table .cb-table { font-size: 12.5px; table-layout: fixed; }
.pv-table col.c-ord { width: 18%; } .pv-table col.c-cust { width: 31%; } .pv-table col.c-stat { width: 29%; } .pv-table col.c-amt { width: 22%; }
.pv-table .cb-badge { padding: 0 7px; gap: 5px; }
.pv-table .cb-table td { overflow: hidden; text-overflow: ellipsis; }
.pv-table .cb-table th, .pv-table .cb-table td { height: 34px; padding: 0 8px; }
.pv-table .cb-table tbody tr:hover { background: transparent; }
.pv-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .pv-body { grid-template-columns: minmax(0, 1fr); }
  .pv-nav, .pv-search, .pv-amt { display: none; }
  .pv-table col.c-ord { width: 23%; } .pv-table col.c-cust { width: 40%; } .pv-table col.c-stat { width: 37%; } .pv-table col.c-amt { width: 0; }
}

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec--alt { background: var(--cb-surface); border-top: 1px solid var(--cb-slate-200); border-bottom: 1px solid var(--cb-slate-200); }
.sec-head { max-width: 760px; margin-bottom: var(--cb-space-10); }
.eyebrow { font-size: var(--cb-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-action); }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.14; letter-spacing: -.025em; margin: 12px 0 16px; }
.sec-head p:last-child { font-size: var(--cb-text-xl); line-height: 1.6; color: var(--cb-ink-2); }
.sec-head--brand { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--cb-space-10); align-items: center; }
.sec-head--brand .sh-text { max-width: 760px; }
.sec-head--brand .sh-text p:last-child { font-size: var(--cb-text-xl); line-height: 1.6; color: var(--cb-ink-2); }
.brand-art { width: 100%; max-width: 300px; height: auto; justify-self: end; }

/* ---------- Explainer video ---------- */
.video-frame { margin: 0; max-width: 960px; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--cb-radius-xl); background: #05070D; box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 0 0 1px var(--cb-slate-200); }
.video-frame figcaption { margin-top: var(--cb-space-4); max-width: 760px; font-size: var(--cb-text-sm); line-height: 1.6; color: var(--cb-muted); }
@media (max-width: 900px) {
  .sec-head--brand { grid-template-columns: 1fr; }
  .brand-art { justify-self: start; max-width: 240px; }
}
@media (max-width: 768px) {
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: var(--cb-space-8); }
  .sec-head p:last-child { font-size: var(--cb-text-lg); }
}

.grid { display: grid; gap: var(--cb-space-5); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.tile-ic { width: 44px; height: 44px; border-radius: var(--cb-radius-lg); display: grid; place-items: center; flex: none; }
.tile-ic .ic { width: 22px; height: 22px; }
.t-teal { background: #E0F6FA; color: #0E7490; }
.t-blue { background: #E6EEFD; color: #1D4ED8; }
.t-violet { background: var(--cb-action-soft); color: var(--cb-action); }

.tile { padding: var(--cb-space-6); display: flex; flex-direction: column; gap: var(--cb-space-3); }
.tile h3, .mod h3, .steps h3, .proof h3 { font-size: var(--cb-text-xl); font-weight: 700; line-height: 1.3; }
.tile p, .mod p, .steps p, .control p, .proof p { color: var(--cb-ink-2); line-height: 1.55; }

@media (max-width: 560px) {
  .tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--cb-space-4); row-gap: 4px; padding: var(--cb-space-5); }
  .tile .tile-ic { grid-row: span 2; }
}
.callout { margin-top: var(--cb-space-6); padding: var(--cb-space-5) var(--cb-space-6); border-left: 4px solid var(--cb-action); background: var(--cb-action-soft); border-radius: 0 var(--cb-radius-lg) var(--cb-radius-lg) 0; font-size: var(--cb-text-lg); line-height: 1.55; color: var(--cb-ink); }

/* Modules: same white card as every other card on the page */
.mod { display: flex; gap: var(--cb-space-4); align-items: flex-start; padding: var(--cb-space-5); background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-radius-lg); box-shadow: var(--cb-shadow-1); }
.mod > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (max-width: 560px) {
  .grid-3.mods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-space-3); }
  .mod { flex-direction: column; gap: var(--cb-space-3); padding: var(--cb-space-4); }
  .mod h3 { font-size: var(--cb-text-lg); }
  .mod p { font-size: var(--cb-text-sm); }
}

/* ---------- "Follow one order" journey ----------
   Without JavaScript every step shows, one under the other. With it (html.js), an order chip travels along a track of
   stations, stops at each to show its details, then moves on. Clicking a station sends the chip there. */
.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cb-space-5); --travel: 1300ms; }
.tour-track, .tour-steps, .tour-bar { display: none; }
.js .tour-track { display: block; position: relative; padding-top: 46px; }
.js .tour-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.tour-steps button {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 4px 4px; min-height: 44px;
  border: 0; background: transparent; color: var(--cb-ink-2); font: inherit; font-size: var(--cb-text-sm); font-weight: 600;
  line-height: 1.3; text-align: center; cursor: pointer;
}
.st-dot {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cb-surface); border: 2px solid var(--cb-line); color: var(--cb-muted);
  transition: background var(--cb-dur-base) var(--cb-ease), border-color var(--cb-dur-base) var(--cb-ease), box-shadow var(--cb-dur-base) var(--cb-ease);
}
.st-dot .ic { width: 24px; height: 24px; }
.tour-steps button:hover .st-dot { border-color: var(--cb-violet-300); color: var(--cb-action); }
.tour-steps button.is-done .st-dot { background: var(--cb-success-soft); border-color: #7CCBA6; color: var(--cb-success-ink); }
.tour-steps button[aria-selected="true"] { color: var(--cb-ink); }
.tour-steps button[aria-selected="true"] .st-dot { background: var(--cb-action); border-color: var(--cb-action); color: var(--cb-on-action); box-shadow: 0 0 0 7px var(--cb-action-soft); }
.st-label { max-width: 132px; }

/* The track line runs from the first station's centre to the last; the fill grows as the order moves */
.track-line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: calc(46px + 26px); height: 4px; border-radius: 2px; background: var(--cb-slate-200); }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--cb-brand-gradient); transition: width var(--travel) cubic-bezier(.45, 0, .2, 1); }
.track-token {
  position: absolute; top: 0; left: 0; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--cb-radius-pill);
  background: var(--cb-brand-ground); color: #F3F6FB; font-family: var(--cb-font-mono); font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .25); transition: left var(--travel) cubic-bezier(.45, 0, .2, 1);
}
.track-token .ic { width: 15px; height: 15px; color: #67E8F9; }
.track-token::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--cb-brand-ground); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.track-token.is-moving { animation: token-hop var(--travel) ease-in-out; }
@keyframes token-hop { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }
.tour.no-anim .track-token, .tour.no-anim .track-fill { transition: none; }

.tour-stage { display: flex; flex-direction: column; gap: var(--cb-space-5); min-width: 0; }
.js .tour-panel { display: none; }
.js .tour-panel.is-on { display: flex; animation: panel-in 320ms var(--cb-ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1001px) {
  /* Details beside the screen, so every step is about the same height */
  .js .tour-panel.is-on { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; column-gap: var(--cb-space-8); align-items: start; min-height: 330px; }
  .js .tour-panel .tp-copy { grid-column: 1; grid-row: 1; }
  .js .tour-panel .tp-lands { grid-column: 1; grid-row: 2; align-self: end; }
  .js .tour-panel .tp-screen { grid-column: 2; grid-row: 1 / span 2; }
}
.tour-panel { display: flex; flex-direction: column; gap: var(--cb-space-4); padding: var(--cb-space-6); background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-radius-xl); box-shadow: var(--cb-shadow-2); min-width: 0; }
.tp-n { font-size: var(--cb-text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-action); }
.tp-copy h3 { font-size: var(--cb-text-2xl); font-weight: 800; line-height: 1.25; margin: 6px 0 8px; }
.tp-copy p:last-child { color: var(--cb-ink-2); line-height: 1.6; max-width: 60ch; }
.tp-screen { padding: var(--cb-space-4); background: var(--cb-bg); display: flex; flex-direction: column; gap: var(--cb-space-3); font-size: var(--cb-text-sm); min-width: 0; }
.ts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--cb-text-md); }
.ts-head .cb-badge { margin-left: auto; }
.ts-head .cb-code { color: var(--cb-muted); }
.ts-path li { min-width: 0; flex: 1 1 auto; padding: 0 16px; font-size: 12px; }
.ts-files { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ts-files li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--cb-radius-md); background: var(--cb-surface); border: 1px solid var(--cb-slate-200); font-weight: 500; }
.ts-files .ic { width: 16px; height: 16px; color: var(--cb-action); }
.ts-table { background: var(--cb-surface); border: 1px solid var(--cb-slate-200); border-radius: var(--cb-radius-md); font-size: var(--cb-text-sm); }
.ts-table th, .ts-table td { height: 36px; }
.tp-screen .cb-table tbody tr:hover { background: transparent; }
.ts-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cb-space-2); }
.ts-kpis .cb-kpi__value { font-size: var(--cb-text-2xl); }
.tp-screen .cb-alert { align-items: flex-start; }
.tp-screen .cb-alert .ic { width: 18px; height: 18px; margin-top: 2px; }
.ts-totals { align-self: flex-end; min-width: 260px; }
.tp-lands { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; color: var(--cb-ink); }
.tp-lands span { font-size: var(--cb-text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--cb-success-ink); background: var(--cb-success-soft); border-radius: var(--cb-radius-pill); padding: 3px 10px; }

.js .tour-bar { display: flex; align-items: center; gap: var(--cb-space-3); }
.tour-play { min-height: 44px; min-width: 104px; }
.tour-play span { display: inline-flex; align-items: center; gap: 8px; }
.tour-play .ic { width: 16px; height: 16px; }
.tour-play .tp-resume { display: none; }
.tour-play[data-paused="true"] .tp-pause { display: none; }
.tour-play[data-paused="true"] .tp-resume { display: inline-flex; }
.tour-progress { flex: 1; height: 4px; border-radius: 2px; background: var(--cb-slate-200); overflow: hidden; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--cb-brand-gradient); }
.tour-progress span.is-running { animation: tour-fill var(--tour-dur, 6s) linear forwards; }
.tour.is-paused .tour-progress span { animation-play-state: paused; }
@keyframes tour-fill { from { width: 0; } to { width: 100%; } }

.books { grid-column: 1 / -1; padding: var(--cb-space-5) var(--cb-space-6); border-radius: var(--cb-radius-xl); background: #0B0F1C; color: #E5E9F0; }
.books-title { font-size: var(--cb-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #67E8F9; margin-bottom: var(--cb-space-3); }
.books-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.books-list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--cb-radius-pill); border: 1px solid #2E3650; color: #C9D1DE; font-size: var(--cb-text-sm); font-weight: 600; transition: background var(--cb-dur-base) var(--cb-ease), border-color var(--cb-dur-base) var(--cb-ease); }
.books-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3A4460; flex: none; }
.books-list li.is-now { background: #241D40; border-color: #A78BFA; color: #FFFFFF; }
.books-list li.is-now::before { background: #A78BFA; box-shadow: 0 0 0 4px rgba(167, 139, 250, .25); }
.books-list li.is-done { border-color: #1F5E4B; color: #E5E9F0; }
.books-list li.is-done::before { background: #34D399; }
@media (prefers-reduced-motion: reduce) {
  .books-list li, .st-dot, .track-token, .track-fill { transition: none; }
  .js .tour-panel.is-on, .track-token.is-moving { animation: none; }
}

@media (max-width: 760px) {
  /* Stations only on small screens; the step name shows in the details panel */
  .st-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .tour-track { padding-top: 40px; }
  .st-dot { width: 40px; height: 40px; }
  .st-dot .ic { width: 18px; height: 18px; }
  .tour-steps button[aria-selected="true"] .st-dot { box-shadow: 0 0 0 5px var(--cb-action-soft); }
  .track-line { top: calc(40px + 18px); }
  .track-token { height: 28px; padding: 0 9px; font-size: 11px; }
  .track-token .ic { display: none; }
}
@media (max-width: 560px) {
  .tour-panel { padding: var(--cb-space-5) var(--cb-space-4); }
  .tp-copy h3 { font-size: var(--cb-text-xl); }
  .ts-kpis { grid-template-columns: minmax(0, 1fr); }
  .ts-head .cb-badge { margin-left: 0; }
  .ts-totals { align-self: stretch; min-width: 0; }
  .ts-table { display: block; overflow-x: auto; }
  .ts-path li { flex: none; min-width: 0; padding: 0 20px; }
  .books { padding: var(--cb-space-5) var(--cb-space-4); }
}

.sub-title { font-size: var(--cb-text-2xl); font-weight: 800; margin: var(--cb-space-12) 0 var(--cb-space-5); }
.control { padding: var(--cb-space-6); display: flex; flex-direction: column; gap: var(--cb-space-3); }
.control h4 { font-size: var(--cb-text-xl); font-weight: 700; line-height: 1.3; }

/* Getting started */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cb-space-5); list-style: none; padding: 0; }
.steps li { padding: var(--cb-space-6); display: flex; flex-direction: column; gap: var(--cb-space-2); }
.step-n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--cb-radius-lg); background: var(--cb-action-soft); color: var(--cb-action); font-size: var(--cb-text-xl); font-weight: 800; margin-bottom: var(--cb-space-1); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .control { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--cb-space-4); row-gap: 4px; padding: var(--cb-space-5); }
  .steps .step-n, .control .tile-ic { grid-row: span 2; margin: 0; }
}
.custom-band { display: flex; gap: var(--cb-space-4); align-items: flex-start; margin-top: var(--cb-space-6); padding: var(--cb-space-5) var(--cb-space-6); border-radius: var(--cb-radius-lg); background: var(--cb-action-soft); border: 1px solid var(--cb-violet-200); font-size: var(--cb-text-lg); line-height: 1.55; }
.custom-band .ic { width: 26px; height: 26px; color: var(--cb-action); margin-top: 2px; }

/* Why CogniFusion */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--cb-space-5); }
.why-company { padding: var(--cb-space-8); display: flex; flex-direction: column; gap: var(--cb-space-6); }
.cf-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; font-size: var(--cb-text-md); }
.cf-brand svg { width: 40px; height: 31px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-space-4) var(--cb-space-6); }
.facts dt { font-size: var(--cb-text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cb-muted); }
.facts dd { font-weight: 600; margin-top: 4px; line-height: 1.45; }
.founder { display: flex; gap: var(--cb-space-5); align-items: center; margin-top: auto; padding-top: var(--cb-space-6); border-top: 1px solid var(--cb-slate-200); }
.founder img { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.founder p { color: var(--cb-ink-2); line-height: 1.55; }
.founder .founder-name { font-size: var(--cb-text-xl); font-weight: 800; color: var(--cb-ink); margin-bottom: 4px; }
.founder-name span { font-size: var(--cb-text-sm); font-weight: 600; color: var(--cb-action); margin-left: 8px; }
.why-side { display: flex; flex-direction: column; gap: var(--cb-space-5); }
.proof { padding: var(--cb-space-6); display: flex; flex-direction: column; gap: var(--cb-space-3); align-items: flex-start; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cb-action); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .ic { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { padding: 4px 12px; border-radius: var(--cb-radius-pill); background: var(--cb-surface-2); border: 1px solid var(--cb-slate-200); font-size: var(--cb-text-sm); font-weight: 600; color: var(--cb-ink-2); }
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .why-company { padding: var(--cb-space-6); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .founder { align-items: flex-start; }
  .founder img { width: 64px; height: 64px; }
}

/* ---------- Demo ---------- */
.demo { background: radial-gradient(circle at 15% 0%, #0C3642 0%, rgba(5, 7, 13, 0) 50%), radial-gradient(circle at 90% 100%, #2B2452 0%, rgba(5, 7, 13, 0) 50%), #05070D; padding: 96px 0; text-align: center; }
.demo-in { display: flex; flex-direction: column; align-items: center; gap: var(--cb-space-5); }
.demo h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #F3F6FB; }
.demo .lead { max-width: 40em; }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cb-space-3); margin-top: var(--cb-space-2); }
.demo-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--cb-space-2) var(--cb-space-4); color: #A3AEC2; }
@media (max-width: 480px) { .demo-contact > span { display: none; } }
.demo-contact a { display: inline-flex; align-items: center; gap: 6px; color: #C9D1DE; text-decoration: none; }
.demo-contact a:hover { color: #FFFFFF; text-decoration: underline; }
.demo-contact .ic { width: 16px; height: 16px; }
@media (max-width: 480px) { .demo { padding: 64px 0; } .demo-actions .cb-btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-foot { background: #05070D; border-top: 1px solid #1E2638; padding: var(--cb-space-10) 0 var(--cb-space-6); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--cb-space-6); }
.foot-brand .cb-logo { color: #FFFFFF; font-size: 22px; }
.foot-brand p { margin-top: var(--cb-space-2); color: #A3AEC2; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--cb-space-3) var(--cb-space-6); align-items: center; }
.foot-links a { color: #C9D1DE; text-decoration: none; }
.foot-links a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-legal { margin-top: var(--cb-space-8); }
.foot-legal p { font-size: var(--cb-text-sm); color: #8A96AD; padding-top: var(--cb-space-5); border-top: 1px solid #1E2638; }

/* Walkthrough screens on phones: fit without sideways scrolling */
.ts-stage { display: none; }
@media (max-width: 560px) {
  .ts-path { display: none; }
  .ts-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; background: var(--cb-surface); border: 1px solid var(--cb-slate-200); border-radius: var(--cb-radius-md); }
  .ts-stage span:first-child { font-size: var(--cb-text-xs); font-weight: 600; color: var(--cb-muted); }
  .ts-meter { flex: 1 0 100%; height: 6px; border-radius: 3px; background: var(--cb-slate-200); overflow: hidden; }
  .ts-meter i { display: block; height: 100%; background: var(--cb-action); border-radius: 3px; }
  .hide-sm { display: none; }
  .ts-table { display: table; font-size: 12.5px; }
  .ts-table th, .ts-table td { padding: 0 8px; }
}
@media (max-width: 360px) {
  .tour-panel { padding: var(--cb-space-4) var(--cb-space-3); }
  .tp-screen { padding: var(--cb-space-3); }
  .ts-table { font-size: 12px; }
  .ts-table th, .ts-table td { padding: 0 6px; }
  .ts-table td:first-child { white-space: normal; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }
  .ts-table th { white-space: normal; }
}
