/* ===== Site shell: nav with dropdowns, page heroes, feature rows, footer ===== */
.nav .wrap { gap: 20px; }
.menu { display: flex; align-items: center; gap: 4px; margin-right: auto; margin-left: 28px; }
.mi { position: relative; }
/* Dropdown panels open from the start of the menu, not under their button: with Free tools in the bar,
   a 760px panel under Solutions or Company ran off the right edge on small desktops. */
.menu { position: relative; }
.mi.has-dd { position: static; }
@media (max-width: 1040px) { .menu .dd { width: calc(100vw - 230px); } }
.mi-btn, .mi-link { appearance: none; background: none; border: 0; font: inherit; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.mi-btn:hover, .mi-link:hover, .mi-btn[aria-expanded="true"] { color: var(--ink); background: var(--subtle); }
.mi-btn svg { width: 10px; height: 10px; transition: transform .2s; }
.mi-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mi-link[aria-current="page"], .mi-btn.current { color: var(--ink); }
.dd { position: absolute; top: calc(100% + 10px); left: -12px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; width: min(760px, calc(100vw - 48px)); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(16, 22, 27, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 30; }
.mi.open .dd { opacity: 1; visibility: visible; transform: none; }
.dd-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; }
.dd-lists.one { grid-template-columns: 1fr; }
.dd-label { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 8px 6px; }
.dd-col { display: grid; gap: 2px; align-content: start; }
.dd-col .dd-label { margin-top: 2px; }
.dd-label.sep { margin-top: 12px; }
.dd-item { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dd-item svg { width: 20px; height: 20px; color: var(--muted); grid-row: span 2; margin-top: 1px; transition: color .15s; }
.dd-item b { font-weight: 600; font-size: 15px; }
.dd-item span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.dd-item:hover { background: var(--subtle); }
.dd-item:hover svg, .dd-item:hover b { color: var(--brand-teal); }
.dd-card { display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--brand-teal) 10%, var(--surface)), var(--surface) 60%); }
.dd-card:hover { border-color: color-mix(in srgb, var(--brand-teal) 45%, var(--line)); }
.dd-card h4 { font-family: var(--font-display); font-size: 18px; margin: 0; display: flex; align-items: center; gap: 6px; }
.dd-card p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.dd-vis { border-radius: 10px; background: #10161B; padding: 12px; font-family: var(--font-mono); font-size: 11px; color: #B9C6CF; display: grid; gap: 7px; min-height: 120px; }
.dd-vis .q { color: #fff; font-family: var(--font-body); font-size: 12.5px; background: #1E2933; border-radius: 8px; padding: 7px 9px; justify-self: end; max-width: 92%; }
.dd-vis .ok { color: #7FD07F; }
.dd-vis .bar { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal), var(--brand-green)); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-cta .signin:hover { color: var(--ink); }
.burger { display: none; appearance: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; color: var(--ink); cursor: pointer; }
.burger svg { width: 18px; height: 18px; }
.mpanel { display: none; }
@media (max-width: 900px) {
  .menu, .nav-cta .signin, .nav-cta .btn { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .mpanel.open { display: block; position: fixed; inset: 68px 0 0 0; background: var(--bg); overflow-y: auto; padding: 8px 16px 32px; z-index: 20; border-top: 1px solid var(--line); }
  .mpanel details { border-bottom: 1px solid var(--line); }
  .mpanel summary { list-style: none; padding: 16px 4px; font-weight: 600; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; }
  .mpanel summary::-webkit-details-marker { display: none; }
  .mpanel summary::after { content: "+"; color: var(--muted); }
  .mpanel details[open] summary::after { content: "−"; }
  .mpanel .dd-item { padding: 10px 4px; }
  .mpanel > a.plain { display: block; padding: 16px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .mpanel .mp-cta { display: grid; gap: 10px; margin-top: 20px; }
  .mpanel .mp-cta .btn { justify-content: center; }
}

/* page hero for inner pages */
.page-hero { padding-block: 72px 56px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a { color: inherit; text-decoration: none; } .crumb a:hover { color: var(--ink); }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 36px; } .page-hero { padding-block: 44px 36px; } }

/* feature rows */
.feats { display: grid; gap: 72px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.feat.rev > :first-child { order: 2; }
.feat h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 12px; }
.feat > div > p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.feat ul.ticks li, .sec-list p, .prod p, .how p { text-wrap: pretty; }
.feat ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feat ul.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.feat ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--brand-green); border-bottom: 2px solid var(--brand-green); transform: rotate(-45deg); }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 28px; } .feat.rev > :first-child { order: 0; } .feats { gap: 56px; } }

