/* Shared by the feature pages (Cortex / Ask / Pulse): breadcrumbs, tag,
   CTA band, bento cells with their dotted visual, step lists and the
   scroll reveal. Each page styles its own hero and drawings. */

.only-phone { display: none; }

/* Breadcrumbs: current page dimmed, parent bright (live site) */
.crumbs { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 40px; box-shadow: inset 0 -1px var(--border-primary); font-size: 14px; line-height: 20px; }
.crumbs a { color: var(--text-primary); transition: color .2s; }
.crumbs a:hover { color: var(--text-secondary); }
.crumbs span { color: var(--text-tertiary); }
.crumbs img { width: 16px; height: 16px; transform: rotate(180deg); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 4px 16px; border-radius: 20px; background: var(--surface-primary); box-shadow: inset 0 0 0 1px var(--border-primary); font-weight: 500; font-size: 14px; line-height: 20px; }

/* CTA band under the hero: spans the full window */
.fp-band { box-shadow: inset 0 1px var(--border-primary), inset 0 -1px var(--border-primary); }
.fp-band .inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 60px 40px; }
.fp-band p { max-width: 420px; }
.fp-band .actions { display: flex; gap: 12px; }

/* Bento rows: cells of a dotted visual plus copy */
.fp-row { display: flex; box-shadow: inset 0 -1px var(--border-primary); }
.fp-row > * { flex: 1 1 0; min-width: 0; }
.fp-row.split > * + * { box-shadow: inset 1px 0 var(--border-primary); }
.fp-cell { display: flex; flex-direction: column; gap: 40px; padding: 40px; }
.fp-cell.wide { flex-direction: row; gap: 80px; }
.fp-cell.wide > * { flex: 1 1 0; min-width: 0; }
.fp-cell.wide .fp-copy { align-self: flex-end; }
.fp-vis { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.dots {
  background-image: radial-gradient(circle at center, #d3d6e0 0 1px, transparent 1.3px);
  background-size: 8px 8px; background-position: 0 0;
}
.fp-copy { display: flex; flex-direction: column; gap: 8px; }
.fp-copy .h3-md { line-height: 24px; }

/* Diagrams keep their desktop geometry and shrink as a whole when needed */
.scaled { flex: none; zoom: var(--s, 1); }

/* Step list (Cortex accordion): one open step with a progress bar */
.fp-steps { display: flex; box-shadow: inset 0 -1px var(--border-primary); }
.fp-steps > * { flex: 1 1 0; min-width: 0; }
.fp-steps .lhs { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 80px 40px; }
.fp-steps .head { font-weight: 500; font-size: 36px; line-height: 40px; letter-spacing: .1px; color: var(--text-secondary); }
.fp-steps .head b { font-weight: inherit; color: var(--text-primary); }
.fp-steps .rhs { position: relative; padding: 40px; }
.fp-steps .rhs .fp-vis { height: 100%; }
.steps-list { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; flex-direction: column; text-align: left; letter-spacing: .1px; }
.step .title { font-weight: 500; font-size: 18px; line-height: 24px; color: var(--text-primary); transition: color .2s; }
.step .desc { display: none; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.step .bar { display: none; margin-top: 20px; }
.step.on .desc, .step.on .bar { display: block; }
.step:not(.on) { cursor: pointer; }
.step:not(.on):hover .title { color: var(--text-secondary); }
.step .bar, .step-bars .bar { position: relative; height: 2px; background: var(--bg-tertiary); overflow: hidden; }
.step .bar i, .step-bars .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #001441; }
.on > .bar i, .bar.on i { animation: fill var(--dur, 6s) linear forwards; }
.bar.done i { width: 100%; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.step-bars { display: none; }
@media (prefers-reduced-motion: reduce) { .on > .bar i, .bar.on i { animation: none; width: 100%; } }

/* Step visuals: the one for the open step fades in */
.step-vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.step-vis.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }

/* Scroll reveal (feature-page.js): blur + slide in, staggered */
.rv { opacity: 0; filter: blur(8px); transform: translateY(12px); transition: opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; filter: none; transform: none; transition: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .display-h1 { font-size: 48px; line-height: 52px; }
  .crumbs { padding: 0 40px; }
  .fp-cell { padding: 32px; }
  .fp-cell.wide { gap: 64px; }
  .fp-steps .lhs { padding: 80px 32px; }
  .fp-steps .rhs { padding: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  .only-phone { display: inline; }
  .hide-phone { display: none; }
  .crumbs { padding: 0 20px; }
  .fp-band .inner { flex-direction: column; gap: 20px; padding: 40px 20px; text-align: center; }
  .fp-row { flex-direction: column; }
  .fp-row > * { flex: none; }
  .fp-row.split > * + * { box-shadow: inset 0 1px var(--border-primary); }
  .fp-cell { padding: 20px; }
  .fp-cell.wide { flex-direction: column-reverse; gap: 40px; }
  .fp-cell.wide > * { flex: none; }
  .fp-cell.wide .fp-copy { align-self: stretch; }
  .fp-cell .h3-md { font-size: 16px; line-height: 20px; }
  .fp-steps { flex-direction: column; padding: 40px 20px; }
  .fp-steps .lhs, .fp-steps .rhs { display: contents; }
  .fp-steps .head { order: 1; }
  .fp-steps .rhs .fp-vis { order: 2; height: 492px; margin-top: 40px; }
  .fp-steps .step-bars { order: 3; }
  .fp-steps .steps-list { order: 4; }
  .steps-list { gap: 0; }
  .step { display: none; }
  .step.on { display: flex; }
  .step.on .bar { display: none; }
  .step-bars { display: flex; gap: 12px; margin: 40px 0 32px; }
  .step-bars .bar { flex: 1; }
}
