/* Layout idea: the site reads like the devices look. Black device faces, one red signal (the power dots),
   a paper band where the software lives. Hero = a live activity feed, the platform's heartbeat. */
:root {
  --ink: #F6F4EF;        /* page: warm paper */
  --face: #FFFFFF;       /* panels */
  --line: #E2DDD3;       /* hairlines */
  --paper: #ECE7DC;      /* software band */
  --red: #E4002B;        /* the dots, the only accent */
  --mute: #6E695F;       /* secondary text, warm grey */
  --text: #151412;
  --paper-ink: #151412;
  --paper-mute: #625D54;
  --paper-line: #D3CCBE;
  --ok: #3FB27F;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; font-variation-settings: "wdth" 72; text-transform: uppercase; }
h3 { font-size: 22px; font-variation-settings: "wdth" 90; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.kicker svg { width: 14px; height: auto; }
.lede { color: var(--mute); max-width: 60ch; font-size: 18px; }

/* nav */
nav { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 34px; width: auto; }
.brand span { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--mute); }
.navlinks { display: flex; gap: 30px; font-size: 16px; font-weight: 500; }
.navlinks a { text-decoration: none; color: var(--mute); }
.navlinks a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: #c40025; }
.btn:hover { border-color: var(--mute); }
@media (max-width: 860px) { .navlinks { display: none; } }

/* hero */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(52px, 8.4vw, 118px); line-height: 0.88; font-variation-settings: "wdth" 64; text-transform: uppercase; font-weight: 850; margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.console { background: var(--face); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -45px rgba(21,20,18,0.35); }
.console-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.console-head .live { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(228,0,43,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(228,0,43,0); } 100% { box-shadow: 0 0 0 0 rgba(228,0,43,0); } }
.stream { height: 360px; overflow: hidden; padding: 10px 0; font-family: var(--mono); font-size: 12.5px; display: flex; flex-direction: column; justify-content: flex-end; }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 4px 16px; white-space: nowrap; animation: slidein .35s ease-out; }
.row .t { color: #A8A29A; }
.row .topic { color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.row .topic b { color: var(--text); font-weight: 500; }
.row .v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.row.cmd .v { color: var(--red); }
.row.ack .v { color: var(--ok); }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.console-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 14px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.stat .n { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.stat .n small { font-size: 13px; color: var(--mute); font-weight: 500; margin-left: 2px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .console-foot { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .row { grid-template-columns: 52px 1fr auto; } }

/* pillars strip */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pillar { padding: 26px 24px 28px; border-right: 1px solid var(--line); text-decoration: none; display: grid; gap: 8px; transition: background .2s; }
.pillar:hover { background: var(--face); }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--mono); font-size: 12px; color: var(--red); }
.pillar h3 { font-size: 20px; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.pillar p { color: var(--mute); font-size: 14.5px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid var(--line); } }

section { padding: 96px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.sec-head .kicker { margin-bottom: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 18px; } }

/* system map */
.map { background: var(--face); border: 1px solid var(--line); border-radius: 22px; padding: 28px; overflow-x: auto; }
.map svg { display: block; min-width: 820px; width: 100%; height: auto; }
.map text { font-family: var(--mono); fill: var(--mute); font-size: 12px; }
.map .lbl { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; fill: var(--text); font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.flow-line { stroke: #3a3a3a; stroke-width: 1.5; fill: none; }
.flow-water { stroke: var(--red); stroke-width: 2; fill: none; stroke-dasharray: 4 10; animation: dash 1.6s linear infinite; }
.flow-data { stroke: #6c6862; stroke-width: 1.2; fill: none; stroke-dasharray: 2 6; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.legend { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-family: var(--mono); font-size: 12px; }
.legend i { width: 26px; height: 0; border-top: 2px dashed var(--red); }
.legend i.d { border-top: 1.5px dotted #6c6862; }

/* devices */
.lineup { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 40px 20px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.dev-btn { background: none; border: 0; padding: 0 0 18px; cursor: pointer; color: var(--mute); display: grid; justify-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; flex: none; transition: color .2s; }
.dev-btn svg { display: block; filter: drop-shadow(0 14px 18px rgba(21,20,18,.28)); transition: transform .25s; }
.dev-btn:hover svg { transform: translateY(-4px); }
.dev-btn[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.scale-note { text-align: center; color: #A8A29A; font-family: var(--mono); font-size: 11px; margin-top: 12px; }
.dev-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-top: 48px; }
.dname { font-size: 26px !important; font-variation-settings: "wdth" 80 !important; margin-bottom: 14px; }
.dhd.role { color: var(--red); }
.dname span { font-weight: 450; letter-spacing: .015em; margin-right: .06em; }
.dspec { margin-top: 28px; }
.dhd { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--text); margin-bottom: 22px; }
.dev-detail h3 { font-size: clamp(36px, 4vw, 50px); text-transform: uppercase; font-variation-settings: "wdth" 68; line-height: 1; }
.dev-detail .role { color: var(--red); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.dev-detail .desc { color: var(--mute); margin-top: 18px; max-width: 56ch; }
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); width: 34%; padding-right: 16px; padding-top: 13px; }
.spec td { font-variant-numeric: tabular-nums; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; }
.price b { font-family: var(--display); font-size: 34px; font-variation-settings: "wdth" 75; }
.price span { color: var(--mute); font-size: 14px; }
@media (max-width: 860px) { .dev-detail { grid-template-columns: 1fr; gap: 28px; } .lineup { justify-content: flex-start; } }

/* paper band: software */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .kicker, .paper .lede { color: var(--paper-mute); }
.sw-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--paper-line); }
.feat { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--paper-line); }
.feat:nth-child(odd) { border-right: 1px solid var(--paper-line); }
.feat:nth-child(even) { padding-left: 20px; padding-right: 0; }
.feat h3 { font-size: 17px; text-transform: uppercase; font-variation-settings: "wdth" 78; margin-bottom: 6px; }
.feat p { color: var(--paper-mute); font-size: 14.5px; }
.app { background: #FFFFFF; color: var(--text); border: 1px solid var(--paper-line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -45px rgba(21,20,18,.4); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar svg { height: 18px; width: auto; }
.app-bar .crumbs { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.app-bar .run { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ok); border: 1px solid rgba(63,178,127,.4); padding: 3px 9px; border-radius: 999px; }
.app-body { padding: 18px; display: grid; gap: 8px; }
.app-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.app-title b { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: 19px; }
.app-title span { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.step { display: grid; grid-template-columns: 28px 112px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; background: #F7F5F0; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.step .i { font-family: var(--mono); font-size: 11px; color: #A8A29A; }
.step .op { font-family: var(--mono); font-size: 12px; color: var(--red); }
.step .st { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.step.done .st { color: var(--ok); }
.step.now { border-color: rgba(228,0,43,.55); background: #FFF1F3; }
.step.nest { margin-left: 28px; }
@media (max-width: 960px) { .sw-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feat:nth-child(odd) { border-right: 0; } .feat:nth-child(even) { padding-left: 0; } .step { grid-template-columns: 22px 90px 1fr; } .step .st { display: none; } }

/* facility */
.fac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fac > div { background: var(--ink); padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; }
.fac .tag { font-family: var(--mono); font-size: 11.5px; color: var(--red); letter-spacing: .1em; text-transform: uppercase; }
.fac h3 { font-size: 24px; text-transform: uppercase; font-variation-settings: "wdth" 72; }
.fac p { color: var(--mute); font-size: 15px; }
.fac ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; }
.fac li { display: flex; gap: 10px; }
.fac li::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 2px; margin-top: 8px; flex: none; }
.zone-card { background: var(--face); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 8px; display: grid; gap: 10px; }
.zone-card .zr { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.zone-card .zr b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.zone-card svg { width: 100%; height: 56px; display: block; }
@media (max-width: 960px) { .fac { grid-template-columns: 1fr; } }

/* architecture */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stack { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--face); align-items: center; }
.layer .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.layer .v { font-size: 15px; }
.layer.hl { border-color: rgba(228,0,43,.5); }
.topicbox { margin-top: 26px; padding: 16px 18px; border-left: 2px solid var(--red); background: var(--face); border-radius: 0 10px 10px 0; font-family: var(--mono); font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.topicbox span { color: var(--mute); }
.points { display: grid; gap: 22px; margin-top: 28px; }
.points div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.points b { display: block; font-weight: 600; margin-bottom: 2px; }
.points p { color: var(--mute); font-size: 15px; }
.points .n { font-family: var(--mono); color: var(--red); font-size: 13px; padding-top: 3px; }
@media (max-width: 960px) { .arch { grid-template-columns: 1fr; } .layer { grid-template-columns: 1fr; gap: 4px; } }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc > div { border-top: 2px solid var(--red); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.svc h3 { font-size: 19px; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.svc p { color: var(--mute); font-size: 15px; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } }

/* proof / roadmap */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.tl { padding: 22px 20px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mute); }
.tl.on::before { background: var(--red); border-color: var(--red); }
.tl .when { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.tl b { display: block; font-family: var(--display); font-variation-settings: "wdth" 80; font-size: 19px; margin: 6px 0; }
.tl p { color: var(--mute); font-size: 14.5px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* closing */
.closing { border-top: 1px solid var(--line); padding: 88px 0 72px; }
.closing .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.closing h2 { font-size: clamp(42px, 6.4vw, 88px); font-variation-settings: "wdth" 64; line-height: .9; }
.closing h2 em { font-style: normal; color: var(--red); }
.closing .side { display: grid; gap: 18px; color: var(--mute); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: #8a857d; font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer svg { height: 36px; width: auto; }
.foot-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.foot-legal { grid-column: 1 / -1; margin: 32px 0 0; font-size: 13px; color: var(--k-mute, #8a857d); }
@media (max-width: 860px) { .closing .wrap { grid-template-columns: 1fr; } .foot-btns { justify-content: flex-start; } }


/* ---------- installation + simulator ---------- */
.sim { background: var(--face); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; --water: #3E97AE; --wire: #A8873A; }
.sim-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.play { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px 11px 16px; font: 600 14px var(--body); cursor: pointer; min-width: 168px; justify-content: center; }
.play:hover { background: #3a3733; }
.play svg { width: 14px; height: 14px; fill: #fff; }
.ghost { background: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--body); cursor: pointer; }
.ghost:hover { border-color: var(--mute); }
.segctl { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.segctl button { background: none; border: 0; color: var(--mute); padding: 9px 13px; font: 500 12.5px var(--mono); cursor: pointer; }
.segctl button[aria-pressed="true"] { background: #ECE7DE; color: var(--text); }
.views { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.views label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 12.5px var(--mono); color: var(--mute); cursor: pointer; user-select: none; }
.views input { accent-color: var(--red); margin: 0; }
.views label i { width: 16px; height: 0; border-top: 2px solid; display: inline-block; }
.clock { margin-left: auto; text-align: right; }
.clock .k { font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: block; }
.clock b { font: 700 26px var(--display); font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; }
.clock .lt { font: 11px var(--mono); color: var(--mute); }
.clock .lt.on { color: #B08A12; }
.stage { overflow-x: auto; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 1px 1px, #E4DFD5 1px, transparent 0) 0 0 / 22px 22px, #FBFAF7; }
#dia { display: block; width: 100%; min-width: 960px; height: auto; }
#dia text { font-family: var(--mono); font-size: 11px; fill: var(--mute); }
#dia .dlabel { font-size: 10.5px; letter-spacing: .1em; fill: #3f3b35; text-transform: uppercase; }
#dia .vlabel { font-size: 11px; fill: #2a2723; }
#dia .small { font-size: 9.5px; }
#dia .scr { font-size: 8.5px; fill: #d9d5ce; }
#dia .scr.r { fill: var(--red); }
#dia .area { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: #8a857d; }
#dia .wlab { fill: var(--wire); font-size: 9.5px; }
.pipe { stroke: #BDB7AC; stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe-in { stroke: #F3F1EC; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flowp { stroke: var(--water); stroke-width: 3; fill: none; stroke-dasharray: 7 9; opacity: 0; stroke-linecap: round; transition: opacity .2s; }
.seg.on .flowp { opacity: 1; animation: sdash .8s linear infinite; }
.seg.dose .pipe { stroke-width: 5; stroke: #D3CDC2; }
.seg.dose .pipe-in { stroke-width: 2; stroke: #FAF8F4; }
.seg.dose .flowp { stroke: var(--red); stroke-width: 2.2; stroke-dasharray: 4 6; }
@keyframes sdash { to { stroke-dashoffset: -32; } }
.valve polygon { fill: #DAD5CB; stroke: #8f897e; stroke-width: 1; transition: fill .2s; }
.valve .stem { stroke: #8f897e; stroke-width: 2; }
.valve .act { fill: #FFFFFF; stroke: #8f897e; }
.valve.open polygon { fill: var(--water); stroke: #2F7F93; }
.valve.open .act { stroke: var(--water); }
.float circle { fill: #DAD5CB; stroke: #8f897e; transition: fill .2s; }
.float.hi circle { fill: var(--red); stroke: var(--red); }
.impeller { transform-box: fill-box; transform-origin: center; }
.pump.on .impeller { animation: spin .5s linear infinite; }
.pump.on .pbody { stroke: var(--water); }
@keyframes spin { to { transform: rotate(360deg); } }
.wire { stroke: var(--wire); stroke-width: 1.3; fill: none; stroke-dasharray: 5 3; opacity: .9; }
.net { stroke: #8a857d; stroke-width: 1.1; fill: none; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.layer-off { display: none; }
.drip { fill: var(--water); opacity: 0; }
.drips.on .drip { animation: drip .7s linear infinite; }
.drips.on .drip:nth-child(2n) { animation-delay: .35s; }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }
.dp { fill: #2a2a2a; stroke: #444; }
.dp.on { fill: var(--red); stroke: var(--red); }
.led { fill: #2a2a2a; }
.led.on { fill: var(--water); }
#glow { transition: opacity .6s; }
.sim-status { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; flex-wrap: wrap; }
.sim-status .pill { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }
.sim-status .pill.run { color: var(--red); border-color: rgba(228,0,43,.5); }
.sim-status .pill.ok { color: var(--ok); border-color: rgba(63,178,127,.5); }
.sim-status .pill.warn { color: #B07A12; border-color: rgba(232,176,74,.5); }
.sim-status .det { color: var(--mute); font-family: var(--mono); font-size: 12.5px; margin-left: auto; }
.bar { flex: 1 1 160px; max-width: 260px; height: 4px; background: #E8E3D9; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); }
.panels { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; }
.panels > div { padding: 18px; border-right: 1px solid var(--line); min-width: 0; }
.panels > div:last-child { border-right: 0; }
.ph { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; }
.prog { display: grid; gap: 4px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.prow { display: grid; grid-template-columns: 22px 80px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; color: #4a463f; }
.prow .i { font: 10.5px var(--mono); color: #A8A29A; }
.prow .op { font: 11.5px var(--mono); color: #8a857d; }
.prow .st { font: 11px var(--mono); color: #8a857d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow.done { color: #6E695F; }
.prow.done .st { color: var(--ok); }
.prow.open { background: #F3F0EA; }
.prow.open .op { color: var(--text); }
.prow.now { background: #FFF1F3; border-color: rgba(228,0,43,.55); color: var(--text); }
.prow.now .op { color: var(--red); }
.prow.now .st { color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tile { background: #FFFFFF; padding: 10px 12px; }
.tile .k { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tile .n { font: 700 21px var(--display); font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .n small { font-size: 11.5px; color: var(--mute); font-weight: 500; margin-left: 2px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.chart { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 6px; }
.chart .ct { display: flex; justify-content: space-between; font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.chart svg { display: block; width: 100%; height: 74px; margin-top: 4px; }
.chart text { font: 8.5px var(--mono); fill: #8a857d; }
.log { height: 520px; overflow-y: auto; font: 11.5px var(--mono); display: flex; flex-direction: column; gap: 1px; }
.lrow { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid #EEE9E0; }
.lrow .t { color: #A8A29A; }
.lrow .m { color: var(--mute); word-break: break-word; }
.lrow .m b { color: var(--text); font-weight: 500; }
.lrow.cmd .v { color: var(--red); }
.lrow.ack .v { color: var(--ok); }
.lrow.alarm .v { color: #B07A12; }
.lrow .v { color: var(--text); }
.conn { margin-top: 56px; display: grid; grid-template-columns: 0.8fr 2fr; gap: 40px; }
.conn h3 { font-size: 30px; text-transform: uppercase; font-variation-settings: "wdth" 70; line-height: 1; }
.conn p { color: var(--mute); margin-top: 14px; font-size: 15px; }
.ctab-wrap { overflow-x: auto; }
.ctab { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.ctab th { text-align: left; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ctab td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctab td:first-child { white-space: nowrap; }
.ctab .ty { font: 11px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.ty.pl { color: #2F7F93; } .ty.wi { color: #8C6D24; } .ty.nu { color: var(--red); } .ty.ne { color: #a8a39b; }
@media (max-width: 1100px) { .panels { grid-template-columns: 1fr 1fr; } .panels > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); } .log { height: 300px; } }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } .panels > div { border-right: 0; border-bottom: 1px solid var(--line); } .clock { margin-left: 0; text-align: left; } .conn { grid-template-columns: 1fr; } .prow { grid-template-columns: 20px 70px 1fr; } .prow .st { grid-column: 3; } }

/* per-device program panels */
.kgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.kcard { background: #FFFFFF; padding: 16px 18px 14px; grid-column: span 2; display: grid; gap: 10px; align-content: start; min-width: 0; }
.kcard.wide { grid-column: span 3; }
.khead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.khead h3 { font-size: 18px; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.khead span { font: 11.5px var(--mono); color: var(--mute); }
.kchip { font: 11px var(--mono) !important; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute) !important; white-space: nowrap; transition: color .2s, border-color .2s; }
.kchip.act { color: #2F7F93 !important; border-color: rgba(79,163,184,.55); }
.kchip.red { color: var(--red) !important; border-color: rgba(228,0,43,.55); }
.kchip.ok { color: var(--ok) !important; border-color: rgba(63,178,127,.5); }
.kchip.sun { color: #9A7A10 !important; border-color: rgba(232,210,122,.45); }
.kg { display: block; width: 100%; height: auto; }
.kg text { font-family: var(--mono); font-size: 11px; fill: var(--mute); }
.kg .small { font-size: 10px; }
.kg .lab { font-size: 12px; fill: #2a2723; }
.kg .big { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 700; font-size: 22px; fill: var(--text); }
.kg .flo { fill: #2F7F93; font-size: 10.5px; }
.lk { stroke: #D3CCBE; stroke-width: 1.5; transition: stroke .15s; }
.lk.hot { stroke: var(--red); stroke-width: 2.5; }
.kfoot { font-size: 13px; color: var(--mute); min-height: 20px; }
.kfoot b { color: var(--text); font-weight: 500; }
.outs { display: flex; gap: 6px; flex-wrap: wrap; }
.outs span { display: inline-flex; align-items: center; gap: 6px; font: 11.5px var(--mono); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.outs i { width: 7px; height: 7px; border-radius: 50%; background: #D9D4CA; }
.outs span.on { color: var(--text); border-color: rgba(79,163,184,.55); }
.outs span.on i { background: #3E97AE; box-shadow: 0 0 8px #3E97AE; }
@media (max-width: 1000px) { .kcard, .kcard.wide { grid-column: span 3; } .kcard:last-child { grid-column: span 6; } }
@media (max-width: 680px) { .kcard, .kcard.wide, .kcard:last-child { grid-column: span 6; } }


/* ---------- device pages ---------- */
.dpage[hidden], #home[hidden] { display: none; }
.dp-hero { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.back { display: inline-block; font: 13px var(--mono); color: var(--mute); text-decoration: none; margin-bottom: 26px; }
.back:hover { color: var(--text); }
.dp-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.dp-hero h1 { font-size: clamp(56px, 9vw, 120px); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 64; font-weight: 850; margin: 18px 0 20px; }
.dp-buy { border: 1px solid var(--line); background: var(--face); border-radius: 16px; padding: 20px 22px; display: grid; gap: 10px; font-size: 15px; color: var(--mute); }
.dp-buy .price { margin: 0; }
.dp-buy b { color: var(--text); font-weight: 600; }
.dp-run { padding: 40px 0 72px; }
.phases { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; counter-reset: ph; }
.phases li { counter-increment: ph; font: 12px var(--mono); color: var(--mute); padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.phases li::before { content: counter(ph); font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; background: #ECE7DE; color: var(--mute); }
.phases li.now { color: var(--text); border-color: rgba(228,0,43,.55); background: #FFF1F3; }
.phases li.now::before { background: var(--red); color: #fff; }
.phases li.done::before { content: "✓"; background: rgba(63,178,127,.18); color: var(--ok); }
.split { display: grid; grid-template-columns: minmax(300px, 0.82fr) 1.18fr; }
.split > div { padding: 20px; min-width: 0; }
.split-dev { border-right: 1px solid var(--line); background: #FBFAF7; }
.devsvg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; filter: drop-shadow(0 18px 22px rgba(21,20,18,.22)); }
.devsvg text { font-family: var(--mono); }
.tsvg { display: block; width: 100%; height: auto; }
.tsvg text { font-family: var(--mono); font-size: 12px; fill: var(--mute); }
.tsvg .vlabel { fill: #2a2723; font-size: 12px; }
.tsvg .big { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 700; font-size: 30px; fill: var(--text); }
.tsvg .flo { fill: #2F7F93; }
.tsvg .tagt { font-size: 11px; fill: #2a2723; }
/* touch screen mirror */
.cyd { background: #07090b; color: #e9e6e0; border-radius: 12px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; aspect-ratio: 4 / 3; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; max-width: 420px; margin: 0 auto; border: 6px solid #151515; box-shadow: 0 0 0 1px #2e2e2e; }
.cyd-top { display: flex; justify-content: space-between; color: #8a857d; font-size: 11px; letter-spacing: .08em; }
.cdot { display: inline-block; width: 9px; height: 8.5px; margin-right: 7px; vertical-align: 0; }
.cyd-main { display: grid; grid-template-columns: 46px 1fr; gap: 16px; min-height: 0; }
.cyd-gauge { position: relative; background: #15191c; border-radius: 6px; overflow: hidden; }
.cyd-gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#5fb3c8, #3E97AE); height: 15%; transition: height .2s; }
.cyd-gauge .mk { position: absolute; left: 0; right: 0; border-top: 1px dashed #e9e6e0; font-size: 8px; color: #e9e6e0; padding-left: 3px; opacity: .7; }
.cyd-read { display: grid; align-content: start; gap: 6px; }
.cyd-read .mode { font-size: 11px; letter-spacing: .1em; color: var(--red); }
.cyd-read .mode.ok { color: #5fb3c8; }
.cyd-read .vol { font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 34px; line-height: 1; font-weight: 700; color: #fff; }
.crow { display: flex; gap: 8px; align-items: baseline; color: #8a857d; font-size: 11.5px; }
.crow b { color: #e9e6e0; font-weight: 500; margin-right: 10px; }
.cyd-valves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cyd-valves span { text-align: center; padding: 7px 0; border-radius: 6px; background: #15191c; color: #8a857d; font-size: 10.5px; transition: background .15s; }
.cyd-valves span.on { background: #3E97AE; color: #fff; }
/* floor connectors */
.ports { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ports li { background: #fff; display: grid; grid-template-columns: 12px 92px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.ports i { width: 8px; height: 8px; border-radius: 50%; background: #D9D4CA; }
.ports li.on i { background: #3E97AE; box-shadow: 0 0 8px #3E97AE; }
.ports li.warn i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.ports b { font-weight: 600; }
.ports span { color: var(--mute); font-size: 12px; }
.ports em { font: normal 12px var(--mono); color: var(--text); text-align: right; }
.tp-lower { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 16px; }
.tprog { max-height: 380px; }
.tlog { height: 380px; }
.tprog .phc { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding: 10px 0 2px; }
/* devsvg parts */
.hdr { fill: #2a2a2a; stroke: #444; transition: fill .15s, stroke .15s; }
.hdr.on { fill: #1d3d46; stroke: #5fb3c8; }
.hdr.warn { fill: #3d1219; stroke: var(--red); }
/* what it controls */
.dp-what { border-top: 1px solid var(--line); }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wgrid > div { background: var(--face); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.wgrid .tag { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.wgrid h3 { font-size: 21px; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.wgrid p { color: var(--mute); font-size: 15px; }
.tspec { max-width: 760px; margin-top: 40px; }
.dev-link { margin-top: 22px; }
@media (max-width: 1100px) { .wgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split-dev { border-right: 0; border-bottom: 1px solid var(--line); } .dp-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tp-lower { grid-template-columns: 1fr; } .wgrid { grid-template-columns: 1fr; } .ports li { grid-template-columns: 12px 80px 1fr; } .ports em { grid-column: 2 / -1; text-align: left; } }

/* device page extras */
.covtoggle { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.covtoggle label { display: inline-flex; gap: 8px; align-items: center; font: 12.5px var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; background: #fff; }
.covtoggle input { accent-color: var(--red); margin: 0; }
.cyd-dose { display: grid; align-content: start; gap: 8px; }
.cyd-dose .mode { font-size: 11px; letter-spacing: .1em; color: #5fb3c8; }
.cyd-dose .vol { font-family: var(--display); font-variation-settings: "wdth" 75; font-size: 34px; line-height: 1; font-weight: 700; color: #fff; }
.cprog { height: 6px; background: #15191c; border-radius: 4px; overflow: hidden; }
.cprog i { display: block; height: 100%; width: 0; background: var(--red); }
.cyd .cyd-valves span b { display: block; color: #e9e6e0; font-weight: 500; margin-top: 2px; }
#page-kija-dose .cyd .cyd-valves span.on { background: var(--red); }
.oled { background: #000; border: 6px solid #151515; box-shadow: 0 0 0 1px #2e2e2e; border-radius: 10px; aspect-ratio: 2 / 1; max-width: 420px; margin: 0 auto; padding: 14px 16px; display: grid; align-content: center; gap: 8px; font-family: var(--mono); color: #f2f2f2; transition: opacity .4s; }
.oled.off > * { opacity: .04; }
.oled > * { transition: opacity .4s; }
.orow { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: baseline; font-size: 13px; }
.orow b { font-size: 24px; font-weight: 500; }
.orow.sm { grid-template-columns: 1fr auto; font-size: 12px; color: #9a958d; }
.appm { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-width: 420px; margin: 0 auto; display: grid; gap: 10px; box-shadow: 0 20px 40px -30px rgba(21,20,18,.4); }
.appm-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.appm-top svg { height: 20px; width: auto; }
.appm-top em { margin-left: auto; font: normal 11px var(--mono); color: var(--ok); }
.appm-top em.down { color: #B07A12; }
.appm-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.appm-row i { width: 8px; height: 8px; border-radius: 50%; background: #D9D4CA; }
.appm-row b { font-weight: 600; }
.appm-row span { font: 11.5px var(--mono); }
.appm-row.on { color: var(--text); }
.appm-row.on i { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.appm-row.on span { color: var(--ok); }
.appm-prog { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.appm-prog .cprog { background: #ECE7DE; }
.appm-prog em { font: normal 11px var(--mono); color: var(--mute); }
.hl { stroke: #D3CCBE; stroke-width: 2; stroke-dasharray: 3 5; }
.hl.on { stroke: #A8A29A; stroke-dasharray: none; }
.hl.down { stroke: #B07A12; stroke-dasharray: 2 6; }
.hnode { transition: opacity .3s; }
.hnode.off { opacity: .35; }
.hnode circle { fill: #D9D4CA; }
.hnode:not(.off) circle { fill: var(--ok); }

.gal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 12px; box-shadow: 0 24px 40px -34px rgba(21,20,18,.35); }
.gstage { position: relative; height: 300px; overflow: hidden; border-radius: 12px; background: #fff; cursor: default; touch-action: pan-y; user-select: none; outline: none; }
.gstage:focus-visible { box-shadow: 0 0 0 2px var(--red); }
.gstage.zoomed { cursor: grab; touch-action: none; }
.gstage.zoomed.drag { cursor: grabbing; }
.gzoom { position: absolute; inset: 18px 18px 34px; display: grid; place-items: center; transform-origin: center; transition: transform .08s ease-out; }
.gzoom > svg, .gzoom .gface { width: 100%; height: 100%; }
.gzoom .gface { display: grid; place-items: center; }
.gzoom .gface svg { height: 230px; max-height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 14px 18px rgba(21,20,18,.25)); }
.gctl { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.gctl button { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; font: 600 16px var(--body); color: var(--text); cursor: pointer; }
.gctl button:hover { background: #F1EEE8; }
.gctl span { font: 11px var(--mono); color: var(--mute); min-width: 38px; text-align: center; }
.ghint { position: absolute; left: 12px; bottom: 8px; font: 10.5px var(--mono); color: #A8A29A; pointer-events: none; }
.gcapt { margin: 0; font-size: 14px; color: var(--mute); padding: 0 4px; }
.gcapt b { color: var(--text); font-weight: 600; margin-right: 8px; }
.gthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gthumb { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 6px; cursor: pointer; display: grid; gap: 6px; font: inherit; color: var(--mute); min-width: 0; }
.gthumb:hover { border-color: #BDB7AC; }
.gthumb[aria-selected="true"] { border-color: var(--red); color: var(--text); }
.gimg { display: grid; place-items: center; height: 64px; overflow: hidden; }
.gimg svg { height: 100%; width: auto; max-width: 100%; }
.gimg .gface { height: 100%; display: grid; place-items: center; }
.gimg .gface svg { height: 60px; max-height: 60px; width: auto; max-width: 100%; }
.gcap { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* device panel layout */
.dev-detail { grid-template-columns: 1.05fr 1fr !important; gap: 56px !important; align-items: start; }
.dtop { display: flex; align-items: flex-end; min-height: 46px; padding-bottom: 12px; border-bottom: 1px solid var(--text); margin-bottom: 22px; }
.dev-detail .dname { font-size: 28px !important; line-height: 1 !important; margin: 0 !important; font-variation-settings: "wdth" 80 !important; }
.dname span { font-weight: 400; }
.drole { font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.dcol .desc { margin-top: 0 !important; font-size: 18px; }
.dspec { margin-top: 26px; }
.gal { padding: 10px !important; border-radius: 16px !important; gap: 10px !important; }
.gstage { height: 340px !important; background: #fff; }
.gzoom { inset: 20px 20px 46px !important; }
.gctl { top: auto !important; bottom: 10px; right: 10px; }
.gcapt { position: absolute; left: 14px; bottom: 14px; right: 170px; margin: 0; font-size: 13px !important; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; padding: 0 !important; }
.gcapt b { margin-right: 8px; }
.dcol .dev-link { margin-top: 18px; }
@media (max-width: 860px) { .dev-detail { grid-template-columns: 1fr !important; gap: 32px !important; } .gcapt { right: 14px; bottom: 52px; } }

/* deliberate header + panel transition */
.dev-detail { row-gap: 28px !important; }
.dhead { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--text); }
.dhead .drole { display: block; margin-bottom: 10px; }
.dev-detail .dhead .dname { font-size: clamp(40px, 5.4vw, 72px) !important; line-height: .92 !important; font-variation-settings: "wdth" 70 !important; font-weight: 850; text-transform: uppercase; }
.dhead .dname span { font-weight: 300; letter-spacing: 0; margin-right: .04em; }
.dnav { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.dcount { font: 12px var(--mono); color: var(--mute); margin-right: 10px; letter-spacing: .08em; }
.dcount b { color: var(--text); font-weight: 500; }
.dnb { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 16px var(--body); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.dnb:hover { border-color: var(--text); }
.dright .desc { margin-top: 0 !important; font-size: 19px; color: var(--mute); }
@keyframes dIn { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)); } to { opacity: 1; transform: none; } }
.dev-detail.enter > * { animation: dIn .5s cubic-bezier(.2,.7,.2,1) both; }
.dev-detail.enter.from-r { --dx: 36px; }
.dev-detail.enter.from-l { --dx: -36px; }
.dev-detail.enter.from-b { --dy: 14px; }
.dev-detail.enter > .dhead { animation-delay: 0s; }
.dev-detail.enter > .dleft { animation-delay: .07s; }
.dev-detail.enter > .dright { animation-delay: .14s; }
@media (max-width: 640px) { .dhead { flex-direction: column; align-items: flex-start; } }
.dtitle { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dact { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border: 1px solid #BDB7AC; border-radius: 999px; text-decoration: none; color: var(--text); font: 500 14px var(--body); background: #fff; transition: border-color .2s, background .2s, color .2s; margin-top: 6px; }
.dact svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dact i { font-style: normal; color: var(--mute); transition: transform .2s; }
.dact:hover { border-color: var(--text); }
.dact:hover i { transform: translateX(3px); color: var(--text); }

/* software workflow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, auto); column-gap: 18px; row-gap: 0; }
.flow li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; position: relative; padding-top: 22px; border-top: 2px solid var(--paper-ink); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; top: -13px; right: -14px; width: 24px; height: 24px; background: var(--paper); text-align: center; font: 14px/24px var(--body); color: var(--paper-mute); }
.flow .fn { font: 12px var(--mono); color: var(--red); letter-spacing: .1em; }
.flow h3 { font-size: 21px; text-transform: uppercase; font-variation-settings: "wdth" 75; line-height: 1.05; }
.flow p { color: var(--paper-mute); font-size: 15px; padding-bottom: 8px; }
.ui { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-content: start; min-height: 196px; box-shadow: 0 20px 34px -30px rgba(21,20,18,.45); font-size: 13px; }
.ui-h { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 6px; border-bottom: 1px solid #EEE9E0; margin-bottom: 2px; }
.ui-h b { font-weight: 600; }
.ui-h span { font: 10.5px var(--mono); color: var(--paper-mute); }
.ui-step { display: flex; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 8px; background: #F7F5F0; }
.ui-step i { font: normal 10px var(--mono); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #E8E3D9; color: var(--paper-mute); }
.ui-step.now { background: #FFF1F3; box-shadow: inset 0 0 0 1px rgba(228,0,43,.4); }
.ui-step.now i { background: var(--red); color: #fff; }
.ui-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui-tiles div { background: #F7F5F0; border-radius: 8px; padding: 6px 8px; display: grid; }
.ui-tiles span { font: 10px var(--mono); color: var(--paper-mute); text-transform: uppercase; letter-spacing: .06em; }
.ui-tiles b { font: 700 18px var(--display); font-variation-settings: "wdth" 75; }
.ui-tiles .warn { background: #FFF1F3; box-shadow: inset 0 0 0 1px rgba(228,0,43,.35); }
.ui-tiles .warn b { color: var(--red); }
.ui-spark { width: 100%; height: 36px; margin-top: 2px; }
.ui-chk { display: grid; grid-template-columns: 16px 1fr auto; gap: 9px; align-items: center; padding: 7px 4px; border-bottom: 1px solid #F1EDE5; }
.ui-chk i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #BDB7AC; }
.ui-chk > span { font: 10.5px var(--mono); color: var(--paper-mute); }
.ui-chk.due > span { color: var(--red); }
.ui-chk.done { color: var(--paper-mute); text-decoration: line-through; }
.ui-chk.done i { background: var(--ok); border-color: var(--ok); }
.ui-chk.done > span { text-decoration: none; color: var(--ok); }
.ui-log { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #F1EDE5; }
.ui-log span { font: 10.5px var(--mono); color: var(--paper-mute); padding-top: 2px; }
.ui-log em { font-style: normal; color: var(--ok); }
@media (max-width: 1100px) { .flow { grid-template-columns: 1fr 1fr; grid-template-rows: none; row-gap: 36px; } .flow li { grid-row: auto; grid-template-rows: none; } .flow li:nth-child(2)::after { display: none; } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } .flow li::after { display: none; } }
.ui-stages { display: grid; grid-template-columns: repeat(4, 1fr); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #A8A29A; margin-top: 2px; }
.ui-stages .d { color: var(--paper-mute); }
.ui-stages .now { color: var(--red); }
.ui-bar { height: 6px; background: #ECE7DE; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.ui-bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.ui-chk div { display: block; line-height: 1.25; }
.ui-chk .tt { color: var(--paper-ink); }
.ui-chk.done .tt { color: var(--paper-mute); }
.ui-chk small { font: 10.5px var(--mono); color: var(--paper-mute); text-decoration: none; display: block; margin-top: 2px; }
.ui-chk .auto { font: normal 9.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red); border: 1px solid rgba(228,0,43,.4); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.ui-chk { padding: 6px 4px !important; }
h2 .lt, h1 .lt { font-weight: 300; }
.dp-hero .kicker { color: var(--red); }
.cal { position: relative; display: grid; gap: 7px; margin: 2px 0 12px; --lbl: 58px; }
.cal-ax { display: grid; grid-template-columns: var(--lbl) 1fr; font: 9.5px var(--mono); color: #A8A29A; text-transform: uppercase; letter-spacing: .06em; }
.cal-ax div { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #EEE9E0; padding-bottom: 3px; }
.cal-ax em { font-style: normal; }
.cal-r { display: grid; grid-template-columns: var(--lbl) 1fr; align-items: center; }
.cal-n { font: 10px var(--mono); color: var(--paper-mute); line-height: 1.1; }
.cal-n b { display: block; font: 600 12px var(--body); color: var(--paper-ink); }
.cal-t { position: relative; height: 16px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #F1EDE5 calc(25% - 1px) 25%); border-radius: 3px; }
.cal-t i, .cal-key i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.cal-t i + i { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sd { background: #D9E8C4; } .vg { background: #8DB36A; } .fl { background: #E4002B; } .hv { background: #6B4C32; }
.cal-today { position: absolute; top: 18px; bottom: 0; left: calc(var(--lbl) + (100% - var(--lbl)) * .38); width: 0; border-left: 1.5px dashed var(--paper-ink); }
.cal-today::before { content: "today"; position: absolute; bottom: -13px; left: -14px; font: 9px var(--mono); color: var(--paper-ink); background: #fff; padding: 0 2px; }
.cal-key { display: flex; gap: 10px; flex-wrap: wrap; font: 10px var(--mono); color: var(--paper-mute); margin-top: 4px; }
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key i { position: static; display: inline-block; width: 10px; height: 10px; }
/* software tabs */
.swtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--paper-ink); }
.swtabs button { position: relative; background: none; border: 0; text-align: left; padding: 16px 18px 18px 0; font: 600 16px var(--body); color: var(--paper-mute); cursor: pointer; display: grid; gap: 4px; }
.swtabs button .fn { font: 12px var(--mono); letter-spacing: .1em; color: #A8A29A; }
.swtabs button[aria-selected="true"] { color: var(--paper-ink); }
.swtabs button[aria-selected="true"] .fn { color: var(--red); }
.swtabs button:hover { color: var(--paper-ink); }
.swbar { position: absolute; left: 0; right: 18px; top: -2px; height: 2px; background: transparent; }
.swbar b { display: block; height: 100%; width: 0; background: var(--red); }
.swtabs button[aria-selected="true"] .swbar b { width: var(--p, 100%); }
.swpanels { margin-top: 26px; min-height: 470px; display: grid; align-items: center; }
.swp { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 48px; align-items: center; padding: 0; }
.swp[hidden] { display: none; }
.swp.on { animation: swIn .5s cubic-bezier(.2,.7,.2,1) both; }
.swp.on .ui { animation: swIn .6s .08s cubic-bezier(.2,.7,.2,1) both; }
@keyframes swIn { from { opacity: 0; transform: translateX(var(--sx, 30px)); } to { opacity: 1; transform: none; } }
.swtxt { display: grid; gap: 14px; align-content: start; }
.swtxt .fn { font: 12px var(--mono); color: var(--red); letter-spacing: .1em; }
.swtxt h3 { font-size: clamp(30px, 3.4vw, 44px); text-transform: uppercase; font-variation-settings: "wdth" 70; line-height: .95; }
.swtxt p { color: var(--paper-mute); font-size: 17px; }
.swtxt ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; }
.swtxt li { display: flex; gap: 10px; }
.swtxt li::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 2px; margin-top: 8px; flex: none; }
.ui.big { padding: 18px 20px; gap: 10px; font-size: 14px; min-height: 420px; }
.ui.big .ui-h b { font-size: 16px; }
.ui.big .cal { --lbl: 72px; gap: 9px; }
.ui.big .cal-t { height: 20px; background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), #F1EDE5 calc(16.666% - 1px) 16.666%); }
.ui.big .cal-n b { font-size: 13px; }
.stg { margin-top: 8px; border-top: 1px solid #EEE9E0; padding-top: 10px; display: grid; gap: 8px; }
.stg-h { display: flex; justify-content: space-between; } .stg-h span { font: 11px var(--mono); color: var(--paper-mute); }
.stg-r { display: grid; grid-template-columns: 1fr 1.6fr 2.4fr 0.9fr; gap: 4px; }
.stg-r div { border-radius: 6px; padding: 7px 8px; font: 10.5px var(--mono); color: var(--paper-ink); display: grid; gap: 2px; }
.stg-r b { font: 600 12px var(--body); }
.stg-r .fl { color: #fff; } .stg-r .hv { color: #fff; }
.stg-r .now { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); }
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 6px var(--ok); }
.ui-alert { background: #FFF1F3; border: 1px solid rgba(228,0,43,.35); border-radius: 8px; padding: 9px 12px; color: var(--paper-ink); font-size: 13px; }
.ui-alert b { color: var(--red); }
.ui-tiles.six { grid-template-columns: repeat(3, 1fr); }
.ui-tiles.four { grid-template-columns: repeat(4, 1fr); }
.ui.big .ui-tiles b { font-size: 22px; }
.ui-chart { border: 1px solid #EEE9E0; border-radius: 10px; padding: 10px 12px; }
.ui-chart svg { display: block; width: 100%; height: 140px; }
.ui-ct { display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--paper-mute); margin-bottom: 4px; }
.ui-ct i { display: inline-block; width: 10px; height: 3px; margin: 0 4px 2px 8px; vertical-align: middle; }
.ui.big .ui-chk { grid-template-columns: 16px 1fr 30px 48px; padding: 9px 4px !important; }
.ui-chk u { text-decoration: none; font: 600 10.5px var(--body); width: 26px; height: 26px; border-radius: 50%; background: #ECE7DE; display: grid; place-items: center; color: var(--paper-ink); }
.ui.big .ui-chk > span { text-align: right; }
.ui-tl { border-top: 1px solid #EEE9E0; padding-top: 6px; display: grid; }
.ui-tl div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #F1EDE5; }
.ui-tl span { font: 11px var(--mono); color: var(--paper-mute); }
@media (max-width: 960px) { .swp { grid-template-columns: 1fr; gap: 26px; } .swtabs { grid-template-columns: 1fr 1fr; } .ui.big { min-height: 0; } }
@media (max-width: 560px) { .ui-tiles.six, .ui-tiles.four { grid-template-columns: 1fr 1fr; } .stg-r { grid-template-columns: 1fr 1fr; } }
.extlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border: 1px solid #BDB7AC; border-radius: 999px; background: #fff; color: var(--paper-ink); text-decoration: none; font: 500 14px var(--body); width: fit-content; transition: border-color .2s; }
.lede .extlink { display: flex; }
.extlink svg { width: 14px; height: 14px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.extlink:hover { border-color: var(--paper-ink); }
.extlink:hover svg { transform: translate(2px, -2px); }
.brand-dots svg { height: 22px !important; width: auto; }
.brand .brand-name { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-variation-settings: normal; }
.txlink { color: var(--paper-ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.txlink:hover { color: var(--red); }
/* software access */
.access { display: grid; grid-template-columns: 1fr 190px; gap: 28px; align-items: center; }
.acc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; color: var(--paper-mute); }
.acc li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.aci { display: grid; place-items: center; padding-top: 2px; }
.aci svg { width: 22px; height: 22px; fill: none; stroke: var(--paper-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc small { display: block; font-size: 14px; color: #8a857d; margin-top: 2px; }
.acc-art { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(21,20,18,.18)); }
@media (max-width: 560px) { .access { grid-template-columns: 1fr; } .acc-art { max-width: 220px; } }
/* software band: white, stacked tabs */
#software { --paper: #FFFFFF; --paper-ink: #151412; --paper-mute: #625D54; --paper-line: #E2DDD3; background: #fff; color: #151412; }
#software .sec-head { align-items: start; grid-template-columns: 1fr 1fr; }
.swacc { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: 16px; color: var(--paper-mute); }
.swacc li { display: flex; gap: 10px; }
.swacc li::before { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 2px; margin-top: 8px; flex: none; }
#software .swtabs { grid-template-columns: 1fr; border-top: 0; align-self: end; }
#software .swtabs button { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--paper-line); grid-template-columns: 34px 1fr; display: grid; align-items: baseline; gap: 0; font-size: 17px; }
#software .swtabs button:first-child { border-top: 1px solid var(--paper-line); }
#software .swbar { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: #ECE7DE; }
#software .swbar b { width: 100%; height: 0; }
#software .swtabs button[aria-selected="true"] .swbar b { height: var(--p, 100%); width: 100%; }
#software .swtabs button[aria-selected="true"] { background: #FBFAF7; }
#software .swpanels { margin-top: 48px; }
#software .ui { background: #fff; border-color: #E2DDD3; box-shadow: 0 30px 50px -36px rgba(21,20,18,.4); }
@media (max-width: 860px) { #software .sec-head { grid-template-columns: 1fr; } }
/* assistant panel */
.soon { font: normal 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(228,0,43,.35); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
.chat { gap: 12px !important; }
.msg { max-width: 86%; border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.msg p { margin: 0; }
.msg.me { justify-self: end; background: #151412; color: #F2EFE9; display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; border-bottom-right-radius: 4px; }
.msg.me .ph svg { display: block; width: 84px; height: 63px; border-radius: 8px; }
.msg.ai { justify-self: start; background: #F6F4EF; border: 1px solid #E8E3D9; border-bottom-left-radius: 4px; }
.msg.ai ul { margin: 6px 0 8px; padding-left: 16px; display: grid; gap: 3px; }
.msg.ai li::marker { color: var(--red); }
.conf { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font: 10.5px var(--mono); color: #625D54; }
.conf i { height: 5px; background: #E8E3D9; border-radius: 3px; overflow: hidden; }
.conf b { display: block; height: 100%; background: var(--ok); }
.conf em { font-style: normal; color: var(--ok); }
.prop { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px dashed #BDB7AC; border-radius: 12px; padding: 10px 12px; }
.prop > div:first-child { display: grid; gap: 2px; }
.ptag { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.prop b { font-weight: 600; font-size: 13.5px; }
.prop small { font: 10.5px var(--mono); color: #625D54; }
.pbtn { display: flex; gap: 6px; flex: none; }
.pbtn button { font: 600 12.5px var(--body); border-radius: 999px; padding: 7px 13px; cursor: default; }
.pa { background: #151412; color: #fff; border: 1px solid #151412; }
.pd { background: #fff; color: #151412; border: 1px solid #D3CCBE; }
@media (max-width: 560px) { .prop { flex-direction: column; align-items: flex-start; } .msg { max-width: 100%; } }
/* device pages: device row on top, big stepper */
.dpage .split { grid-template-columns: 1fr; }
.dpage .split-dev { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 28px; align-items: start; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
.dpage .dvg { min-width: 0; }
.dpage .dvg .devsvg { max-height: 270px; width: 100%; }
.dpage .dvg .cyd, .dpage .dvg .oled, .dpage .dvg .appm { max-width: none; }
.dpage .split-tank { display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 28px; align-content: start; padding: 24px; }
.dpage .split-tank > .ph, .dpage .split-tank > .tsvg, .dpage .split-tank > .charts { grid-column: 1; }
.dpage .split-tank > .tp-lower { grid-column: 2; grid-row: 1 / span 5; grid-template-columns: 1fr; margin-top: 0; align-content: start; }
.dpage .tprog { max-height: 330px; }
.dpage .tlog { height: 260px; }
.dpage .phases { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 22px 24px 20px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
.dpage .phases li { display: grid; justify-items: center; gap: 9px; position: relative; border: 0; padding: 0; background: none; border-radius: 0; font: 600 14px var(--body); color: var(--mute); text-align: center; }
.dpage .phases li::before { width: 40px; height: 40px; font: 600 15px var(--body); background: #fff; border: 2px solid #D3CCBE; color: var(--mute); position: relative; z-index: 1; transition: background .2s, border-color .2s, color .2s; }
.dpage .phases li::after { content: ""; position: absolute; top: 20px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: #D3CCBE; }
.dpage .phases li:last-child::after { display: none; }
.dpage .phases li.now { color: var(--text); background: none; border: 0; }
.dpage .phases li.now::before { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(228,0,43,.14); }
.dpage .phases li.done { color: var(--text); }
.dpage .phases li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.dpage .phases li.done::after { background: var(--ok); }
@media (max-width: 1100px) { .dpage .split-dev { grid-template-columns: 1fr 1fr; } .dpage .split-tank { grid-template-columns: 1fr; } .dpage .split-tank > .tp-lower { grid-column: 1; grid-row: auto; margin-top: 16px; } }
@media (max-width: 700px) { .dpage .split-dev { grid-template-columns: 1fr; } .dpage .phases li { font-size: 12px; } .dpage .phases li::before { width: 32px; height: 32px; } .dpage .phases li::after { top: 16px; } }
.dp-demo { gap: 14px !important; }
.dd-top { display: flex; justify-content: space-between; align-items: baseline; }
.dd-k { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.dp-demo .clock { margin: 0; text-align: right; }
.dp-demo .clock b { font-size: 22px; }
.dd-intro { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.5; }
.dd-ctl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dp-hdev { display: grid; place-items: center end; }
.dp-hdev .devsvg { max-width: 420px; max-height: 340px; width: 100%; height: auto; }
.dp-hdev .covtoggle { width: 100%; }
.dpage .split-dev { grid-template-columns: 1fr minmax(0, 460px) !important; }
.dpage .split-dev .dvg:has(> .ports) { display: none; }
.dpage .dp-demo { height: 100%; align-content: start; }
@media (max-width: 960px) { .dp-hdev { place-items: center; } .dpage .split-dev { grid-template-columns: 1fr !important; } }
/* lead hero */
.hero.lead h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: .94; margin: 0 0 24px; }
.hero.lead .lede { font-size: 19px; max-width: 54ch; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--text); }
.caps a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 4px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.caps a:hover { background: #fff; padding-left: 12px; }
.caps .cn { grid-row: span 2; font: 12px var(--mono); color: var(--red); letter-spacing: .1em; padding-top: 6px; }
.caps b { font-family: var(--display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.caps span:last-child { color: var(--mute); font-size: 14.5px; margin-top: 2px; }
.navlinks a { position: relative; padding: 6px 0; transition: color .2s; }
.navlinks a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navlinks a.active { color: var(--text); }
.navlinks a.active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* AI grow assistant section */
.ai-flow { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--face); overflow: hidden; }
.ai-flow li { padding: 18px 18px 20px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; font-size: 14.5px; color: var(--mute); }
.ai-flow li:last-child { border-right: 0; }
.ai-flow b { color: var(--text); font-family: var(--display); font-variation-settings: "wdth" 85; font-size: 17px; }
.ai-flow .n { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; color: var(--red); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-card { background: var(--face); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.ai-card h3 { font-size: 21px; }
.ai-card p { color: var(--mute); font-size: 15.5px; }
.ai-tag { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.ai-foot { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; margin-top: 18px; }
.ai-setup, .ai-cam { background: var(--face); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.ai-setup { display: grid; gap: 12px; align-content: start; }
.ai-setup h3, .ai-cam h3 { font-size: 26px; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.ai-setup .swacc { margin: 4px 0 0; color: var(--mute); font-size: 15.5px; }
.ai-note { color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ai-cam { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.ai-cam img { width: 100%; height: auto; }
.ai-cam > div { display: grid; gap: 10px; }
.ai-cam p { color: var(--mute); font-size: 15.5px; }
.ai-cam .ai-price { color: var(--red); font-weight: 600; font-size: 16px; }
.ai-spec { border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.ai-spec th { text-align: left; font-weight: 600; padding: 7px 14px 7px 0; vertical-align: top; white-space: nowrap; border-top: 1px solid var(--line); }
.ai-spec td { padding: 7px 0; color: var(--mute); border-top: 1px solid var(--line); }
.swtxt .ai-more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; }
@media (max-width: 960px) { .ai-flow { grid-template-columns: 1fr; } .ai-flow li { border-right: 0; border-bottom: 1px solid var(--line); } .ai-flow li:last-child { border-bottom: 0; } .ai-grid { grid-template-columns: 1fr; } .ai-foot { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ai-cam { grid-template-columns: 1fr; } .ai-cam img { max-width: 220px; } }

/* Kija Tank: program steps in the hero */
.dp-hprog { background: var(--face); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 12px; align-self: stretch; }
.dp-hprog .tprog { max-height: 300px; }
.dp-hero .dp-demo { margin-top: 26px; height: auto; }
#page-kija-tank .split-dev { display: none !important; }
#page-kija-tank .dp-hprog { align-self: end; padding-bottom: 14px; }
#page-kija-tank .dp-hprog .tlog { height: auto; overflow: hidden; }
#page-kija-tank .split-tank { grid-template-columns: 1fr; }
#page-kija-tank .split-tank { grid-template-columns: minmax(0, 1fr); }
#page-kija-tank .tk-side { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 22px; }
#page-kija-tank .tk-side .dp-demo { margin-top: 0; }
#page-kija-tank .tk-side .dp-hprog { align-self: stretch; }
@media (max-width: 760px) { #page-kija-tank .tk-side { grid-template-columns: 1fr; } }
#page-kija-tank .tk-dia { position: relative; width: 100%; }
#page-kija-tank .tk-dia .tsvg { width: 100%; max-width: none; }
#page-kija-tank .tk-clock { position: absolute; top: 6px; right: 8px; display: flex; align-items: baseline; gap: 8px; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
#page-kija-tank .tk-clock b { font: 500 13px var(--mono); color: var(--text); letter-spacing: 0; }