/* product grid on home */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prod-group { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 -2px; }
.prod { display: grid; align-content: start; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.prod svg.ic { width: 26px; height: 26px; color: var(--brand-teal); }
.prod h3, .prod h2.prod-title { font-family: var(--font-display); font-size: 19px; margin: 6px 0 0; }
.prod h2.prod-title { font-size: 16px; font-weight: 600; }
.prod p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.prod .more { font-size: 14px; color: var(--accent); margin-top: 6px; font-weight: 600; }
.prod:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-teal) 40%, var(--line)); box-shadow: 0 18px 40px -26px rgba(16,22,27,.35); }
.prod.wide { grid-column: span 2; }
.prod-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } .prod.wide { grid-column: auto; } }

/* example ask chips */
.asks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.asks span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; color: var(--ink); }
.asks span::before { content: "“"; color: var(--brand-teal); }
.asks span::after { content: "”"; color: var(--brand-teal); }

/* related */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* CRM mock */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tbl td.num { font-family: var(--font-mono); text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.stage { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--subtle); color: var(--ink-2); }
.stage.hot { background: color-mix(in srgb, var(--brand-green) 16%, transparent); color: color-mix(in srgb, var(--brand-green) 70%, var(--ink)); }
.mock-scroll { overflow-x: auto; }

/* definitions mock */
.defs { display: grid; gap: 10px; }
.def { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.def .t { font-weight: 600; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.def p { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.5; }
.def code { font-family: var(--font-mono); font-size: 12px; background: var(--subtle); padding: 2px 6px; border-radius: 5px; }

/* connector grid */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.conn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 15px; }
.conn img { width: 26px; height: 26px; }
.conn small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.conn-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }

/* security list */
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sec-list > div { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sec-list h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.sec-list p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .sec-list { grid-template-columns: 1fr; } }

/* solutions */
.role { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.role:first-of-type { border-top: 0; }
.role h2 { font-size: clamp(26px, 3vw, 36px); }
.role .was { color: var(--muted); margin-top: 10px; }
.role .use { display: grid; gap: 10px; }
@media (max-width: 900px) { .role { grid-template-columns: 1fr; gap: 24px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 36px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid .foot-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; } .foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid .tag { margin-top: 12px; max-width: 30ch; line-height: 1.5; }
footer.site-foot .wrap { display: block; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; }
.foot-base p { margin: 0; max-width: 80ch; }
.foot-base .foot-id { flex-basis: 100%; color: var(--ink-2); }
.foot-base .copy { margin-left: auto; white-space: nowrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* reveal on scroll — opacity only (translateY caused measurable CLS on /company) */
/* hidden state only when motion is on (set in <head> and by motion.js), so crawlers and no-JS visitors see everything */
html.motion .reveal { opacity: 0; transition: opacity .6s ease; }
html.motion .reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.motion .reveal { opacity: 1; transition: none; } }
.dd-card h4 svg, svg.ar { width: 16px; height: 16px; flex: none; }
.feat > div, .ph-grid > div, .role > div, .prod-grid > *, .related > * { min-width: 0; }
.page-hero h1 { line-height: 1.04; font-weight: 700; margin-top: 14px; letter-spacing: -0.03em; }
.page-hero h1 .grad { background: linear-gradient(100deg, var(--brand-blue), var(--brand-teal) 45%, var(--brand-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lede { margin-top: 20px; }
.page-hero .ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* /company hero diagram — reserve slot before web fonts paint SVG labels (L5 CLS) */
/* the SVG's aspect-ratio reserves its height; the figure itself sizes to content */
.fig--queue-path { align-content: start; }
.fig--queue-path svg {
  aspect-ratio: 420 / 256;
}

/* ===== Motion (motion.js). `.motion` is set only when motion is allowed and IntersectionObserver exists. ===== */

/* Hero texture: a slow brand-gradient glow with film grain, behind the content. */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 55% at 18% 22%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 70%),
    radial-gradient(38% 50% at 78% 30%, color-mix(in srgb, var(--brand-teal) 14%, transparent), transparent 70%),
    radial-gradient(40% 45% at 55% 85%, color-mix(in srgb, var(--brand-green) 11%, transparent), transparent 70%);
  background-size: 140% 140%, 150% 150%, 160% 160%;
  background-position: 0% 0%, 100% 0%, 50% 100%;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .page-hero::before { filter: saturate(1.25) brightness(1.15); }
:root[data-theme="dark"] .hero::after, :root[data-theme="dark"] .page-hero::after { opacity: .1; }
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .page-hero::before { animation: aurora 26s ease-in-out infinite alternate; }
}
@keyframes aurora {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  50% { background-position: 60% 40%, 40% 60%, 20% 40%; }
  100% { background-position: 100% 20%, 0% 100%, 80% 0%; }
}

/* Charts draw in and numbers count up when a mock scrolls into view. */
.motion .mock .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.3,.7,.2,1) .15s; }
.motion .mock.drawn .draw { stroke-dashoffset: 0; }
.motion .mock .bars i { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.motion .mock.drawn .bars i { transform: none; }
.motion .mock .bars i:nth-child(2) { transition-delay: .06s; } .motion .mock .bars i:nth-child(3) { transition-delay: .12s; }
.motion .mock .bars i:nth-child(4) { transition-delay: .18s; } .motion .mock .bars i:nth-child(5) { transition-delay: .24s; }
.motion .mock .bars i:nth-child(6) { transition-delay: .3s; }
.motion .mock .meter i, .motion .mock .rk-bar i { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.8,.2,1) .2s; }
.motion .mock.drawn .meter i, .motion .mock.drawn .rk-bar i { transform: none; }
.motion .mock.reset .draw, .motion .mock.reset .bars i, .motion .mock.reset .meter i, .motion .mock.reset .rk-bar i { transition: none !important; }

/* Five steps: a live run. Each node lights, types or counts, then ticks; the link fills to the next. */
.node .flow { display: none; }
.motion .pipe.running .node.hot:not(.active):not(.done) { background: var(--surface); border-color: var(--line); }
.motion .pipe .node { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, opacity .25s ease; }
.motion .pipe.running .node:not(.active):not(.done) { opacity: .62; }
.motion .pipe .node.active { border-color: var(--brand-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-teal) 22%, transparent), var(--shadow); transform: translateY(-2px); opacity: 1; }
.motion .pipe .node.done { border-color: color-mix(in srgb, var(--brand-green) 45%, var(--line)); opacity: 1; }
.motion .pipe .node.done .tag { color: var(--accent); }
.motion .pipe .node.done .tag::before { content: "✓ "; }
.motion .pipe .node.active code::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--brand-teal); animation: blink 1s steps(1) infinite; }
.motion .pipe .flow { display: block; position: absolute; top: 50%; right: -22px; width: 22px; height: 2px; margin-top: -1px; overflow: hidden; pointer-events: none; }
.motion .pipe .flow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-teal), var(--brand-green)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.motion .pipe .node.done .flow::after { transform: none; }
.motion .pipe .node:not(:last-child)::after { transition: border-color .3s ease; }
.motion .pipe .node.done:not(:last-child)::after { border-color: var(--brand-green); }
@media (max-width: 900px) { .motion .pipe .flow { display: none; } }

