/* VeriAI Studio — light professional design system (dark console panels for product visuals) */
@font-face { font-family: "Inter"; src: url("../fonts/inter.260c81a4759b.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.b058178d7f30.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  /* Light, professional palette from the Veritronixs logo:
     deep-navy ink, logo blue for actions, logo green for success/accents */
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --panel: #ffffff;
  --panel-2: #f6f8fc;
  --line: #e3e9f1;
  --line-2: #cdd7e4;
  --text: #0f1f3a;
  --ink-2: #2b3a52;
  --muted: #4b5b73;
  --dim: #6b7a90;
  --brand: #0b5cc4;
  --brand-hover: #084a9e;
  --brand-soft: rgba(11, 92, 196, .08);
  --cyan: #1f8f4a;
  --cyan-soft: rgba(31, 143, 74, .09);
  --navy: #0d2c6b;
  --red: #c62828;
  --shadow: 0 1px 2px rgba(15, 31, 58, .05), 0 8px 24px -12px rgba(15, 31, 58, .12);
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1440px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #000; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { color: var(--muted); font-size: 1.12rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Eyebrow / mono labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); border-radius: 2px; box-shadow: 0 0 12px var(--brand); }
.eyebrow.cyan { color: var(--cyan); }
.eyebrow.cyan::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 34px; width: auto; flex: none; }
.foot-logo { width: 220px; max-width: 100%; height: auto; display: block; }
.about-logo { width: 100%; max-width: 420px; height: auto; display: block; margin-bottom: 20px; }
.h1-sm { font-size: clamp(2rem, 3.6vw, 2.8rem); text-wrap: balance; }
.receipt-logo { width: 220px; height: auto; display: block; margin-bottom: 12px; }
.brand small { font: 500 .68rem var(--mono); color: var(--dim); letter-spacing: .06em; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 6px; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 7px 9px; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; color: var(--muted); }
.nav-cta .hide-sm { display: none; }
@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
  .nav-cta .hide-sm { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 .95rem/1 var(--sans); padding: 12px 18px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-cyan { background: var(--cyan); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(198,40,40,.4); }
.btn-sm { padding: 8px 12px; font-size: .85rem; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 8px 12px; }
.linkish:hover { color: var(--text); }

/* Hero */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(31,143,74,.12), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 .accent { color: var(--brand); }
.hero .lead { max-width: 560px; font-size: 1.18rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { font: 400 .8rem/1.7 var(--mono); color: var(--dim); max-width: 560px; }
.trust b { color: var(--muted); font-weight: 500; }

/* Console visual */
.console { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font: 500 .75rem var(--mono); color: var(--dim); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.console-bar i:nth-child(1) { background: #ef4444aa; } .console-bar i:nth-child(2) { background: #5fcf3daa; } .console-bar i:nth-child(3) { background: #2bb5f0aa; }
.console-bar span { margin-left: auto; }
.console-body { padding: 18px; display: grid; gap: 14px; }
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stage { font: 500 .7rem var(--mono); padding: 5px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--dim); }
.stage.done { color: var(--cyan); border-color: rgba(31,143,74,.4); background: var(--cyan-soft); }
.stage.now { color: var(--brand); border-color: rgba(11,92,196,.5); background: var(--brand-soft); }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.readout { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.readout b { display: block; font: 600 1.25rem var(--mono); color: var(--text); }
.readout span { font: 500 .68rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.chart { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 16px; font: 500 .7rem var(--mono); color: var(--dim); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: relative; transition: border-color .15s ease;
}
.card:hover { border-color: var(--line-2); }
.card h3 { margin-bottom: 6px; }
.value-card .num { font: 600 .75rem var(--mono); color: var(--cyan); margin-bottom: 14px; display: block; }

.lab-card { display: flex; flex-direction: column; }
.lab-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lab-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.45rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; }
.lab-card .tagline { color: var(--muted); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .92rem; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.lab-avail { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 500 .74rem/1.5 var(--mono); color: var(--dim); }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--mono); padding: 5px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge-1 { color: #3c4a60; background: #eef2f8; border: 1px solid #cdd7e4; }
.badge-2 { color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(11,92,196,.35); }
.badge-3 { color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(31,143,74,.35); }
.badge-muted { color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2); }
.badge-lock { color: var(--dim); border: 1px solid var(--line-2); }

/* Plans */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; }
.plan.highlight { border-color: rgba(11,92,196,.55); box-shadow: 0 0 0 1px rgba(11,92,196,.18), 0 24px 60px -30px rgba(11,92,196,.35); }
.plan .ribbon { position: absolute; top: -11px; right: 20px; background: var(--brand); color: #ffffff; font: 700 .68rem/1 var(--mono); padding: 6px 9px; border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 3em; }
.plan .positioning { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--brand); padding-left: 12px; margin: 14px 0 18px; font-size: .95rem; }
.plan .price { font: 700 2.3rem/1 var(--mono); letter-spacing: -.03em; margin: 6px 0 4px; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .price-alt { font: 500 .8rem var(--mono); color: var(--dim); margin-bottom: 18px; min-height: 1.3em; }
.plan .ticks { flex: 1; }
.plan .ticks li.head { padding-left: 0; color: var(--brand); font-weight: 600; }
.plan .ticks li.head::before { display: none; }
.plan .best { font-size: .82rem; color: var(--dim); margin-top: 14px; }

.toggles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 .85rem var(--sans); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg .save { color: var(--cyan); font: 600 .7rem var(--mono); margin-left: 4px; }

.extras { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 760px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 20px; }
.extra h4 { font-size: 1rem; margin-bottom: 6px; }
.extra p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.compare thead th { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
.compare thead th:first-child { background: var(--bg-2); }
.compare thead th.hl { color: var(--brand); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--cyan); font-weight: 700; }
.compare td.no { color: var(--dim); }
.compare td.txt { font: 500 .82rem var(--mono); color: var(--ink-2); }
.compare td.hl { background: rgba(11,92,196,.04); }

/* Steps / audience */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 700 .85rem var(--mono); color: var(--brand); margin-bottom: 14px; }
.who { display: grid; gap: 14px; }
@media (min-width: 760px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .who { grid-template-columns: repeat(5, 1fr); } }
.who .card { padding: 20px; }
.who h3 { font-size: 1rem; }
.who p { color: var(--muted); font-size: .9rem; margin: 0; }

.diff { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diff-row { display: grid; gap: 6px 24px; padding: 22px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.diff-row:last-child { border-bottom: 0; }
@media (min-width: 760px) { .diff-row { grid-template-columns: 300px 1fr; } }
.diff-row h3 { margin: 0; font-size: 1.02rem; color: var(--text); }
.diff-row p { margin: 0; color: var(--muted); }

/* Testimonials */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--text); }
.quote figcaption { font: 500 .8rem var(--mono); color: var(--dim); }
.quote figcaption b { color: var(--muted); display: block; font-weight: 600; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.1rem var(--mono); color: var(--brand); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.creds li { background: var(--panel); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: .93rem; }
.creds li span:first-child { font: 500 .75rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.creds li span:last-child { text-align: right; }

/* CTA band */
.cta-band { padding: 80px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(11,92,196,.05)); text-align: center; }
.cta-band .sub { font: 500 .9rem var(--mono); color: var(--muted); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-grid h4 { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font: 400 .78rem var(--mono); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.copyright .cr-note { flex-basis: 100%; }

/* Forms */
.auth { padding: 64px 0 88px; }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.9rem; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font: 400 1rem var(--sans);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.field.check label { margin: 0; font-weight: 400; }
.help { font-size: .8rem; color: var(--dim); margin-top: 5px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--red); font-size: .85rem; }
.errorlist.nonfield { background: rgba(198,40,40,.08); border: 1px solid rgba(198,40,40,.3); border-radius: 8px; padding: 10px 12px; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(198,40,40,.6); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.field-hp { position: absolute; left: -10000px; }
.form-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--muted); }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

/* Messages */
.messages { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 8px; }
.msg { border-radius: 8px; padding: 12px 16px; font-size: .93rem; border: 1px solid var(--line-2); background: var(--panel); }
.msg.success { border-color: rgba(31,143,74,.35); background: #effaf3; color: #14532d; }
.msg.error { border-color: rgba(198,40,40,.3); background: #fdf2f2; color: #8a1c1c; }
.msg.warning { border-color: rgba(180,120,0,.35); background: #fff8e6; color: #7a4b00; }

/* Dashboard */
.dash { padding: 48px 0 88px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: 2rem; margin: 0; }
.status-panel { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
@media (min-width: 760px) { .status-panel { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.status-panel > div { background: var(--panel); padding: 18px 20px; }
.status-panel .k { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 6px; }
.status-panel .v { font: 600 1.15rem var(--mono); }
.banner { border: 1px solid rgba(11,92,196,.4); background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.banner p { margin: 0; }
.lab-tile { display: flex; flex-direction: column; gap: 10px; }
.lab-tile.locked { opacity: .62; }
.lab-tile .actions { margin-top: auto; display: flex; gap: 8px; }
table.simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.simple th, table.simple td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.simple th { font: 600 .72rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

/* Lab viewer */
.lab-shell { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.lab-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .88rem; flex-wrap: wrap; }
.lab-bar .spacer { flex: 1; }
.lab-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Checkout / receipt */
.pay-options { display: grid; gap: 16px; }
@media (min-width: 680px) { .pay-options { grid-template-columns: 1fr 1fr; } }
.pay-option h3 { display: flex; justify-content: space-between; align-items: baseline; }
.pay-option .amt { font: 700 1.6rem var(--mono); }
.summary { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.summary li { background: var(--panel); padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.summary li span:first-child { color: var(--muted); }
.receipt { background: #fff; color: #111; border-radius: 10px; padding: 36px; max-width: 720px; margin: 0 auto; }
.receipt h1 { font-size: 1.6rem; color: #111; }
.receipt table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.receipt td, .receipt th { border-bottom: 1px solid #ddd; padding: 10px 6px; text-align: left; }
.receipt .muted { color: #555; }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; padding: 0; }
}

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.notice { border: 1px dashed rgba(11,92,196,.5); background: var(--brand-soft); padding: 12px 16px; border-radius: 8px; font-size: .88rem; color: #0d3b7a; margin-bottom: 28px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.error-page { padding: 120px 0; text-align: center; }
.error-page .code { font: 700 4.5rem var(--mono); color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.compare th.feat { font-weight: 500; }
.lg-cyan { background: var(--cyan); } .lg-brand { background: var(--brand); }
.lab-icon.centered { margin: 0 auto 16px; }
.justify-center { justify-content: center; }
.coming { min-height: 100vh; display: grid; place-items: center; background: #0a0e13; color: #e7edf4; font-family: system-ui, sans-serif; text-align: center; padding: 24px; }
.strike { text-decoration: line-through; color: var(--dim); }
.save-text { color: var(--brand); }
.summary li.total { font-weight: 700; }
.summary li.total span:first-child { color: var(--text); }
.plan .mrp { display: flex; align-items: center; gap: 10px; min-height: 1.6em; font: 500 .95rem var(--mono); }
.badge-off { color: #ffffff; background: var(--brand); border: 1px solid var(--brand); }
.h3 { font-size: 1.2rem; margin: 0 0 4px; }
.dl-card { display: flex; flex-direction: column; gap: 16px; }
.dl-head { display: flex; gap: 14px; align-items: center; }
.os-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.5rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; flex: none; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0; }
.kv div { background: var(--bg-2); padding: 10px 12px; min-width: 0; }
.kv dt { font: 500 .68rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 2px 0 0; font-size: .92rem; }
.sha { word-break: break-all; margin: 0; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.keybox code { font: 600 1.1rem var(--mono); letter-spacing: .04em; color: var(--brand); flex: 1; min-width: 0; word-break: break-all; }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.lic-grid { display: grid; gap: 18px; margin-bottom: 32px; }
@media (min-width: 900px) { .lic-grid { grid-template-columns: 1.2fr 1fr; } }
.qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 12px; margin: 14px auto; width: fit-content; max-width: 100%; }
.qr img { display: block; width: 220px; height: 220px; max-width: 100%; }
.steps-list { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.backup-codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 1.02rem; }
.backup-codes li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; text-align: center; }
[hidden] { display: none !important; }
.plan-price { display: grid; gap: 4px; margin-bottom: 4px; }
.plan-price .btn { margin-top: 12px; }
.seg { flex-wrap: wrap; }
.period-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.period-option { display: block; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; color: var(--text); background: var(--bg-2); }
.period-option:hover { border-color: var(--cyan); text-decoration: none; }
.period-option.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.period-option b { display: block; font-size: .92rem; }
.period-option span { font: 500 .8rem var(--mono); color: var(--muted); }
.coupon-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.coupon-row .field { flex: 1; min-width: 160px; margin: 0; }
.security-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.security-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 6px 0; flex-wrap: wrap; }
.security-list li span:last-child { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font: 500 .62rem var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.tagline-line { font: 600 .82rem var(--mono); color: var(--cyan); letter-spacing: .06em; margin: -6px 0 18px; }

/* ---------- Hero: agentic AI workflow animation ---------- */
.agent-graph { padding: 8px; }
.agent-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.agent-graph .arrowhead { fill: var(--line-2); }
.agent-graph .edge { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 4 5; animation: vx-flow 1.6s linear infinite; transition: stroke .3s ease; }
.agent-graph .edge.feedback { stroke-dasharray: 2 5; }
.agent-graph .edge.on { stroke: var(--cyan); stroke-width: 2; animation-duration: .6s; }
.agent-graph .edge.feedback.on { stroke: var(--brand); }
.agent-graph .node rect { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.2; transition: stroke .3s ease, fill .3s ease; }
.agent-graph .node.master rect { stroke: rgba(43,181,240,.5); }
.agent-graph .node text { text-anchor: middle; font-family: var(--mono); fill: var(--muted); }
.agent-graph .n-title { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; fill: var(--text); }
.agent-graph .n-sub { font-size: 8px; fill: var(--dim); }
.agent-graph .node.on rect { stroke: var(--brand); stroke-width: 2; fill: rgba(95,207,61,.08); }
.agent-graph .node.on .n-title { fill: var(--brand); }
.agent-graph .node.done rect { stroke: rgba(43,181,240,.55); }
.agent-graph .node.on { animation: vx-glow 1.2s ease-in-out infinite; }
.agent-graph .pulse { fill: var(--brand); opacity: 0; }
.agent-graph .pulse.run { opacity: 1; }
.agent-log { list-style: none; margin: 0; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; font: 500 .74rem/1.65 var(--mono); color: #b9c8da; min-height: 6.4em; display: grid; align-content: end; overflow: hidden; }
.agent-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: vx-line .35s ease-out; }
.agent-log li:last-child { color: var(--text); }
.agent-log .t { color: var(--dim); margin-right: 6px; }
.agent-console .stage.on { color: var(--brand); border-color: rgba(95,207,61,.5); background: var(--brand-soft); }
.agent-console .stage.done { color: var(--cyan); border-color: rgba(43,181,240,.4); background: var(--cyan-soft); }
@keyframes vx-flow { to { stroke-dashoffset: -18; } }
@keyframes vx-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(95,207,61,0)); } 50% { filter: drop-shadow(0 0 6px rgba(95,207,61,.55)); } }
@keyframes vx-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .agent-graph .edge, .agent-graph .node.on, .agent-log li { animation: none !important; }
}
.about-company { max-width: 760px; }
address { font-style: normal; }
.foot-address { line-height: 1.6; max-width: 260px; }

/* ---------- Light theme refinements ---------- */
.btn-ghost { background: var(--panel); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-cyan:hover { background: #187a3e; }
.card { box-shadow: var(--shadow); }
.plan.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 50px -28px rgba(11,92,196,.45); }
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero::after { background: radial-gradient(closest-side, rgba(11,92,196,.10), transparent 70%); }
.hero .accent { background: linear-gradient(90deg, #0b5cc4 0%, #1f8f4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::before { box-shadow: none; }
.tagline-line { color: var(--cyan); }
.site-header { box-shadow: 0 1px 0 var(--line); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-2); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field select, .field textarea { background: #ffffff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.compare thead th, .compare thead th:first-child { background: var(--bg-2); }
.compare td.yes { color: var(--cyan); }
.compare thead th.hl { color: var(--brand); }
.extra { background: var(--panel); }
.cta-band { background: linear-gradient(180deg, var(--bg) 0%, #e9f0fb 100%); }
.status-panel > div { background: var(--panel); }
.keybox code { color: var(--brand); }
.badge-off { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.save-text { color: var(--cyan); }
.ribbon { color: #fff; }
.plan .ticks li.head { color: var(--brand); }
.notice { color: #0d3b7a; }
.about-logo { filter: none; }

/* Footer stays dark */
.site-footer {
  --bg: #07101c; --bg-2: #0a1524; --panel: #0e1a2c; --panel-2: #122238;
  --line: #1c2c45; --line-2: #283d5e; --text: #e8eef6; --ink-2: #c9d4e0; --muted: #8fa1ba; --dim: #6b7f9a;
  --brand: #5fcf3d; --brand-soft: rgba(95,207,61,.12); --cyan: #2bb5f0; --cyan-soft: rgba(43,181,240,.12);
  color: var(--text);
}
.console { background: var(--panel); box-shadow: 0 30px 70px -30px rgba(15,31,58,.45); }
.console .stage.done { color: var(--cyan); border-color: rgba(43,181,240,.4); background: var(--cyan-soft); }
.console .stage.now { color: var(--brand); border-color: rgba(95,207,61,.5); background: var(--brand-soft); }
.site-footer { background: #0b1830; border-top: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #ffffff; }
.site-footer .copyright { border-top-color: var(--line); }

/* Lab catalogue — categories */
.topics { list-style: none; padding: 0; margin: 2px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.topics li { font: 500 .72rem/1.3 var(--mono); color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(11,92,196,.18); padding: 4px 8px; border-radius: 999px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 40px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.cat-nav a:hover { border-color: var(--brand); color: var(--brand); }
.cat-nav b { font: 600 .72rem var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; color: var(--muted); }
.cat-block { margin-bottom: 56px; scroll-margin-top: 84px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.cat-head h2, .cat-head h3 { margin: 4px 0 6px; }
.cat-count { font: 600 .74rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }
.cat-overview { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cat-overview { grid-template-columns: repeat(2, 1fr); } }
.cat-card .cat-head { margin-bottom: 8px; }
.lab-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.lab-list a { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lab-list a:hover { background: var(--bg-2); }
.lab-list .li-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.lab-list b { display: block; font-size: .95rem; font-weight: 600; }
.lab-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.lab-card { scroll-margin-top: 84px; }
.dash-cat { margin: 26px 0 0; font-size: 1.05rem; }
.lab-list .li-topics { color: var(--brand); font: 500 .74rem/1.5 var(--mono); margin: 2px 0 4px; }
.lab-list .li-desc { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.lab-list a { padding: 12px 10px; }
.lab-list li + li { border-top: 1px solid var(--line); }
.lab-top { margin-bottom: 12px; }

/* ---------- Hero: light, illustrated agentic AI workflow ---------- */
.ax { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,31,58,.06), 0 30px 70px -28px rgba(11,60,140,.35); }
.ax-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: linear-gradient(180deg, #fbfcfe, #f1f5fa); border-bottom: 1px solid var(--line); }
.ax-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.ax-bar i:nth-child(1) { background: #ff5f57; } .ax-bar i:nth-child(2) { background: #febc2e; } .ax-bar i:nth-child(3) { background: #28c840; }
.ax-title { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem var(--sans); color: var(--ink-2); }
.ax-title img { width: 22px; height: auto; }
.ax-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem var(--mono); color: #1a8a44; text-transform: uppercase; letter-spacing: .08em; background: rgba(31,143,74,.08); border: 1px solid rgba(31,143,74,.25); padding: 3px 8px; border-radius: 999px; }
.ax-live b { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: ax-blink 1.4s ease-in-out infinite; }
.ax-body { padding: 14px 16px 16px; display: grid; gap: 12px; background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%); }

.ax-stages { display: flex; gap: 0; background: #f1f5fa; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ax-stages span { flex: 1; text-align: center; font: 600 .7rem var(--sans); color: var(--dim); padding: 5px 2px; border-radius: 999px; transition: background .3s ease, color .3s ease; white-space: nowrap; }
.ax-stages span.done { color: #1a8a44; }
.ax-stages span.on { background: linear-gradient(90deg, #0b5cc4, #2f7de1); color: #fff; box-shadow: 0 4px 10px -4px rgba(11,92,196,.6); }

.ax-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.ax-edge { fill: none; stroke: #c9d5e6; stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; animation: vx-flow 1.4s linear infinite; transition: stroke .3s ease; }
.ax-edge.on { stroke: #0b5cc4; stroke-width: 2.4; animation-duration: .5s; }
.ax-edge.back.on { stroke: #1f8f4a; }
.ax-ambient circle { fill: #0b5cc4; opacity: .28; }
.ax-pulse { fill: #0b5cc4; stroke: #fff; stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 4px rgba(11,92,196,.7)); }
.ax-pulse.run { opacity: 1; }
.ax-card { fill: #ffffff; stroke: #e1e8f2; stroke-width: 1.2; transition: stroke .3s ease; }
.ax-t { text-anchor: middle; font-size: 11px; font-weight: 700; fill: #0f1f3a; }
.ax-s { text-anchor: middle; font-size: 8.5px; fill: #6b7a90; }
.ax-t.l, .ax-s.l { text-anchor: start; }
.ax-track { fill: #edf1f7; }
.ax-fill { fill: #0b5cc4; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.ax-node { transition: opacity .3s ease; }
.ax-node.on .ax-card { stroke: #0b5cc4; stroke-width: 2; }
.ax-node.on .ax-fill { animation: ax-progress 1.6s ease-out forwards; }
.ax-node.done .ax-fill { transform: scaleX(1); fill: #1f8f4a; }
.ax-node.done .ax-card { stroke: rgba(31,143,74,.45); }
.ax-node.on > g:nth-of-type(1) { animation: ax-bob 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ax-node.master .ax-halo { opacity: 0; transition: opacity .4s ease; }
.ax-node.master.on .ax-halo { opacity: 1; animation: ax-halo 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ax-eyes { transform-box: fill-box; transform-origin: center; animation: ax-eyes 3.6s ease-in-out infinite; }
.ax-antenna { animation: ax-blink 1.2s ease-in-out infinite; }
.ax-think circle { fill: #b9c6d8; }
.ax-node.master.on .ax-think circle { fill: #0b5cc4; animation: ax-dots 1s ease-in-out infinite; }
.ax-node.master.on .ax-think circle:nth-child(2) { animation-delay: .15s; }
.ax-node.master.on .ax-think circle:nth-child(3) { animation-delay: .3s; }
.ax-gear { transform-box: fill-box; transform-origin: center; }
.ax-node.on .ax-gear { animation: ax-spin 2.4s linear infinite; }
.ax-check { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease; }
.ax-node.on .ax-check, .ax-node.done .ax-check { stroke-dashoffset: 0; }

.ax-bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.ax-panel { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(15,31,58,.04); }
.ax-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 .72rem var(--sans); color: var(--ink-2); }
.ax-ph b { font: 600 .68rem var(--mono); color: #1a8a44; background: rgba(31,143,74,.08); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ax-chart svg { display: block; width: 100%; height: 64px; margin: 6px 0 4px; }
.ax-actual-area { fill: rgba(255,170,60,.16); opacity: 0; transition: opacity .6s ease; }
.ax-actual { fill: none; stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ax-pred { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-dasharray: .03 .02; opacity: 0; transition: opacity .4s ease, transform .8s ease; transform: translateY(5px); }
.ax-chart.c1 .ax-actual { animation: ax-draw 1.2s ease-out forwards; }
.ax-chart.c1 .ax-actual-area { opacity: 1; }
.ax-chart.c2 .ax-pred { opacity: 1; }
.ax-chart.c3 .ax-pred { transform: translateY(1px); stroke-dasharray: none; }
.ax-legend { display: flex; gap: 14px; font: 500 .66rem var(--sans); color: var(--dim); }
.ax-legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.ax-legend .a::before { background: #f59e0b; } .ax-legend .p::before { background: #0b5cc4; }
.ax-stats { display: grid; gap: 6px; align-content: center; }
.ax-stats div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.ax-stats div:last-child { border-bottom: 0; padding-bottom: 0; }
.ax-stats span { font: 500 .72rem var(--sans); color: var(--dim); }
.ax-stats b { font: 700 1rem var(--mono); color: var(--text); }
.ax-log { list-style: none; margin: 0; padding: 8px 12px; background: #f4f7fb; border: 1px solid var(--line); border-radius: 10px; font: 500 .72rem/1.7 var(--mono); color: var(--muted); min-height: 5.3em; display: grid; align-content: end; overflow: hidden; }
.ax-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: vx-line .35s ease-out; }
.ax-log li:last-child { color: var(--text); }
.ax-log .t { color: #0b5cc4; margin-right: 6px; }
.ax.delivered .ax-ph b { color: #fff; background: #1f8f4a; }
@media (max-width: 520px) { .ax-bottom { grid-template-columns: 1fr; } .ax-stats { grid-template-columns: repeat(3, 1fr); } .ax-stats div { flex-direction: column; border-bottom: 0; padding-bottom: 0; } .ax-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .ax-stages span { font-size: .62rem; } .ax-title { font-size: .72rem; } }

@keyframes ax-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ax-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ax-halo { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes ax-eyes { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes ax-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ax-dots { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes ax-spin { to { transform: rotate(360deg); } }
@keyframes ax-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ax *, .ax *::before { animation: none !important; transition: none !important; }
  .ax-ambient { display: none; }
  .ax-chart .ax-actual { stroke-dashoffset: 0; }
}

/* Lab icons (illustrated SVG tiles) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lab-svg { display: block; width: 100%; height: 100%; }
.lab-icon:has(.lab-svg), .li-icon:has(.lab-svg) { background: none; border: 0; padding: 0; }
.lab-icon .lab-svg, .li-icon .lab-svg { filter: drop-shadow(0 4px 8px rgba(15,31,58,.18)); transition: transform .2s ease; }
.lab-icon.lg { width: 58px; height: 58px; }
.lab-card:hover .lab-svg, .lab-list a:hover .lab-svg, .lab-tile:hover .lab-svg { transform: translateY(-2px) scale(1.04); }
.lab-list .li-icon { width: 44px; height: 44px; }
.lab-tile .lab-icon { width: 48px; height: 48px; }
.lab-tile.locked .lab-svg { filter: grayscale(.6) drop-shadow(0 4px 8px rgba(15,31,58,.12)); }

/* ---------- Home: lab collections (professional layout) ---------- */
.labs-sec { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.labs-intro { display: grid; gap: 28px; align-items: end; margin-bottom: 36px; }
@media (min-width: 960px) { .labs-intro { grid-template-columns: 1.2fr 1fr; } }
.labs-intro h2 { margin: 10px 0 10px; }
.labs-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.labs-stats div { padding: 14px 16px; border-left: 1px solid var(--line); }
.labs-stats div:first-child { border-left: 0; }
.labs-stats dt { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.labs-stats dd { margin: 4px 0 0; font: 700 1.6rem/1.1 var(--sans); color: var(--navy); letter-spacing: -.02em; }
@media (max-width: 560px) { .labs-stats { grid-template-columns: repeat(2, 1fr); } .labs-stats div:nth-child(3) { border-left: 0; } .labs-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.lab-tablist { display: none; }
.lab-tabs.is-tabs .lab-tablist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px 12px 0 0; border-bottom: 0; overflow: hidden; }
.lab-tab { appearance: none; border: 0; border-left: 1px solid var(--line); background: var(--bg-2); padding: 14px 16px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font: inherit; color: var(--muted); position: relative; transition: background .15s ease, color .15s ease; }
.lab-tab:first-child { border-left: 0; }
.lab-tab:hover { background: #e7edf6; color: var(--text); }
.lab-tab[aria-selected="true"] { background: var(--panel); color: var(--text); }
.lab-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); }
.lab-tab.tab-learning[aria-selected="true"]::after { background: #0b5cc4; }
.lab-tab.tab-simulation[aria-selected="true"]::after { background: #3a2fa8; }
.lab-tab.tab-addon[aria-selected="true"]::after { background: #0b6e6a; }
.lab-tab.tab-twin[aria-selected="true"]::after { background: #13254f; }
.lab-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tab-num { font: 600 .7rem var(--mono); color: var(--dim); }
.tab-label { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.tab-count { font: 600 .7rem var(--mono); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.lab-tab[aria-selected="true"] .tab-count { background: var(--brand-soft); border-color: rgba(11,92,196,.25); color: var(--brand); }
@media (max-width: 760px) {
  .lab-tabs.is-tabs .lab-tablist { grid-template-columns: repeat(2, 1fr); }
  .lab-tab:nth-child(3) { border-left: 0; }
  .tab-num { display: none; } .lab-tab { grid-template-columns: 1fr auto; padding: 12px; } .tab-label { font-size: .84rem; }
  .lab-tab:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.lab-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.lab-tabs.is-tabs .lab-panel { border-radius: 0 0 12px 12px; margin-bottom: 0; }
.lab-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.lab-panel-head h3 { margin: 0 0 4px; font-size: 1.25rem; }
.lab-panel-head p { max-width: 640px; }
@media (max-width: 640px) { .lab-panel { padding: 18px; } .lab-panel-head { flex-direction: column; align-items: flex-start; } }
.lab-tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lab-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lab-tiles { grid-template-columns: repeat(3, 1fr); } }
.lab-tile-x { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.lab-tile-x:hover { border-color: rgba(11,92,196,.4); box-shadow: 0 10px 24px -14px rgba(11,60,140,.35); transform: translateY(-1px); }
.ltx-icon { width: 46px; height: 46px; flex: none; }
.ltx-icon .lab-svg { filter: drop-shadow(0 3px 6px rgba(15,31,58,.16)); }
.ltx-body { display: grid; gap: 3px; min-width: 0; }
.ltx-name { font-weight: 650; font-size: .98rem; line-height: 1.3; }
.ltx-topics { font: 500 .7rem/1.45 var(--mono); color: var(--brand); }
.ltx-desc { color: var(--muted); font-size: .84rem; line-height: 1.55; margin-top: 3px; }
@media (min-width: 760px) { .steps.steps-2 { grid-template-columns: repeat(2, 1fr); } }

/* Dashboard: cryptographic node-locked licence panel */
.nl-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 10px; margin: 22px 0; box-shadow: var(--shadow); }
.nl-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.nl-lock { width: 24px; height: 24px; fill: none; stroke: #c48a12; stroke-width: 2; stroke-linecap: round; }
.nl-lock rect { fill: #f6c84c; stroke: #b07a0c; }
.nl-lock circle { fill: #8a5a00; stroke: none; }
.nl-head { margin-bottom: 8px; }
.nl-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nl-row:last-child { border-bottom: 0; }
.nl-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.nl-row > div:first-child b { font-size: 1rem; }
.nl-row > div:first-child span { color: var(--muted); font-size: .9rem; }
.nl-val { display: flex; align-items: center; gap: 12px; flex: none; }
.nl-code { font: 700 1.05rem var(--mono); color: var(--brand); letter-spacing: .04em; }
.nl-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.nl-badge.ok { color: #1f8f4a; background: #ecfaf1; border: 1px solid #bfe8cf; }
.nl-badge.off { color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2); }
.nl-badge.bad { color: var(--red); background: #fdeeee; border: 1px solid #f3c4c4; }
.nl-keyrow { flex-direction: column; align-items: stretch; }
.nl-keybox { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }
.nl-keybox code { flex: 1; font: 500 .72rem/1.5 var(--mono); color: var(--ink-2); word-break: break-all; max-height: 4.6em; overflow: auto; }
.nl-inputs { display: flex; gap: 8px; flex: none; }
.nl-inputs input { font: 600 .92rem var(--mono); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; width: 230px; background: #fff; color: var(--text); text-transform: uppercase; }
.nl-inputs input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 720px) {
  .nl-card { padding: 20px 18px 6px; }
  .nl-row { flex-direction: column; align-items: flex-start; }
  .nl-inputs { width: 100%; } .nl-inputs input { flex: 1; width: auto; min-width: 0; }
}

/* ---------- Why choose: edge deployment + live data ---------- */
.why-sec { background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%); }
.why-top { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .why-top { grid-template-columns: 1fr 1.05fr; } }
.why-top h2 { margin: 10px 0 14px; }
.why-accent { background: linear-gradient(90deg, #0b5cc4, #1f8f4a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.why-points li { position: relative; padding-left: 30px; color: var(--ink-2); }
.why-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: #ecfaf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231f8f4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border: 1px solid #bfe8cf; }
.why-points b { color: var(--text); }
.edge-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 30px 60px -32px rgba(11,60,140,.35); }
.edge-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.eg-link { fill: none; stroke: #c9d5e6; stroke-width: 2; stroke-dasharray: 5 5; animation: vx-flow 1.2s linear infinite; }
.eg-link.strong { stroke: #1f8f4a; stroke-width: 2.6; }
.eg-flow circle { fill: #0b5cc4; } .eg-flow circle.g { fill: #1f8f4a; }
.eg-t { font-size: 10.5px; font-weight: 700; fill: #0f1f3a; }
.eg-s { font-size: 8px; fill: #6b7a90; font-family: var(--mono); letter-spacing: .03em; }
.eg-s.b { font-family: var(--sans); font-weight: 700; fill: #2b3a52; font-size: 9px; }
.eg-s.ok { fill: #1f8f4a; font-weight: 700; text-anchor: middle; font-size: 9px; }
.eg-t.c, .eg-s.c { text-anchor: middle; }
.eg-wave { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: eg-draw 2.6s ease-in-out infinite; }
.eg-wave2 { fill: none; stroke: #f59e0b; stroke-width: 1.6; opacity: .75; }
.eg-bars rect { fill: #c7d9f5; transform-box: fill-box; transform-origin: bottom; animation: eg-bar 1.8s ease-in-out infinite; }
.eg-bars rect:nth-child(2) { animation-delay: .2s; } .eg-bars rect:nth-child(3) { animation-delay: .4s; } .eg-bars rect:nth-child(4) { animation-delay: .6s; fill: #0b5cc4; }
.eg-btn { font-size: 9.5px; font-weight: 700; fill: #fff; text-anchor: middle; }
.eg-chip { font: 700 12px var(--mono); fill: #e8eef6; text-anchor: middle; }
.eg-chip.s { font-size: 7px; fill: #8fa1ba; letter-spacing: .12em; }
.eg-dev { font: 600 8.5px var(--mono); fill: #bfe8cf; }
.eg-dev.c { text-anchor: middle; fill: #a7f3c4; }
.eg-led { animation: ax-blink 1s ease-in-out infinite; }
.edge-cap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.edge-cap span { text-align: center; font: 600 .72rem var(--sans); color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 6px 4px; }
.edge-cap span:last-child { color: #1f8f4a; background: #ecfaf1; }
@keyframes eg-draw { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes eg-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }

.why-grid { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.why-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(11,60,140,.35); }
.why-card h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.why-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.why-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(15,31,58,.35); }
.why-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why-ico.i1 { background: linear-gradient(135deg, #4fd27e, #178a42); }
.why-ico.i2 { background: linear-gradient(135deg, #4c8dff, #0b4fb0); }
.why-ico.i3 { background: linear-gradient(135deg, #7480f5, #3a2fa8); }
.why-ico.i4 { background: linear-gradient(135deg, #4767a8, #13254f); }
@media (prefers-reduced-motion: reduce) { .eg-link, .eg-wave, .eg-bars rect, .eg-led { animation: none !important; } .eg-wave { stroke-dashoffset: 0; } .eg-flow { display: none; } }

/* Why choose: card animations */
.why-anim { display: block; width: 100%; height: 96px; margin-bottom: 4px; background: linear-gradient(180deg, #f7f9fd, #eef3fa); border: 1px solid var(--line); border-radius: 10px; padding: 0; font-family: var(--sans); }
.why-card h3 { margin-top: 16px; }
/* edge */
.wa-laptop { fill: #fff; stroke: #9db3d1; stroke-width: 2; }
.wa-base { fill: #9db3d1; }
.wa-line { fill: none; stroke: #0b5cc4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wa-wire { stroke: #c9d5e6; stroke-width: 2; stroke-dasharray: 4 4; fill: none; animation: vx-flow 1s linear infinite; }
.wa-pkt { fill: #1f8f4a; }
.wa-board { fill: #1d6b45; }
.wa-chip { fill: #18242f; stroke: #3a5a4a; }
.wa-pins path { stroke: #c9a227; stroke-width: 2; }
.wa-track { fill: #0c3a24; }
.wa-prog { fill: #5fe08a; transform-box: fill-box; transform-origin: left; animation: wa-fill 2.8s ease-in-out infinite; }
.wa-led { fill: #5fe08a; animation: ax-blink 1s ease-in-out infinite; }
/* live */
.wa-scope { fill: #0f1f3a; }
.wa-grid path { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.wa-scroll { animation: wa-scroll 3s linear infinite; }
.wa-sig { fill: none; stroke: #4fd27e; stroke-width: 2.2; }
.wa-sig2 { fill: none; stroke: #f5b544; stroke-width: 1.6; opacity: .8; }
.wa-pill { fill: rgba(95,224,138,.12); stroke: rgba(95,224,138,.4); }
.wa-pill-t { font: 700 8px var(--mono); fill: #a7f3c4; letter-spacing: .12em; }
/* quality */
.wa-ring { transform-box: fill-box; transform-origin: center; animation: ax-spin 8s linear infinite; }
.wa-ring-c { fill: none; stroke: #7480f5; stroke-width: 2.4; stroke-dasharray: 6 8; opacity: .55; }
.wa-shield { fill: #3a2fa8; }
.wa-tick { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wa-tick 3s ease-in-out infinite; }
.wa-checks rect { fill: #ecfaf1; stroke: #9fdcb7; }
.wa-checks path { fill: none; stroke: #1f8f4a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-checks text { font-size: 10px; font-weight: 600; fill: #2b3a52; }
.wa-checks g { opacity: 0; animation: wa-check 3s ease-out infinite; }
.wa-checks .c2 { animation-delay: .35s; } .wa-checks .c3 { animation-delay: .7s; }
/* twin */
.wa-stator { fill: #13254f; }
.wa-rotor { transform-box: fill-box; transform-origin: center; animation: ax-spin 1.6s linear infinite; }
.wa-rotor-c { fill: #4767a8; }
.wa-rotor path { stroke: #c7d6f2; stroke-width: 2.2; }
.wa-hub { fill: #e8eef6; }
.wa-gauge { fill: none; stroke: #dde5f0; stroke-width: 9; stroke-linecap: round; }
.wa-gauge-on { fill: none; stroke: #0b5cc4; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .35; animation: wa-gauge 3.2s ease-in-out infinite; }
.wa-needle { transform-box: view-box; transform-origin: 172px 76px; animation: wa-needle 3.2s ease-in-out infinite; }
.wa-needle path { stroke: #0f1f3a; stroke-width: 2.6; stroke-linecap: round; }
.wa-needle circle { fill: #0f1f3a; }
.wa-gt { font: 700 9px var(--mono); fill: #2b3a52; text-anchor: middle; }
/* diff row icons */
.diff-row h3 { display: flex; align-items: center; gap: 12px; }
.diff-ico { width: 34px; height: 34px; flex: none; padding: 5px; border-radius: 9px; background: var(--brand-soft); fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-off .d-wave { animation: ax-blink 1.6s ease-in-out infinite; }
.d-off circle { fill: var(--brand); stroke: none; }
.d-net circle { fill: #fff; } .d-net .n { fill: var(--brand); animation: wa-pulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.d-doc .l1, .d-doc .l2, .d-doc .l3 { stroke-dasharray: 10; stroke-dashoffset: 10; animation: wa-write 3s ease-in-out infinite; }
.d-doc .l2 { animation-delay: .4s; } .d-doc .l3 { animation-delay: .8s; }
/* scroll reveal (only when JavaScript is running) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@keyframes wa-fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes wa-scroll { to { transform: translateX(-160px); } }
@keyframes wa-tick { 0%, 15% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes wa-check { 0%, 20% { opacity: 0; transform: translateX(-6px); } 35%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wa-gauge { 0%, 100% { stroke-dashoffset: .55; } 50% { stroke-dashoffset: .15; } }
@keyframes wa-needle { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(45deg); } }
@keyframes wa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes wa-write { 0%, 10% { stroke-dashoffset: 10; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 10; } }
@media (prefers-reduced-motion: reduce) {
  .why-anim *, .diff-ico * { animation: none !important; }
  .wa-checks g { opacity: 1; } .wa-tick { stroke-dashoffset: 0; } .wa-prog { transform: none; }
  .d-doc path { stroke-dashoffset: 0 !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Lab icon animations (one per lab, gentle and looping) ---------- */
.lab-svg .la-pulse, .lab-svg .la-pops > *, .lab-svg .la-l1, .lab-svg .la-l2, .lab-svg .la-l3, .lab-svg .la-float,
.lab-svg .la-bars > *, .lab-svg .la-glow, .lab-svg .la-hum, .lab-svg .la-bounce, .lab-svg .la-left, .lab-svg .la-right,
.lab-svg .la-scan, .lab-svg .la-nudge, .lab-svg .la-drop, .lab-svg .la-charge { transform-box: fill-box; transform-origin: center; }
.lab-svg .la-pulse { animation: la-pulse 1.8s ease-in-out infinite; }
.lab-svg .la-pops > * { animation: la-pop 2.4s ease-in-out infinite; }
.lab-svg .la-pops > :nth-child(2) { animation-delay: .2s; } .lab-svg .la-pops > :nth-child(3) { animation-delay: .4s; }
.lab-svg .la-pops > :nth-child(4) { animation-delay: .6s; } .lab-svg .la-pops > :nth-child(5) { animation-delay: .8s; } .lab-svg .la-pops > :nth-child(6) { animation-delay: 1s; }
.lab-svg .la-twinkle > * { animation: la-twinkle 2.4s ease-in-out infinite; }
.lab-svg .la-twinkle > :nth-child(2n) { animation-delay: .6s; } .lab-svg .la-twinkle > :nth-child(3n) { animation-delay: 1.2s; }
.lab-svg .la-seq > * { animation: la-twinkle 1.6s ease-in-out infinite; } .lab-svg .la-seq > :nth-child(2) { animation-delay: .8s; }
.lab-svg .la-blink { animation: la-blink 1.4s steps(2, jump-none) infinite; }
.lab-svg .la-eyes { transform-box: fill-box; transform-origin: center; animation: la-eyes 3.2s ease-in-out infinite; }
.lab-svg .la-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-draw 3s ease-in-out infinite; }
.lab-svg .la-flow { animation: la-flow 1s linear infinite; }
.lab-svg .la-sway { transform-box: view-box; transform-origin: 24px 35px; animation: la-sway 3s ease-in-out infinite; }
.lab-svg .la-left { animation: la-left 2s ease-in-out infinite; } .lab-svg .la-right { animation: la-right 2s ease-in-out infinite; }
.lab-svg .la-arcs > * { animation: la-arc 1.8s ease-in-out infinite; } .lab-svg .la-arcs > :nth-child(2) { animation-delay: .3s; } .lab-svg .la-arcs > :nth-child(3) { animation-delay: .6s; }
.lab-svg .la-spin { transform-box: fill-box; transform-origin: center; animation: la-spin 3s linear infinite; }
.lab-svg .la-bars > * { transform-origin: bottom; animation: la-grow 2.2s ease-in-out infinite; }
.lab-svg .la-bars > :nth-child(2) { animation-delay: .25s; } .lab-svg .la-bars > :nth-child(3) { animation-delay: .5s; }
.lab-svg .la-l1 { animation: la-lift 2.6s ease-in-out infinite; } .lab-svg .la-l2 { animation: la-lift 2.6s ease-in-out .2s infinite; } .lab-svg .la-l3 { animation: la-lift 2.6s ease-in-out .4s infinite; }
.lab-svg .la-needle { transform-box: view-box; transform-origin: 24px 26px; animation: la-needle 3s ease-in-out infinite; }
.lab-svg .la-scan { animation: la-scan 3s ease-in-out infinite; }
.lab-svg .la-float { animation: la-float 2.6s ease-in-out infinite; }
.lab-svg .la-drop { animation: la-drop 2s ease-in infinite; }
.lab-svg .la-write > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 3.2s ease-in-out infinite; }
.lab-svg .la-write > :nth-child(2) { animation-delay: .35s; } .lab-svg .la-write > :nth-child(3) { animation-delay: .7s; }
.lab-svg .la-nudge { animation: la-nudge 1.4s ease-in-out infinite; }
.lab-svg .la-glow { animation: la-glow 2.4s ease-in-out infinite; }
.lab-svg .la-charge { transform-origin: left center; animation: la-charge 2.6s ease-in-out infinite; }
.lab-svg .la-rotor { transform-box: view-box; transform-origin: 24px 24px; animation: la-spin 2.4s linear infinite; }
.lab-svg .la-hum { animation: la-hum .35s linear infinite; }
.lab-svg .la-bounce { animation: la-bounce 1.2s ease-in-out infinite; }
.lab-svg .la-sun { transform-box: view-box; transform-origin: 34px 12px; animation: la-spin 10s linear infinite; }
.lab-svg .la-shine { stroke-dasharray: 4 30; animation: la-shine 2.8s ease-in-out infinite; }

@keyframes la-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes la-pop { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.35); } }
@keyframes la-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes la-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes la-eyes { 0%, 42%, 50%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.15); } }
@keyframes la-draw { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes la-flow { to { stroke-dashoffset: -10; } }
@keyframes la-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes la-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
@keyframes la-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@keyframes la-arc { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes la-spin { to { transform: rotate(360deg); } }
@keyframes la-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes la-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes la-needle { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(20deg); } }
@keyframes la-scan { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-6px, -6px); } 66% { transform: translate(-3px, 2px); } }
@keyframes la-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes la-drop { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: 1; } 85% { transform: translateY(4px); opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@keyframes la-write { 0% { stroke-dashoffset: 1; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes la-nudge { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
@keyframes la-glow { 0%, 100% { opacity: 1; filter: none; } 50% { opacity: .75; filter: drop-shadow(0 0 3px #fff); } }
@keyframes la-charge { 0% { transform: scaleX(.1); } 80%, 100% { transform: scaleX(1); } }
@keyframes la-hum { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(.4px, -.3px); } 75% { transform: translate(-.4px, .3px); } }
@keyframes la-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes la-shine { 0% { stroke-dashoffset: 4; } 100% { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) {
  .lab-svg * { animation: none !important; }
  .lab-svg .la-draw, .lab-svg .la-write > * { stroke-dashoffset: 0; }
}

/* ---------- Lab collection scenes (illustrated, animated) ---------- */
.lab-panel-hero { display: grid; gap: 28px; align-items: center; padding-bottom: 26px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 980px) { .lab-panel-hero { grid-template-columns: .9fr 1.1fr; } }
.lph-count { font: 600 .72rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.lph-text h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.why-points.sm { margin: 14px 0 20px; gap: 8px; font-size: .94rem; }
.scene { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 26px 50px -30px rgba(11,60,140,.35); }
.scene-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.scene-cap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.scene-cap span { text-align: center; font: 600 .74rem var(--sans); color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 6px 4px; }
.scene-cap span.end { color: #1f8f4a; background: #ecfaf1; }

.sc-link { fill: none; stroke: #c9d5e6; stroke-width: 2; stroke-dasharray: 5 5; animation: vx-flow 1.2s linear infinite; }
.sc-link.strong { stroke: #1f8f4a; stroke-width: 2.6; }
.sc-link.back { stroke: #a7dcbc; }
.sc-dots circle, .sc-sig circle, .sc-flow circle { fill: #0b5cc4; } .sc-dots circle.g { fill: #1f8f4a; }
.sc-card rect, .sc-card1, .sc-card-w, .sc-win { fill: #fff; stroke: #e1e8f2; }
.sc-bar { fill: #f3f6fb; }
.sc-panel { fill: #f6f9fd; stroke: #e6ecf4; }
.sc-t { font-size: 11px; font-weight: 700; fill: #0f1f3a; }
.sc-s { font-size: 8px; fill: #6b7a90; font-family: var(--mono); letter-spacing: .03em; }
.sc-s.b { font-family: var(--sans); font-weight: 700; fill: #2b3a52; font-size: 9px; }
.sc-s.ok { fill: #1f8f4a; font-weight: 700; font-size: 9px; }
.sc-s.r { text-anchor: end; } .sc-t.c, .sc-s.c { text-anchor: middle; }
.sc-ico { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-fill { fill: #0b5cc4; stroke: none; }
.sc-tick { stroke: #1f8f4a; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 2.6s ease-in-out infinite; }
.sc-wifi { animation: la-arc 1.6s ease-in-out infinite; } .sc-wifi.a2 { animation-delay: .3s; }
.sc-btn { font-size: 9.5px; font-weight: 700; fill: #fff; text-anchor: middle; }
.sc-chip { font: 700 12px var(--mono); fill: #e8eef6; text-anchor: middle; } .sc-chip.s { font-size: 7px; fill: #8fa1ba; letter-spacing: .12em; }
.sc-dev { font: 600 8.5px var(--mono); fill: #bfe8cf; } .sc-dev.c { text-anchor: middle; fill: #a7f3c4; }
.sc-led { fill: #5fe08a; animation: ax-blink 1s ease-in-out infinite; }
/* learning */
.sc-net path { stroke: #d3dcea; stroke-width: 1.4; }
.sc-nodes circle { fill: #fff; stroke: #0b5cc4; stroke-width: 2; }
.sc-out { fill: #1f8f4a; transform-box: fill-box; transform-origin: center; animation: la-pulse 1.2s ease-in-out infinite; }
.sc-loss { fill: none; stroke: #0b5cc4; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-draw 3.6s ease-in-out infinite; }
.sc-ring-bg { fill: none; stroke: #edf1f7; stroke-width: 6; }
.sc-ring { fill: none; stroke: #1f8f4a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sc-ring 3.6s ease-in-out infinite; }
.sc-ribbon { fill: #0b5cc4; }
.sc-medal { fill: #f6c84c; stroke: #d39b12; stroke-width: 1.5; }
.sc-medal-t { fill: none; stroke: #7a5200; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* simulation */
.sc-acc { fill: none; stroke: #1f8f4a; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-draw 3.4s ease-in-out infinite; }
.sc-shap rect { fill: #0b5cc4; transform-box: fill-box; transform-origin: left; animation: sc-bar 3s ease-in-out infinite; }
.sc-shap .b2 { fill: #3d7ee0; animation-delay: .2s; } .sc-shap .b3 { fill: #7aa6ea; animation-delay: .4s; } .sc-shap .b4 { fill: #b5ccf3; animation-delay: .6s; }
/* add-on */
.sc-papers rect { fill: #fff; stroke: #9db3d1; stroke-width: 1.4; animation: sc-paper 2.4s ease-in-out infinite; transform-box: fill-box; }
.sc-papers .p2 { animation-delay: .4s; } .sc-papers .p3 { animation-delay: .8s; }
.sc-funnel { fill: #eef3fa; stroke: #0b5cc4; stroke-width: 1.8; stroke-linejoin: round; }
.sc-drop { fill: #0b5cc4; animation: sc-drop 1.8s ease-in infinite; }
.sc-pill-ok { fill: #ecfaf1; stroke: #bfe8cf; }
.sc-page { fill: #fff; stroke: #e1e8f2; }
.sc-title { fill: #0f1f3a; opacity: .85; }
.sc-lines path { stroke: #c3cfdf; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 4s ease-in-out infinite; }
.sc-lines path:nth-child(2) { animation-delay: .25s; } .sc-lines path:nth-child(3) { animation-delay: .5s; } .sc-lines path:nth-child(4) { animation-delay: .75s; }
.sc-lines.l2 path { animation-delay: 1.2s; } .sc-lines.l2 path:nth-child(2) { animation-delay: 1.45s; } .sc-lines.l2 path:nth-child(3) { animation-delay: 1.7s; } .sc-lines.l2 path:nth-child(4) { animation-delay: 1.95s; }
.sc-fig { fill: #f6f9fd; stroke: #e6ecf4; }
.sc-figline { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 4s ease-in-out .6s infinite; }
.sc-badge { font: 700 9px var(--sans); fill: #fff; text-anchor: middle; }
.sc-exports > g { animation: sc-pop 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sc-exports .e2 { animation-delay: .3s; } .sc-exports .e3 { animation-delay: .6s; }
/* twin */
.sc-motor { fill: #4767a8; } .sc-fins { stroke: #c7d6f2; stroke-width: 1.6; } .sc-shaft { fill: #9db3d1; }
.sc-base { fill: none; stroke: #4767a8; stroke-width: 2.4; stroke-linejoin: round; }
.sc-batt { fill: none; stroke: #1f8f4a; stroke-width: 2.4; } .sc-batt-tip { fill: #1f8f4a; }
.sc-batt-fill { fill: #5fe08a; transform-box: fill-box; transform-origin: left; animation: sc-charge 3.2s ease-in-out infinite; }
.sc-stator { fill: #13254f; }
.sc-rotor { transform-box: view-box; transform-origin: 226px 112px; animation: la-spin 1.6s linear infinite; }
.sc-rotor-c { fill: #4767a8; } .sc-rotor path { stroke: #c7d6f2; stroke-width: 2.2; } .sc-hub { fill: #e8eef6; }
.sc-gauge { fill: none; stroke: #dde5f0; stroke-width: 8; stroke-linecap: round; }
.sc-gauge-on { fill: none; stroke: #0b5cc4; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .35; animation: wa-gauge 3.2s ease-in-out infinite; }
.sc-needle { transform-box: view-box; transform-origin: 308px 132px; animation: wa-needle 3.2s ease-in-out infinite; }
.sc-needle path { stroke: #0f1f3a; stroke-width: 2.4; stroke-linecap: round; } .sc-needle circle { fill: #0f1f3a; }
.sc-track { fill: #edf1f7; }
.sc-soc { fill: #1f8f4a; transform-box: fill-box; transform-origin: left; animation: sc-charge 3.2s ease-in-out infinite; }
.sc-temp { fill: none; stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-draw 3.6s ease-in-out infinite; }
.sc-busline { fill: none; stroke: #9db3d1; stroke-width: 2; }
.sc-bus circle { fill: #fff; stroke: #13254f; stroke-width: 2; }
.sc-flow circle { fill: #1f8f4a; }
.sc-sun { fill: #ffc940; stroke: #f59e0b; stroke-width: 1.8; stroke-linecap: round; transform-box: view-box; transform-origin: 482px 174px; animation: la-spin 10s linear infinite; }
.sc-pv { fill: #1c3f7a; stroke: #13254f; stroke-width: 1.6; stroke-linejoin: round; }
.sc-pv-l { stroke: #9db3d1; stroke-width: 1.2; }
.sc-shine { stroke: #fff; stroke-width: 3; stroke-opacity: .6; stroke-dasharray: 8 60; animation: sc-shine 2.6s ease-in-out infinite; }

@keyframes sc-ring { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes sc-bar { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.7); } }
@keyframes sc-paper { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes sc-drop { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 90% { transform: translateY(46px); opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }
@keyframes sc-pop { 0%, 10% { transform: scale(.94); opacity: .5; } 25%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(.94); opacity: .5; } }
@keyframes sc-charge { 0% { transform: scaleX(.25); } 70%, 100% { transform: scaleX(1); } }
@keyframes sc-shine { 0% { stroke-dashoffset: 8; } 100% { stroke-dashoffset: -60; } }
@media (prefers-reduced-motion: reduce) {
  .scene-svg * { animation: none !important; }
  .sc-loss, .sc-acc, .sc-temp, .sc-ring, .sc-lines path, .sc-figline, .sc-tick { stroke-dashoffset: 0; }
}

/* Digital twin scene — realistic model */
.tw-shadow { fill: #0f1f3a; opacity: .12; }
.tw-base { fill: #31476f; } .tw-bolt { fill: #c7d2e3; }
.tw-tbox { fill: #3a5288; stroke: #2b4277; } .tw-cable { fill: none; stroke: #2b3a52; stroke-width: 2.2; stroke-linecap: round; }
.tw-ribs path { stroke: #fff; stroke-opacity: .2; stroke-width: 1.4; }
.tw-plate { fill: #dfe7f2; stroke: #9aa8bc; stroke-width: .8; }
.tw-endcap { fill: #24396a; }
.tw-spin-mark { stroke: #6b7a90; stroke-width: 1.4; stroke-dasharray: 2 3; animation: tw-shaft .4s linear infinite; }
.tw-motor { animation: la-hum .3s linear infinite; }
.tw-sensor { fill: #0b5cc4; } .tw-sensor-ring { fill: none; stroke: #0b5cc4; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: tw-ping 1.6s ease-out infinite; }
.tw-pack-top { fill: #475569; } .tw-pack-side { fill: #0f172a; }
.tw-cell { fill: #0f172a; stroke: #64748b; stroke-width: .8; }
.tw-cell-fill { fill: #4ade80; transform-box: fill-box; transform-origin: bottom; animation: tw-cell 3.2s ease-in-out infinite; }
.tw-cell-fill.c1 { animation-delay: .2s; } .tw-cell-fill.c2 { animation-delay: .4s; } .tw-cell-fill.c3 { animation-delay: .6s; }
.tw-cell-fill.c4 { animation-delay: .8s; } .tw-cell-fill.c5 { animation-delay: 1s; }
.tw-balance { opacity: .5; animation: tw-sweep 3.2s ease-in-out infinite; }
.tw-sync { fill: #ecfaf1; stroke: #bfe8cf; } .tw-sync-t { font: 700 6.5px var(--mono); fill: #1f8f4a; letter-spacing: .08em; }
.tw-slots rect { fill: #c8a24a; opacity: .85; }
.tw-gap { fill: #0b1530; }
.tw-field { transform-box: view-box; transform-origin: 226px 116px; animation: la-spin 2s linear infinite; }
.tw-field path { fill: none; stroke: #ff9f43; stroke-width: 3; stroke-linecap: round; opacity: .55; }
.tw-rotor { transform-box: view-box; transform-origin: 226px 116px; animation: la-spin 2.2s linear infinite; }
.tw-bar { fill: #b98a2f; }
.tw-hub { fill: #e8eef6; stroke: #5e708c; stroke-width: 1; } .tw-key { fill: #5e708c; }
.tw-gauge-bg { fill: none; stroke: #e3e9f1; stroke-width: 6; stroke-linecap: round; }
.tw-gauge-on { fill: none; stroke: #0b5cc4; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .5; animation: wa-gauge 3.2s ease-in-out infinite; }
.tw-ticks line { stroke: #6b7a90; stroke-width: 1.2; }
.tw-gt { font: 600 6.5px var(--mono); fill: #6b7a90; text-anchor: middle; }
.tw-needle { transform-box: view-box; transform-origin: 306px 120px; animation: wa-needle 3.2s ease-in-out infinite; }
.tw-needle path { stroke: #d0315a; stroke-width: 2.2; stroke-linecap: round; } .tw-needle circle { fill: #0f1f3a; }
.tw-readout { fill: #0f1f3a; } .tw-readout-t { font: 700 8.5px var(--mono); fill: #a7f3c4; text-anchor: middle; }
.tw-segs rect { fill: #e3e9f1; }
.tw-seg { animation: tw-seg 3.2s ease-in-out infinite; }
.tw-seg.s0 { animation-delay: 0s; } .tw-seg.s1 { animation-delay: .12s; } .tw-seg.s2 { animation-delay: .24s; } .tw-seg.s3 { animation-delay: .36s; }
.tw-seg.s4 { animation-delay: .48s; } .tw-seg.s5 { animation-delay: .6s; } .tw-seg.s6 { animation-delay: .72s; } .tw-seg.s7 { animation-delay: .84s; }
.tw-seg.s8, .tw-seg.s9 { animation: none; fill: #e3e9f1; }
.tw-grid { stroke: #e6ecf4; stroke-width: 1; }
.tw-temp { fill: none; stroke: #f59e0b; stroke-width: 2; }
.tw-temp-area { fill: rgba(245,158,11,.12); }
.tw-temp-dot { fill: #fff; stroke: #f59e0b; stroke-width: 2; }
.tw-tower path { fill: none; stroke: #475569; stroke-width: 1.4; stroke-linejoin: round; }
.tw-wire { fill: none; stroke: #64748b; stroke-width: 1.2; }
.tw-house-b { fill: #f1f5fb; stroke: #9aa8bc; } .tw-roof { fill: none; stroke: #d0315a; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.tw-door { fill: #9aa8bc; } .tw-win { fill: #ffd25a; animation: la-twinkle 2.4s ease-in-out infinite; }
.tw-ground { stroke: #cbd5e1; stroke-width: 1.4; }
.tw-sunglow { transform-box: fill-box; transform-origin: center; animation: la-pulse 3s ease-in-out infinite; }
.tw-sun { fill: #ffc23d; stroke: #f59e0b; stroke-width: 1.2; }
.tw-rays { transform-box: view-box; transform-origin: 484px 150px; animation: la-spin 12s linear infinite; }
.tw-rays path { stroke: #f59e0b; stroke-width: 1.8; stroke-linecap: round; }
.tw-leg { stroke: #64748b; stroke-width: 2.4; stroke-linecap: round; }
.tw-pv { stroke: #cbd5e1; stroke-width: 2.4; stroke-linejoin: round; }
.tw-pvcells polygon { fill: #1e47a0; stroke: #4f7fd9; stroke-width: .5; }
.tw-pvshine { animation: tw-pvshine 3s ease-in-out infinite; }
@keyframes tw-shaft { to { stroke-dashoffset: -10; } }
@keyframes tw-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tw-cell { 0%, 100% { transform: scaleY(.62); } 50% { transform: scaleY(.95); } }
@keyframes tw-sweep { 0% { transform: translateX(-50px); } 100% { transform: translateX(100px); } }
@keyframes tw-seg { 0%, 10% { fill: #e3e9f1; } 25%, 100% { fill: #1f8f4a; } }
@keyframes tw-pvshine { 0% { transform: skewX(-12deg) translateX(0); } 100% { transform: skewX(-12deg) translateX(170px); } }

/* ---------- Hero: five apps running one after another ---------- */
@media (min-width: 1100px) { .hero-grid { grid-template-columns: .78fr 1.22fr; gap: 56px; } }
.hero { padding: 64px 0 64px; }
.hx { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,31,58,.06), 0 30px 70px -28px rgba(11,60,140,.35); }
.hx-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: linear-gradient(180deg, #fbfcfe, #f1f5fa); border-bottom: 1px solid var(--line); }
.hx-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hx-bar i:nth-child(1) { background: #ff5f57; } .hx-bar i:nth-child(2) { background: #febc2e; } .hx-bar i:nth-child(3) { background: #28c840; }
.hx-title { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; font: 500 .82rem var(--sans); color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-title b { color: var(--text); font-weight: 650; }
.hx-title img { width: 22px; height: auto; }
.hx-bar .ax-live { margin-left: auto; flex: none; }
.hx-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px 12px; background: #f7f9fd; border-bottom: 1px solid var(--line); }
.hx-tabs button { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 6px 9px; font: 600 .74rem var(--sans); color: var(--muted); cursor: pointer; position: relative; overflow: hidden; white-space: nowrap; }
.hx-tabs button.on { color: var(--brand); border-color: rgba(11,92,196,.35); background: var(--brand-soft); }
.hx-tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.hx-tabs button.on i { animation: hx-prog var(--hx-dur, 8s) linear forwards; }
.hx-tabs button.done i { transform: scaleX(1); background: #9fdcb7; }
@keyframes hx-prog { to { transform: scaleX(1); } }
.hx-stage { display: grid; background: linear-gradient(180deg, #ffffff, #f7f9fd); }
.hx-screen { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.995); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; padding: 12px; align-self: start; }
.hx-screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.hx-screen > svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
/* agentic screen inside the carousel */
.hx .ax { border: 0; box-shadow: none; border-radius: 0; background: none; }
.hx-screen.ax { display: grid; gap: 12px; grid-template-columns: 1.55fr 1fr; align-items: start; }
.axl-left { display: grid; gap: 10px; }
.axl-right { display: grid; gap: 10px; }
.axl-right .ax-bottom { grid-template-columns: 1fr; }
.axl-right .ax-chart svg { height: 70px; }
.axl-right .ax-log { min-height: 0; font-size: .68rem; }
@media (max-width: 700px) {
  .hx-screen.ax { grid-template-columns: 1fr; }
  .hx-tabs { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .hx-tabs button { padding: 6px 10px 8px; }
}
/* shared screen styles */
.hx-panel { fill: #fff; stroke: #e1e8f2; }
.hx-h { font-size: 12px; font-weight: 700; fill: #0f1f3a; }
.hx-s { font-size: 9.5px; fill: #6b7a90; font-family: var(--mono); }
.hx-s.b { fill: #2b3a52; font-weight: 700; } .hx-s.r { text-anchor: end; } .hx-s.c { text-anchor: middle; } .hx-s.ok { fill: #1f8f4a; font-weight: 700; }
.hx-gridl { stroke: #eef2f7; stroke-width: 1; }
.hx-screen .trk { fill: #edf1f7; }
.hx-screen .bar { fill: #0b5cc4; transform-box: fill-box; transform-origin: left; animation: hx-bar 2.4s ease-out both; }
@keyframes hx-bar { from { transform: scaleX(0); } }
/* ML */
.ml-pt.a { fill: #0b5cc4; } .ml-pt.b { fill: #1f8f4a; }
.ml-pt { opacity: .85; }
.ml-boundary { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-dasharray: 7 5; }
.ml-probe { fill: #fff; stroke: #0f1f3a; stroke-width: 2.4; }
.ml-acc { fill: none; stroke: #1f8f4a; stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hx-draw 5s ease-in-out infinite; }
.ml-loss { fill: none; stroke: #d0315a; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hx-draw 5s ease-in-out infinite; }
.ml-k1 { fill: #1f8f4a; } .ml-k2 { fill: #d0315a; }
.ml-cm .c0 { fill: #0b5cc4; } .ml-cm .c1 { fill: #e8effb; }
.ml-cm rect { animation: hx-fade 1s ease-out both; } .ml-cm rect:nth-child(2) { animation-delay: .2s; } .ml-cm rect:nth-child(3) { animation-delay: .4s; } .ml-cm rect:nth-child(4) { animation-delay: .6s; }
.cmt { font: 700 13px var(--mono); fill: #2b3a52; text-anchor: middle; } .cmt.w { fill: #fff; }
.ml-metrics .m2 { animation-delay: .2s; } .ml-metrics .m3 { animation-delay: .4s; } .ml-metrics .m4 { animation-delay: .6s; fill: #1f8f4a; }
@keyframes hx-draw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes hx-fade { from { opacity: 0; } }
/* Deep learning */
.dl-path { stroke: #c9d5e6; stroke-width: 2; stroke-dasharray: 5 5; animation: vx-flow 1s linear infinite; }
.dl-fm { stroke: #fff; stroke-width: 1; }
.dl-fm.f0 { fill: #4c8dff; } .dl-fm.f1 { fill: #7480f5; } .dl-fm.f2 { fill: #a78bfa; }
.dl-fm { animation: dl-glow 2s ease-in-out infinite; }
.dl-fm.f1 { animation-delay: .4s; } .dl-fm.f2 { animation-delay: .8s; }
.dl-node { fill: #fff; stroke: #6430d6; stroke-width: 2; animation: dl-node 2s ease-in-out infinite; }
.dl-dense circle:nth-child(2) { animation-delay: .15s; } .dl-dense circle:nth-child(3) { animation-delay: .3s; } .dl-dense circle:nth-child(4) { animation-delay: .45s; } .dl-dense circle:nth-child(5) { animation-delay: .6s; }
.dl-pulse { fill: #ffc23d; stroke: #fff; stroke-width: 1.5; }
.dl-probs .p1 { fill: #1f8f4a; } .dl-probs .p2, .dl-probs .p3 { fill: #9db3d1; }
.dl-loss { fill: none; stroke: #6430d6; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hx-draw 5s ease-in-out infinite; }
.dl-ep { animation: dl-ep 8s linear infinite !important; }
@keyframes dl-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes dl-node { 0%, 100% { fill: #fff; } 50% { fill: #c4b5fd; } }
@keyframes dl-ep { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
/* DAQ */
.daq-rows .row { fill: #f7f9fd; stroke: #e6ecf4; }
.daq-rows .led, .hx-screen .led { fill: #22c55e; animation: ax-blink 1s ease-in-out infinite; }
.daq-rows .l2 { animation-delay: .3s; } .daq-rows .l3 { animation-delay: .6s; }
.daq-v { font: 700 16px var(--mono); fill: #0f1f3a; animation: la-twinkle 1.2s ease-in-out infinite; }
.daq-scope { fill: #0f1f3a; }
.daq-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.daq-scroll { animation: daq-scroll 4s linear infinite; }
.daq-scroll path { fill: none; stroke-width: 2; } .daq-scroll .w1 { stroke: #4fd27e; } .daq-scroll .w2 { stroke: #5aa5ff; } .daq-scroll .w3 { stroke: #f5b544; }
@keyframes daq-scroll { to { transform: translateX(-480px); } }
.daq-an { fill: #1f8f4a; }
.daq-chip { font: 700 12px var(--mono); fill: #e8eef6; text-anchor: middle; } .daq-chip.s { font-size: 7px; fill: #8fa1ba; letter-spacing: .12em; }
.daq-dev { font: 600 9px var(--mono); fill: #bfe8cf; }
.daq-dep { fill: #1f8f4a; animation: dl-ep 4s ease-in-out infinite !important; }
.daq-steps text { opacity: 0; animation: daq-step 4s ease-in-out infinite; fill: #1f8f4a; }
.daq-steps .s2 { animation-delay: .7s; } .daq-steps .s3 { animation-delay: 1.4s; }
@keyframes daq-step { 0%, 10% { opacity: 0; } 25%, 90% { opacity: 1; } 100% { opacity: 0; } }
.daq-pill { fill: #0f1f3a; } .daq-pill-t { font: 700 11px var(--mono); fill: #a7f3c4; text-anchor: middle; }
/* BLDC twin */
.bl-shadow { fill: #0f1f3a; opacity: .1; }
.bl-rim { fill: none; stroke: #9db3d1; stroke-width: 3; }
.bl-slots rect { fill: #0b1530; }
.bl-coils rect { stroke: #8a5a14; stroke-width: 1; }
.bl-coils .k0 { fill: #c8892e; animation: bl-phase 1.2s linear infinite; }
.bl-coils .k1 { fill: #c8892e; animation: bl-phase 1.2s linear .4s infinite; }
.bl-coils .k2 { fill: #c8892e; animation: bl-phase 1.2s linear .8s infinite; }
@keyframes bl-phase { 0%, 30% { fill: #ffb547; } 33%, 100% { fill: #a86d1c; } }
.bl-gap { fill: #0b1530; }
.bl-rotor { transform-box: view-box; transform-origin: 150px 186px; animation: la-spin 1.2s linear infinite; }
.bl-mags .n { fill: #d0315a; } .bl-mags .s { fill: #2f6fd6; }
.bl-key { fill: #5e708c; }
.bl-hall circle { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 1.4; }
.bl-hall .h1 { animation: bl-hall 1.2s steps(1) infinite; } .bl-hall .h2 { animation: bl-hall 1.2s steps(1) .4s infinite; } .bl-hall .h3 { animation: bl-hall 1.2s steps(1) .8s infinite; }
@keyframes bl-hall { 0% { fill: #22c55e; } 50% { fill: #e2e8f0; } }
.bl-ht { font: 700 6.5px var(--mono); fill: #0f1f3a; text-anchor: middle; }
.bl-g-bg { fill: none; stroke: #e3e9f1; stroke-width: 8; stroke-linecap: round; }
.bl-g-on { fill: none; stroke: #0b5cc4; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .4; animation: wa-gauge 3.2s ease-in-out infinite; }
.bl-ticks line { stroke: #6b7a90; stroke-width: 1.4; }
.bl-needle { transform-box: view-box; transform-origin: 548px 128px; animation: bl-needle 3.2s ease-in-out infinite; }
.bl-needle path { stroke: #d0315a; stroke-width: 3; stroke-linecap: round; } .bl-needle circle { fill: #0f1f3a; }
@keyframes bl-needle { 0%, 100% { transform: rotate(-50deg); } 50% { transform: rotate(70deg); } }
.bl-read { fill: #0f1f3a; } .bl-read-t { font: 700 11px var(--mono); fill: #a7f3c4; text-anchor: middle; }
.bl-big { font: 700 15px var(--sans); fill: #0f1f3a; } .bl-big.ok { fill: #1f8f4a; }
.bl-scroll { animation: bl-scroll 1.8s linear infinite; }
@keyframes bl-scroll { to { transform: translateX(-110px); } }
.bl-scroll path { fill: none; stroke-width: 2.2; } .bl-scroll .pa { stroke: #d0315a; } .bl-scroll .pb { stroke: #f59e0b; } .bl-scroll .pc { stroke: #0b5cc4; }
@media (prefers-reduced-motion: reduce) { .hx-screen * { animation: none !important; } }
.hx-screen.ax { align-self: center; }
@media (max-width: 700px) { .hx-tabs { display: flex; overflow-x: auto; scrollbar-width: none; } .hx-tabs button { flex: none; } .hx-title { font-size: .74rem; } }

/* Home: centred About block */
.home-about { background: radial-gradient(60% 80% at 50% 40%, rgba(11,92,196,.07), transparent 70%), var(--bg); }
.home-about-inner { max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.home-about-logo { width: 100%; max-width: 440px; height: auto; margin-bottom: 26px; }
.home-about .eyebrow { justify-content: center; }
.home-about h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 18px; }
.home-about .lead { max-width: 780px; margin: 0 auto 26px; }

/* ---------- Top-of-page brand introduction (centred) ---------- */
.intro { padding: 56px 0 40px; background: radial-gradient(70% 60% at 50% 25%, rgba(11,92,196,.09), transparent 70%), linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.intro-inner { max-width: 1040px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro-inner > * { max-width: 100%; }
.intro-logo { width: 100%; max-width: 400px; height: auto; margin-bottom: 18px; }
.intro .eyebrow { justify-content: center; margin-bottom: 14px; }
.intro-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.intro-title span { white-space: nowrap; }
.intro-title span:nth-child(1) { color: #0b5cc4; }
.intro-title span:nth-child(2) { color: #0f1f3a; }
.intro-title span:nth-child(3) { background: linear-gradient(90deg, #0b5cc4, #1f8f4a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .intro-title span { white-space: normal; } }
.intro-sub { font-size: 1.15rem; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.intro-lead { max-width: 760px; margin: 0 auto 30px; }
.intro-cards { display: grid; gap: 16px; width: 100%; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 760px) { .intro-cards { grid-template-columns: repeat(3, 1fr); } }
.intro-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; box-shadow: var(--shadow); text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.intro-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(11,60,140,.35); }
.intro-card h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.intro-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.intro-ico { width: 48px; height: 48px; border-radius: 13px; display: inline-grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(15,31,58,.35); }
.intro-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.intro-ico.i1 { background: linear-gradient(135deg, #4c8dff, #0b4fb0); }
.intro-ico.i2 { background: linear-gradient(135deg, #7480f5, #3a2fa8); }
.intro-ico.i3 { background: linear-gradient(135deg, #4fd27e, #178a42); }
.intro-tag { display: grid; gap: 4px; margin: 0 0 24px; }
.intro-tag b { font-size: 1.3rem; color: var(--text); letter-spacing: -.01em; }
.intro-tag span { color: var(--muted); }
.intro-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-title { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 .4em; }

/* Learning scene: inputs → NN (forward + backprop) → output */
.ln-trk { fill: #edf1f7; }
.ln-in { fill: #0b5cc4; transform-box: fill-box; transform-origin: left; animation: hx-bar 2.4s ease-out both; }
.ln-in.i1 { animation-delay: .2s; } .ln-in.i2 { animation-delay: .4s; }
.ln-sep { stroke: #e6ecf4; }
.ln-edges path { stroke: #d3dcea; stroke-width: 1.3; fill: none; }
.ln-fwd circle { fill: #0b5cc4; }
.ln-bwd circle { fill: #d0315a; }
.ln-node { stroke-width: 2; }
.ln-node.in { fill: #eaf2ff; stroke: #0b5cc4; }
.ln-node.h { fill: #fff; stroke: #6430d6; animation: dl-node 1.4s ease-in-out infinite; }
.ln-node.h1 { animation-delay: .2s; } .ln-node.h2 { animation-delay: .4s; } .ln-node.h3 { animation-delay: .6s; }
.ln-node.out { fill: #1f8f4a; stroke: #fff; transform-box: fill-box; transform-origin: center; animation: la-pulse 1.4s ease-in-out infinite; }
.ln-nt { font: 700 7.5px var(--mono); fill: #0b5cc4; text-anchor: middle; } .ln-nt.w { fill: #fff; font-size: 9px; }
.ln-w { font: 600 7px var(--mono); fill: #6430d6; }
.ln-phase rect.f { fill: #eaf2ff; animation: ln-phase 3s steps(1) infinite; }
.ln-phase rect.b { fill: #fdeef2; animation: ln-phase 3s steps(1) 1.5s infinite; }
.ln-pt { font: 700 7px var(--mono); text-anchor: middle; } .ln-pt.f { fill: #0b5cc4; } .ln-pt.b { fill: #d0315a; }
@keyframes ln-phase { 0% { opacity: 1; } 50% { opacity: .35; } }
.ln-big { font: 800 20px var(--sans); fill: #0f1f3a; text-anchor: middle; letter-spacing: -.02em; }
.ln-pred { fill: #1f8f4a; transform-box: fill-box; transform-origin: left; animation: sc-charge 3s ease-in-out infinite; }
.ln-tgt { fill: #9db3d1; }

/* Home: node-locked licence explainer */
.nl-show { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .nl-show { grid-template-columns: 1.1fr 1fr; } }
.nl-demo { margin: 0; background: #fff; }
.nl-demo .nl-head h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.nl-demo .nl-row > div:first-child span { word-break: break-all; }
.nl-pulse { animation: nl-pulse 2.4s ease-in-out infinite; }
@keyframes nl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,143,74,.35); } 50% { box-shadow: 0 0 0 6px rgba(31,143,74,0); } }
.nl-points { display: grid; gap: 14px; }
.nl-point { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.nl-point .why-ico { flex: none; }
.nl-point h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.nl-point p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (prefers-reduced-motion: reduce) { .nl-pulse { animation: none; } }
.act-card { max-width: 520px; margin: 0 auto; }
.act-kv { margin: 16px 0; }
.act-done { margin: 8px 0 14px; }

/* Home intro: platform numbers and algorithm families */
.stat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 26px; }
.stat-pill { display: inline-flex; align-items: baseline; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); }
.stat-pill b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stat-pill span { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.sp-blue { color: #0b5cc4; } .sp-violet { color: #6430d6; } .sp-green { color: #1f8f4a; } .sp-amber { color: #c98a00; }
.algo-grid { display: grid; gap: 14px; width: 100%; grid-template-columns: 1fr; margin: 0 0 30px; text-align: left; }
@media (min-width: 640px) { .algo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .algo-grid { grid-template-columns: repeat(4, 1fr); } }
.algo-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.algo-card:hover { transform: translateY(-2px); border-color: rgba(11,92,196,.35); box-shadow: 0 16px 30px -18px rgba(11,60,140,.35); }
.algo-ico { width: 50px; height: 50px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--line); background: var(--bg-2); }
.algo-card > div { display: grid; gap: 1px; min-width: 0; }
.algo-n { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #0b5cc4; line-height: 1.15; }
.algo-t { font-weight: 700; color: var(--text); }
.algo-s { font-size: .82rem; color: var(--muted); }
.a-rose .algo-ico { background: #fff0f3; border-color: #ffd3dc; } .a-amber .algo-ico { background: #fff7e6; border-color: #ffe2a6; }
.a-blue .algo-ico { background: #eef5ff; border-color: #cfe0fb; } .a-indigo .algo-ico { background: #f0f0ff; border-color: #d8d8fb; }
.a-teal .algo-ico { background: #eafaf7; border-color: #c4ede5; } .a-cyan .algo-ico { background: #eaf8fd; border-color: #c4e9f6; }
.a-orange .algo-ico { background: #fff3ea; border-color: #ffd9bf; } .a-violet .algo-ico { background: #f5f0ff; border-color: #e1d4fd; }
/* Home intro: the four in-the-loop tests (MIL · SIL · PIL · CIL) — open the Model to chip pop-ups */
.loop-grid-head { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 14px; font-weight: 700; color: var(--text); }
.loop-grid-head span { font: 800 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #c2410c; padding: 5px 9px; border-radius: 999px; }
.loop-card { color: inherit; text-decoration: none; cursor: pointer; }
.loop-card:hover, .loop-card:focus-visible { text-decoration: none; color: inherit; }
.loop-tag { font: 800 .82rem/1 var(--mono); letter-spacing: .08em; }
.loop-card.a-violet .algo-n, .loop-card.a-violet .loop-tag { color: #6430d6; } .loop-card.a-blue .algo-n, .loop-card.a-blue .loop-tag { color: #0b5cc4; }
.loop-card.a-teal .algo-n, .loop-card.a-teal .loop-tag { color: #178a42; } .loop-card.a-orange .algo-n, .loop-card.a-orange .loop-tag { color: #c2410c; }
.loop-card.a-teal .algo-ico { background: #ecf8f0; border-color: #c3e9cf; }
.intro-lead b { color: var(--text); }
.intro-inner { max-width: 1320px; } .intro-sub { max-width: 900px; } .stat-pills { max-width: 1100px; }

/* PCB Circuit Studio spotlight (labs section) */
.pcb-spot { display: grid; gap: 28px; align-items: center; margin-top: 26px; padding: 26px; border-radius: 16px; background: linear-gradient(135deg, #ffffff 0%, #f1fbf5 100%); border: 1px solid #cdebd9; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 24px 50px -30px rgba(31,143,74,.45); position: relative; overflow: hidden; }
.pcb-spot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 44%, rgba(255,255,255,.35) 50%, transparent 56%); transform: translateX(-100%); animation: pcb-shine 6s ease-in-out infinite; pointer-events: none; }
@keyframes pcb-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (min-width: 1000px) { .pcb-spot { grid-template-columns: .85fr 1.15fr; } }
.pcb-new { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #1f8f4a; }
.pcb-new b { background: #1f8f4a; color: #fff; padding: 3px 8px; border-radius: 999px; animation: nl-pulse 2s ease-in-out infinite; }
.pcb-text h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.pcb-steps { counter-reset: p; list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pcb-steps { grid-template-columns: 1fr 1fr; } }
.pcb-steps li { counter-increment: p; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.pcb-steps li::before { content: counter(p); grid-row: span 2; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #1f8f4a; color: #fff; font: 700 .75rem var(--mono); }
.pcb-steps b { font-size: .9rem; } .pcb-steps span { font-size: .78rem; color: var(--muted); }
.pcb-scene { margin: 0; }
.pcb-sch path { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pcb-draw 6s ease-in-out infinite; }
.pcb-sch path:nth-child(2) { animation-delay: .2s; } .pcb-sch path:nth-child(3) { animation-delay: .4s; } .pcb-sch path:nth-child(4) { animation-delay: .6s; } .pcb-sch path:nth-child(5) { animation-delay: .8s; } .pcb-sch path:nth-child(6) { animation-delay: 1s; }
@keyframes pcb-draw { 0% { stroke-dashoffset: 1; } 30%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.pcb-sch-dots circle { fill: #0b5cc4; }
.pcb-net { fill: #0f1f3a; } .pcb-net-t { font: 600 6.6px var(--mono); fill: #a7f3c4; text-anchor: middle; }
.pcb-scope { fill: #0f1f3a; } .pcb-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.pcb-scroll { animation: pcb-scroll 2.4s linear infinite; }
@keyframes pcb-scroll { to { transform: translateX(-120px); } }
.pcb-scroll path { fill: none; stroke-width: 1.8; } .pcb-scroll .w1 { stroke: #ffd25a; } .pcb-scroll .w2 { stroke: #3fd9f5; } .pcb-scroll .w3 { stroke: #5fe08a; }
.pcb-ch rect { stroke: none; } .pcb-ch .c1 { fill: #fff6d6; } .pcb-ch .c2 { fill: #e3f8fd; } .pcb-ch .c3 { fill: #e7f9ee; } .pcb-ch .c4 { fill: #efeafd; }
.pcb-ch text { font: 700 7px var(--mono); fill: #2b3a52; text-anchor: middle; }
.pcb-holes circle { fill: #f6f9fd; stroke: #c9a227; stroke-width: 1.5; }
.pcb-traces path { fill: none; stroke: #e7b54a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pcb-draw 6s ease-in-out 1.2s infinite; }
.pcb-traces path:nth-child(2) { animation-delay: 1.5s; } .pcb-traces path:nth-child(3) { animation-delay: 1.8s; } .pcb-traces path:nth-child(4) { animation-delay: 2.1s; }
.pcb-parts rect { fill: #1d2733; stroke: #4b5b6e; } .pcb-parts .ind { fill: #4a4f57; } .pcb-parts .cap { fill: #2f5bb7; }
.pcb-pads circle { fill: #f2c14e; }
.pcb-drc { fill: #ecfaf1; stroke: #9fdcb7; } .pcb-drc-t { font: 700 6.8px var(--mono); fill: #1f8f4a; text-anchor: middle; }
.pcb-drc, .pcb-drc-t { animation: pcb-in 6s ease-in-out 2.6s infinite both; }
.pcb-files rect { fill: #fff; stroke: #cfe0fb; } .pcb-files text { font: 700 7.5px var(--mono); fill: #0b5cc4; text-anchor: middle; }
.pcb-files g { animation: pcb-in 6s ease-in-out infinite both; }
.pcb-files .f1 { animation-delay: 3s; } .pcb-files .f2 { animation-delay: 3.25s; } .pcb-files .f3 { animation-delay: 3.5s; } .pcb-files .f4 { animation-delay: 3.75s; }
@keyframes pcb-in { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pcb-spot::before { display: none; } .pcb-spot * { animation: none !important; }
  .pcb-sch path, .pcb-traces path { stroke-dashoffset: 0; }
}
.new-tag { display: inline-block; font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #1f8f4a; padding: 2px 6px; border-radius: 999px; vertical-align: middle; animation: nl-pulse 2s ease-in-out infinite; }

/* ---------- Add-on Packages showcase (auto-playing) ---------- */
.ad-show { margin-top: 26px; padding: 24px; border-radius: 18px; background: linear-gradient(135deg, #ffffff 0%, #eefaf4 100%); border: 1px solid #cdebd9; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 24px 50px -30px rgba(31,143,74,.45); }
.ad-head { display: grid; gap: 14px; margin-bottom: 18px; }
.ad-head h3 { margin: 4px 0 0; font-size: 1.35rem; }
.ad-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ad-tabs button { appearance: none; position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 8px 11px; font: 600 .78rem var(--sans); color: var(--muted); cursor: pointer; display: flex; gap: 6px; justify-content: center; align-items: center; white-space: nowrap; }
.ad-tabs button b { font: 700 .58rem var(--mono); background: #1f8f4a; color: #fff; padding: 2px 5px; border-radius: 999px; animation: nl-pulse 2s ease-in-out infinite; }
.ad-tabs button.on { color: #1f8f4a; border-color: rgba(31,143,74,.45); background: #ecfaf1; }
.ad-tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #1f8f4a; transform: scaleX(0); transform-origin: left; }
.ad-tabs button.on i { animation: hx-prog var(--ad-dur, 9s) linear forwards; }
.ad-tabs button.done i { transform: scaleX(1); background: #9fdcb7; }
@media (max-width: 900px) { .ad-tabs { display: flex; overflow-x: auto; scrollbar-width: none; } .ad-tabs button { flex: none; padding: 8px 12px 10px; } }
.ad-stage { display: grid; }
.ad-slide { grid-area: 1 / 1; display: grid; gap: 26px; align-items: center; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.ad-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (min-width: 1000px) { .ad-slide { grid-template-columns: .8fr 1.2fr; } }
.ad-text h4 { font-size: 1.55rem; margin: 10px 0 8px; letter-spacing: -.02em; }
.ad-text .pcb-steps { margin: 12px 0 16px; }
.ad-scene { margin: 0; }
/* agentic */
.ad-pulse { fill: #0b5cc4; } .ad-pulse.p1 { fill: #6430d6; } .ad-pulse.p2 { fill: #1f8f4a; }
.ad-node rect { stroke-width: 1.5; } .ad-node.trig rect { fill: #fff7e6; stroke: #f5b544; } .ad-node.agent rect { fill: #eef5ff; stroke: #0b5cc4; } .ad-node.tool rect { fill: #f5f0ff; stroke: #7480f5; }
.ad-node.agent rect { animation: ad-glow 2s ease-in-out infinite; }
.ad-nt { font: 700 9.5px var(--sans); fill: #0f1f3a; text-anchor: middle; } .ad-ns { font: 500 7px var(--mono); fill: #6b7a90; text-anchor: middle; }
.ad-nt.w, .ad-ns.w { fill: #fff; }
.ad-out { fill: #1f8f4a; animation: la-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ad-mcp { fill: #0f1f3a; } .ad-mcp-t { font: 700 7.5px var(--mono); fill: #a7f3c4; text-anchor: middle; }
.ad-log text { animation: daq-step 4s ease-in-out infinite; } .ad-log text:nth-child(2) { animation-delay: 1s; }
@keyframes ad-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 5px rgba(11,92,196,.55)); } }
/* literature */
.ad-search { fill: #fff; stroke: #0b5cc4; stroke-width: 1.5; }
.ad-type { font: 600 8.5px var(--mono); fill: #0f1f3a; clip-path: inset(0 100% 0 0); animation: ad-type 6s steps(32) infinite; }
@keyframes ad-type { 0% { clip-path: inset(0 100% 0 0); } 40%, 100% { clip-path: inset(0 0 0 0); } }
.ad-caret { fill: #0b5cc4; animation: ax-blink .8s steps(1) infinite; opacity: .6; }
.ad-paper rect:first-child { fill: #f7f9fd; stroke: #e1e8f2; } .ad-paper .t { fill: #2b3a52; } .ad-paper .m { fill: #b7c4d6; }
.ad-paper { animation: ad-slidein 6s ease-out infinite both; } .ad-paper.r1 { animation-delay: .3s; } .ad-paper.r2 { animation-delay: .6s; } .ad-paper.r3 { animation-delay: .9s; }
@keyframes ad-slidein { 0%, 30% { opacity: 0; transform: translateX(-10px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ad-pr rect { fill: #eef5ff; stroke: #0b5cc4; stroke-width: 1.4; } .ad-pr rect.inc { fill: #1f8f4a; stroke: #1f8f4a; }
.ad-prt { font: 600 9px var(--sans); fill: #2b3a52; } .ad-prn { font: 800 11px var(--mono); fill: #0b5cc4; text-anchor: end; }
.ad-pr.b3 .ad-prt, .ad-pr.b3 .ad-prn { fill: #fff; }
.ad-pr, .ad-arrow, .ad-ex { animation: pcb-in 6s ease-in-out infinite both; }
.ad-pr.b1, .ad-arrow.a0, .ad-ex.e0 { animation-delay: .6s; } .ad-pr.b2, .ad-arrow.a1, .ad-ex.e1 { animation-delay: 1.2s; } .ad-pr.b3, .ad-arrow.a2, .ad-ex.e2 { animation-delay: 1.8s; }
.ad-arrow { stroke: #0b5cc4; stroke-width: 1.6; }
.ad-ex path { stroke: #d0315a; stroke-width: 1.4; stroke-dasharray: 3 2; } .ad-ex rect { fill: #fdeef2; stroke: #f3c4d0; } .ad-ex text { font: 700 8px var(--mono); fill: #d0315a; text-anchor: middle; }
.ad-bib rect { fill: #0f1f3a; } .ad-bib text { font: 700 8.5px var(--mono); fill: #a7f3c4; text-anchor: middle; } .ad-bib { animation: pcb-in 6s ease-in-out 2.4s infinite both; }
/* paper */
.ad-title { fill: #0f1f3a; } .ad-auth { fill: #9aa8bc; }
.ad-h { font: 700 8px var(--sans); fill: #0b5cc4; }
.ad-lines path { stroke: #c3cfdf; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 6s ease-in-out infinite; }
.ad-lines path:nth-child(2) { animation-delay: .2s; } .ad-lines path:nth-child(3) { animation-delay: .4s; } .ad-lines path:nth-child(4) { animation-delay: .6s; } .ad-lines path:nth-child(5) { animation-delay: .8s; } .ad-lines path:nth-child(6) { animation-delay: 1s; }
.ad-lines.l2 path { animation-delay: 1.2s; } .ad-lines.l3 path { animation-delay: 2.4s; }
.ad-fig { fill: #f6f9fd; stroke: #e6ecf4; } .ad-figline { fill: none; stroke: #0b5cc4; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 6s ease-in-out 1.6s infinite; }
.ad-eq { font: italic 600 9px Georgia, serif; fill: #2b3a52; animation: pcb-in 6s ease-in-out 2s infinite both; }
.ad-exp { animation: sc-pop 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .ad-exp.x1 { animation-delay: .4s; } .ad-exp.x2 { animation-delay: .8s; }
.ad-pb { fill: #1f8f4a !important; animation: dl-ep 3s ease-in-out infinite !important; }
/* slx */
.ad-blk rect { fill: #fff; stroke: #2b5fc4; stroke-width: 1.6; } .ad-blk.k3 rect { fill: #eef5ff; } .ad-blk.k4 rect { fill: #0f1f3a; stroke: #0f1f3a; }
.ad-bt { font: 700 9.5px var(--sans); fill: #0f1f3a; text-anchor: middle; } .ad-bs { font: 500 7px var(--mono); fill: #6b7a90; text-anchor: middle; }
.ad-blk.k4 .ad-bt, .ad-blk.k4 .ad-bs { fill: #a7f3c4; }
.ad-blk { animation: pcb-in 7s ease-in-out infinite both; } .ad-blk.k1 { animation-delay: .3s; } .ad-blk.k2 { animation-delay: .6s; } .ad-blk.k3 { animation-delay: .9s; } .ad-blk.k4 { animation-delay: 1.2s; }
.ad-wire { fill: none; stroke: #2b3a52; stroke-width: 1.6; } .ad-wire.w4 { stroke-dasharray: 4 3; stroke: #6430d6; }
.ad-sig { fill: #e2510e; }
.ad-gl { stroke: #eef2f7; } .ad-ref { fill: none; stroke: #9aa8bc; stroke-width: 1.2; stroke-dasharray: 3 3; }
.ad-resp { fill: none; stroke: #0b5cc4; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-write 7s ease-in-out 1.4s infinite; }
.ad-slx rect { fill: #0f1f3a; } .ad-slx text:last-child { font: 700 8.5px var(--mono); fill: #a7f3c4; text-anchor: middle; }
/* design thinking */
.ad-st circle { stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ad-stage 7.5s ease-in-out infinite; opacity: .55; }
.ad-st.s1 circle { animation-delay: 1.5s; } .ad-st.s2 circle { animation-delay: 3s; } .ad-st.s3 circle { animation-delay: 4.5s; } .ad-st.s4 circle { animation-delay: 6s; }
@keyframes ad-stage { 0%, 20% { opacity: 1; transform: scale(1.12); } 25%, 100% { opacity: .55; transform: scale(1); } }
.ad-stt { font: 800 14px var(--sans); fill: #fff; text-anchor: middle; } .ad-stl { font: 700 9.5px var(--sans); fill: #0f1f3a; text-anchor: middle; }
.ad-starr { stroke: #9aa8bc; stroke-width: 1.6; stroke-dasharray: 4 3; animation: vx-flow 1s linear infinite; }
.ad-loop { stroke: #c9d5e6; stroke-width: 1.6; stroke-dasharray: 5 4; animation: vx-flow 1.4s linear infinite; }
.ad-nt2 { font: 600 7.5px var(--sans); fill: #2b3a52; text-anchor: middle; }
.ad-note { animation: ad-note 7.5s ease-in-out infinite both; } .ad-note.q1 { animation-delay: .3s; } .ad-note.q2 { animation-delay: .6s; } .ad-note.q3 { animation-delay: .9s; } .ad-note.q4 { animation-delay: 1.2s; } .ad-note.q5 { animation-delay: 1.5s; }
@keyframes ad-note { 0%, 35% { opacity: 0; transform: translateY(-8px); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ad-show * { animation: none !important; } .ad-lines path, .ad-figline, .ad-resp { stroke-dashoffset: 0; } .ad-type { clip-path: none; } }
.ad-show .trk { fill: #edf1f7; } .ad-show .bar { transform-box: fill-box; transform-origin: left; }

/* ===================== Staff · customer management ===================== */
.st .dash-head { align-items: center; }
.st-tabs { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.st-tabs a { padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.st-tabs a:hover { text-decoration: none; background: var(--panel); }
.st-tabs a[aria-current="page"] { background: var(--panel); color: var(--brand); box-shadow: var(--shadow); }
.badge-red { color: var(--red); background: #fdf2f2; border: 1px solid rgba(198,40,40,.35); }
.badge-amber { color: #8a5300; background: #fff8e6; border: 1px solid rgba(180,120,0,.35); }

.st-kpis { display: grid; gap: 14px; margin-bottom: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .st-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .st-kpis { grid-template-columns: repeat(3, 1fr); } }
.st-kpi { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); color: var(--text); }
a.st-kpi:hover { text-decoration: none; border-color: var(--brand); }
.st-kpi .k { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.st-kpi b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.st-kpi .s { font-size: .85rem; color: var(--muted); }
.st-kpi.warn { border-color: rgba(180,120,0,.45); background: #fffcf3; }

.st-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .st-grid { grid-template-columns: repeat(2, 1fr); } }
.st-card { padding: 20px 22px; }
.st-card .h3 { margin-bottom: 10px; }
.st-chart { width: 100%; height: auto; margin-top: 10px; display: block; }
.st-axis { stroke: var(--line-2); stroke-width: 1; }
.st-fill { fill: var(--brand); }
.st-hit { fill: transparent; }
.st-bar:hover .st-fill { fill: var(--brand-hover); }
.st-bar:hover .st-hit { fill: var(--brand-soft); }
.st-lbl { font: 500 12px var(--sans); fill: var(--muted); text-anchor: middle; }
.st-table summary { cursor: pointer; font-size: .85rem; color: var(--brand); margin-top: 6px; }

table.st-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.st-t th { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.st-t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-t tbody tr:last-child td { border-bottom: 0; }
.st-t .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-t code { font-size: .82rem; }
.st-list { min-width: 920px; }
.st-list tbody tr:hover td { background: var(--panel-2); }

.st-filters { display: grid; gap: 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .st-filters { grid-template-columns: 2fr repeat(4, 1fr) auto; } }
.st-filters .field label { font-size: .78rem; margin-bottom: 4px; }
.st-filters .field input, .st-filters .field select { padding: 9px 11px; font-size: .92rem; }
.st-fbtns { display: flex; gap: 8px; }
.st-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-export { display: flex; gap: 8px; }
.st-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }

.st-back { margin: -12px 0 14px; font-size: .9rem; }
.st-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 20px 22px; margin-bottom: 18px; }
.st-name { font-size: 1.5rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-who-k { display: flex; flex-wrap: wrap; gap: 26px; }
.st-who-k .k { display: block; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.st-who-k b { font-size: 1.05rem; }
.st-cols { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .st-cols { grid-template-columns: minmax(0, 1fr) 380px; } }
.st-main, .st-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.st-main .st-card { overflow-x: auto; }
.st-form { gap: 12px; }
.st-form .field input, .st-form .field select, .st-form .field textarea { padding: 9px 11px; font-size: .92rem; }
.st-form .field textarea { min-height: 76px; }
.st-actions { display: grid; gap: 8px; margin-bottom: 8px; }
.st-danger { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.st-danger summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.st-danger .st-form { margin-top: 10px; }
.st-log { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.st-log li { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.st-log .t { font: 500 .78rem var(--mono); color: var(--dim); white-space: nowrap; }
.st-log .ip { font: 500 .75rem var(--mono); color: var(--dim); }
@media (max-width: 640px) { .st-log li { grid-template-columns: 1fr; gap: 2px; } }
.st-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.st-notes li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.st-notes p { margin: 0 0 4px; font-size: .9rem; }
.st-dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.st-dl dt { color: var(--dim); }
.st-dl dd { margin: 0; }

/* ===================== Plan choices: simulation-tool picker and add-on packages ===================== */
.addon-pick, .pick-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 10px 0 6px; }
@media (min-width: 640px) { .addon-pick, .pick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pick-grid { grid-template-columns: repeat(4, 1fr); } }
.addon-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--panel); cursor: pointer; min-width: 0; }
.addon-opt:hover { border-color: var(--brand); }
.addon-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.addon-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.addon-opt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.addon-opt b { display: block; font-size: .92rem; line-height: 1.3; }
.addon-opt small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.addon-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; font-size: 1.4rem; }
.addon-ico .lab-svg { width: 36px; height: 36px; }
.pick-card { padding: 20px 22px; }
.pick-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pick-head > div { max-width: 760px; min-width: 0; }
.pick-count { font-weight: 600; font-size: .85rem; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.addon-status { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .addon-status { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .addon-status { grid-template-columns: repeat(3, 1fr); } }
.addon-status li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.addon-status b { display: block; font-size: .92rem; }
.addon-status small { display: block; color: var(--muted); font-size: .78rem; }
.addon-owned { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.addon-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; box-shadow: var(--shadow); }
.addon-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 14px; }
.addon-panel-head h3 { margin: 0; }
.addon-panel-price { font-weight: 800; font-size: 1.4rem; }
.addon-panel-price small { font-weight: 500; font-size: .85rem; color: var(--muted); }
.addon-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }
.addon-grid > div { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.addon-grid b { display: block; font-size: .92rem; }
.addon-grid small { display: block; color: var(--muted); font-size: .78rem; }

/* Daily allowance on the dashboard */
.usage-card { padding: 20px 22px; margin-bottom: 28px; }
.usage-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .usage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usage-item { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel-2); }
.usage-item .k { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.usage-item b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.usage-item .s { font-size: .8rem; color: var(--muted); }
.usage-item progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
.usage-item progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.usage-item progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.usage-item progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.usage-item.full { border-color: rgba(180,120,0,.45); background: #fffcf3; }
.usage-item.full progress::-webkit-progress-value { background: #b47800; }
.usage-item.full progress::-moz-progress-bar { background: #b47800; }
.usage-item.off { opacity: .7; }

/* ===================== Festival offer ===================== */



.ribbon.festive { background: #b45309; }
.offer-box { border: 1px solid rgba(180,83,9,.35); background: #fff8ec; border-radius: var(--radius); padding: 16px 18px; }
.offer-box .addon-grid > div { background: #fff; }
.offer-tag { display: inline-block; font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #fff; background: #b45309; border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.offer-note { margin-top: 6px; font-size: .8rem; font-weight: 700; color: #b45309; }

/* One plan on sale: a single, centred card and a two-column "what's included" table */
.plans.single { grid-template-columns: minmax(0, 560px) !important; justify-content: center; }
table.compare.single { min-width: 0; max-width: 900px; margin: 0 auto; }
.compare.single td { text-align: right; width: 34%; }
.table-wrap:has(.compare.single) { max-width: 900px; margin: 0 auto; }
.badge-off.festive { background: #b45309; border-color: #b45309; }
.fest-pct { display: inline-block; margin-left: 4px; font: 700 .66rem var(--mono); color: #fff; background: #b45309; border-radius: 999px; padding: 2px 6px; vertical-align: middle; }
.period-option b .fest-pct { display: inline-block; color: #fff; font: 700 .66rem var(--mono); margin: 2px 0 0 4px; }

/* ===== Festival banner: marigold toran, diyas, sparkles (Navarathri / Diwali) ===== */
.festival-bar { position: relative; overflow: hidden; color: #fff8eb;
  background: radial-gradient(120% 140% at 50% -20%, #c2410c 0%, #9a3412 38%, #6b1d05 100%);
  padding: 22px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.festival-bar::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(circle, #ffe08a 1.2px, transparent 1.6px); background-size: 22px 22px; }
.fb-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; max-width: var(--wrap); margin: 0 auto; text-align: center; }
.fb-text { margin: 0; font-size: .98rem; line-height: 1.45; min-width: 0; }
.fb-text b { color: #ffe08a; font-weight: 800; }
.fb-end { opacity: .85; }
.festival-name { position: relative; overflow: hidden; font: 800 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em;
  background: linear-gradient(90deg, #ffd25a, #ffe9a6, #ffd25a); color: #6b1d05; border-radius: 999px; padding: 6px 12px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,224,138,.6), 0 4px 14px -4px rgba(255,190,60,.7); }
.festival-name::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); animation: fb-shine 3.2s ease-in-out infinite; }
.fb-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #6b1d05; background: #ffe08a; border-radius: 999px;
  padding: 7px 14px; white-space: nowrap; box-shadow: 0 4px 14px -6px rgba(0,0,0,.5); transition: transform .2s; }
.fb-cta:hover { text-decoration: none; transform: translateY(-1px); background: #fff0c2; }
.fb-cta span { transition: transform .2s; }
.fb-cta:hover span { transform: translateX(3px); }
.diya { width: 46px; height: 35px; flex: none; overflow: visible; }
.d-bowl { fill: #c2410c; stroke: #ffd25a; stroke-width: 1.5; }
.d-rim { stroke: #ffe08a; stroke-width: 2.5; stroke-linecap: round; }
.d-dot { fill: #ffe08a; }
.d-glow { fill: #ffd25a; opacity: .28; transform-origin: 32px 16px; animation: fb-glow 2.4s ease-in-out infinite; }
.d-flame-o { fill: #ffb020; transform-origin: 32px 24px; animation: fb-flicker 1.3s ease-in-out infinite alternate; }
.d-flame-i { fill: #fff4c2; transform-origin: 32px 22px; animation: fb-flicker 0.9s ease-in-out infinite alternate-reverse; }
.diya-r .d-flame-o, .diya-r .d-glow { animation-delay: -.6s; }
/* marigold toran across the top */
.fb-toran { position: absolute; top: 0; left: 0; right: 0; height: 18px; display: flex; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.fb-toran::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 2px; background: #3f7d20; opacity: .9; }
.fb-toran i { position: relative; width: 12px; height: 12px; margin-top: 1px; border-radius: 50%; transform-origin: 50% -2px;
  background: radial-gradient(circle at 40% 35%, #ffe08a 0 22%, #ffb020 23% 60%, #f97316 61%); animation: fb-sway 3s ease-in-out infinite; }
.fb-toran i.mb { background: radial-gradient(circle at 40% 35%, #fff2b3 0 22%, #ffd25a 23% 60%, #f59e0b 61%); animation-delay: -1.5s; }
.fb-toran i:nth-child(4n)::after { content: ""; position: absolute; top: 9px; left: 3px; width: 6px; height: 9px; border-radius: 0 0 6px 6px; background: #3f7d20; }
/* sparkles */
.fb-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 8px 2px rgba(255,224,138,.9); opacity: 0; animation: fb-twinkle 2.8s ease-in-out infinite; pointer-events: none; }
.fb-spark.k1 { left: 6%; top: 60%; animation-delay: 0s; }
.fb-spark.k2 { left: 18%; top: 34%; animation-delay: .7s; }
.fb-spark.k3 { left: 33%; top: 76%; animation-delay: 1.4s; }
.fb-spark.k4 { left: 64%; top: 30%; animation-delay: .35s; }
.fb-spark.k5 { left: 80%; top: 72%; animation-delay: 1.1s; }
.fb-spark.k6 { left: 93%; top: 40%; animation-delay: 1.9s; }
@keyframes fb-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes fb-flicker { 0% { transform: scale(1, 1) skewX(0deg); } 35% { transform: scale(.94, 1.06) skewX(-3deg); } 70% { transform: scale(1.04, .95) skewX(2deg); } 100% { transform: scale(.98, 1.08) skewX(-1deg); } }
@keyframes fb-glow { 0%, 100% { opacity: .22; transform: scale(.92); } 50% { opacity: .42; transform: scale(1.12); } }
@keyframes fb-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes fb-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.15); } 60% { opacity: .6; transform: scale(.9); } }
@media (min-width: 1100px) { .fb-inner { flex-wrap: nowrap; } }
@media (max-width: 640px) { .diya { width: 36px; height: 27px; } .fb-text { font-size: .9rem; } .fb-spark.k2, .fb-spark.k4 { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .festival-name::after, .d-glow, .d-flame-o, .d-flame-i, .fb-toran i, .fb-spark { animation: none; }
  .fb-spark { opacity: .7; }
}
/* festive shimmer on the Prime card ribbon and checkout offer box */
.plan .ribbon.festive { overflow: hidden; background: linear-gradient(90deg, #9a3412, #c2410c, #9a3412); }
.plan .ribbon.festive::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: fb-shine 3.6s ease-in-out infinite; }
.offer-box { position: relative; overflow: hidden; }
.offer-box::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,190,60,.35), transparent 70%); animation: fb-glow 3s ease-in-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .plan .ribbon.festive::after, .offer-box::before { animation: none; } }
.plan .mrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.badge-off.festive { white-space: normal; line-height: 1.3; text-align: left; }
@media (max-width: 1099px) {
  .fb-inner .diya-r { order: 1; }
  .fb-inner .fb-text { order: 2; flex-basis: 100%; }
  .fb-inner .fb-cta { order: 3; }
}
@media (max-width: 640px) {
  .festival-name { font-size: .62rem; letter-spacing: .04em; padding: 5px 9px; }
  .fb-inner { gap: 8px 10px; }
  .diya { width: 30px; height: 23px; }
}
.otp-input { font: 700 1.6rem var(--mono) !important; letter-spacing: .4em; text-align: center; }
.otp-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Receipt: install right after payment */
.install-now{max-width:760px;margin-left:auto;margin-right:auto;border:2px solid var(--brand,#1d4ed8)}
.install-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.install-buttons .btn{flex:1 1 220px;display:flex;flex-direction:column;align-items:center;gap:2px}
.install-buttons .btn small{font-size:12px;font-weight:500;opacity:.8}
.install-buttons .is-mine::after{content:"Recommended for this computer";font-size:11px;font-weight:600;opacity:.9}
.install-buttons .is-disabled{pointer-events:none;opacity:.6}

/* My account tabs and tables */
.acct-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 18px;border-bottom:1px solid var(--line);padding-bottom:8px}
.acct-tabs a{padding:7px 12px;border-radius:8px;font-weight:600;font-size:.92rem;color:var(--ink-2);text-decoration:none}
.acct-tabs a:hover{background:var(--brand-soft)}
.acct-tabs a[aria-current="page"]{background:var(--brand);color:#fff}
.status-cta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.8rem;font-weight:600;background:#eef2f7;color:#334155}
.pill.ok{background:#e7f8ee;color:#126b3a}.pill.warn{background:#fff4e5;color:#8a4b00}.pill.muted{background:#f1f5f9;color:#64748b}
tr.row-warn td{background:#fff7ed}
.install-guide ol{margin:8px 0 10px;padding-left:20px}.install-guide li{margin:6px 0;line-height:1.5}
.install-guide code{font-size:.82em;word-break:break-all}
.badge-soon{display:inline-block;vertical-align:middle;font:600 .72rem/1 var(--mono);text-transform:uppercase;letter-spacing:.06em;color:#9a5b00;background:#fff4e0;border:1px solid #f5c26b;border-radius:999px;padding:5px 9px;margin-left:8px}
.grid.is-soon .lab-card{opacity:.6;filter:grayscale(.35)}

/* Install page: what to do about download warnings, and checking the file */
.dl-warning ul{margin:10px 0 6px;padding-left:20px}
.dl-warning li{margin:6px 0;line-height:1.5}
.dl-stop{margin:12px 0 8px;padding:10px 12px;border-left:3px solid var(--red);background:var(--bg-2);border-radius:4px;line-height:1.5}
.dl-verify summary{cursor:pointer;font-size:.85rem;color:var(--dim)}
.dl-verify .dl-sha{display:block;margin-top:4px;font:500 .78rem var(--mono);overflow-wrap:anywhere;word-break:break-all}
.dl-verify code{overflow-wrap:anywhere}

/* Staff Notices page: the link and start-time fields look like the other fields */
.field input[type=url], .field input[type=datetime-local] {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font: 400 1rem var(--sans);
}
.st-form .field input[type=url], .st-form .field input[type=datetime-local] { padding: 9px 11px; font-size: .92rem; }
.st-form .grid { gap: 12px 16px; }
.field input[type=url], .field input[type=datetime-local] { background: #ffffff; }

/* ML Certificate Internship */
.course-body{margin:0;height:100vh;height:100dvh;overflow:hidden}
.course-app{display:flex;flex-direction:column;height:100%}
.course-top{display:flex;align-items:center;gap:16px;padding:6px 14px;font-size:13px;border-bottom:1px solid #e2e8f0;background:#fff;flex:none}
.course-who{flex:1;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.course-save{color:#64748b;white-space:nowrap}
.course-save.ok{color:#15803d}
.course-save.bad{color:#b91c1c}
.course-stop{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:#fef2f2;color:#7f1d1d;font-size:14px;flex:none}
.course-stop[hidden]{display:none}
.course-frame{flex:1;width:100%;min-height:0;border:0;display:block}
.course-list{margin:8px 0 0;padding-left:22px;line-height:1.75}
.course-list + h2{margin-top:24px}
.course-fee{font-size:2.4rem;font-weight:800;line-height:1.15;margin:6px 0 10px}
.course-fee small{font-size:.95rem;font-weight:500;color:#64748b}

/* ML Certificate Internship: animated branch artwork (inline SVG, animated here so the strict CSP stays) */
.ia{display:block;width:100%;height:auto}
.ia *{transform-box:fill-box;transform-origin:center}
.ia-run{stroke-dasharray:14 200;animation:ia-run 2.6s linear infinite}
.ia-ecg{stroke-dasharray:26 200;animation:ia-ecg 3.2s linear infinite}
.ia-draw{stroke-dasharray:100;animation:ia-draw 6s ease-in-out infinite}
.ia-pulse{animation:ia-pulse 2.4s ease-in-out infinite}
.ia-blink{animation:ia-blink 1.6s ease-in-out infinite}
.ia-breathe{animation:ia-breathe 5s ease-in-out infinite}
.ia-ping{animation:ia-ping 2.4s ease-out infinite}
.ia-grow{transform-origin:bottom;animation:ia-grow 4.2s ease-in-out infinite}
.ia-flip{animation:ia-flip 3.6s ease-in-out infinite}
.ia-spin-a{animation:ia-cw 12.8s linear infinite}
.ia-spin-b{animation:ia-ccw 8s linear infinite}
.ia-hub .ia-spin-a{animation-duration:26s}
.ia-hub .ia-spin-b{animation-duration:18s}
.ia-slide60{animation:ia-slide60 1.8s linear infinite}
.ia-slide44{animation:ia-slide39 1.3s linear infinite}
.ia-slide40{animation:ia-slide40 2.6s linear infinite}
.ia-slide60r{animation:ia-slide60 .55s linear infinite}
.ia-scan{animation:ia-scan 5s ease-in-out infinite alternate}
.ia-drive{animation:ia-drive 7s linear infinite}
.ia-beat{animation:ia-beat 1.6s ease-in-out infinite}
.ia-roll{animation:ia-cw .7s linear infinite}
.ia-bob{animation:ia-bob .9s ease-in-out infinite}
.ia-lines{animation:ia-blink .8s ease-in-out infinite}
.ia-float{animation:ia-float 4.5s ease-in-out infinite}
.ia-cell{animation:ia-cell 4s step-end infinite}
.ia-c1{animation-name:ia-cell1}.ia-c2{animation-name:ia-cell2}.ia-c3{animation-name:ia-cell3}.ia-c4{animation-name:ia-cell4}
.ia-d1{animation-delay:-.3s}.ia-d2{animation-delay:-.65s}.ia-d3{animation-delay:-1s}.ia-d4{animation-delay:-1.3s}.ia-d5{animation-delay:-1.65s}.ia-d6{animation-delay:-2s}.ia-d7{animation-delay:-2.3s}
@keyframes ia-run{from{stroke-dashoffset:14}to{stroke-dashoffset:-100}}
@keyframes ia-ecg{from{stroke-dashoffset:26}to{stroke-dashoffset:-100}}
@keyframes ia-draw{0%{stroke-dashoffset:100;opacity:1}60%,88%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes ia-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes ia-blink{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes ia-breathe{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes ia-ping{0%{transform:scale(.5);opacity:1}80%,100%{transform:scale(2.3);opacity:0}}
@keyframes ia-grow{0%,100%{transform:scaleY(.72)}50%{transform:scaleY(1)}}
@keyframes ia-flip{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.12)}}
@keyframes ia-cw{to{transform:rotate(360deg)}}
@keyframes ia-ccw{to{transform:rotate(-360deg)}}
@keyframes ia-slide60{to{transform:translateX(-60px)}}
@keyframes ia-slide39{to{transform:translateX(-39px)}}
@keyframes ia-slide40{to{transform:translateX(-40px)}}
@keyframes ia-scan{from{transform:translateX(0)}to{transform:translateX(283px)}}
@keyframes ia-drive{from{transform:translateX(0)}to{transform:translateX(410px)}}
@keyframes ia-beat{0%,30%,60%,100%{transform:scale(1)}15%{transform:scale(1.2)}45%{transform:scale(1.13)}}
@keyframes ia-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.4px)}}
@keyframes ia-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes ia-cell{0%,100%{opacity:1}}
@keyframes ia-cell1{0%{opacity:.14}20%,100%{opacity:1}}
@keyframes ia-cell2{0%{opacity:.14}40%,100%{opacity:1}}
@keyframes ia-cell3{0%{opacity:.14}60%,100%{opacity:1}}
@keyframes ia-cell4{0%{opacity:.14}80%,100%{opacity:1}}
@media (prefers-reduced-motion: reduce){.ia *{animation:none!important}.ia-run,.ia-ecg{stroke-dasharray:none;stroke-opacity:.6}.ia-ping{opacity:.8}}

.course-hero{display:grid;gap:36px;align-items:center}
@media (min-width:900px){.course-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}}
.course-hero-art{max-width:560px;width:100%;margin:0 auto;border-radius:20px;overflow:hidden;box-shadow:0 24px 50px -24px rgba(13,44,107,.55)}
.branch-grid{display:grid;gap:18px;grid-template-columns:1fr}
@media (min-width:620px){.branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1120px){.branch-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.branch-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.branch-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px -18px rgba(13,44,107,.42)}
.branch-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.branch-body h3{margin:0;font-size:1.06rem}
.branch-body p{margin:0;font-size:.92rem;color:var(--muted);line-height:1.5}
.branch-ideas{margin:4px 0 0;padding-left:18px;font-size:.86rem;color:var(--ink-2);line-height:1.5}
.branch-note{text-align:center;margin:22px auto 0;max-width:760px}
.intern-band{padding:36px 0 8px}
.intern-card{display:grid;gap:26px;align-items:center;background:linear-gradient(120deg,#081334,#0f2f6e 62%,#0d5a5c);color:#fff;border-radius:22px;padding:30px;overflow:hidden;box-shadow:0 26px 54px -28px rgba(13,44,107,.7)}
@media (min-width:900px){.intern-card{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);padding:40px 44px}}
.intern-card h2{color:#fff;margin:6px 0 10px;font-size:clamp(1.7rem,3.2vw,2.5rem);line-height:1.15}
.intern-card p{color:#d5e2f7;margin:0 0 14px;line-height:1.55}
.intern-tag{display:inline-block;background:#fbbf24;color:#3b2500;font-weight:700;font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:4px 12px}
.intern-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none}
.intern-chips li{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.07);border-radius:999px;padding:4px 12px;font-size:.84rem;color:#eef4ff}
.intern-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.intern-cta b{font-size:1.15rem;color:#fff}
.intern-cta small{color:#b9cbe8}
.intern-art{max-width:430px;width:100%;margin:0 auto}
.intern-art .ia-hub-bg{display:none}
.branch-body .branch-extra{margin-top:auto;padding-top:8px;font-size:.86rem;font-weight:600;color:var(--brand)}
.ia-pkt{animation:ia-pkt 4.2s linear infinite}
.ia-bad{animation:ia-bad 4.2s linear infinite}
.ia-hit{animation:ia-hit 4.2s ease-out infinite}
@keyframes ia-pkt{0%{transform:translateX(0);opacity:0}6%,92%{opacity:1}100%{transform:translateX(206px);opacity:0}}
@keyframes ia-bad{0%{transform:translateX(0);opacity:0}6%{opacity:1}34%{transform:translateX(66px);opacity:1}40%,100%{transform:translateX(66px);opacity:0}}
@keyframes ia-hit{0%,32%{transform:scale(.4);opacity:0}36%{opacity:1}60%,100%{transform:scale(2.6);opacity:0}}

/* =====================================================================
   Model to chip — MIL · SIL · PIL (home band #model-to-chip and /model-to-chip/)
   Main art: one 10 s cycle — Send pressed, input row travels the USB cable, the chip runs the model,
   the answer travels back, results appear. Stage cards (MIL, SIL, PIL, CIL): highlight moves every 4 s;
   a click opens the pop-up from labs/tour_dialog.html with the loop's own scene (.lps).
   ===================================================================== */
.lp-sec { background: linear-gradient(180deg, #f6f9fe 0%, #ffffff 70%); }
.lp-accent { background: linear-gradient(90deg, #0b5cc4, #178a42); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lp-stages { list-style: none; margin: 6px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.lp-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 1px 2px rgba(15,31,58,.05); animation: lp-stage 16s ease-in-out infinite;
  transition: transform .18s ease; }
.lp-st2 { animation-delay: -12s; } .lp-st3 { animation-delay: -8s; } .lp-st4 { animation-delay: -4s; }
.lp-stage.is-clickable { cursor: pointer; }
.lp-stage.is-clickable:hover { transform: translateY(-3px); }
.lp-stage .lp-more { margin-top: auto; padding-top: 12px; font-weight: 650; }
.lp-stage:hover .lp-more span, .lp-more:focus-visible span { transform: translateX(4px); }
.lp-stage:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid #9fb6d6; border-right: 3px solid #9fb6d6; transform: translateY(-50%) rotate(45deg); }
.lp-stage h3 { margin: 0 0 6px; font-size: 1.08rem; }
.lp-stage p { margin: 0; color: var(--muted); font-size: .95rem; }
.lp-tag { display: inline-block; font: 800 .72rem/1 var(--mono); letter-spacing: .12em; padding: 6px 9px; border-radius: 6px; color: #fff; margin: 10px 0 8px; }
.lp-st1 .lp-tag { background: #6430d6; } .lp-st2 .lp-tag { background: #0b5cc4; } .lp-st3 .lp-tag { background: #178a42; } .lp-st4 .lp-tag { background: #c2410c; }
.lp-ico { display: block; width: 120px; height: 80px; }
.lp-ne { fill: none; stroke: #cdc2f7; stroke-width: 1.4; }
.lp-nn circle { fill: #8b6cf0; animation: lp-node 1.8s ease-in-out infinite; }
.lp-n2 circle { animation-delay: .3s; } .lp-n3 circle { animation-delay: .6s; fill: #6430d6; }
.lp-win { fill: #f6f9fd; stroke: #d6e2f2; }
.lp-code { fill: none; stroke: #0b5cc4; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-type 4s ease-in-out infinite both; }
.lp-c2 { animation-delay: .35s; stroke: #7fb2ff; } .lp-c3 { animation-delay: .7s; stroke: #4fd27e; } .lp-c4 { animation-delay: 1.05s; }
.lp-ok { animation: lp-okpop 4s ease infinite; } .lp-oktx { font: 700 8px var(--mono); fill: #178a42; text-anchor: middle; }
.lp-wire { stroke: #1f2a3d; stroke-width: 4; stroke-linecap: round; fill: none; }
.lp-sig { fill: #4c8dff; animation: lp-sig 2s ease-in infinite; }
.lp-mpins { stroke: #e8c56a; stroke-width: 3; }
.lp-core { fill: none; stroke: #5ff09a; stroke-width: 2; animation: lp-core 2s ease-in-out infinite; }
.lp-mtx { font: 700 10px var(--mono); fill: #e8eef6; text-anchor: middle; }
.lp-mled { fill: #5ff09a; animation: lp-blink 2s ease-in-out infinite; }
.lp-lw { fill: none; stroke: #b9c6da; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lp-lbl { font: 700 8.5px var(--mono); fill: #64748b; text-anchor: middle; }
.lp-cy { fill: #4c8dff; animation: lp-cy 2s linear infinite; }
.lp-cu { fill: #f97316; animation: lp-cu 2s linear infinite; animation-delay: -1s; }
.lp-mot { fill: #fff7ed; stroke: #f59e0b; stroke-width: 2; }
.lp-spin { stroke: #c2410c; stroke-width: 2.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: lp-spin 1.4s linear infinite; }
.lp-hub { fill: #c2410c; }
/* pop-up scenes made for the loops (templates/partials/loop_scenes) */
.lps-sil .lp-code { stroke: #3b82f6; } .lps-sil .lp-c2 { stroke: #93c5fd; } .lps-sil .lp-c3 { stroke: #4ade80; } .lps-sil .lp-c4 { stroke: #60a5fa; }

.lp-show { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: center; margin: 4px 0 30px; }
.lp-side h3 { font-size: 1.35rem; margin: 0 0 10px; }
.lp-list { margin: 14px 0 0; padding: 0; list-style: none; }
.lp-list li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--ink-2); }
.lp-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #178a42; font-weight: 800; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.lp-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 34px 70px -34px rgba(11,60,140,.42); }
.lp-svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.lp-t { font-size: 17px; font-weight: 800; fill: #0f1f3a; }
.lp-s { font: 500 12px var(--mono); fill: #6b7a90; }
.lp-b { font: 700 12.5px var(--sans); fill: #2b3a52; }
.lp-c { text-anchor: middle; }
.lp-k { font-size: 11px; font-weight: 600; fill: #6b7a90; }
.lp-v { font: 700 17px var(--mono); fill: #0f1f3a; }
.lp-box rect { fill: #f6f9fd; stroke: #dfe7f1; }
.lp-btn { font-size: 14px; font-weight: 800; fill: #fff; text-anchor: middle; }
.lp-r { font: 700 14px var(--mono); fill: #14532d; }
.lp-cable { fill: none; stroke: #1f2a3d; stroke-width: 7; stroke-linecap: round; }
.lp-cable-flow { fill: none; stroke: #7fb2ff; stroke-width: 2; stroke-dasharray: 6 10; opacity: .85; animation: lp-flow 1s linear infinite; }
.lp-pk { font: 700 11.5px var(--mono); fill: #fff; text-anchor: middle; }
.lp-pins rect { fill: #e8c56a; }
.lp-trace { fill: none; stroke: #5ec4c9; stroke-width: 2; opacity: .55; }
.lp-chiptx { font: 700 13px var(--mono); fill: #e8eef6; text-anchor: middle; }
.lp-chiptx.lp-sm { font-size: 9.5px; fill: #8fa1ba; letter-spacing: .1em; }
.lp-led { animation: lp-blink 1s ease-in-out infinite; }
.lp-busy { font: 700 12px var(--mono); fill: #bff5d4; text-anchor: middle; opacity: 0; animation: lp-busy 10s linear infinite; }
.lp-bt { font-size: 14px; font-weight: 800; fill: #178a42; text-anchor: middle; }
.lp-bt.lp-blu { fill: #0b4fb0; } .lp-bt.lp-wh { fill: #fff; }
.lp-send { transform-box: fill-box; transform-origin: center; animation: lp-press 10s ease-in-out infinite; }
.lp-out { opacity: 0; animation: lp-out 10s linear infinite; }
.lp-back { opacity: 0; animation: lp-back 10s linear infinite; }
.lp-out-l { opacity: 0; animation: lp-out-l 10s ease infinite; }
.lp-back-l { opacity: 0; animation: lp-back-l 10s ease infinite; }
.lp-glow, .lp-ring { opacity: 0; animation: lp-glow 10s ease-in-out infinite; }
.lp-ring { fill: none; stroke: #5ff09a; stroke-width: 3; }
.lp-res { opacity: 0; animation: lp-res 10s ease infinite; }
.lp-b1 { opacity: 0; animation: lp-b1 10s ease infinite; } .lp-b2 { opacity: 0; animation: lp-b2 10s ease infinite; } .lp-b3 { opacity: 0; animation: lp-b3 10s ease infinite; }

.lp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-fact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 1px 2px rgba(15,31,58,.05), 0 18px 40px -30px rgba(11,60,140,.35); }
.lp-fact b { display: block; font: 800 2rem/1.1 var(--mono); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-f1 { background-image: linear-gradient(90deg, #178a42, #4fd27e); } .lp-f2 { background-image: linear-gradient(90deg, #0b4fb0, #4c8dff); }
.lp-f3 { background-image: linear-gradient(90deg, #6430d6, #a78bfa); } .lp-f4 { background-image: linear-gradient(90deg, #d0561d, #ffb547); }
.lp-fact span { display: block; margin-top: 8px; font-weight: 700; color: #0f1f3a; line-height: 1.35; }
.lp-fact small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.lp-note { font-size: .85rem; color: var(--muted); margin: 14px auto 0; text-align: center; max-width: 760px; }

/* /model-to-chip/ page */
.lp-hero { padding: 56px 0 34px; background: radial-gradient(900px 420px at 85% 0%, rgba(79,210,126,.13), transparent 60%), radial-gradient(900px 420px at 10% 8%, rgba(11,92,196,.11), transparent 60%); }
.lp-hero-head { text-align: center; max-width: 840px; margin: 0 auto 28px; }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; margin: 12px 0 14px; }
.lp-hero .lp-cta { justify-content: center; }
.lp-hero .lp-fig { max-width: 1000px; margin: 0 auto; }
.lp-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 4px; }
.lp-checks h3 { margin: 0 0 4px; }
.lp-try-sec { background: linear-gradient(180deg, #f6f9fe, #ffffff); }
.lp-try { display: grid; grid-template-columns: 1fr 1.2fr; gap: 38px; align-items: center; }
.lp-app { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(11,60,140,.42); }
.lp-app-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f3f6fb; border-bottom: 1px solid var(--line); font: 700 .78rem var(--sans); color: #2b3a52; }
.lp-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lp-app-bar i:nth-child(2) { background: #febc2e; } .lp-app-bar i:nth-child(3) { background: #28c840; }
.lp-app-bar span { margin-left: 8px; }
.lp-app-body { padding: 16px; }
.lp-app-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-app-in label { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.lp-app-in b { display: block; margin-top: 5px; border: 1px solid #dfe7f1; background: #f6f9fd; border-radius: 8px; padding: 8px 10px; font: 700 .95rem var(--mono); color: #0f1f3a; }
.lp-app-btns { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.lp-app-ghost, .lp-app-send { font-size: .78rem; font-weight: 700; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #0f1f3a; }
.lp-app-send { background: var(--brand); color: #fff; border-color: transparent; animation: lp-press2 6s ease-in-out infinite; }
.lp-app-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; animation: lp-outpop 6s ease infinite; }
.lp-app-out div { background: #f6f9fd; border: 1px solid #e3eaf3; border-radius: 10px; padding: 8px 10px; }
.lp-app-out small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.lp-app-out b { display: block; margin-top: 3px; font: 800 1.02rem var(--mono); color: #0b4fb0; }
.lp-app-out b.ok { color: #178a42; }
.lp-app-hist { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .72rem; }
.lp-app-hist th { text-align: left; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .6rem; letter-spacing: .05em; padding: 6px; border-bottom: 1px solid var(--line); }
.lp-app-hist td { padding: 6px; border-bottom: 1px solid #eef2f7; font-family: var(--mono); color: #0f1f3a; }
.lp-app-hist td:nth-child(5) { color: #178a42; font-weight: 800; }
.lp-h4 td { animation: lp-newrow 6s ease infinite; }
.lp-table-wrap { overflow: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lp-table th { text-align: left; padding: 12px 14px; background: #f6f9fd; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.lp-table td { padding: 11px 14px; border-top: 1px solid var(--line); }
.lp-table td:nth-child(3) { color: #178a42; font-weight: 700; white-space: nowrap; }
.lp-table td:nth-child(4) { font-family: var(--mono); font-weight: 700; color: #0b4fb0; white-space: nowrap; }
.lp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat h3 { margin: 0 0 6px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.lp-faq summary { cursor: pointer; font-weight: 700; color: #0f1f3a; }
.lp-faq details p { margin: 10px 0 0; color: var(--muted); }
.lp-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: 22px;
  background: linear-gradient(120deg, #0b4fb0, #0b5cc4 45%, #178a42); color: #fff; box-shadow: 0 30px 60px -30px rgba(11,60,140,.55); }
.lp-band h2 { color: #fff; margin: 0 0 6px; }
.lp-band p { margin: 0; color: rgba(255,255,255,.88); }
.lp-band .lp-cta { margin-top: 0; }
.lp-band .btn-primary { background: #fff; color: #0b4fb0; }
.lp-band .lp-band-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

@keyframes lp-stage { 0%, 22% { border-color: rgba(11,92,196,.6); box-shadow: 0 0 0 4px rgba(11,92,196,.10), 0 22px 44px -24px rgba(11,60,140,.5); }
  27%, 100% { border-color: var(--line); box-shadow: 0 1px 2px rgba(15,31,58,.05); } }
@keyframes lp-cy { 0% { transform: translateX(0); opacity: 0; } 12%, 82% { opacity: 1; } 100% { transform: translateX(32px); opacity: 0; } }
@keyframes lp-cu { 0% { transform: translateX(0); opacity: 0; } 12%, 82% { opacity: 1; } 100% { transform: translateX(-32px); opacity: 0; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-node { 0%, 100% { opacity: .45; } 40% { opacity: 1; } }
@keyframes lp-type { 0% { stroke-dashoffset: 1; } 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes lp-okpop { 0%, 40% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lp-sig { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateX(26px); opacity: 1; } 100% { transform: translateX(26px); opacity: 0; } }
@keyframes lp-core { 0%, 70%, 100% { opacity: .25; } 85% { opacity: 1; } }
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes lp-flow { to { stroke-dashoffset: -16; } }
@keyframes lp-press { 0%, 3%, 9%, 100% { transform: scale(1); } 6% { transform: scale(.95); } }
@keyframes lp-out { 0%, 7% { opacity: 0; transform: translateX(0); } 9% { opacity: 1; transform: translateX(0); }
  27% { opacity: 1; transform: translateX(186px); } 30%, 100% { opacity: 0; transform: translateX(186px); } }
@keyframes lp-glow { 0%, 28% { opacity: 0; } 31% { opacity: 1; } 35% { opacity: .35; } 39% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes lp-busy { 0%, 28% { opacity: 0; } 31%, 41% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes lp-back { 0%, 42% { opacity: 0; transform: translateX(186px); } 44% { opacity: 1; transform: translateX(186px); }
  62% { opacity: 1; transform: translateX(0); } 65%, 100% { opacity: 0; transform: translateX(0); } }
@keyframes lp-out-l { 0%, 8% { opacity: 0; } 11%, 27% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes lp-back-l { 0%, 42% { opacity: 0; } 45%, 61% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes lp-res { 0%, 63% { opacity: 0; } 67%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes lp-b1 { 0%, 67% { opacity: 0; transform: translateY(10px); } 71%, 94% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes lp-b2 { 0%, 72% { opacity: 0; transform: translateY(10px); } 76%, 94% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes lp-b3 { 0%, 77% { opacity: 0; transform: translateY(10px); } 81%, 94% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes lp-press2 { 0%, 4%, 12%, 100% { transform: scale(1); box-shadow: none; } 8% { transform: scale(.94); box-shadow: 0 0 0 4px rgba(11,92,196,.18); } }
@keyframes lp-outpop { 0%, 10% { opacity: .35; } 18%, 100% { opacity: 1; } }
@keyframes lp-newrow { 0%, 10% { background: transparent; } 16%, 40% { background: #e6f6ec; } 70%, 100% { background: transparent; } }

@media (max-width: 1100px) {
  .lp-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stage:nth-child(2)::after { display: none; }
  .lp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .lp-show, .lp-try { grid-template-columns: 1fr; }
  .lp-facts { grid-template-columns: repeat(2, 1fr); }
  .lp-feat, .lp-checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .lp-stages { grid-template-columns: 1fr; gap: 30px; }
  .lp-stage:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -21px; transform: translateX(-50%) rotate(135deg); }
  .lp-feat, .lp-checks { grid-template-columns: 1fr; }
  .lp-app-in, .lp-app-out { grid-template-columns: repeat(2, 1fr); }
  .lp-app-hist th:nth-child(4), .lp-app-hist td:nth-child(4) { display: none; }
  .lp-band { padding: 26px 22px; }
}
@media (max-width: 480px) { .lp-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .lp-stage, .lp-svg *, .lp-ico *, .lp-app * , .lp-app-out { animation: none !important; }
  .lp-out, .lp-back, .lp-out-l, .lp-busy, .lp-glow, .lp-ring, .lp-sig { opacity: 0; }
  .lp-back-l { opacity: 1; }
  .lp-res, .lp-b1, .lp-b2, .lp-b3, .lp-ok { opacity: 1; transform: none; }
  .lp-code { stroke-dashoffset: 0; }
  .lp-st3 { border-color: rgba(11,92,196,.6); }
  .lp-stage.is-clickable:hover { transform: none; }
}

/* =====================================================================
   Labs page — illustrated, animated card art for every lab (templates/labs/art/<slug>.html,
   same drawing style as the internship branch cards; uses the .ia-* motion above).
   Moving dots use SVG motion paths; site.js pauses them off screen and for reduced motion.
   ===================================================================== */
.lab-card.has-art { padding-top: 0; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease; }
.lab-card.has-art:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(13,44,107,.42); }
.lab-art { margin: 0 -24px 16px; overflow: hidden; line-height: 0; background: #0b1222; border-bottom: 1px solid var(--line); }
.lab-art .lx { transition: transform .4s ease; }
.lab-card.has-art:hover .lx { transform: scale(1.035); }
.lx [transform] { transform-box: view-box; transform-origin: 0 0; }
.lx-gxl { transform-origin: left; animation: lx-gx 4.2s ease-in-out infinite; }
.lx-gxr { transform-origin: right; animation: lx-gx 4.2s ease-in-out infinite; }
@keyframes lx-gx { 0%, 100% { transform: scaleX(.55); } 50% { transform: scaleX(1); } }
.lx-off * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .lx *, .lab-art .lx { animation: none !important; transition: none !important; }
  .lab-card.has-art:hover, .lab-card.has-art:hover .lx { transform: none; }
}

/* =====================================================================
   Labs page — "what you can do" pop-up (templates/labs/tour_dialog.html; steps in labs/tours.py; site.js plays it)
   ===================================================================== */
.ti-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lab-card.is-clickable { cursor: pointer; }
/* Controller in the loop chip on the 9 simulation tools (labs/tours.py CIL_LABS); links to /model-to-chip/#loop-cil */
.lab-cil { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin: -4px 0 10px; padding: 4px 11px 4px 5px;
  border-radius: 999px; background: #fff4e8; border: 1px solid #f6c9a0; color: #9a3412; font-size: .8rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.lab-cil b { font: 800 .66rem/1 var(--mono); letter-spacing: .1em; color: #fff; background: #c2410c; padding: 4px 6px; border-radius: 999px; }
.lab-cil svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #c2410c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: 3px; order: 2; }
.lab-cil span { order: 3; }
.lab-cil:hover, .lab-cil:focus-visible { background: #ffe9d4; border-color: #f0a868; color: #7c2d12; text-decoration: none; }
.lab-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; padding: 4px 0; border: 0; background: none;
  font: 600 .92rem/1.4 var(--sans); color: var(--brand); cursor: pointer; }
.lab-more[hidden] { display: none; }
.lab-more span { transition: transform .2s ease; }
.lab-card:hover .lab-more span, .lab-more:focus-visible span { transform: translateX(4px); }
html.tour-open { overflow: hidden; }
.tour { width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto;
  padding: 0; border: 0; border-radius: 20px; background: var(--panel); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(8,20,52,.6); }
.tour::backdrop { background: rgba(6,12,28,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tour[open] { animation: tour-in .34s cubic-bezier(.2,.8,.2,1); }
.tour[open]::backdrop { animation: tour-fade .3s ease; }
@keyframes tour-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes tour-fade { from { opacity: 0; } }
.tour-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 880px) { .tour-box { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.tour-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.94); color: var(--text); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(8,20,52,.5); }
.tour-x svg, .tour-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tour-x:hover { border-color: var(--brand); color: var(--brand); }
.tour-side { display: flex; flex-direction: column; background: var(--panel-2); border-right: 1px solid var(--line); }
.tour-art { background: #0b1222; line-height: 0; }
.tour-art .lx { width: 100%; height: auto; }
.tour-art[hidden] { display: none; }
.tour-now { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: linear-gradient(90deg, #0b1630, #10264d); color: #fff; line-height: 1.25; min-height: 64px; }
.tour-now.pop .tour-now-ico, .tour-now.pop .tour-now-t { animation: tour-now .55s cubic-bezier(.2,.8,.2,1); }
.tour-now-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
.tour-now-ico svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tour-now-t { display: grid; gap: 2px; min-width: 0; }
.tour-now small { font: 600 .68rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; }
.tour-now b { font-size: .98rem; font-weight: 700; }
@keyframes tour-now { from { opacity: 0; transform: translateX(-10px); } }
.tour-info { padding: 20px 24px 24px; }
.tour-coll { font: 600 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.tour-soon { display: none; margin-left: 6px; vertical-align: middle; }
.tour.is-soon .tour-soon { display: inline-block; }
.tour-info h2 { margin: 6px 0 8px; font-size: 1.5rem; line-height: 1.2; }
.tour-lead { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.tour-avail { padding-top: 12px; border-top: 1px dashed var(--line-2); font: 500 .76rem/1.5 var(--mono); color: var(--dim); }
.tour-main { padding: 22px 24px 20px; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 880px) { .tour-main { padding-top: 26px; } }
.tour-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 52px 12px 0; }
@media (max-width: 879px) { .tour-head { margin-right: 0; } }
.tour-head b { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.tour-head span { font: 600 .78rem/1 var(--mono); color: var(--brand); white-space: nowrap; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tour-step { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; animation: tour-step-in .45s cubic-bezier(.2,.8,.2,1) backwards; }
.tour-step:nth-child(2) { animation-delay: .05s; } .tour-step:nth-child(3) { animation-delay: .1s; } .tour-step:nth-child(4) { animation-delay: .15s; }
.tour-step:nth-child(5) { animation-delay: .2s; } .tour-step:nth-child(6) { animation-delay: .25s; } .tour-step:nth-child(7) { animation-delay: .3s; }
@keyframes tour-step-in { from { opacity: 0; transform: translateY(10px); } }
.tour-step-btn { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tour-ico { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  transition: background-color .3s ease, color .3s ease; }
.tour-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour-txt { display: grid; min-width: 0; padding-top: 8px; }
.tour-txt b { font-size: .97rem; font-weight: 650; line-height: 1.3; }
.tour-desc-w { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.tour-desc { overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.5; opacity: 0; transition: opacity .35s ease .05s; }
.tour-step.is-on { border-color: rgba(11,92,196,.45); background: linear-gradient(180deg, #f3f8ff, #ffffff); box-shadow: 0 12px 26px -16px rgba(11,92,196,.55); }
.tour-step.is-on .tour-desc-w { grid-template-rows: 1fr; }
.tour-step.is-on .tour-desc { opacity: 1; padding-top: 3px; }
.tour-step.is-on .tour-ico { background: var(--brand); color: #fff; animation: tour-pop .5s cubic-bezier(.2,.8,.2,1); }
.tour-step.is-on .tour-ico::after { content: ""; position: absolute; inset: -2px; border-radius: 12px; border: 2px solid var(--brand); animation: tour-ring 1.8s ease-out infinite; }
.tour-step.is-done .tour-ico { background: var(--cyan-soft); color: var(--cyan); }
.tour-step-btn:hover .tour-txt b { color: var(--brand); }
@keyframes tour-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes tour-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.tour-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; }
.tour-step.is-on .tour-bar { animation: tour-bar var(--tour-dur, 5200ms) linear forwards; }
.tour.is-paused .tour-step.is-on .tour-bar { animation-play-state: paused; }
@keyframes tour-bar { to { transform: scaleX(1); } }
.tour-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.tour-ctl { display: flex; gap: 6px; }
.tour-ctl button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; }
.tour-ctl button:hover { border-color: var(--brand); color: var(--brand); }
.tour-ctl .i-play { display: none; }
.tour.is-paused .tour-ctl .i-play { display: block; }
.tour.is-paused .tour-ctl .i-pause { display: none; }
.tour-cta { display: flex; flex-wrap: wrap; gap: 8px; }
/* reduced motion: every step open, nothing plays by itself */
.tour.is-still .tour-desc-w { grid-template-rows: 1fr; }
.tour.is-still .tour-desc { opacity: 1; padding-top: 3px; }
.tour.is-still [data-tour-play] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tour[open], .tour[open]::backdrop, .tour-step, .tour-step.is-on .tour-ico, .tour-step.is-on .tour-ico::after, .tour-now.pop .tour-now-ico, .tour-now.pop .tour-now-t { animation: none !important; }
  .tour-step.is-on .tour-bar { animation: none; transform: scaleX(1); }
  .tour-desc-w, .tour-desc { transition: none; }
}

/* ==========================================================================
   Staff · ML Certificate Internship: learners, progress, certificates, and the staff bar in the course
   ========================================================================== */
.si-open { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 18px; border-color: rgba(11,92,196,.35); background: var(--brand-soft); }
.si-open > div { flex: 1 1 320px; display: grid; gap: 4px; }
.si-open-f { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.si-open-f .field { margin: 0; }
.si-open-f .field label { font-size: .78rem; margin-bottom: 4px; }
.si-open-f select { padding: 8px 10px; font-size: .9rem; }
.si-chart { max-width: 560px; }
.si-lbl { font: 500 13px var(--sans); fill: var(--ink-2); }
.si-num { font: 700 13px var(--sans); fill: var(--text); }
.si-track { fill: var(--bg-2); }
.si-row:hover .st-fill { fill: var(--brand-hover); }
.si-h { margin: 28px 0 12px; }
@media (min-width: 760px) { .si-filters { grid-template-columns: 2fr repeat(5, 1fr) auto; } }
.si-list { min-width: 1080px; }
.si-sub { font-size: .92rem; margin: 16px 0 6px; }
.si-details summary { cursor: pointer; color: var(--brand); font-size: .9rem; margin: 8px 0; }
.si-text { font-size: .9rem; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.si-record { max-height: 520px; overflow: auto; font: 500 .74rem/1.55 var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.si-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.si-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.si-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.si-facts span { color: var(--muted); }
.course-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 7px 14px; font-size: 13px; background: #eef4ff; border-bottom: 1px solid #c9dafc; flex: none; }
.course-staff-t { color: #0b5cc4; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.course-staff label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #334155; }
.course-staff select { font: inherit; padding: 4px 8px; border: 1px solid #c3d0e2; border-radius: 6px; background: #fff; max-width: 260px; }
.course-staff .btn-sm { padding: 5px 12px; font-size: 13px; }
.course-staff a { font-weight: 600; }
@media (max-width: 640px) { .course-staff select { max-width: 200px; } }
