/* Home "On the plant floor" animation tile (hero-plant.js, 2026-12-01). Deep-green dark section from COLOR-PALETTE.md. */
.floor .ph--anim,[data-theme="light"] .floor .ph--anim{
  background:radial-gradient(520px 380px at 12% 0,rgba(86,247,116,.10),transparent 65%),
             radial-gradient(560px 460px at 100% 100%,rgba(31,154,85,.22),transparent 65%),
             linear-gradient(160deg,#0c3a34,#072925);
  border-color:rgba(7,41,37,.6);
  box-shadow:0 24px 48px -30px rgba(7,41,37,.65)
}
.floor .ph--anim::after{background:linear-gradient(180deg,transparent 74%,rgba(7,41,37,.94))}
.floor .ph--anim figcaption{color:rgba(255,255,255,.8)}
.floor .ph--anim figcaption b{color:#fff}
@media (max-width:860px){.floor .ph--anim figcaption{background:#072925}}

/* ── Home "Product in action" section (section#product.pis in pages/index.php), redesign v2 2026-12-02 ──
   Deep-green device frame (same greens as the plant-floor tile) around a white app screen.
   Lens tabs = icon buttons in the frame header, with a "click a lens" hint + pulsing next tab until used.
   Colours from COLOR-PALETTE.md only: ink values, green #1f9a55 for good / active, greys for problems. Poppins only. Text unchanged. */
#product.pis{--pg:#1f9a55;--pg2:#0f6b3a;--pm:#e6f4ec;--pk:#1d1d1f;--pk2:#424245;--pk3:#6e6e73;--ps:#f5f5f7;--pl:rgba(0,0,0,.08);--pl2:rgba(0,0,0,.14);--pd:#0c3a34;--pd2:#072925;--plime:#56f774}
#product.pis,#product.pis :is(h2,h4,.tab,.tabs__hint,.crumb,.kpi span,.kpi b,.tbl,.tbl th,.pill,.feed li,.shots figcaption,.logos__label){font-family:"Poppins",system-ui,sans-serif}

/* device frame */
#product.pis .screen{position:relative;margin-top:34px;padding:0 10px 10px;border:0;border-radius:22px;overflow:visible;
  background:radial-gradient(600px 300px at 8% 0,rgba(86,247,116,.12),transparent 70%),radial-gradient(700px 400px at 100% 100%,rgba(31,154,85,.25),transparent 70%),linear-gradient(160deg,var(--pd),var(--pd2));
  box-shadow:0 2px 4px rgba(7,41,37,.12),0 40px 70px -40px rgba(7,41,37,.7)}
#product.pis .screen__bar{gap:8px;padding:16px 14px 6px;background:none;border:0;font-size:12.5px;color:rgba(255,255,255,.6)}
#product.pis .screen__bar i{display:none}
#product.pis .screen__bar .crumb{margin-left:0;color:rgba(255,255,255,.72);font-weight:500}
#product.pis .screen__bar::after{content:"";margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--plime);box-shadow:0 0 0 4px rgba(86,247,116,.18);animation:pisLive 2s ease-in-out infinite}
@keyframes pisLive{50%{box-shadow:0 0 0 7px rgba(86,247,116,0)}}

/* lens tabs = icon buttons in the frame */
#product.pis .tabs{margin:0;padding:10px 4px 14px;gap:8px;flex-wrap:wrap;align-items:center;background:none;border:0}
#product.pis .tab{position:relative;padding:10px 18px 10px 14px;gap:9px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.06);
  font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:rgba(255,255,255,.86);box-shadow:none;cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
#product.pis .tab::before{content:"";width:18px;height:18px;border-radius:0;background:currentColor;opacity:.9;transform:none;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
#product.pis #tab-q{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E")}
#product.pis #tab-c{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L3 17.8 6.2 21l6.3-6.3a4 4 0 0 0 5.2-5.4l-2.5 2.5-2.7-.6-.6-2.7z'/%3E%3C/svg%3E")}
#product.pis #tab-o{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 16v-5M12 16V6M17 16v-8'/%3E%3C/svg%3E")}
#product.pis #tab-e{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18a8 8 0 0 1 16 0'/%3E%3Cpath d='M2 18h20M12 6V4M9 18v-4h6v4'/%3E%3C/svg%3E")}
#product.pis #tab-g{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 15-14-1 10-6 15-14 15'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E")}
#product.pis .tab:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.34);color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px -10px rgba(0,0,0,.5)}
#product.pis .tab:hover::before{transform:none}
#product.pis .tab[aria-selected="true"]{background:#fff;border-color:#fff;color:var(--pk);font-weight:600;box-shadow:0 10px 22px -12px rgba(0,0,0,.55)}
#product.pis .tab[aria-selected="true"]::before{background:var(--pg);opacity:1}
#product.pis .tab:focus-visible{outline:2px solid var(--plime);outline-offset:2px}
/* "click me": pulsing ring + tapping pointer on the next lens until the visitor switches */
#product.pis .tabs:not(.tabs--used) #tab-c{border-color:rgba(86,247,116,.7);animation:pisPing 1.8s ease-out infinite}
#product.pis .tabs:not(.tabs--used) #tab-c::after{content:"";position:absolute;right:-8px;bottom:-14px;width:22px;height:22px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V11m0-1a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1-6 6h-.6a6 6 0 0 1-4.6-2.15L4.2 15.4a1.5 1.5 0 0 1 2.2-2.05L9 15.5' fill='%23fff' stroke='%230c3a34' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));animation:pisTap 1.8s ease-in-out infinite}
@keyframes pisPing{0%{box-shadow:0 0 0 0 rgba(86,247,116,.45)}70%,100%{box-shadow:0 0 0 10px rgba(86,247,116,0)}}
@keyframes pisTap{0%,100%{transform:translate(0,0) rotate(-14deg)}45%{transform:translate(-4px,-5px) rotate(-14deg) scale(.88)}}
#product.pis .tabs__hint,#product.pis .tabs--used .tabs__hint{margin-left:auto;padding:7px 14px 7px 10px;gap:8px;border-radius:999px;background:rgba(86,247,116,.12);border:1px solid rgba(86,247,116,.3);
  font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;color:#fff;opacity:1;transform:none;pointer-events:none}
#product.pis .tabs__hand{color:var(--plime)}
#product.pis .tabs--nudge .tab[aria-selected="false"]{animation:none}
#product.pis .tabs--nudge:not(.tabs--used) #tab-c{animation:pisPing 1.8s ease-out infinite}

/* white app screen inside the frame */
#product.pis .panel{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);background:#fff;border-radius:14px;overflow:hidden}
#product.pis .panel__main{padding:28px 30px 26px;border-right:1px solid var(--pl)}
#product.pis .panel__side{padding:28px 26px 26px;background:linear-gradient(180deg,rgba(230,244,236,.7),rgba(230,244,236,.25))}
#product.pis .panel h4{font-size:15.5px;font-weight:600;color:var(--pk);letter-spacing:-.005em}
#product.pis .panel .meta{font-size:12.5px;color:var(--pk3);margin:0}

/* KPI tiles */
#product.pis .kpis{gap:12px;margin-bottom:28px}
#product.pis .kpi{position:relative;border:1px solid var(--pl);border-radius:12px;padding:15px 16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 20px -16px rgba(0,0,0,.25);overflow:hidden}
#product.pis .kpi::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--pg)}
#product.pis .kpi:has(b.warn)::before{background:var(--pk3)}
#product.pis .kpi:has(b.bad)::before{background:var(--pk2)}
#product.pis .kpi span{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--pk3)}
#product.pis .kpi b{font-size:26px;font-weight:600;letter-spacing:-.015em;color:var(--pk);margin-top:4px}
#product.pis .kpi b:is(.warn,.bad){color:var(--pk)}
#product.pis .kpi b.good{color:var(--pg)}
#product.pis .chart{margin-top:14px}

/* table */
#product.pis .tbl{font-size:13.5px;margin-top:14px}
#product.pis .tbl th{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--pk3);padding:9px 8px;background:var(--ps);border-bottom:0}
#product.pis .tbl th:first-child{border-radius:8px 0 0 8px}
#product.pis .tbl th:last-child{border-radius:0 8px 8px 0}
#product.pis .tbl td{padding:12px 8px;border-bottom:1px solid var(--pl);color:var(--pk2)}
#product.pis .tbl td:first-child{color:var(--pk);font-weight:600}
#product.pis .tbl tbody tr{transition:background .15s ease}
#product.pis .tbl tbody tr:hover{background:rgba(230,244,236,.5)}
#product.pis .tbl tbody tr:last-child td{border-bottom:0}
#product.pis .bar{height:6px;width:88px;background:var(--ps);box-shadow:inset 0 0 0 1px var(--pl)}
#product.pis .bar i[style*="coral"]{background:var(--pk2)!important}
#product.pis .bar i[style*="amber"]{background:var(--pk3)!important}
#product.pis .bar i[style*="lime"]{background:var(--pg)!important}

/* actions feed: timeline */
#product.pis .feed{position:relative;margin-top:18px;gap:10px}
#product.pis .feed li{position:relative;margin-left:18px;padding:13px 14px;border:1px solid var(--pl);border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);font-size:13px;line-height:1.5;color:var(--pk2);transition:transform .15s ease,box-shadow .15s ease}
#product.pis .feed li:hover{transform:translateX(2px);box-shadow:0 10px 20px -14px rgba(0,0,0,.3)}
#product.pis .feed li::before{content:"";position:absolute;left:-19px;top:17px;width:9px;height:9px;border-radius:50%;background:#fff;border:2px solid var(--pg)}
#product.pis .feed li:not(:last-child)::after{content:"";position:absolute;left:-14px;top:30px;bottom:-12px;width:1px;background:rgba(31,154,85,.3)}
#product.pis .feed li b{font-size:14px;font-weight:600;color:var(--pk);margin-bottom:2px}
#product.pis .pill{margin-top:8px;padding:3px 10px;border-radius:6px;font-size:11.5px;font-weight:500;letter-spacing:0;border:1px solid transparent}
#product.pis .pill--ok{background:var(--pm);color:var(--pg2);border-color:rgba(31,154,85,.2)}
#product.pis .pill:is(.pill--warn,.pill--bad){background:var(--ps);color:var(--pk);border-color:var(--pl2)}

/* real screens row */
#product.pis .shots{margin-top:44px}
#product.pis .shots .logos__label{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--pk);margin-bottom:14px}
#product.pis .shots figure{border:1px solid var(--pl);border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
#product.pis .shots figure:hover{border-color:var(--pg);transform:translateY(-3px);box-shadow:0 18px 30px -20px rgba(7,41,37,.45)}
#product.pis .shots figcaption{font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--pk2);padding:11px 14px;border-top:1px solid var(--pl)}

@media (max-width:860px){
  #product.pis .screen{padding:0 6px 6px;border-radius:18px}
  #product.pis .tabs{gap:6px;padding:8px 4px 14px}
  #product.pis .tab{padding:8px 12px 8px 10px;font-size:13px;gap:7px;border-radius:10px}
  #product.pis .tab::before{width:15px;height:15px}
  #product.pis .tabs__hint,#product.pis .tabs--used .tabs__hint{order:-1;width:100%;margin:0 0 4px;justify-content:center;font-size:12px}
  #product.pis .tabs:not(.tabs--used) #tab-c::after{bottom:-10px;right:-4px}
  #product.pis .panel{grid-template-columns:1fr}
  #product.pis .panel__main{border-right:0;border-bottom:1px solid var(--pl);padding:20px 16px}
  #product.pis .panel__side{padding:20px 16px}
}
@media (max-width:520px){
  #product.pis .kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #product.pis .kpi{padding:12px 10px}
  #product.pis .kpi b{font-size:19px}
}
@media (prefers-reduced-motion:reduce){#product.pis .tab,#product.pis .tab::after,#product.pis .screen__bar::after{animation:none!important}}

/* Home "On the plant floor": the two photo cards scroll smoothly to the next section (#spine) on click */
.floor .ph__link{display:block;height:100%;color:inherit;text-decoration:none;cursor:pointer;border-radius:inherit}
.floor .ph:has(.ph__link){transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
.floor .ph:has(.ph__link):hover{transform:translateY(-4px);box-shadow:0 22px 44px -18px rgba(7,41,37,.35)}
.floor .ph__link:focus-visible{outline:3px solid #1f9a55;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.floor .ph:has(.ph__link){transition:none}.floor .ph:has(.ph__link):hover{transform:none}}

/* Home "On the plant floor" story (2026-12-04): factory animation sticky on the left, the 4 "earned intelligence" level cards rise one by one on the right while scrolling */
.floor__grid.floor__grid--story{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;align-items:start;gap:40px}
.floor__grid--story .ph--big{grid-row:auto;position:sticky;top:calc(var(--chap-top,68px) + 72px);height:clamp(440px,64vh,600px)}
.floor__grid--story .aix-steps{display:flex;flex-direction:column;gap:clamp(56px,14vh,140px);margin:0;padding:8vh 0 14vh}
.floor__grid--story .aix-step{min-height:0!important;width:100%}
.floor__grid--story .aix-step:nth-child(4){box-shadow:0 26px 50px -22px rgba(7,41,37,.55)}
.flr-js .aix-step{opacity:0;transform:translateY(48px) scale(.98);transition:opacity .7s ease,transform .9s cubic-bezier(.16,1,.3,1)}
.flr-js .aix-step.is-in{opacity:1;transform:none}
@media (max-width:900px){.floor__grid.floor__grid--story{grid-template-columns:1fr;gap:20px}.floor__grid--story .ph--big{position:relative;top:auto;height:auto}.floor__grid--story .aix-steps{gap:14px;padding:0}}
@media (prefers-reduced-motion:reduce){.flr-js .aix-step{opacity:1;transform:none;transition:none}}
/* the moved level cards keep their original look: same colour tokens + heading font as the #ai section (.aix in home-ai.css) */
.floor__grid--story{--g1:#072925;--g2:#0c3a34;--ac:#1f9a55;--ac-hi:#178246;--glow:#56f774;--m50:#f2faf5;--m100:#e3f5ea;--m200:#c9eacf}
.floor__grid--story .aix-step h3{font-family:var(--f-head)}
