/* Site layer on top of the design export (tokens.css, components.css, homepage.css are copies of design/).
   Only loading behaviour, build flags and a11y helpers live here; no visual rule overrides the design. */

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--canvas)}

/* Below-the-fold sections render when they come near the viewport; the reserved
   size keeps the scrollbar stable and avoids layout shift. The hero and the
   platform map stay rendered (the map drives the nav's dark register). */
#platform,#map,#ai,#control,#finance,#compare,#integrations,#implementation,#facts,#cases,#demo-section,#changelog{content-visibility:auto;contain-intrinsic-size:auto 900px}

/* Hero sequence: only the stage on show is rendered; a stage renders the moment
   it gets .is-on (before the script runs, the first stage shows, as in the design). */
.hp-seq:not(.is-js) .hp-seq__f:not(:first-child),.hp-seq.is-js .hp-seq__f:not(.is-on){content-visibility:hidden}

/* The inline icon sprite */
.sw-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* Skip link */
.skip-link{position:absolute;left:var(--space-16);top:-100px;z-index:100;padding:var(--space-8) var(--space-16);background:var(--surface);color:var(--blue-600);border-radius:var(--radius-pill);box-shadow:var(--shadow-float);font:600 .875rem/1.25 var(--font-body)}
.skip-link:focus{top:var(--space-16);outline:none;box-shadow:var(--focus-ring)}
main:focus{outline:none}

/* Demo form states */
.sw-botcheck{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sw-form-error{color:var(--red-text);margin:0}
.sw-form-error[hidden],.sw-form-sent[hidden]{display:none}
form[data-demo-form].is-sent .sw-field,form[data-demo-form].is-sent .sw-grid-2,form[data-demo-form].is-sent .sw-btn{display:none}

/* Phone menu (the export has the Menu button but no open state) */
@media (max-width:1023px){
  .sw-nav.is-open{flex-wrap:wrap}
  .sw-nav.is-open .sw-nav__list{display:flex;flex-direction:column;align-items:stretch;flex-basis:100%;order:10;gap:0;padding-top:var(--space-8);border-top:1px solid var(--line);margin-top:var(--space-8)}
  .sw-nav.is-open .sw-nav__item{position:static}
  .sw-nav.is-open .sw-nav__link{width:100%;justify-content:space-between;min-height:var(--touch-target)}
  .sw-nav.is-open .sw-mega{position:static;display:none;grid-template-columns:1fr;box-shadow:none;border:0;padding:0 0 var(--space-8)}
  .sw-nav.is-open .sw-mega[data-open]{display:grid}
  .sw-nav.is-open .sw-lang{display:inline-flex;flex-basis:100%;order:11;justify-content:center;padding:var(--space-8) 0}
}
