/* zainergy.com — company website (static). Brand: navy #073C5C, signal blue #1C7DEC, grey #A2A9AA. */
:root {
  --ink: #073c5c;        /* Zainergy navy: text, dark bands */
  --ink-2: #0c4e75;
  --signal: #1c7dec;     /* Zainergy blue: links, live values */
  --wire: #a2a9aa;       /* Zainergy grey: rules, single-line drawing */
  --paper: #eef3f6;      /* cool switchboard paper */
  --panel: #ffffff;
  --text: #13283a;
  --muted: #4f6476;
  --ok: #1f9d6b;
  --warn: #d98c0b;
  --over: #d6453d;
  --rule: #cfdbe3;
  --radius: 4px;
  --wrap: 1160px;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 12px; }

/* type scale (1.25) */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-stretch: 85%; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(238, 243, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--radius); font-size: .97rem; }
.nav a:hover { background: #dde8ef; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; padding: 12px 20px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: #fff; line-height: 1.2; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #dde8ef; color: var(--ink); }
.btn.signal { background: var(--signal); border-color: var(--signal); }
.btn.signal:hover { background: #1569c9; border-color: #1569c9; }
.on-dark .btn.ghost { color: #fff; border-color: #fff; }
.on-dark .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.nav .btn { padding: 9px 16px; margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--ink-2); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 7px 12px; font: inherit; font-weight: 700; color: var(--ink); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* sections */
section { padding: 88px 0; }
.band { background: var(--panel); border-block: 1px solid var(--rule); }
.on-dark { background: var(--ink); color: #dce8f0; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .muted, .on-dark .lead { color: #a9c3d4; }
.on-dark a { color: #8cc3ff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.cols { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 36px; } section { padding: 64px 0; } }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .two { grid-template-columns: 1fr 1.15fr; }
.hero h1 { max-width: 14ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 860px) { .hero .two { grid-template-columns: 1fr; } }

/* the demand meter (hero) */
.meter { background: var(--ink); color: #dce8f0; border-radius: 6px; padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px rgba(7, 60, 92, .6); }
.meter-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.meter-top h2 { font-size: 1rem; color: #fff; margin: 0; font-stretch: 100%; letter-spacing: 0; }
.meter-top span { font-size: .82rem; color: #a9c3d4; }
.meter-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 12px; }
.meter-read div { border-left: 3px solid #2a6a91; padding-left: 10px; }
.meter-read b { display: block; white-space: nowrap; font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-stretch: 80%; color: #fff; line-height: 1.1; }
.meter-read span { font-size: .78rem; color: #a9c3d4; }
.meter-read .is-over { border-color: var(--over); }
.meter-read .is-over b { color: #ff8a80; }
.meter-read .is-ok { border-color: var(--ok); }
.meter-read .is-ok b { color: #6fe0ae; }
.meter svg { width: 100%; height: auto; }
.meter .alertbar { display: flex; gap: 10px; align-items: center; font-size: .86rem; background: rgba(214, 69, 61, .16); border: 1px solid rgba(255, 138, 128, .4); color: #ffd2cd; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 10px; }
.meter .alertbar.calm { background: rgba(31, 157, 107, .14); border-color: rgba(111, 224, 174, .35); color: #c8f3df; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.meter-note { font-size: .76rem; color: #7f9fb4; margin: 6px 0 0; }

/* the chain: meters to app (a real sequence) */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.chain li { position: relative; padding: 0 24px 0 0; }
.chain li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 2px solid var(--signal); color: var(--signal); font-weight: 800; margin-bottom: 18px; position: relative; z-index: 1; }
.chain li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; border-top: 2px dashed var(--wire); }
.chain li:last-child::after { display: none; }
.chain h3 { font-size: 1.12rem; }
.chain p { font-size: .96rem; color: var(--muted); }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 24px; }
  .chain li { padding: 0 0 0 60px; }
  .chain li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .chain li::after { top: 40px; bottom: -24px; left: 19px; right: auto; border-top: 0; border-left: 2px dashed var(--wire); }
}

/* feature index (home): rows on a bus rail */
.rail { border-left: 2px solid var(--ink); margin-left: 6px; }
.rail-item { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--rule); }
.rail-item::before { content: ""; position: absolute; left: -7px; top: 27px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.band .rail-item::before { background: var(--panel); }
.rail-item h3 { margin: 0; font-size: 1.15rem; }
.rail-item p { margin: 0; color: var(--muted); }
.rail-item h3 a { color: var(--ink); text-decoration-color: var(--wire); }
.rail-item h3 a:hover { color: var(--signal); }
@media (max-width: 760px) { .rail-item { grid-template-columns: 1fr; gap: 6px; } }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #dde8ef; color: var(--ink); vertical-align: middle; margin-left: 6px; letter-spacing: 0; }
.tag.addon { background: #fff1d6; color: #8a5a00; }
.tag.soon { background: #ece6f7; color: #4b3a7a; }

/* features page: sticky index + detail */
.feature-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .95rem; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; font-stretch: 100%; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--ink); }
.toc li a.here { color: var(--ink); border-left-color: var(--signal); font-weight: 650; }
.toc .grp { padding: 14px 0 4px 14px; font-weight: 700; color: var(--ink); font-size: .85rem; }
@media (max-width: 960px) { .feature-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.feature { padding: 0 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--rule); scroll-margin-top: 92px; }
.feature:last-child { border-bottom: 0; }
.feature .where { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.feature ul { padding-left: 1.15em; margin: 0 0 1em; max-width: 70ch; }
.feature li { margin-bottom: 6px; }
.feature li::marker { color: var(--signal); }
.group-title { font-size: 1.05rem; color: var(--signal); margin: 0 0 28px; font-stretch: 100%; }

/* small figure panels */
.fig { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 18px; }
.on-dark .fig { background: var(--ink-2); border-color: #1d6590; }
.fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* lists of facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.facts b { display: block; font-size: 1.9rem; font-stretch: 78%; color: var(--ink); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .93rem; }
.on-dark .facts { border-color: #fff; }
.on-dark .facts div { border-color: #1d6590; }
.on-dark .facts b { color: #fff; }
.on-dark .facts span { color: #a9c3d4; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.on-dark .checks li { border-color: #1d6590; }

/* brands */
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.brands li { border: 1px solid var(--rule); background: var(--panel); padding: 6px 12px; border-radius: var(--radius); font-weight: 600; color: var(--ink); font-size: .93rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--panel); }
.plan { padding: 32px; }
.plan + .plan { border-left: 2px solid var(--ink); }
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan .term { font-size: 1.05rem; color: var(--signal); font-weight: 700; margin-bottom: 18px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 2px solid var(--ink); } }
table.compare { width: 100%; border-collapse: collapse; background: var(--panel); font-size: .96rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.yes { color: var(--ok); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }

/* phone frame */
.phone { width: 260px; margin-inline: auto; border-radius: 34px; background: #0a2e45; padding: 12px; box-shadow: 0 30px 60px -30px rgba(7, 60, 92, .7); }
.phone-screen { border-radius: 24px; background: #0e3a55; overflow: hidden; color: #dce8f0; font-size: .78rem; }
.phone-alert { background: var(--over); color: #fff; padding: 9px 12px; font-weight: 600; }
.phone-body { padding: 14px; display: grid; gap: 10px; }
.kpi { background: #124764; border-radius: 6px; padding: 10px 12px; }
.kpi span { color: #a9c3d4; display: block; }
.kpi b { color: #fff; white-space: nowrap; font-size: 1.08rem; font-stretch: 80%; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* contact */
form.contact { display: grid; gap: 16px; }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #9fb4c2; border-radius: var(--radius); background: #fff; color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: 2px solid rgba(28, 125, 236, .25); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid var(--ok); background: #e3f5ec; margin-bottom: 20px; }
.notice.err { border-color: var(--over); background: #fbe7e5; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-list b { display: block; color: var(--ink); }

/* page head */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }

/* cta band */
.cta { padding: 72px 0; }
.cta .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 22ch; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-foot { background: #052c44; color: #a9c3d4; padding: 56px 0 32px; font-size: .94rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: .98rem; color: #fff; margin-bottom: 12px; font-stretch: 100%; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #dce8f0; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot img { height: 34px; width: auto; margin-bottom: 14px; }
.site-foot .base { grid-column: 1 / -1; border-top: 1px solid #1a4a68; padding-top: 20px; margin-top: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.two > *, .cols > *, .feature-layout > * { min-width: 0; }
@media (max-width: 480px) { .meter { padding: 16px 14px 12px; } .meter-read { gap: 8px; } .meter-read span { font-size: .72rem; } }

/* ---- v2: photos, benefits, problem vs solution, loop, industries, insights ---- */
.ico { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
figure { margin: 0; }
.photo { position: relative; overflow: hidden; background: linear-gradient(135deg, #0c4e75, #073c5c 60%, #052c44); border-radius: 6px; aspect-ratio: 16 / 9; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(5, 44, 68, .9)); color: #fff; font-weight: 650; font-size: .95rem; }

/* hero with a photo behind (inner pages) */
.photo-hero { position: relative; color: #dce8f0; background: #073c5c; overflow: hidden; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 60, 92, .97) 0%, rgba(7, 60, 92, .82) 45%, rgba(7, 60, 92, .35) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; padding: 84px 0 76px; }
.photo-hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.photo-hero .lead { color: #c3d7e4; }
.photo-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.photo-hero .btn.ghost { color: #fff; border-color: #fff; }
.photo-hero .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 26px 0 0; font-weight: 600; color: #fff; }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.hero-points .ico { width: 20px; height: 20px; color: #6fb6ff; }

/* home: strip of the hero photo under the meter */
.hero-photo { margin-top: 0; }
.hero-photo .photo { aspect-ratio: 21 / 6; border-radius: 6px; }

/* benefits: a row of six, divided by rules (not cards) */
.benefits { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); }
.benefits > div { padding: 22px 18px 10px 0; }
.benefits > div + div { border-left: 1px solid var(--rule); padding-left: 18px; }
.benefits .ico { color: var(--signal); width: 34px; height: 34px; margin-bottom: 12px; }
.benefits h3 { font-size: 1.02rem; margin-bottom: 6px; }
.benefits p { font-size: .9rem; color: var(--muted); margin: 0; }
.on-dark .benefits { border-color: #fff; }
.on-dark .benefits > div + div { border-color: #1d6590; }
.on-dark .benefits .ico { color: #6fb6ff; }
.on-dark .benefits p { color: #a9c3d4; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); } .benefits > div:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr 1fr; } .benefits > div:nth-child(odd) { border-left: 0; padding-left: 0; } .benefits > div:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 18px; } }

/* problem vs solution: paired rows */
.pvs { border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--panel); }
.pvs-head, .pvs-row { display: grid; grid-template-columns: 1fr 1fr; }
.pvs-head div { padding: 14px 22px; font-weight: 800; font-stretch: 90%; font-size: 1.1rem; }
.pvs-head div:first-child { background: #fbe7e5; color: #8f2a23; }
.pvs-head div:last-child { background: var(--ink); color: #fff; }
.pvs-row > div { padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--rule); }
.pvs-row > div + div { border-left: 2px solid var(--ink); }
.pvs-row h3 { font-size: 1.02rem; margin: 0 0 4px; }
.pvs-row p { margin: 0; font-size: .93rem; color: var(--muted); }
.pvs-row > div:first-child .ico { color: var(--over); }
.pvs-row > div:last-child .ico { color: var(--ok); }
@media (max-width: 760px) { .pvs-head { display: none; } .pvs-row { grid-template-columns: 1fr; } .pvs-row > div + div { border-left: 0; border-top: 1px dashed var(--rule); background: #f5f9fb; } .pvs-row > div:first-child { border-top: 2px solid var(--ink); } }

/* the loop: monitor, analyse, alert, act, save (a real sequence) */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: loop; }
.loop li { position: relative; padding-right: 18px; }
.loop .ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: #e2eef6; color: var(--signal); margin-bottom: 14px; position: relative; z-index: 1; }
.loop li::after { content: ""; position: absolute; top: 23px; left: 52px; right: 6px; border-top: 2px solid var(--wire); }
.loop li:last-child::after { display: none; }
.loop h3 { font-size: 1.05rem; margin-bottom: 4px; }
.loop h3::before { counter-increment: loop; content: counter(loop) ". "; color: var(--signal); }
.loop p { font-size: .92rem; color: var(--muted); margin: 0; }
.on-dark .loop .ico { background: #124764; color: #6fb6ff; }
.on-dark .loop li::after { border-color: #2a6a91; }
.on-dark .loop p { color: #a9c3d4; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr; gap: 18px; } .loop li { display: grid; grid-template-columns: 46px 1fr; gap: 0 16px; padding: 0; } .loop .ico { grid-row: span 2; margin: 0; } .loop li::after { top: 46px; bottom: -18px; left: 22px; right: auto; border-top: 0; border-left: 2px solid var(--wire); } }

/* industries grid: photo tiles */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind-grid a { text-decoration: none; color: inherit; display: block; }
.ind-grid .photo { aspect-ratio: 4 / 3; }
.ind-grid a:hover figcaption { text-decoration: underline; }
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr; } }

/* small icon chips (processes, sectors) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 18px; }
.chips li { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border: 1px solid var(--rule); border-radius: 99px; background: var(--panel); font-size: .9rem; font-weight: 600; color: var(--ink); }
.chips .ico { width: 18px; height: 18px; color: var(--signal); }
.on-dark .chips li { background: #0c4e75; border-color: #1d6590; color: #fff; }
.on-dark .chips .ico { color: #6fb6ff; }

/* industry sections */
.industry { padding: 72px 0; border-top: 1px solid var(--rule); scroll-margin-top: 70px; }
.industry .two { align-items: start; }
.industry.flip .two > :first-child { order: 2; }
@media (max-width: 860px) { .industry.flip .two > :first-child { order: 0; } }

/* mistakes list */
.mistakes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.mistakes li { padding: 18px 0 18px 40px; position: relative; border-top: 1px solid var(--rule); }
.mistakes li::before { content: ""; position: absolute; left: 0; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: #fbe7e5; }
.mistakes li::after { content: "×"; position: absolute; left: 0; top: 20px; width: 24px; line-height: 24px; text-align: center; color: var(--over); font-weight: 800; }
.mistakes h3 { font-size: 1rem; margin-bottom: 4px; }
.mistakes p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .mistakes { grid-template-columns: 1fr; } }

/* carbon band */
.co2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 2px solid #fff; margin-top: 28px; }
.co2 div { padding: 16px 20px 0 0; }
.co2 b { display: block; font-size: 1.5rem; font-stretch: 78%; color: #fff; }
.co2 span { color: #a9c3d4; font-size: .92rem; }
@media (max-width: 600px) { .co2 { grid-template-columns: 1fr; } }

/* insights */
.article { padding: 56px 0; border-top: 1px solid var(--rule); scroll-margin-top: 70px; }
.article .two { align-items: start; gap: 48px; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-top: 1px solid var(--rule); }
.article-list a { display: block; padding: 14px 0; font-weight: 650; color: var(--ink); text-decoration: none; }
.article-list a:hover { color: var(--signal); }
.article-list span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.buzz { font-size: 1.05rem; font-weight: 700; color: var(--signal); font-stretch: 90%; margin-bottom: 10px; }
.photo-hero .chips li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.photo-hero .chips li:hover { background: rgba(255, 255, 255, .2); }

/* meters page */
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg-row button { font: inherit; font-weight: 650; font-size: .93rem; padding: 8px 14px; border-radius: 99px; border: 1.5px solid #9fb4c2; background: var(--panel); color: var(--ink); cursor: pointer; }
.seg-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-row button span { font-weight: 400; opacity: .75; margin-left: 4px; }
.brand-groups { columns: 3 300px; column-gap: 40px; }
.brand-group { break-inside: avoid; padding: 16px 0 18px; border-top: 2px solid var(--ink); margin-bottom: 8px; }
.brand-group h2 { font-size: 1.2rem; margin: 0 0 8px; font-stretch: 90%; }
.brand-group ul { list-style: none; margin: 0; padding: 0; }
.brand-group li { padding: 6px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.brand-group li span { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.tag.tested { background: #e3f5ec; color: #146c49; margin-left: 6px; }
.brand-group[hidden], .brand-group li[hidden] { display: none; }

/* ===================== v4: clean light software theme ===================== */
:root { --paper: #ffffff; --tint: #f3f7fa; --tint-2: #e8f1f8; --radius: 10px; --shadow: 0 1px 2px rgba(7,60,92,.06), 0 10px 30px -12px rgba(7,60,92,.18); --rule: #dfe7ee; }
body { background: #fff; }
h1, h2, h3, h4 { font-stretch: 100%; letter-spacing: -.02em; }
h1 { font-weight: 750; }
h2 { font-weight: 700; }
.band { background: var(--tint); border: 0; }
section { padding: 96px 0; }
.btn { border-radius: 8px; padding: 13px 22px; }
.btn.signal { box-shadow: 0 6px 16px -6px rgba(28,125,236,.6); }
.lead { color: #4f6476; }

/* header with drop-down menus */
.site-head { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.site-head .wrap { min-height: 74px; }
.nav { gap: 2px; }
.nav > a, .dd > button { color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .97rem; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .6; }
.nav > a:hover, .dd > button:hover, .dd.open > button { background: var(--tint); }
.nav > a[aria-current="page"], .dd.here > button { color: var(--signal); box-shadow: none; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 30; }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 901px) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; } .dd-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } }
.dd-menu a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.dd-menu a:hover { background: var(--tint); }
.dd-menu a .ico { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: var(--tint-2); color: var(--signal); }
.dd-menu b { font-weight: 650; font-size: .95rem; }
.dd-menu small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.nav .btn { margin-left: 6px; padding: 10px 16px; }
.nav .btn.ghost { color: var(--ink); }
.nav .btn.ghost:hover { color: var(--ink); background: var(--tint); }
@media (max-width: 900px) {
  .nav { top: 74px; background: #fff; max-height: calc(100vh - 74px); overflow: auto; }
  .dd > button { width: 100%; justify-content: space-between; padding: 12px; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .nav .btn { margin: 8px 0 0; }
}

/* hero, software style */
.sw-hero { padding: 72px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); overflow: hidden; }
.sw-hero .two { grid-template-columns: 1fr 1.1fr; gap: 48px; }
.sw-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 15ch; }
.sw-hero .lead { font-size: 1.18rem; }
.sw-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sw-hero .hero-points { color: var(--ink); }
.sw-hero .hero-points .ico { color: var(--signal); }
@media (max-width: 960px) { .sw-hero .two { grid-template-columns: 1fr; } }
.eyebrow-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--rule); font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.eyebrow-tag b { background: var(--signal); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: .78rem; }

/* app screen mock-ups */
.screen { background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(7,60,92,.45), 0 2px 6px rgba(7,60,92,.06); overflow: hidden; font-size: 13px; color: var(--text); }
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f8; border-bottom: 1px solid var(--rule); }
.scr-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dde4; }
.scr-bar b { margin-left: 12px; font-weight: 500; font-size: 12px; color: #6b7f90; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 3px 12px; }
.scr-tabs { display: flex; gap: 2px; padding: 8px 12px 0; background: #073c5c; overflow: hidden; white-space: nowrap; }
.scr-tabs span { color: #a9c3d4; padding: 7px 10px 9px; font-size: 12px; font-weight: 600; border-radius: 6px 6px 0 0; }
.scr-tabs span.on { background: #f6f9fb; color: var(--ink); }
.scr-body { padding: 14px; background: #f6f9fb; display: grid; gap: 10px; }
.scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scr-kpis div { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 9px 10px; }
.scr-kpis span { display: block; color: #6b7f90; font-size: 11px; line-height: 1.3; }
.scr-kpis b { display: block; font-size: 17px; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.scr-kpis em { font-style: normal; font-size: 11px; font-weight: 700; }
.scr-kpis .good, .scr-table .good { color: #1f9d6b; } .scr-kpis .bad, .scr-table .bad { color: #d6453d; } .scr-kpis .warn { color: #c27c00; } .scr-kpis .up { color: #6b7f90; }
.scr-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
.scr-card h4 { font-size: 12px; margin: 0 0 6px; color: var(--ink); letter-spacing: 0; }
.scr-chart { width: 100%; height: auto; }
.scr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scr-alert { border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 12px; }
.scr-alert.ok { background: #e3f5ec; color: #146c49; } .scr-alert.bad { background: #fbe7e5; color: #a12d25; }
.scr-donut { display: flex; align-items: center; gap: 14px; } .scr-donut svg { width: 88px; flex: none; }
.scr-donut ul { list-style: none; margin: 0; padding: 0; font-size: 12px; } .scr-donut li { display: flex; align-items: center; gap: 6px; } .scr-donut i { width: 9px; height: 9px; border-radius: 2px; }
.scr-big { font-size: 22px; font-weight: 750; color: var(--ink); margin: 4px 0 0; } .scr-note { font-size: 12px; color: #6b7f90; margin: 0; }
.scr-table { width: 100%; border-collapse: collapse; font-size: 12px; } .scr-table td, .scr-table th { padding: 4px 0; border-bottom: 1px solid #edf2f6; text-align: left; } .scr-table td:last-child, .scr-table th:last-child { text-align: right; font-weight: 700; }
.screen figcaption { font-size: 11px; color: #8a9aa8; padding: 6px 14px 8px; background: #f6f9fb; text-align: right; }
@media (max-width: 560px) { .scr-kpis { grid-template-columns: 1fr 1fr; } .scr-row { grid-template-columns: 1fr; } .scr-tabs span:nth-child(n+4) { display: none; } }

/* why choose: cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 26px 24px; box-shadow: 0 1px 2px rgba(7,60,92,.04); }
.band .card { box-shadow: var(--shadow); border-color: transparent; }
.card > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--tint-2); color: var(--signal); margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 650; text-decoration: none; }
.card .tag { margin: 0 0 10px; }
@media (max-width: 1000px) { .cards, .cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.three { grid-template-columns: 1fr; } }

/* how it works: steps with screens */
.steps-x { display: grid; gap: 80px; counter-reset: sx; }
.step-x { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.step-x:nth-child(even) > :first-child { order: 2; }
.step-x .num { counter-increment: sx; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--signal); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step-x .num::before { content: counter(sx); }
.step-x h3 { font-size: 1.6rem; }
@media (max-width: 900px) { .step-x { grid-template-columns: 1fr; gap: 28px; } .step-x:nth-child(even) > :first-child { order: 0; } }

/* metrics band */
.metrics { background: var(--ink); color: #fff; padding: 64px 0; }
.metrics .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metrics b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; }
.metrics span { color: #a9c3d4; }
@media (max-width: 760px) { .metrics .wrap { grid-template-columns: 1fr 1fr; } }

/* compatible devices wall */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-wall span { display: grid; place-items: center; text-align: center; height: 64px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font-weight: 750; color: #5b6f80; letter-spacing: -.01em; font-size: .98rem; padding: 0 8px; }
@media (max-width: 860px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }

/* three plans */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(7,60,92,.04); position: relative; }
.tier.pop { border: 2px solid var(--signal); box-shadow: var(--shadow); }
.tier .badge { position: absolute; top: -13px; left: 28px; background: var(--signal); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.tier h3 { font-size: 1.5rem; margin-bottom: 2px; }
.tier .term { color: var(--signal); font-weight: 700; margin-bottom: 6px; }
.tier .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.tier .checks { flex: 1; }
.tier .btn { justify-content: center; margin-top: 18px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--signal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* modules (platform page) */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px; text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.module:hover { border-color: var(--signal); }
.module .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--tint-2); color: var(--signal); margin-bottom: 12px; }
.module h3 { font-size: 1.05rem; margin-bottom: 6px; } .module p { font-size: .92rem; color: var(--muted); margin: 0; }
.module .tag { float: right; margin: 0; }
@media (max-width: 1000px) { .modules { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* restyle older parts for the light theme */
.page-head { padding: 72px 0 48px; background: linear-gradient(180deg, #fff, var(--tint)); }
.page-head h1 { letter-spacing: -.02em; }
.fig, .pvs, .plans, .table-wrap { border-radius: 12px; }
.fig { border-color: var(--rule); }
.photo { border-radius: 12px; }
.benefits { border-top: 0; gap: 16px; }
.benefits > div, .benefits > div + div { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px 18px; }
.on-dark .benefits > div { background: #0c4e75; }
.pvs { border: 1px solid var(--rule); box-shadow: var(--shadow); }
.pvs-row > div + div { border-left: 1px solid var(--rule); }
.rail { border-left-color: var(--signal); }
.facts { border-top: 0; gap: 16px; }
.facts div { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.on-dark .facts div { background: #0c4e75; }
.cta { background: linear-gradient(120deg, #073c5c, #0c4e75); color: #dce8f0; }
.cta h2 { color: #fff; }
.cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.feature { border-bottom-color: var(--rule); }
.brand-group { border-top: 0; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.ind-grid .photo figcaption { font-size: 1.02rem; }
.site-foot { background: #052c44; }

/* industry 4.0 page */
.i40-stack { display: grid; gap: 10px; }
.i40-layer { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 20px; }
.i40-layer b { color: var(--signal); font-size: .95rem; }
.i40-layer span { color: var(--muted); font-size: .95rem; }
.i40-layer:nth-child(1) { border-left: 5px solid #073c5c; } .i40-layer:nth-child(2) { border-left: 5px solid #0c4e75; } .i40-layer:nth-child(3) { border-left: 5px solid #1c7dec; } .i40-layer:nth-child(4) { border-left: 5px solid #5aa6f5; } .i40-layer:nth-child(5) { border-left: 5px solid #1f9d6b; }
@media (max-width: 600px) { .i40-layer { grid-template-columns: 1fr; gap: 4px; } }
.vs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.vs-table th, .vs-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.vs-table thead th { background: var(--ink); color: #fff; }
.vs-table td:first-child { font-weight: 650; color: var(--ink); width: 24%; }
.phone { width: 280px; }
.kpi-row .kpi b { font-size: .98rem; }
.kpi { min-width: 0; }

/* ===================== v5: motion, as on the EMS sign-in page ===================== */
@keyframes ems-flow { to { stroke-dashoffset: -120; } }
@keyframes ems-node { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ems-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes si-run { to { stroke-dashoffset: -100; } }
@keyframes si-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes si-slide { to { transform: translateX(-360px); } }
@keyframes bar-up { from { transform: scaleY(0); } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin-y { to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31,157,107,.55); } 70% { box-shadow: 0 0 0 7px rgba(31,157,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,107,0); } }
@keyframes live-bad { 0% { box-shadow: 0 0 0 0 rgba(214,69,61,.55); } 70% { box-shadow: 0 0 0 7px rgba(214,69,61,0); } 100% { box-shadow: 0 0 0 0 rgba(214,69,61,0); } }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fill-up { from { height: 0; } }

/* hero background: the sign-in page's single-line diagram, faint grid and drifting glows */
.sw-hero { position: relative; isolation: isolate; }
.sw-hero .si-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; }
.sw-hero::before, .sw-hero::after { content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(64px); pointer-events: none; animation: ems-drift 14s ease-in-out infinite; }
.sw-hero::before { left: -12rem; top: -14rem; background: rgba(34,211,238,.18); }
.sw-hero::after { right: -8rem; bottom: -16rem; background: rgba(28,125,236,.16); animation-delay: -7s; }
.si-dot { fill: #073c5c; opacity: .10; }
.si-line { fill: none; stroke: #7f95a6; stroke-width: 2; opacity: .35; }
.si-bus { stroke: #073c5c; stroke-width: 6; stroke-linecap: round; opacity: .22; }
.si-brk { fill: none; stroke: #7f95a6; stroke-width: 2.4; opacity: .4; }
.si-meter { fill: #fff; stroke: #1c7dec; stroke-width: 1.5; opacity: .75; }
.si-node { fill: #1c7dec; }
.si-sun { fill: none; stroke: #f5b301; stroke-width: 2; opacity: .7; }
.si-sun-ray { stroke: #f5b301; stroke-width: 2; stroke-linecap: round; opacity: .6; }
.si-flow { stroke: #1c7dec; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 46; opacity: .8; animation: si-run 2.4s linear infinite; }
.si-flow-h { stroke: #f0a020; stroke-dasharray: 6 60; animation-duration: 3.2s; }
.si-blink { animation: si-blink 3s ease-in-out infinite; }
.si-wave { fill: none; stroke-width: 2.5; opacity: .22; }
.si-a { stroke: #d6453d; } .si-b { stroke: #f0a020; } .si-c { stroke: #1c7dec; }
.si-waves { animation: si-slide 9s linear infinite; }

/* screens come alive when they scroll into view (html.js is set by site.js) */
.screen .flow { stroke-dasharray: 14 106; animation: ems-flow 3.2s linear infinite; opacity: .95; }
.screen .node { animation: ems-node 2.6s ease-in-out infinite; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; margin-right: 8px; vertical-align: 1px; animation: live 1.8s ease-out infinite; }
.scr-alert.bad .live-dot { background: #d6453d; animation-name: live-bad; }
.scr-alert { transition: background-color .4s, color .4s; }
html.js .screen .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
html.js .screen.in .grow { transform: none; animation: bar-up .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 35ms); }
html.js .screen .seg, html.js .screen .draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
html.js .screen.in .seg { animation: draw 1s ease-out forwards; animation-delay: calc(.2s + var(--i, 0) * .35s); }
html.js .screen.in .draw { animation: draw 1.6s ease-out forwards; }
html.js .screen .pop { opacity: 0; }
html.js .screen.in .pop { opacity: 1; animation: pop .5s ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }
.tick { transition: color .3s; } .tick.bump { color: var(--signal); }
.scr-seg { display: flex; gap: 6px; align-items: center; } .scr-seg span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--rule); color: var(--ink); } .scr-seg span.on { background: var(--ink); color: #fff; border-color: var(--ink); } .scr-seg em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--signal); }
.scr-table .warn { color: #c27c00; }
.hbar { display: grid; grid-template-columns: 70px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; margin: 6px 0; }
.hbar i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #1c7dec var(--w), #e8eef3 var(--w)); }
.hbar b { text-align: right; color: var(--ink); }
.tank { position: relative; height: 120px; width: 90px; border: 2px solid #073c5c; border-radius: 10px 10px 14px 14px; margin: 6px auto; overflow: hidden; background: #f1f6fa; }
.tank .water { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl); background: linear-gradient(180deg, #5fb7ff, #1c7dec); }
html.js .screen.in .tank .water { animation: fill-up 1.6s ease-out both; }
.tank b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 3px rgba(7,60,92,.6); }
.scr-card.ai h4 { display: flex; align-items: center; gap: 6px; } .spark { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(#1c7dec, #5fd3f3, #7a5af5, #1c7dec); animation: ems-node 2s infinite; }
.typer { min-height: 6.5em; font-size: 13px; line-height: 1.55; color: var(--text); margin: 0; }
.typer::after { content: ""; display: inline-block; width: 7px; height: 14px; background: var(--signal); margin-left: 2px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
.voice { display: flex; gap: 4px; align-items: center; height: 36px; } .voice i { width: 5px; height: 100%; border-radius: 3px; background: var(--signal); transform-origin: center; animation: wave 1s ease-in-out infinite; }
.voice i:nth-child(2) { animation-delay: -.2s; } .voice i:nth-child(3) { animation-delay: -.5s; } .voice i:nth-child(4) { animation-delay: -.1s; } .voice i:nth-child(5) { animation-delay: -.7s; } .voice i:nth-child(6) { animation-delay: -.3s; } .voice i:nth-child(7) { animation-delay: -.6s; }
.scr-alert.pulse { animation: ems-node 2.4s ease-in-out infinite; }

/* building in 3D: a tower that turns, floors coloured by load as in the app's Building tab */
.scr-row.bld { grid-template-columns: 1.1fr 1fr; }
.bld-stage { position: relative; display: grid; place-items: center; min-height: 290px; background: radial-gradient(circle at 50% 70%, #e8f1f8, #fff 70%); perspective: 900px; overflow: hidden; }
.tower { position: relative; width: 110px; height: 230px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(0); animation: spin-y 18s linear infinite; }
.fl { position: absolute; left: 0; bottom: calc(var(--z) * 24px); width: 110px; height: 22px; transform-style: preserve-3d; }
.fl i { position: absolute; display: block; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.fl .f1, .fl .f2, .fl .f3, .fl .f4 { width: 110px; height: 22px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 14px); }
.fl .f1 { transform: translateZ(55px); } .fl .f2 { transform: rotateY(90deg) translateZ(55px); filter: brightness(.85); } .fl .f3 { transform: rotateY(180deg) translateZ(55px); filter: brightness(.75); } .fl .f4 { transform: rotateY(-90deg) translateZ(55px); filter: brightness(.9); }
.fl .top { width: 110px; height: 110px; top: -44px; transform: rotateX(90deg) translateZ(0); transform-origin: 50% 50%; filter: brightness(1.12); opacity: 0; }
.fl:last-child .top { opacity: 1; }
.bld-scale { position: absolute; bottom: 10px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b7f90; }
.bld-scale i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, hsl(225 80% 52%), hsl(160 80% 45%), hsl(60 85% 50%), hsl(0 80% 52%)); }
.bld-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12px; }
.bld-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #edf2f6; }
.bld-list li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.bld-list b { color: var(--ink); }
@media (max-width: 560px) { .scr-row.bld { grid-template-columns: 1fr; } }

/* platform page: a screen under every feature */
.feature .screen { margin-top: 22px; max-width: 820px; }
.feature .shot { margin-top: 22px; max-width: 820px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.feature .shot img { width: 100%; height: auto; display: block; }
.feature .shot figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px; background: #f6f9fb; }

@media (prefers-reduced-motion: reduce) {
  .tower { animation: none; transform: rotateX(-24deg) rotateY(-35deg); }
  html.js .screen .grow, html.js .screen .seg, html.js .screen .draw, html.js .screen .pop { transform: none; stroke-dashoffset: 0; opacity: 1; }
}
.sw-hero .si-art { opacity: .5; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.12) 42%, #000 75%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.12) 42%, #000 75%); }
