/* =========================================================
   SparkFlow lively layer
   1) Floating hero contact form (+ floating capability chips)
   2) Page-wide floating HSE objects (injected by lively.js)
   Load AFTER the inline <style> block in <head>.
   ========================================================= */

/* SparkFlow lively layer: floating hero card + page-wide floating objects.
   Load AFTER the inline <style> block in the homepage <head>. */

/* ---------- 1. FLOATING CONTACT FORM (frosted glass) ---------- */
.sf-float-form{position:relative;z-index:5;width:min(100% - 2rem,400px);margin:2rem auto 2.25rem}
.sff-card{
  position:relative;padding:1.75rem 1.6rem 1.6rem;border-radius:28px;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(22px) saturate(1.3);backdrop-filter:blur(22px) saturate(1.3);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 24px 60px rgba(15,27,77,.28),inset 0 1px 0 rgba(255,255,255,.7);
  animation:sffBob 6s ease-in-out infinite;
}
.sff-card h2{font-size:1.4rem;font-weight:800;line-height:1.2;letter-spacing:-.015em;color:#0f1b4d;margin:0 0 .45rem}
.sff-sub{font-size:.95rem;line-height:1.5;color:#4a5570;margin:0 0 1.35rem}
.sff-field{margin-bottom:1.1rem}
.sff-field label{display:block;font-size:.85rem;font-weight:700;color:#0f1b4d;margin-bottom:.4rem}
.sff-field input{
  width:100%;padding:.85rem 1rem;border:1px solid rgba(255,255,255,.9);border-radius:12px;
  background:#fff;box-shadow:0 2px 8px rgba(15,27,77,.08);
  font:inherit;font-size:.98rem;font-weight:600;color:#0f1b4d;
  transition:border-color .2s,box-shadow .2s;
}
.sff-field input::placeholder{color:#7b8296;font-weight:600}
.sff-field input:focus{outline:0;border-color:#465FFF;box-shadow:0 0 0 4px rgba(70,95,255,.2)}
.sff-field input[aria-invalid="true"]{border-color:#c0392b}
.sff-err{display:none;color:#b3261e;font-size:.78rem;font-weight:600;margin-top:.3rem}
.sff-field input[aria-invalid="true"]+.sff-err{display:block}
.sff-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.sff-btn{
  display:block;width:100%;margin-top:1.4rem;border:0;border-radius:999px;padding:.95rem 1.2rem;
  font:inherit;font-weight:700;font-size:1rem;color:#0f1b4d;cursor:pointer;
  background:linear-gradient(180deg,#f7dc8a,#e9c264);
  box-shadow:0 8px 20px rgba(214,170,60,.35);
  transition:filter .2s,transform .2s;
}
.sff-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
.sff-btn:focus-visible{outline:3px solid #465FFF;outline-offset:3px}
.sff-btn[disabled]{opacity:.7;cursor:progress;transform:none}
.sff-status{font-size:.85rem;margin:.6rem 0 0;text-align:center;color:#b3261e}
.sff-status:empty{display:none}
@keyframes sffBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* The hero is a grid sized by the hero image, with the glass card pinned to the bottom.
   >=1400px: the form floats at the bottom-right, BESIDE the card (the card narrows to make room).
   Below 1400px there isn't enough width for both, so the form sits as its own row under the hero. */
@media(min-width:1400px){
  .sf-hero .sf-hero-card{width:calc(100% - 424px);margin:0 auto 0 0}
  .sff-card{background:rgba(255,255,255,.6)}
  .sf-float-form{grid-area:1 / 1;justify-self:end;align-self:end;margin:0 10% 2.5rem 0;width:400px}
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .sff-card,.sf-hero .sff-card{background:rgba(255,255,255,.95)}
}
@media(prefers-reduced-transparency:reduce){
  .sff-card,.sf-hero .sff-card{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* ---------- 2. PAGE-WIDE FLOATING OBJECTS ---------- */
#sfFloatBg{position:absolute;top:0;left:0;width:100%;height:0;overflow:hidden;pointer-events:none;z-index:-1} /* height is set by lively.js */
.sfb{position:absolute;left:0;top:0;width:var(--s);height:var(--s);will-change:transform;
     transform:translate3d(0,var(--py,0px),0)}
.sfb svg{
  width:100%;height:100%;display:block;overflow:visible;
  filter:drop-shadow(0 14px 16px rgba(40,60,170,.24));
  transform:rotate(var(--r));
  animation:sfbFloat var(--d) ease-in-out var(--dl) infinite;
}
@keyframes sfbFloat{
  0%,100%{transform:translate3d(0,0,0) rotate(var(--r))}
  50%{transform:translate3d(var(--dx),var(--dy),0) rotate(calc(var(--r) + var(--rot)))}
}
@media(prefers-reduced-motion:reduce){
  .sfb svg,.sff-card{animation:none}
  .sfb{transform:none}
}

/* Objects show through the frosted homepage panels, so let a little more of them through */
.hp-glass-page .container.hp-panel{background:rgba(255,255,255,.66)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hp-glass-page .container.hp-panel{background:rgba(255,255,255,.95)}
}
@media(prefers-reduced-transparency:reduce){
  .hp-glass-page .container.hp-panel{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* ---------- 3. HERO SUB-HEADING (H2 under the H1) ----------
   Mirrors the H1 sizes in style.css / responsive.css so the two lines read as one headline. */
.sf-hero-card h1{margin-bottom:4px}
.sf-hero-card h2.sf-hero-sub{
  font-size:42px;font-weight:800;letter-spacing:-0.03em;line-height:1.15;
  margin:0 0 16px;color:#fff;
}
@media (max-width:991.98px){.sf-hero-card h2.sf-hero-sub{font-size:30px}}
@media (max-width:767.98px){.sf-hero-card h2.sf-hero-sub{font-size:26px}}

/* ---------- 4. "A closer look" product screens ---------- */
.hp-look .row + .row{margin-top:3.75rem}
.hp-shot{
  display:block;width:100%;height:auto;border-radius:22px;
  box-shadow:0 24px 50px rgba(30,45,120,.22);
  border:1px solid rgba(255,255,255,.85);background:#fff;
}
.hp-shot--phone{max-width:340px;margin:0 auto}
.hp-look__title{font-size:1.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.2;color:#0f1b4d;margin:.9rem 0 .8rem}
.hp-ticks{list-style:none;margin:1.1rem 0 0;padding:0}
.hp-ticks li{position:relative;padding:.3rem 0 .3rem 1.8rem;font-weight:600;color:#0f1b4d}
.hp-ticks li::before{content:"\F26A";font-family:bootstrap-icons;position:absolute;left:0;top:.3rem;color:#1e8e5a}
@media(max-width:991.98px){.hp-look .row + .row{margin-top:3rem}.hp-look__title{font-size:1.35rem}}
.hp-shot--doc{max-width:460px;margin:0 auto}
.hp-benefit{margin:1.1rem 0 0;color:#53627f;font-size:.95rem}
.hp-benefit strong{color:#0f1b4d}