/* Platform tour (home): tabs on the left with an auto-advancing bar, one panel at a time. */
.tour { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { display: grid; gap: 4px; }
.tour-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px 14px; }
.tour-count .tour-n { color: var(--ink); }
.tour-tab { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; font: inherit; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px 14px; cursor: pointer; overflow: hidden; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.tour-tab .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--muted); transition: color .2s ease; }
.tour-tab b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.tour-tab small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.tour-tab:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tour-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.tour-tab[aria-selected="true"] .ic { color: var(--brand-teal); }
.tour-tab:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.tour-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal), var(--brand-green)); }
.tour-tab[aria-selected="true"] .tour-prog { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .tour-tab[aria-selected="true"] .tour-prog { transform: scaleX(0); }
  .tour-prog.go { animation: tourProg 7s linear forwards; }
  .tour.off .tour-prog.go, .tour:hover .tour-prog.go, .tour:focus-within .tour-prog.go { animation-play-state: paused; }
}
@keyframes tourProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-panels { display: grid; min-width: 0; }
.tour-panel { grid-area: 1 / 1; display: grid; gap: 16px; align-content: start; min-width: 0; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.tour-panel.on { visibility: visible; opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.tour-panel .head { display: grid; gap: 8px; }
.tour-panel h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.tour-panel .head p { color: var(--ink-2); max-width: 620px; }
.tour-panel .more { font-weight: 600; color: var(--accent); text-decoration: none; font-size: 15px; }
.tour-panel .more:hover { text-decoration: underline; }
.tour-vis { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.tour-foot { margin-top: 22px; font-size: 15px; color: var(--muted); }
.tour-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tour-count { display: none; }
  .tour-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; scroll-snap-type: x mandatory; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: 0 0 auto; grid-template-columns: 18px auto; gap: 8px; padding: 9px 12px 11px; border-color: var(--line); scroll-snap-align: start; }
  .tour-tab .ic { width: 18px; height: 18px; margin-top: 1px; }
  .tour-tab b { font-size: 14.5px; white-space: nowrap; }
  .tour-tab small { display: none; }
}
.dd-vis .ddr { display: grid; grid-template-columns: 64px minmax(0, 1fr) 58px; align-items: center; gap: 8px; }
.dd-vis .ddr b { font-weight: 500; color: #EAF1F5; font-family: var(--font-body); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-vis .ddr .trk { height: 6px; border-radius: 99px; background: #2A3640; }
.dd-vis .ddr .bar { display: block; height: 100%; }
.dd-vis .ddr em { font-style: normal; text-align: right; color: #B9C6CF; }
.dd-vis .dd-ans { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; color: #EAF1F5; font-family: var(--font-body); font-size: 12px; }
.dd-vis .dd-ans em { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: #7FD07F; padding-top: 1px; }

/* ===== design pass (Nov 24) ===== */
/* mock text always uses the mock's own scale, wherever the mock sits */
.mock p { font-size: inherit; }
.mock .def p, .mock .ic-why p { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
@media (max-width: 600px) {
  .dax { white-space: pre-wrap; overflow-wrap: anywhere; }
  .ex-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }
}
@media (max-width: 960px) { .prod-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prod-grid.three { grid-template-columns: 1fr; } }
.layer.ai { background: var(--query-bg); color: #F2FAF7; box-shadow: var(--shadow); }
.layer.ai .layer-label { color: rgba(242, 250, 247, .6); }
.layer.ai p:not(.layer-label) { background: linear-gradient(100deg, var(--brand-blue), var(--brand-teal) 45%, var(--brand-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Apps page: run summary, ranked cases, funnel, run pipeline */
.app-run { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.app-run b { display: block; font-weight: 600; }
.app-run small { display: block; color: var(--muted); font-size: 12px; }
.mini-board.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .mini-board.two .tile:last-child { display: block; } }
.cases { display: grid; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.case { display: grid; grid-template-columns: 16px minmax(0, 1fr) minmax(40px, 22%) 34px 70px; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; }
.case .n { font: 500 12px var(--font-mono); color: var(--muted); }
.case .cw { min-width: 0; }
.case .cw b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .cw small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .sc { font: 600 12.5px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.case .pill { justify-self: end; }
@media (max-width: 480px) { .case { grid-template-columns: 12px minmax(0, 1fr) 34px 66px; gap: 8px; } .case .meter { display: none; } }
.funnel { display: grid; gap: 8px; padding: 4px 0; }
.fn { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 12.5px; }
.fn .meter { height: 10px; }
.fn .c { font-family: var(--font-mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.runs { display: grid; gap: 28px; }
.run-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pipe.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (max-width: 980px) { .pipe.four { grid-template-columns: minmax(0, 1fr); } }
.soon { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 22px 24px; border: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--radius); }
.soon > div { display: grid; gap: 6px; }
.soon p:not(.eyebrow) { color: var(--ink-2); }

/* Coach hero: the diagram becomes a plain list on phones */
.fig-list { display: none; }
.fig-list-h { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fig-list ul, .fig-list ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fig-list ul li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.fig-list ul li b { font: 500 11px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fig-list ol { counter-reset: pr; }
.fig-list ol li { counter-increment: pr; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--brand-teal) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-teal) 35%, transparent); font-size: 14px; font-weight: 500; }
.fig-list ol li::before { content: counter(pr); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
@media (max-width: 600px) { .fig svg.fig-wide { display: none; } .fig-list { display: grid; gap: 8px; } }

/* insight charts: keep SVG labels near 10px however wide the chart is drawn (viewBox is 300 wide) */
.ichart { container-type: inline-size; }
@container (min-width: 360px) { .ic-plot text { font-size: 8px; } .ic-plot text.val { font-size: 8.5px; } }
@container (min-width: 440px) { .ic-plot text { font-size: 6.8px; } .ic-plot text.val { font-size: 7.4px; } }
@container (min-width: 540px) { .ic-plot text { font-size: 5.8px; } .ic-plot text.val { font-size: 6.2px; } }
@container (min-width: 680px) { .ic-plot text { font-size: 4.6px; } .ic-plot text.val { font-size: 5px; } }

/* For CEOs and senior leaders: six outcome callouts (homepage). */
.lead-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lead-card { display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lead-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--brand-teal) 12%, var(--surface)); }
.lead-ic .ic { width: 20px; height: 20px; }
.lead-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin: 4px 0 0; }
.lead-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; text-wrap: pretty; }
.lead-card a { font-size: 14px; color: var(--ink); text-decoration: none; margin-top: 4px; }
.lead-card a:hover { text-decoration: underline; }
.lead-foot { margin-top: 22px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lead-grid { grid-template-columns: 1fr; } .lead-card { padding: 18px; } }
.hero h1.h1-long { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; }

/* inline "go further" link (apps → solution page, solution page → app) */
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* free tools hub (/tools): one .tool-card per tool */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: grid; align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.tool-card h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.2; margin: 4px 0 0; }
.tool-card .tool-sub { color: var(--ink-2); font-size: 16px; margin: -6px 0 0; }
.tool-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tool-card ul li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tool-card ul li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--brand-green); border-bottom: 2px solid var(--brand-green); transform: rotate(-45deg); }
.tool-card .tool-private { font-size: 14px; color: var(--muted); margin: 0; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } .tool-card { padding: 20px; } }
