/* ==========================================================================
   Cernible: site styles
   Look: "quiet confidence, visibly intelligent". Ink, white and a warm
   off-white for alternating sections; one indigo accent, used sparingly for
   links, key states and the network lines. One card style, one icon style.
   Large screens: every section is a full screen and the page snaps between
   them; story sections pin and step through three states.
   ========================================================================== */

@property --p  { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --e  { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --hp { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --ink: #0b0b0f;
  --ink-2: #15151c;
  --body: #33333c;
  --muted: #6a6a75;
  --faint: #9b9aa4;
  --line: #e7e6e1;
  --line-2: #d9d8d2;
  --paper: #ffffff;
  --warm: #f7f6f3;
  --warm-2: #f0efea;

  --accent: #3a42e8;
  --accent-hover: #2f37d6;
  --accent-soft: #eef0fd;
  --accent-light: #8a90ff;   /* on dark backgrounds */

  /* semantic status colours, used inside product mockups only */
  --ok: #2b6e4a;   --ok-soft: #e6f1ea;
  --risk: #8a5a0f; --risk-soft: #fbf0dc;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  --gutter: 32px;
  --r: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .05), 0 6px 16px -10px rgba(16, 16, 32, .14);
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 14px 34px -18px rgba(16, 16, 40, .2);
  --shadow-lg: 0 1px 2px rgba(16, 16, 24, .05), 0 24px 50px -24px rgba(16, 16, 40, .26), 0 60px 110px -60px rgba(16, 16, 40, .22);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { overflow-x: clip; }
.wrap { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; }
.muted-ink { color: var(--faint); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tone-warm { background: var(--warm); }

h2 { font-size: clamp(2.1rem, 3.3vw, 3rem); line-height: 1.08; }
h3 { letter-spacing: -.01em; }
.big { font-size: clamp(1.25rem, 1.75vw, 1.55rem); line-height: 1.5; font-weight: 400; color: var(--ink); max-width: 33em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 28px; }

/* ---------- eyebrow (small label above a heading) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 14px 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: 15px; font-weight: 500; line-height: 1.4; color: #d8d9ee; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 3px rgba(138, 144, 255, .18); flex: none; }
.eyebrow.light { margin-bottom: 22px; border-color: var(--line-2); background: #fff; font-size: 14px; color: var(--body); }
.eyebrow.light .eyebrow-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(58, 66, 232, .12); }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border-radius: 999px; border: 1px solid transparent; padding: 11px 20px; font-size: 16.5px; font-weight: 500; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s, border-color .25s; }
.btn b { font-weight: 700; letter-spacing: -.02em; }
.btn-lg { padding: 15px 26px; font-size: 17.5px; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px -14px rgba(58, 66, 232, .75); }
.btn-accent:hover { background: #4850f0; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { transform: translateY(-1px); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; color: var(--ink); text-decoration: none; font-size: 17.5px; }
.link-arrow .i { transition: transform .35s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- the one card style ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--warm); color: var(--ink); }
.ico .i { width: 22px; height: 22px; stroke-width: 1.6; }

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .rise { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
html.js.is-loaded .rise { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled, .nav.is-open { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 28px; letter-spacing: -.04em; color: var(--ink); text-decoration: none; line-height: 1; justify-self: start; transition: color .3s; }
.brand-mark { width: .95em; height: .95em; fill: currentColor; stroke: none; }
.brand-sm { font-size: 24px; }
/* White on dark looks bolder than black on white, so the logo drops its rounded outline there. */
.fx-mark, .footer, .avatar.mark, .nav.on-dark:not(.is-open) .brand { --logo-round: .3px; }
.nav .brand { gap: 10px; }
.nav .brand-mark { width: 1.3em; height: 1.3em; }
.footer .brand-mark { width: 1.15em; height: 1.15em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a { position: relative; font-size: 16.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; transition: color .3s; }
.nav-links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links > a:hover::after, .nav-links .is-current::after { transform: scaleX(1); transform-origin: left; }

.dd { position: relative; }
.dd-top { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; font-size: 16.5px; font-weight: 500; color: var(--ink); cursor: pointer; transition: color .3s; }
.dd-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.dd-top.is-current::after { transform: scaleX(1); transform-origin: left; }
.dd-top .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.dd-menu { position: absolute; top: calc(100% + 18px); left: 50%; width: 380px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(10, 10, 20, .35); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dd:hover .chev, .dd:focus-within .chev { transform: rotate(180deg); }
.dd-menu a { display: block; padding: 14px 16px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--warm, #f7f6f3); }
.dd-menu b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.dd-menu small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.menu-group { padding: 18px 0 2px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu a.sub { padding-left: 14px; font-size: 19px; font-weight: 500; }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .35s var(--ease), background .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 8px var(--gutter) 24px; display: grid; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
.menu a { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu[hidden] { display: none; }

/* over the dark home hero */
.nav.on-dark:not(.is-open) .brand, .nav.on-dark:not(.is-open) .nav-links > a, .nav.on-dark:not(.is-open) .dd-top { color: #fff; }
.nav.on-dark:not(.is-open) .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.nav.on-dark:not(.is-open) .menu-btn span { background: #fff; }
.nav.on-dark.is-scrolled:not(.is-open) { background: rgba(11, 11, 15, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }

/* ==========================================================================
   SECTIONS: full screen + snapping on large screens
   ========================================================================== */
.sec { position: relative; padding: 120px 0 104px; }

@media (min-width: 960px) and (min-height: 620px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .sec { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 32px) 0 52px; scroll-snap-align: start; scroll-snap-stop: always; }
  .snap-mark { position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
  .footer { scroll-snap-align: end; }
  .story { scroll-snap-align: start; scroll-snap-stop: always; }
  html:not(.pin) .story-stage { min-height: 100svh; display: flex; align-items: center; }
}

/* ==========================================================================
   HOME · HERO (dark)
   ========================================================================== */
.hero { background: var(--ink); color: #c9c9d4; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 65% at 78% 50%, rgba(58, 66, 232, .17), rgba(58, 66, 232, 0) 70%), radial-gradient(40% 50% at 0% 100%, rgba(58, 66, 232, .07), rgba(58, 66, 232, 0) 70%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .08) 70%, rgba(255, 255, 255, 0)); }
.hero-net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .3) 38%, #000 62%), linear-gradient(180deg, transparent 0, transparent 70px, #000 170px); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .3) 38%, #000 62%), linear-gradient(180deg, transparent 0, transparent 70px, #000 170px); mask-composite: intersect; }
html.js .hero-net { opacity: 0; transition: opacity 2s ease .3s; }
html.js.is-loaded .hero-net { opacity: 1; }

.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.45rem); font-weight: 600; line-height: 1.07; letter-spacing: -.022em; color: #fff; margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; text-wrap: balance; }
.hero h1 .line-muted { color: #8b8b9c; }
html.js .hero h1 .line > span { transform: translateY(108%); transition: transform 1.15s var(--ease); }
html.js .hero h1 .line:nth-child(2) > span { transition-delay: .09s; }
html.js.is-loaded .hero h1 .line > span { transform: none; }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 400; max-width: 34em; }
.hero .lead { color: #c4c4d0; max-width: 37em; font-size: clamp(1.1rem, 1.3vw, 1.2rem); margin-bottom: 36px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .link-arrow { color: #fff; }
.hero-meta { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 15.5px; color: #8e8e9e; text-wrap: balance; }

.hero-visual { position: relative; transform: translate3d(0, calc(var(--hp) * -40px), 0); }
html.js .hero-visual { opacity: 0; translate: 0 24px; transition: opacity 1.1s var(--ease) .25s, translate 1.3s var(--ease) .25s; }
html.js.is-loaded .hero-visual { opacity: 1; translate: 0 0; }

/* --- "Ask cernible" panel --- */
.ap { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(30, 30, 40, .82), rgba(19, 19, 26, .9)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 15px; line-height: 1.5; color: #e7e7ef; }
.ap-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ap-head b { font-size: 15px; font-weight: 600; color: #fff; }
.ap-ctx { margin-left: auto; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #b3b3c4; white-space: nowrap; }
.ap-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: var(--ink); flex: none; }
.ap-logo .brand-mark { width: 19px; height: 19px; }
.ap-body { display: grid; gap: 18px; padding: 20px 18px 6px; }
.ap-q { display: flex; justify-content: flex-end; align-items: flex-end; gap: 10px; }
.ap-q p { position: relative; max-width: 88%; padding: 10px 15px; border-radius: 14px 14px 4px 14px; background: #fff; color: var(--ink); font-weight: 500; }
.ap-rest { visibility: hidden; }
.ap-caret { display: none; width: 2px; height: 1.05em; margin: 0 1px -.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.ap-caret.is-on { display: inline-block; }
@keyframes caret { 50% { opacity: 0; } }
.ap-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #c9c9d6; font-size: 13px; font-weight: 600; flex: none; }
.ap-a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.ap-answer { position: relative; display: grid; gap: 6px; }
.ap-line { color: #c3c3d0; }
.ap-line b { font-weight: 600; color: #fff; }
.ap-cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 4px; border-radius: 5px; background: rgba(138, 144, 255, .2); color: #c7caff; font: 500 13px/1 var(--mono); vertical-align: 1px; }
.ap-think { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; color: #9a9aad; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.ap-dots { display: inline-flex; gap: 4px; }
.ap-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); animation: blink 1.2s infinite; }
.ap-dots i:nth-child(2) { animation-delay: .2s; }
.ap-dots i:nth-child(3) { animation-delay: .4s; }
.ap-src { display: grid; gap: 6px; margin-top: 12px; }
.nw { white-space: nowrap; }
.ap-chip { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .035); font-size: 13.5px; font-weight: 500; color: #e3e3ec; white-space: nowrap; }
.ap-chip .i { width: 15px; height: 15px; color: #a9acff; }
.ap-chip small { font-size: 13px; font-weight: 400; color: #8f8fa3; }
.ap-chip sup { display: grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; padding: 0 4px; border-radius: 5px; background: rgba(138, 144, 255, .2); font: 500 13px/1 var(--mono); color: #c7caff; }
.ap-conf { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: #9fd4b6; }
.ap-conf .i { width: 16px; height: 16px; stroke-width: 2.2; }
.ap-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 18px 18px; padding: 10px 10px 10px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); font-size: 14px; color: #8f8fa2; }
.ap-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; flex: none; }
.ap-send .i { width: 16px; height: 16px; stroke-width: 2; }

/* playing: JS reveals each piece in turn; without JS (or with reduced motion) the final state shows */
html.js .ap.is-playing .ap-line,
html.js .ap.is-playing .ap-chip,
html.js .ap.is-playing .ap-conf { opacity: 0; transform: translateY(6px); }
.ap-q, .ap-a-logo, .ap-line, .ap-chip, .ap-conf { transition: opacity .55s var(--ease), transform .7s var(--ease), border-color .6s, background .6s; }
/* The question is typed in the input box and sent; Cernible's avatar appears only once it starts answering. */
html.js .ap.is-playing .ap-q,
html.js .ap.is-playing .ap-a-logo { opacity: 0; transform: translateY(6px); }
html.js .ap.is-playing .is-on { opacity: 1; transform: none; }
.ap-field { display: flex; align-items: center; min-width: 0; }
.ap-draft { color: #fff; white-space: nowrap; overflow: hidden; }
.ap-draft:empty { display: none; }
html.js .ap.is-typing .ap-ph { display: none; }
.ap-send.is-sent { animation: ap-send .45s var(--ease); }
@keyframes ap-send { 40% { transform: scale(.86); } }
.ap-chip.is-cited { animation: cited 2s var(--ease) both; }
@keyframes cited {
  0% { box-shadow: 0 0 0 0 rgba(138, 144, 255, 0); border-color: rgba(255, 255, 255, .13); }
  18% { box-shadow: 0 0 0 3px rgba(138, 144, 255, .22), 0 0 22px 2px rgba(98, 106, 255, .45); border-color: rgba(160, 165, 255, .85); background: rgba(98, 106, 255, .16); }
  100% { box-shadow: 0 0 0 0 rgba(138, 144, 255, 0); border-color: rgba(160, 165, 255, .38); background: rgba(98, 106, 255, .07); }
}

/* ==========================================================================
   HOME · PROBLEM / WHAT IT MAKES POSSIBLE
   ========================================================================== */
.problem-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 5vw, 72px); align-items: center; }
.statement { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.024em; margin-bottom: 28px; }
.erp { padding: 6px 0 4px; box-shadow: var(--shadow-lg); font-size: 15px; }
.erp-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px; border-bottom: 1px solid var(--line); }
.erp-head b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.erp-head small { display: block; font-size: 13px; color: var(--muted); }
.erp-head .st { margin-left: auto; }
.erp-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--warm); border: 1px solid var(--line); color: var(--ink); }
.erp-ico .i { width: 18px; height: 18px; }
.erp-rows { margin: 0; padding: 6px 20px 14px; }
.erp-rows > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--warm-2); }
.erp-rows > div:last-child { border-bottom: 0; }
.erp-rows dt { font-size: 14px; color: var(--muted); }
.erp-rows dd { margin: 0; font-weight: 500; color: var(--ink); }
.erp-rows .mono { font-size: 14px; }
.erp-why dt { color: var(--ink); font-weight: 600; }
.erp-why dd span { display: block; padding: 6px 10px; border: 1px dashed #c9c8c2; border-radius: 8px; font-size: 14px; font-weight: 400; font-style: italic; color: var(--faint); }
.where-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.where { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 16.5px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.where .i { width: 20px; height: 20px; color: var(--ink); }

.ways h2 { margin-bottom: 40px; }
.ways-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.way-card { display: flex; flex-direction: column; padding: 14px 14px 24px; color: inherit; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .9s var(--ease) var(--d, 0s); }
html.js .way-card.reveal.is-in { transition: opacity .9s var(--ease) var(--d, 0s), transform .6s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.way-card:hover, html.js .way-card.reveal.is-in:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.way-viz { display: grid; place-items: center; height: 176px; padding: 16px; margin-bottom: 22px; border-radius: 10px; background: var(--warm); border: 1px solid var(--warm-2); overflow: hidden; }
.way-card h3 { font-size: 1.3rem; line-height: 1.25; padding: 0 10px; margin-bottom: 8px; }
.way-card p { padding: 0 10px; flex: 1; font-size: 1rem; line-height: 1.55; }
.way-card .go { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; margin-top: 18px; font-size: 16.5px; font-weight: 500; color: var(--accent); }
.way-card .go .i { transition: transform .35s var(--ease); }
.way-card:hover .go .i { transform: translateX(4px); }

.vz-stack { display: grid; justify-items: center; width: 100%; max-width: 250px; }
.vz-note { width: 100%; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; line-height: 1.4; color: var(--body); }
.vz-peek { width: 90%; height: 10px; margin-top: -1px; border-radius: 0 0 10px 10px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.vz-peek + .vz-peek { width: 80%; height: 8px; opacity: .7; }
.vz-note-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.vz-note .ask-mark { width: 20px; height: 20px; }
.vz-note .ask-mark .brand-mark { width: 13px; height: 13px; }
.vz-note-top b { font-size: 13px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.vz-note-top small { margin-left: auto; font-size: 13px; color: var(--muted); }
.vz-note p b { font-weight: 600; color: var(--ink); }
.vz-rec { display: grid; gap: 3px; width: 100%; max-width: 250px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); font-size: 13.5px; line-height: 1.35; }
.vz-rec small { font-size: 13px; font-weight: 500; color: var(--accent); }
.vz-rec b { font-size: 15px; font-weight: 600; color: var(--ink); }
.vz-rec > span { color: var(--muted); }
.vz-btns { display: flex; gap: 6px; margin-top: 8px; }
.vz-btns i { padding: 5px 11px; border-radius: 7px; background: var(--warm); border: 1px solid var(--line); font-style: normal; font-size: 13px; font-weight: 600; color: var(--body); }
.vz-btns i.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.vz-hand { display: flex; align-items: center; gap: 10px; }
.vz-p { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.vz-p i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink); }
.vz-p.next i { background: var(--ink); border-color: var(--ink); color: #fff; }
.vz-line { width: 54px; height: 1.5px; margin-top: -22px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 1.5px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 22px 0; } }
.vz-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.vz-tags li { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.vz-ask { display: grid; gap: 8px; width: 100%; max-width: 250px; }
.vz-ask-q { justify-self: end; max-width: 100%; padding: 7px 12px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.vz-ask-a { padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--body); }
.vz-ask-a b { font-weight: 600; color: var(--ink); }
.vz-ask small { font-size: 13px; color: var(--muted); }
.vz-checks { display: grid; gap: 6px; width: 100%; max-width: 240px; }
.vz-checks small { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.vz-checks span { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.vz-checks .i { width: 16px; height: 16px; stroke-width: 2.2; color: var(--accent); }

/* ==========================================================================
   HOME · HOW IT LEARNS (sideways carousel)
   ========================================================================== */
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.how-head h2 { max-width: 20em; }
.car-ctrl { display: flex; gap: 10px; flex: none; }
.car-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .25s, color .25s, border-color .25s, opacity .3s; }
.car-btn .i { width: 20px; height: 20px; }
.car-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.car-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.car { container-type: inline-size; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.car::-webkit-scrollbar { display: none; }
.car:focus-visible { outline-offset: 2px; }
.car.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.car-track { display: flex; gap: 24px; width: max-content; padding: 4px 0 26px; }
.step-card { flex: 0 0 calc((100cqi - 48px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; padding: 14px 14px 26px; box-shadow: var(--shadow-sm); }
.step-viz { height: 196px; border-radius: 10px; margin-bottom: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--warm); border: 1px solid var(--warm-2); overflow: hidden; }
.step-n { font: 500 13px var(--mono); color: var(--muted); padding: 0 10px; }
.step-card h3 { font-size: 1.4rem; line-height: 1.25; margin: 6px 0 8px; padding: 0 10px; }
.step-card p { padding: 0 10px; font-size: 1.02rem; line-height: 1.55; }
.step-card.cta-card { background: var(--ink); border: 1px solid var(--ink); border-radius: var(--r); color: #fff; position: relative; overflow: hidden; }
.step-card.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 85% 0%, rgba(58, 66, 232, .35), rgba(58, 66, 232, 0) 70%); pointer-events: none; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; height: 100%; padding: 18px 10px 0; }
.step-card.cta-card .step-n { color: #9a9aa8; padding: 0; }
.step-card.cta-card h3 { color: #fff; font-size: 1.8rem; line-height: 1.12; margin: 4px 0 0; padding: 0; }
.step-card.cta-card p { color: #c4c4d0; padding: 0; margin-bottom: 10px; }
.how-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; margin-top: 4px; }
.car-progress { flex: 1 1 200px; max-width: 360px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.car-progress i { display: block; height: 100%; width: 30%; border-radius: inherit; background: var(--ink); transition: width .25s var(--ease); }
.promise-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.promise-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); }
.promise-chips .i { width: 17px; height: 17px; color: var(--ink); }

/* carousel card visuals */
.viz-conn { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.viz-conn ul { display: grid; gap: 6px; }
.viz-conn li { display: flex; align-items: center; gap: 9px; padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.viz-conn li .i { width: 15px; height: 15px; color: var(--muted); }
.viz-pipe { width: 40px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 1.5px; animation: flow 1s linear infinite; }
.viz-core { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 30px; box-shadow: 0 0 0 6px rgba(58, 66, 232, .1), 0 14px 28px -14px rgba(0, 0, 0, .6); }
.viz-build { display: grid; gap: 8px; }
.viz-build li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.viz-build li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9c8c2; flex: none; }
.viz-build li.ok::before { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5.5-6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.viz-build .dots { color: var(--muted); }
.viz-qs { display: grid; gap: 12px; }
.viz-qs p { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }
.viz-qs .ask-mark { font-size: 12px; }
.viz-replies { display: flex; flex-wrap: wrap; gap: 7px; }
.viz-replies span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--body); }
.viz-replies span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.viz-call { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.slot small { grid-column: 1; color: var(--muted); font-size: 13px; }
.slot b { grid-column: 1; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.slot .st { grid-column: 2; grid-row: 1 / 3; }
.slot.faded { opacity: .55; }
.viz-pulse { width: 100%; height: 70px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.viz-pulse .base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; animation: none; }
.viz-pulse path:not(.base) { stroke-dasharray: 520; stroke-dashoffset: 520; animation: trace 3.2s linear infinite; }
.viz-pulse circle { fill: var(--accent); stroke: none; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.viz-status { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; align-self: flex-start; font-size: 14.5px; }
.viz-status b { color: var(--ink); font-weight: 600; }
.viz-status small { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   PAGE INTROS (run, pass it on, how it works, about)
   ========================================================================== */
.page-hero { overflow: hidden; background: radial-gradient(900px 520px at 88% 0%, rgba(58, 66, 232, .055), rgba(58, 66, 232, 0) 70%), var(--paper); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 4.2vw, 3.85rem); font-weight: 600; line-height: 1.06; letter-spacing: -.024em; margin-bottom: 22px; max-width: 14em; text-wrap: balance; }
.page-hero .lead { max-width: 30em; }
.page-hero.split .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.page-hero.split h1 { font-size: clamp(2.4rem, 3.75vw, 3.4rem); }
.page-hero.split .lead { max-width: 26em; }
.ph-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 15px; color: var(--muted); }
.ph-hint .i { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.scope-note { max-width: 30em; margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--accent); font-size: 16px; color: var(--body); }
.viz-tag { font-size: 13px; font-weight: 500; color: var(--muted); }
.ex-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ex-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- Run your company intro: today vs. with Cernible --- */
.ba { overflow: hidden; box-shadow: var(--shadow-lg); }
.ba-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 22px; background: var(--warm); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ba-head .mono { font-size: 13px; color: var(--ink); }
.ba-row { display: grid; grid-template-columns: 34px minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.ba-h { padding-block: 11px; border-top: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
a.ba-row:hover { background: #fbfbfa; }
.ba-n { font: 500 13px var(--mono); color: var(--muted); }
.ba-stage b { display: block; font-size: 16px; line-height: 1.3; color: var(--ink); }
.ba-stage small { font-size: 13.5px; color: var(--muted); }
.ba-today { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.4; color: #85858f; }
.ba-today::before { content: ""; flex: none; width: 16px; height: 2px; margin-top: .65em; background: #c9c8c2; border-radius: 2px; }
.ba-after { display: flex; gap: 9px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ba-after::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .05em; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5.5-6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
html.js a.ba-row { opacity: 0; transform: translateY(10px); transition: opacity .5s ease calc(.55s + var(--i) * .2s), transform .6s var(--ease) calc(.55s + var(--i) * .2s), background .2s; }
html.js .ba-after { opacity: 0; transform: translateX(-6px); transition: opacity .5s ease calc(.95s + var(--i) * .2s), transform .6s var(--ease) calc(.95s + var(--i) * .2s); }
html.js.is-loaded a.ba-row, html.js.is-loaded .ba-after { opacity: 1; transform: none; }

/* --- Pass it on intro: what the company knows, three ways to pass it on --- */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: stretch; }
.hub-lines { width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke: var(--accent); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 5 5; animation: hubflow 1s linear infinite; }
.hub-lines .fx-head { fill: var(--accent); filter: drop-shadow(0 0 5px rgba(58, 66, 232, .85)); }
@keyframes hubflow { to { stroke-dashoffset: -10; } }
.hub-out { display: grid; gap: 12px; align-content: center; }
.hub-tile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 15px 18px; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), border-color .25s, box-shadow .3s; }
.hub-tile small { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.hub-tile b { grid-column: 1; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.hub-tile .i { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--accent); transition: transform .35s var(--ease); }
.hub-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hub-tile:hover .i { transform: translateX(3px); }
html.js .hub-tile { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .6s var(--ease), border-color .25s, box-shadow .3s; }
html.js .hub-tile.is-on { opacity: 1; transform: none; }
.kb { align-self: center; padding: 18px 20px 10px; box-shadow: var(--shadow-lg); }
.kb-head { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.kb-head .ask-mark { font-size: 14px; }
.kb-head b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.kb-head small { font-size: 13.5px; color: var(--muted); }
.kb li { position: relative; display: grid; gap: 0; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--warm-2); line-height: 1.35; }
.kb li:last-child { border-bottom: 0; }
.kb li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kb li b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.kb li span { font-size: 13.5px; color: var(--muted); }
html.js .kb { opacity: 0; transform: translateX(-10px); transition: opacity .6s ease .45s, transform .7s var(--ease) .45s; }
html.js.is-loaded .kb { opacity: 1; transform: none; }

/* ==========================================================================
   PRODUCT WINDOWS + SHARED MOCKUP UI (all mockup text 13px or larger)
   ========================================================================== */
.app { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.app-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #fbfbfa; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e2dd; }
.app-bar span { margin-left: auto; font: 500 13px var(--mono); color: var(--faint); letter-spacing: .02em; }

.ui { font-size: 14px; line-height: 1.42; color: #1d1d24; }
.ui small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ui b { font-weight: 600; }
.ui .mono { font-size: 13px; }
.ui-label { margin-bottom: 2px; font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: .35em; font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.st-ok   { background: var(--ok-soft); color: var(--ok); }
.st-risk { background: var(--risk-soft); color: var(--risk); }
.st-info { background: var(--accent-soft); color: #2f36c9; }
.st-grey { background: #f1f0ec; color: #5b5b66; }
.kind { justify-self: start; font-size: 13px; font-weight: 500; padding: 2px 9px; border-radius: 6px; background: #f1f0ec; color: #4a4a55; }
.dots { display: inline-flex; gap: .2em; margin-left: .3em; }
.dots i { width: .3em; height: .3em; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f0ec; color: #4a4a55; font-weight: 600; font-size: 13px; flex: none; }
.avatar.mark, .ask-mark { background: var(--ink); color: #fff; }
.ask-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.avatar.mark .brand-mark, .ask-mark .brand-mark { width: 20px; height: 20px; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.ui-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ui-id b { display: block; color: var(--ink); font-size: 15px; white-space: nowrap; }
.ui-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; padding: 16px 18px; }
.ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fff; margin-top: auto; }
.ui-foot small { color: var(--muted); }
.btn-ui { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.btn-ui.ghost { background: #f1f0ec; color: var(--body); }
.btn-ui.go { background: var(--ink); color: #fff; }
.btn-ui.ok { background: var(--ok-soft); color: var(--ok); }
.btn-ui .i { width: 15px; height: 15px; stroke-width: 2.4; }
.swap { display: inline-grid; }
.swap.block { display: grid; }
.swap.end { justify-items: end; }
.swap > * { grid-area: 1 / 1; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
i.ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }
i.ok .i { width: 14px; height: 14px; stroke-width: 2.6; }
.ask-q { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; margin-bottom: 12px; }
.ask-q p { max-width: 80%; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; font-weight: 500; }
.ask-a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.ask-a p { font-size: 15px; color: #3f3f4a; }
.ask-a p b { color: var(--ink); }
.ask-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ui .ask-src small { display: inline; margin-right: 2px; }
.ask-src span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: var(--warm); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ask-src span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ask-input { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 11px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); }
.caret { width: 2px; height: 1.1em; background: var(--accent); animation: caret 1s steps(1) infinite; }

/* ==========================================================================
   STORY SECTIONS (pinned, scroll-driven)
   ========================================================================== */
.story { position: relative; background: var(--paper); }
.story.tone-warm { background: var(--warm); }
.story-track { position: relative; }
.story-stage { position: relative; overflow: hidden; padding: 96px 0 88px; --p: 1; --e: 1; }
html.pin .story-track { height: 300vh; height: 300svh; }
html.pin .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--nav-h) 0 0; display: flex; align-items: center; }

.story-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.story.flip .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.story.flip .story-device { order: 2; }
.story-device { display: flex; flex-direction: column; align-items: center; }
.device { width: min(100%, 760px); transform: translate3d(0, calc((1 - var(--e)) * 110px), 0); will-change: transform; }
.screen { container-type: inline-size; background: #fafaf9; }
.screen > .ui { display: flex; flex-direction: column; }

.story-copy h2 { margin-bottom: 20px; max-width: 11em; }
.story-lede { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 26em; }
.steps { position: relative; display: grid; gap: 4px; margin-top: 30px; max-width: 26em; }
.steps::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 2.2em 1fr; padding: 9px 0 9px 20px; font-size: 1.05rem; line-height: 1.45; color: var(--faint); transition: color .45s var(--ease); }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .45s var(--ease); }
.steps .n { font: 500 13px/1.9 var(--mono); color: var(--faint); transition: color .45s; }
.story-stage[data-step="0"] .steps [data-on="0"], .story-stage[data-step="1"] .steps [data-on="1"], .story-stage[data-step="2"] .steps [data-on="2"] { color: var(--ink); font-weight: 500; }
.story-stage[data-step="0"] .steps [data-on="0"]::before, .story-stage[data-step="1"] .steps [data-on="1"]::before, .story-stage[data-step="2"] .steps [data-on="2"]::before { transform: none; }
.story-stage[data-step="0"] .steps [data-on="0"] .n, .story-stage[data-step="1"] .steps [data-on="1"] .n, .story-stage[data-step="2"] .steps [data-on="2"] .n { color: var(--accent); }

/* step-driven visibility inside mockups */
.story-stage [data-show] { opacity: 0; transform: translateY(6px); transition: opacity .45s ease calc(var(--i, 0) * 90ms), transform .45s var(--ease) calc(var(--i, 0) * 90ms); }
.story-stage[data-step="0"] [data-show~="0"], .story-stage[data-step="1"] [data-show~="1"], .story-stage[data-step="2"] [data-show~="2"] { opacity: 1; transform: none; }

.watching { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.watching b { display: block; color: var(--ink); }
.draft { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.draft p { margin: 4px 0 10px; color: #33333d; }
.draft-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ol-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 8px; background: #fafaf9; border: 1px solid var(--line); }
.ol-row > span:nth-child(2) { color: #4a4a55; }
.draft .ask-src { margin-top: 0; }

/* --- Run your company · this week --- */
.week-split { grid-template-columns: 1fr 1.05fr; }
.chg-list, .side-stack, .learned { display: grid; gap: 8px; align-content: start; }
.side-stack .swap > * { align-self: start; }
.chg-row { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .4s, box-shadow .4s; }
.chg-row b { display: block; color: var(--ink); line-height: 1.3; }
@container (max-width: 620px) { .chg-row { grid-template-columns: 1fr; gap: 4px; } }
.story-stage:not([data-step="0"]) .chg-row.hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 66, 232, .1); }
.impact { display: grid; gap: 7px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.impact > b { font-size: 15px; color: var(--ink); }
.ui .impact .cite { color: var(--muted); }

/* --- Run your company · a decision --- */
.dec-body { display: grid; gap: 12px; align-content: start; padding: 16px 18px; }
.dec-body .ask-q { margin-bottom: 0; }
.past-list { display: grid; gap: 7px; }
.past { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.past > .mono { color: var(--muted); }
.past b { display: block; color: var(--ink); }
.flag { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--risk-soft); border: 1px solid #efd9b0; border-radius: 10px; color: #4a4030; }
.flag .i { width: 18px; height: 18px; color: var(--risk); }
.flag b { color: var(--ink); }

/* --- Pass it on · what it learned --- */
.learn-split { grid-template-columns: 1fr 1.08fr; }
.lrn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.lrn b { display: block; color: var(--ink); }
.sources { display: grid; gap: 2px; align-content: start; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.src-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--warm-2); }
.src-row:last-child { border-bottom: 0; }
.src-row b { color: var(--ink); }
.learn-side > * { align-self: start; }
.qa .ask-q p { max-width: 92%; }
.qa .ask-a { margin-bottom: 0; }
.qa .ask-a p { font-size: 14px; }

/* ==========================================================================
   RUN YOUR COMPANY · ASK IT ANYTHING
   ========================================================================== */
.ask-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ask-copy h2 { max-width: 10em; margin-bottom: 16px; }
.ask-copy > p:not(.fine) { font-size: 1.15rem; color: var(--body); }
.ask-chips { display: grid; justify-items: start; gap: 10px; margin-top: 28px; }
.ask-chip { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px 11px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 1.02rem; font-weight: 500; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.ask-chip::before { content: "?"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--warm-2); font-size: 13px; font-weight: 700; color: var(--muted); flex: none; transition: background .25s, color .25s; }
.ask-chip:hover { border-color: var(--ink); }
.ask-chip[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.ask-chip[aria-selected="true"]::before { background: var(--accent); color: #fff; }
.ask-ui .ui-top { padding-inline: 20px; }
.ask-panels { display: grid; padding: 20px 20px 0; }
.ask-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .45s var(--ease), visibility 0s linear .35s; }
.ask-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ask-ui .ask-input { margin: 4px 20px 20px; }

/* ==========================================================================
   PASS IT ON · WORTH MORE (Handover panel) + HANDOVER STAGES
   ========================================================================== */
.sell-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.sell-copy h2 { max-width: 11em; margin-bottom: 22px; }
.sell-copy > p:not(.fine) { max-width: 26em; font-size: clamp(1.1rem, 1.35vw, 1.22rem); color: var(--body); }
.ho { container-type: inline-size; }
.ho .ui-top { padding: 14px 18px; }
.ho-tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; margin: 14px 16px 0; padding: 4px; border-radius: 11px; background: #f4f3ef; border: 1px solid var(--line); }
.ho-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ho-tab .i { width: 16px; height: 16px; }
.ho-tab:hover { color: var(--ink); }
.ho-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 16, 24, .08), 0 0 0 1px var(--line); }
.ho-tab[aria-selected="true"] .i { color: var(--accent); }
.ho-panels { display: grid; padding: 8px 16px 14px; }
.ho-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s ease, transform .4s var(--ease), visibility 0s linear .3s; }
.ho-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@container (max-width: 700px) { .ho-tabs { grid-template-columns: 1fr 1fr; } .ho-tab { justify-content: flex-start; } }
.ho-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 6px; border-bottom: 1px solid var(--warm-2); }
.ho-list li:last-child { border-bottom: 0; }
.ho-list b { display: block; font-size: 15px; color: var(--ink); }
.ho-src { padding: 3px 9px; border-radius: 6px; background: var(--warm); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--body); white-space: nowrap; }

.handover h2 { margin-bottom: 16px; }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.stages::before { content: ""; position: absolute; left: 22px; right: calc((100% - 72px) / 4 - 22px); top: 21px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.stages li { position: relative; display: grid; align-content: start; gap: 8px; }
.stages .n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font: 500 13.5px var(--mono); color: var(--ink); box-shadow: var(--shadow-sm); }
.stages li:last-child .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.stages b { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.stages p { max-width: 17em; font-size: 1.02rem; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-hero .lead { max-width: 34em; }
.flow { display: grid; grid-template-columns: 1fr 64px 1.1fr 64px 1fr; align-items: center; margin-top: 52px; }
.flow-col, .flow-core { border-radius: var(--r); padding: 24px 26px; }
.flow-col small, .flow-core small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.flow-col ul, .flow-core ul { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-col li { padding: 5px 13px; border-radius: 999px; background: var(--warm); border: 1px solid var(--line); font-size: 15.5px; font-weight: 500; color: var(--ink); }
.flow-core { position: relative; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.flow-core::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 100% 0%, rgba(58, 66, 232, .35), rgba(58, 66, 232, 0) 70%); pointer-events: none; }
.flow-core .brand { position: relative; color: #fff; margin-bottom: 16px; }
.flow-core ul { position: relative; }
.flow-core li { padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 15.5px; font-weight: 500; }
.flow-pipe { position: relative; height: 1.5px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 1.5px; animation: flow 1.1s linear infinite; }
.flow-pipe::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

.model-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.model-copy h2 { max-width: 10em; margin-bottom: 22px; }
.model-copy > p:not(.scope-note) { max-width: 28em; font-size: clamp(1.06rem, 1.3vw, 1.18rem); color: var(--body); }

/* the living model: pill nodes, labelled edges, light pulses (site.js) */
.model { width: 100%; height: auto; overflow: visible; }
.model-narrow { display: none; }
.g-edge { stroke: #cfcec7; stroke-width: 1.3; fill: none; transition: stroke .5s, stroke-width .5s; }
.g-edge.is-lit { stroke: var(--accent); stroke-width: 1.6; }
.g-label rect { fill: var(--warm); stroke: var(--line); stroke-width: 1; }
.g-label text { font: 500 13px var(--mono); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.g-pill { fill: #fff; stroke: var(--line-2); stroke-width: 1; filter: drop-shadow(0 6px 10px rgba(16, 16, 40, .08)); }
.g-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.g-dot { fill: var(--accent); }
.g-node text { font: 600 16px var(--font); letter-spacing: -.01em; fill: var(--ink); dominant-baseline: central; }
.g-node.core .g-pill { fill: var(--ink); stroke: var(--ink); }
.g-node.core text { fill: #fff; font-size: 17px; }
.g-node.core .g-dot { fill: var(--accent-light); }
.g-node.is-ping .g-ring { animation: ring 1.1s var(--ease); }
@keyframes ring { 0% { opacity: .9; } 100% { opacity: 0; } }
.g-pulse { fill: var(--accent); }
.g-pulse-glow { fill: var(--accent); opacity: .16; }
html.js .model .g-edge { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) calc(.35s + var(--i, 0) * .07s), stroke .5s, stroke-width .5s; }
html.js .model .g-node, html.js .model .g-label { opacity: 0; transition: opacity .7s ease calc(.15s + var(--i, 0) * .07s); }
html.js .is-in .model .g-edge { stroke-dashoffset: 0; }
html.js .is-in .model .g-node, html.js .is-in .model .g-label { opacity: 1; }

.works h2 { margin-bottom: 16px; }
.works-groups { margin-top: 40px; border-bottom: 1px solid var(--line); }
.works-group { display: grid; grid-template-columns: 11em minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.works-group small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 1.05rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.pills.paper li { border-style: dashed; color: var(--body); }

.safe h2 { margin-bottom: 40px; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.promise { padding: 26px 24px 28px; }
.promise .ico { margin-bottom: 22px; }
.promise b { display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.promise p { font-size: 1rem; line-height: 1.55; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-hero h1 { max-width: none; }
.about-copy .lead { margin-bottom: 16px; }
.about-copy > p:not(.eyebrow):not(.lead) { max-width: 31em; color: var(--body); }
.glance { overflow: hidden; }
.gl-row { padding: 22px 26px; }
.gl-row + .gl-row { border-top: 1px solid var(--line); }
.gl-row > small { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gl-row > b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.gl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gl-tags li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--warm, #f7f6f3); font-size: 14px; font-weight: 500; color: var(--ink); }
.gl-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gl-src li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.gl-src .fx-ic { width: 28px; height: 28px; }
.gl-note { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.gl-loc span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 560px) { .gl-src { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-row { padding: 20px; } }
.beliefs h2 { margin-bottom: 40px; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.more-card { padding: 26px 24px 28px; }
.more-card .ico { margin-bottom: 22px; }
.more-card h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
.more-card p { font-size: 1rem; line-height: 1.55; }

/* ==========================================================================
   CONTACT (shared section + page)
   ========================================================================== */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.pager a { display: inline-flex; align-items: center; gap: 14px; padding: 13px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .25s, box-shadow .3s; }
.pager a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.pager small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.pager .i { width: 18px; height: 18px; }
.pager-next { margin-left: auto; text-align: right; }
.talk-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: clamp(36px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: 24px; background: var(--warm); border: 1px solid var(--line); }
.talk.tone-warm .talk-card, .talk-page .talk-card { background: #fff; }
.talk-copy h2, .talk-copy h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 22px; }
.talk-copy b { font-weight: 700; }
.talk-copy > p:not(.eyebrow) { font-size: 1.18rem; color: var(--body); max-width: 24em; }
.mail-link { display: inline-block; margin-top: 26px; font-size: 1.25rem; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(58, 66, 232, .3); transition: border-color .3s; }
.mail-link:hover { border-color: var(--accent); }
.form-card { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.form-card label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.form-card input, .form-card textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #fcfcfb; font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(58, 66, 232, .12); }
.form-card [aria-invalid="true"] { border-color: #b4472c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; text-align: center; }

.next-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.next-steps { display: grid; gap: 12px; margin-top: 30px; }
.next-steps li { display: grid; grid-template-columns: 2.6em 1fr; gap: 12px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.next-steps .n { font: 500 13.5px var(--mono); color: var(--accent); padding-top: 4px; }
.next-steps b { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: 2px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line-2); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; max-width: 40em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: #a3a3b1; padding: 64px 0 32px; }
.footer .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 16px 0 12px; max-width: 22em; font-size: 16px; }
.foot-mail { color: var(--accent-light); font-weight: 500; text-decoration: none; font-size: 16px; }
.foot-mail:hover { color: #fff; }
.foot-col h4 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; margin: 4px 0 12px; }
.foot-col a { display: block; padding: 5px 0; color: #b3b3c0; text-decoration: none; font-size: 16px; }
.foot-col a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-base small { font-size: 14px; color: #8a8a98; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .ways-grid, .promises, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 24px; }
  .nav-links > a, .dd-top { font-size: 16px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; }
  .step-card { flex-basis: calc((100cqi - 24px) / 2); }
}

@media (max-width: 959px) {
  :root { --nav-h: 68px; --gutter: 24px; }
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-end .btn { padding: 9px 16px; font-size: 15px; }
  .sec { padding: 104px 0 88px; }

  .hero.sec { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-net { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .35) 40%, #000 75%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .35) 40%, #000 75%); }
  .hero-visual { max-width: 560px; transform: none; }

  .story-stage { padding: 88px 0 80px; }
  .story-grid, .story.flip .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-copy { order: -1; }
  .story.flip .story-device { order: 0; }
  .device { width: 100%; transform: none; }
  .steps { margin-top: 24px; }

  .ask-in, .sell-in, .model-in, .problem-in { grid-template-columns: 1fr; gap: 40px; }
  .erp { max-width: 440px; }
  .stages { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .stages::before { display: none; }
  .stages li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: -20px; width: 1.5px; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 11px); }
  .stages li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
  .stages .n { grid-row: span 2; margin: 0; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-hero.split .wrap { grid-template-columns: 1fr; }
  .ph-hint { display: none; }
  .about-in, .lead-in, .next-in { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr; }
  .flow-pipe { width: 1.5px; height: 32px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 1.5px 22px; animation-name: flow-v; }
  .flow-pipe::after { right: -4px; top: auto; bottom: -2px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }

  .talk-card { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@keyframes flow-v { to { background-position: 0 22px; } }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .brand { font-size: 25px; }
  .hero .eyebrow { align-items: flex-start; padding: 0; border: 0; background: none; font-size: 14.5px; text-wrap: balance; }
  .hero .eyebrow-dot { margin-top: .5em; }
  .hero h1 { font-size: clamp(2.2rem, 10.4vw, 2.7rem); }
  .hero .lead { font-size: 1.1rem; }
  .hero-cta { gap: 22px; }
  .statement { font-size: clamp(2rem, 9vw, 2.5rem); }
  .where { padding: 10px 16px 10px 13px; font-size: 16px; }
  .ways-grid, .promises, .more-grid { grid-template-columns: 1fr; }
  .step-card { flex-basis: 86cqi; }
  .viz-conn ul { gap: 5px; }
  .step-viz { height: auto; min-height: 196px; }
  .car-btn { width: 46px; height: 46px; }
  .row2 { grid-template-columns: 1fr; }
  .works-group { grid-template-columns: 1fr; gap: 10px; }
  .pills li { padding: 7px 15px; font-size: 1rem; }
  .model-wide { display: none; }
  .model-narrow { display: block; max-width: 400px; margin: 0 auto; }
  .ask-chip { font-size: 1rem; }
  .ba-row { grid-template-columns: 28px 1fr; row-gap: 8px; }
  .ba-row .ba-today, .ba-row .ba-after { grid-column: 2; }
  .ba-h { display: none; }
  .ba-head span:last-child { display: none; }
  .hub { grid-template-columns: 1fr; gap: 14px; }
  .hub-lines { display: none; }
  .hub-out { margin-top: 8px; }
  .talk-card { padding: 28px 18px 18px; border-radius: 20px; }
  .form-card { padding: 22px 18px; }
  .ui { font-size: 14px; }
  .ui-split { grid-template-columns: 1fr; }
  .ui-top, .ui-split, .dec-body, .ui-foot { padding-inline: 14px; }
  .ui-foot { flex-wrap: wrap; }
  .ui-id small { white-space: normal; }
  .ho-tabs { grid-template-columns: 1fr 1fr; margin-inline: 12px; }
  .ho-tab { justify-content: flex-start; }
  .ho-panels { padding-inline: 12px; }
  .ho-list li { grid-template-columns: 1fr; gap: 6px; }
  .ho-list .st, .ho-src { justify-self: start; }
  .ap { font-size: 15px; }
  .ap-body { padding-inline: 14px; }
  .ap-input { margin-inline: 14px; }
  .ap-q p { max-width: 100%; }
  .pager { flex-direction: column; }
  .pager-next { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ---------- flow diagram: data from every system into Cernible, out as answers ---------- */
.fx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1.15fr); column-gap: 52px; align-items: center; padding: 24px; }
.fx-src, .fx-out { position: relative; z-index: 1; display: grid; gap: 8px; }
.fx-src li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fx-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f3f3f8; color: var(--ink); flex: none; }
.fx-ic .i { width: 16px; height: 16px; }
.fx-src b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.fx-src small { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); }
.fx-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.fx-mark { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -18px rgba(58, 66, 232, .7); }
.fx-mark .brand-mark { width: 36px; height: 36px; }
.fx-core b { font-size: 15px; font-weight: 600; color: var(--ink); }
.fx-core small { max-width: 118px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.fx-out li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 26px -20px rgba(10, 10, 20, .4); }
.fx-out small { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--accent); }
.fx-out b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.fx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.fx-lines path { fill: none; stroke: #c4c6dc; stroke-width: 1.5; stroke-dasharray: 3 5; animation: fx-dash 1.4s linear infinite; }
.fx-lines .fx-head { fill: var(--accent); filter: drop-shadow(0 0 5px rgba(58, 66, 232, .85)); }
.fx-src li { transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease); }
.fx-src li.is-sending { border-color: rgba(58, 66, 232, .55); box-shadow: 0 0 0 4px rgba(58, 66, 232, .08); transform: translateX(2px); }
.fx-mark { transition: transform .25s var(--ease); }
.fx-mark.is-hit { transform: scale(1.06); }
.fx-lines path.out { stroke: rgba(58, 66, 232, .45); }
.fx-lines circle { fill: var(--accent); }
@keyframes fx-dash { to { stroke-dashoffset: -16; } }
@keyframes fx-ring { 0% { box-shadow: 0 0 0 0 rgba(58, 66, 232, .35), 0 18px 40px -18px rgba(58, 66, 232, .7); } 70%, 100% { box-shadow: 0 0 0 18px rgba(58, 66, 232, 0), 0 18px 40px -18px rgba(58, 66, 232, .7); } }
/* Cernible "wakes up" once the sources have reached it; each answer card arrives when its line does. */
.fx.core-on .fx-mark { animation: fx-ring 2.6s ease-out infinite; }
html.js .fx:not(.is-static) .fx-core b, html.js .fx:not(.is-static) .fx-core small { opacity: .35; transition: opacity .6s ease; }
html.js .fx.core-on .fx-core b, html.js .fx.core-on .fx-core small { opacity: 1; }
html.js .fx:not(.is-static) .fx-out li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .7s var(--ease); }
html.js .fx .fx-out li.is-on { opacity: 1; transform: none; }
.works .fx { margin-top: 36px; grid-template-columns: minmax(0, .85fr) 140px minmax(0, 1fr); column-gap: 64px; }
@media (max-width: 1180px) { .fx { column-gap: 34px; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1.1fr); padding: 18px; } .fx-src small { display: none; } }
@media (max-width: 720px) {
  .fx { grid-template-columns: 1fr; row-gap: 44px; }
  .fx-src { grid-template-columns: 1fr 1fr; }
  .fx-src small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-lines path { animation: none; } .fx.core-on .fx-mark { animation: none; } }

/* ---------- contact form: spam trap and inline result ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card button[disabled] { opacity: .6; cursor: progress; }
form:has(.form-done) { display: grid; align-content: center; }
.form-done { display: grid; gap: 10px; justify-items: start; text-align: left; }
.form-done .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(34, 160, 90, .12); color: #1f8f50; stroke-width: 2.4; }
.form-done h3 { margin: 0; }
.form-done p { color: var(--muted); }
