/* V12.2 — visual integration of calculation engine with the light Finmodel landing.
   Scoped to section #engine. Animation timeline and markup are unchanged. */
body.landing-premium #engine.engine-section {
  color:#142a50;
  background:radial-gradient(ellipse at 56% 44%,#e8f0ff 0%,#f6f9ff 59%,#fff 100%);
  border-block:1px solid #e3ebf8;
  padding:104px 0 88px;
}
#engine .engine-stars {opacity:.23;background-image:radial-gradient(circle at 50% 50%,#7d9cf444 1px,transparent 1px)}
#engine .engine-head {gap:36px;margin-bottom:32px}
#engine .engine-head h2 {color:#132c56}
#engine .engine-head>p,body.landing-premium #engine .engine-head>p {color:#506582}
#engine .kicker-light {color:#4771c6}
#engine .kicker-light span {background:#e7efff;color:#3657a6}
body.landing-premium #engine .engine-console {
  background:linear-gradient(160deg,#fff 0%,#f7faff 72%,#f3f8ff 100%);
  border:1px solid #d6e2f5;
  border-radius:23px;
  padding-bottom:17px;
  box-shadow:0 22px 52px #2d47751a;
}
/* The section heading already introduces the demo. No second internal masthead. */
#engine .console-top {display:none}
#engine .engine-controls {padding:23px 25px 18px;gap:10px;border-bottom:1px solid #e9eef8}
#engine .path-button,body.landing-premium #engine .path-button {color:#536887;background:#f3f7ff;border:1px solid #d5e1f2;box-shadow:none;border-radius:11px}
#engine .path-button span {color:#5275db}
#engine .path-button:hover {color:#234c9b;background:#e9f0ff}
#engine .path-button.is-active,body.landing-premium #engine .path-button.is-active {background:#e5edff;color:#224a9d;border-color:#9cb4f7;box-shadow:inset 3px 0 #4a6af2}
body.landing-premium #engine #impactGraph .flow-visual {margin:6px 22px 0;min-height:440px;padding:16px 10px 0}
#engine .flow-surface {background-image:linear-gradient(#83a5f018 1px,transparent 1px),linear-gradient(90deg,#83a5f018 1px,transparent 1px);opacity:.72}
#engine .flow-visual::before,body.landing-premium #engine .flow-visual::before {background-image:linear-gradient(#688bce13 1px,transparent 1px),linear-gradient(90deg,#688bce13 1px,transparent 1px)}
#engine .logic-svg,body.landing-premium #engine .logic-svg {filter:drop-shadow(0 15px 20px #507ac11b)}
#engine .logic-orbit {stroke:#7999d2;opacity:.30}
#engine .logic-path {stroke:#628cda;opacity:.62}
#engine .mesh-node rect,body.landing-premium #engine .mesh-node rect {fill:#f7faff;stroke:#a4bce5;filter:drop-shadow(0 8px 6px #26447817)}
#engine .mesh-node .node-kicker {fill:#6882af}
#engine .mesh-node .node-main {fill:#1c3c6e}
#engine .mesh-origin rect,body.landing-premium #engine .mesh-origin rect {fill:#e6efff;stroke:#648ee7}
#engine .mesh-outcome rect,body.landing-premium #engine .mesh-outcome rect {fill:#def6f2;stroke:#2aa49a}
#engine .mesh-core rect,body.landing-premium #engine .mesh-core rect {fill:#365ee1;stroke:#8baaff;filter:drop-shadow(0 0 20px #457de25a)}
#engine .mesh-core .core-kicker {fill:#dce7ff}
#engine .mesh-core .core-label {fill:#fff}
#engine .mesh-core .core-sub {fill:#edf3ff}
#engine .logic-legendline {padding-bottom:13px;border-bottom:1px solid #ebf0fa;color:#5f7291}
body.landing-premium #engine .logic-legendline span {color:#607592}
/* Mobile uses card nodes rather than the wide SVG diagram. */
#engine .flow-node {background:linear-gradient(145deg,#f6f9ff,#eaf1ff);border:1px solid #cbdaf4;box-shadow:0 10px 22px #3f62a018}
#engine .flow-node>span {color:#657fab}
#engine .flow-node strong {color:#203d6b}
#engine .flow-node small {color:#657a98}
#engine .flow-link {background:linear-gradient(90deg,#668eea,#25b8aa)}
/* The formula animation retains its timing, but uses the same light surfaces as the page. */
body.landing-premium #engine #impactGraph .fm-engine-reactor {
  margin:12px 22px 0;
  background:linear-gradient(110deg,#f7faff,#eef4ff);
  border:1px solid #d4e0f4;
  box-shadow:inset 0 1px #fff;
  color:#2b446b;
  border-radius:15px;
}
#engine .fm-engine-reactor:before {background:linear-gradient(90deg,transparent,#8badff14,transparent)}
#engine .fm-engine-reactor-head {border-color:#dbe5f5}
#engine .fm-engine-reactor-name {color:#264574}
#engine .fm-engine-example-tag {color:#6e83a2}
#engine .fm-engine-pause {background:#fff;border:1px solid #cbdaf2;color:#315bad}
#engine .fm-engine-pause:hover,#engine .fm-engine-pause:focus-visible {background:#e4edff;color:#1d458d}
#engine .fm-engine-phase-label small {color:#4e70c8}
#engine .fm-engine-phase-label strong {color:#1a3567}
#engine .fm-engine-phase-label>span {color:#647b9a}
#engine .fm-engine-formulas {border-color:#c9daf2}
#engine .fm-engine-formulas code {color:#21497a}
#engine .fm-engine-completion span {color:#348b82}
#engine .fm-engine-completion strong {color:#087f77}
#engine .fm-engine-completion em {color:#6a819c}
#engine .fm-engine-reactor-foot {background:#ebf2ffb8;border-color:#dce7f7}
#engine .fm-engine-reactor-foot small {color:#607899}
#engine .fm-engine-reactor-foot>span i {background:#b3c7e6}
#engine .console-insight,body.landing-premium #engine .console-insight {background:#f3f7ff;border:1px solid #dbe6f7;box-shadow:none;margin:13px 22px 3px;border-radius:12px}
#engine .insight-badge {color:#3761ad;background:#e6eeff;border:1px solid #cedeff}
#engine .console-insight p,body.landing-premium #engine .console-insight p {color:#435b79}
#engine .engine-note,body.landing-premium #engine .engine-note {color:#687c98}
@media(max-width:700px){
  body.landing-premium #engine.engine-section {padding:68px 0 66px}
  #engine .engine-head {gap:18px;margin-bottom:27px}
  #engine .engine-head h2 {font-size:clamp(28px,8vw,36px)}
  #engine .engine-controls {padding:15px 13px 13px;gap:7px}
  body.landing-premium #engine .path-button {font-size:12px;min-height:40px;padding:10px 11px}
  body.landing-premium #engine #impactGraph .flow-visual {margin:0 9px;min-height:495px!important;padding:9px 0 0!important}
  #engine .flow-node {border-radius:12px}
  body.landing-premium #engine #impactGraph .fm-engine-reactor {margin:9px 9px 0}
  #engine .fm-engine-reactor-head {padding:12px}
  #engine .console-insight,body.landing-premium #engine .console-insight {margin:11px 9px 0;gap:10px}
}
