/* climequant.com/digital-twin: product page sections and the command-centre demo. Chart colours: actual #2a78d6, schedule #1baf7a (dashed), outside band #eb6834. */

/* ---------- Page sections ---------- */
.tw-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tw-hero-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #e3edf7; font-size: 13.5px; font-weight: 600; }
.tw-hero-chips .ic { color: var(--lime); width: 16px; height: 16px; }
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.need { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.need .n-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--green-soft); color: var(--green-2); margin-bottom: 12px; }
.need.edge .n-ic { background: #e6f1fb; color: var(--navy-3); }
.need h3 { font-size: 17px; margin-bottom: 6px; }
.need p { margin: 0; font-size: 14.5px; color: var(--muted); }
.need .tag-edge { display: inline-block; margin-left: 6px; font: 700 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--navy-2); color: #fff; vertical-align: 2px; }
@media (max-width: 900px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .needs { grid-template-columns: minmax(0, 1fr); } }

.layers { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14.5px; }
.layers th, .layers td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.layers tr:last-child th, .layers tr:last-child td { border-bottom: 0; }
.layers thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .02em; }
.layers tbody th { width: 200px; font-family: var(--display); color: var(--navy); }
.layers tbody th small { display: block; font: 600 12px/1.4 var(--font); color: var(--green-2); margin-top: 3px; }
.layers tr.edge td, .layers tr.edge th { background: #f3f9f4; }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pipeline > li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.pipeline > li.core { background: var(--navy); border-color: var(--navy); color: #c9d8e8; }
.pipeline > li.core h3 { color: #fff; }
.pipeline > li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--green); clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%); }
.pipeline h3 { font-size: 17px; margin-bottom: 8px; }
.pipeline ul { margin: 0; padding-left: 18px; font-size: 14px; }
.pipeline > li.core ul { color: #dbe7f3; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pipeline > li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -19px; margin: 0 0 0 -8px; transform: rotate(90deg); }
}
.pipe-note { margin-top: 18px; font-weight: 600; color: var(--navy); }

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.level { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.level .lv { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); margin-bottom: 10px; }
.level h3 { font-size: 18px; }
.level p { font-size: 14.5px; color: var(--muted); }
.level .ticks li { font-size: 14px; }
.level .lv-foot { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--navy-3); }
@media (max-width: 900px) { .levels { grid-template-columns: minmax(0, 1fr); } }

.rollout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rollout > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.rollout > div:last-child { background: var(--navy); border-color: var(--navy); color: #c9d8e8; }
.rollout > div:last-child h3 { color: #fff; }
.rollout .wk { font: 700 13px/1 var(--font); color: var(--green-2); margin-bottom: 8px; }
.rollout > div:last-child .wk { color: var(--lime); }
.rollout h3 { font-size: 18px; margin-bottom: 6px; }
.rollout p { margin: 0; font-size: 14.5px; }
@media (max-width: 800px) { .rollout { grid-template-columns: minmax(0, 1fr); } }
.needs-list { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px dashed #c9d4e1; font-size: 14.5px; }
.needs-list b { color: var(--navy); }

.tech-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- Command-centre demo ---------- */
.twin { border-radius: 20px; overflow: hidden; background: #f3f6fa; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(4, 16, 30, .16); }
.tw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.tw-brand { display: flex; align-items: center; gap: 10px; }
.tw-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; flex: none; }
.tw-brand b { display: block; font: 700 15px/1.2 var(--display); color: var(--navy); }
.tw-brand span { font-size: 12.5px; color: var(--muted); }
.tw-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tw-pill { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: #eef2f7; color: var(--ink-2); }
.tw-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--amber); }
.tw-live i { width: 8px; height: 8px; border-radius: 50%; background: #e0a526; }
.tw-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 620px; }
.tw-rail { background: var(--navy); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.tw-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 4px; border-radius: 12px; border: 0; background: none; color: #b9c8d8; font: 600 11.5px/1.25 var(--font); cursor: pointer; text-align: center; }
.tw-tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tw-tab[aria-selected="true"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.tw-tab .ic { width: 20px; height: 20px; }
.tw-main { padding: 16px; min-width: 0; }
.tw-main:focus { outline: none; }
.tw-fallback { padding: 24px; color: var(--ink-2); }
@media (max-width: 760px) {
  .tw-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tw-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 6px; gap: 4px; }
  .tw-tab { flex-direction: row; justify-content: center; gap: 6px; padding: 9px 10px; font-size: 12.5px; white-space: nowrap; }
  .tw-tab .ic { width: 16px; height: 16px; }
  .tw-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--lime); }
  .tw-main { padding: 12px; }
}

.tw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.tw-bar .seg { display: inline-flex; }
.tw-seg button { flex: 1 1 auto; padding: 7px 12px; border: 0; border-radius: 9px; background: none; font: 600 13.5px/1.1 var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tw-seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.tw-day { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tw-day select { padding: 7px 10px; border: 1px solid #cfd8e3; border-radius: 9px; font: 14px var(--font); background: #fff; color: var(--ink); }
.tw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tw-chips .chip { padding: 7px 12px; font-size: 13px; }
.tw-chips .chip small { font-weight: 500; opacity: .75; margin-left: 3px; }

.tw-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tw-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1140px) { .tw-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tw-kpis.three { grid-template-columns: minmax(0, 1fr); } }
.tw-kpi { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tw-kpi-l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tw-kpi b { display: block; font: 800 19px/1.25 var(--display); color: var(--navy); margin: 4px 0 2px; overflow-wrap: anywhere; }
.tw-kpi-s { display: block; font-size: 12px; color: var(--muted); }
.tw-kpi-s.down::before { content: "▼ "; color: var(--red); font-size: 9px; vertical-align: 1px; }
.tw-kpi-s.up::before { content: "▲ "; color: var(--green); font-size: 9px; vertical-align: 1px; }

.tw-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; min-width: 0; }
.tw-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.tw-card-head h4 { margin: 0; font: 700 15px/1.35 var(--display); color: var(--navy); }
.tw-card-head span { font-size: 12.5px; color: var(--muted); }
.tw-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .tw-grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.tw-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.tw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tw-table th, .tw-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tw-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tw-table tbody th { font-weight: 600; }
.tw-table th small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.tw-table td small { color: var(--muted); font-size: 11px; }
.tw-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.tw-table tr.tot th, .tw-table tr.tot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.tw-table.compact th, .tw-table.compact td { padding: 5px 8px; }
.tw-link { background: none; border: 0; padding: 0; font: 650 13.5px/1.3 var(--font); color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tw-link:hover { color: var(--green-2); }
.pill.crit { background: var(--red); color: #fff; }

.tw-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tw-bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; align-items: center; gap: 10px; font-size: 13px; }
.tw-bars-l { color: var(--ink-2); }
.tw-bars-t { height: 14px; background: #f0f3f7; border-radius: 4px; overflow: hidden; }
.tw-bars-t i, .tw-bridge-bar i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; }
.tw-bars b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
i.act { background: #eb6834; }
i.wx { background: #a3afbf; }
@media (max-width: 480px) { .tw-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .tw-bars-t { grid-column: 1 / -1; grid-row: 2; } }

.tw-alerts { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.tw-alerts.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tw-alert { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.tw-alert-top { display: flex; align-items: center; gap: 8px; }
.tw-alert-where { font-size: 12.5px; color: var(--muted); font-weight: 600; min-width: 0; }
.tw-alert-rs { margin-left: auto; font-size: 13.5px; color: var(--ink); white-space: nowrap; text-align: right; }
.tw-alert-rs small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.tw-alert-title { font-weight: 650; font-size: 13.5px; margin-top: 4px; color: var(--ink); }
.tw-alert-act { font-size: 12.5px; color: var(--muted); }

.tw-plant-head { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tw-plant-head h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font: 700 18px/1.3 var(--display); color: var(--navy); }
.tw-plant-head p { margin: 0; font-size: 13px; color: var(--muted); max-width: 46em; }
.tw-plant-kpis { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; flex: 1 1 420px; max-width: 560px; }
@media (max-width: 520px) { .tw-plant-kpis { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; } }

.tw-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.tw-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font: 600 12px/1.2 var(--font); }
.tw-unit.turbine { border-radius: 999px; }
.tw-unit b { font-size: 12.5px; }
.tw-unit span { font-size: 11.5px; font-weight: 500; }
.tw-unit.on { outline: 2.5px solid var(--navy); outline-offset: 1px; }
.s-ok { background: #e3f3e7; color: #1d5e2f; border-color: #b9dcc2 !important; }
.s-watch { background: #fff1d6; color: #74480a; border-color: #e7c47e !important; border-style: dashed !important; }
.s-fault { background: #fde3d6; color: #9a3412; border-color: #f2b597 !important; }
.s-critical { background: #c53b3b; color: #fff; border-color: #c53b3b !important; }
.tw-unit.s-watch b::after { content: " !"; }
.tw-unit.s-fault b::after, .tw-unit.s-critical b::after { content: " ×"; }
.tw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin: 10px 0; }
.tw-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid transparent; }
.tw-legend i.ln { width: 18px; height: 0; border: 0; border-top: 2.5px solid #2a78d6; border-radius: 0; vertical-align: middle; }
.tw-legend i.ln.sched { border-top: 2px dashed #1baf7a; }
.tw-legend i.area { background: #e4e9f0; }
.tw-legend i.dot { width: 9px; height: 9px; border-radius: 50%; background: #eb6834; }
.tw-unit-detail { background: var(--bg); border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.tw-unit-detail div { color: var(--muted); margin-top: 3px; }

.tw-bridge { width: 100%; border-collapse: collapse; font-size: 13px; }
.tw-bridge th, .tw-bridge td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tw-bridge th { font-weight: 500; color: var(--ink-2); }
.tw-bridge .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-bridge tr.tot th, .tw-bridge tr.tot td { font-weight: 700; color: var(--navy); background: #f6f8fb; }
.tw-bridge-bar { width: 34%; }
.tw-bridge-bar i { height: 12px; border-radius: 3px; }

.tw-chart { position: relative; }
.tw-chart svg { display: block; width: 100%; height: auto; }
.tw-chart text { font: 11px var(--font); fill: var(--muted); }
.tw-chart .g { stroke: #e8edf3; }
.tw-chart .band { fill: #e4e9f0; }
.tw-chart .actual { fill: none; stroke: #2a78d6; stroke-width: 2; }
.tw-chart .sched { fill: none; stroke: #1baf7a; stroke-width: 2; stroke-dasharray: 5 4; }
.tw-chart .out { fill: #eb6834; stroke: #fff; stroke-width: 2; }
.tw-chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.tw-chart .hit { fill: transparent; cursor: crosshair; }
.tw-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--navy); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.45; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.tw-tip b, .tw-tip span { display: block; }
.tw-details { margin-top: 8px; font-size: 13px; }
.tw-details summary { cursor: pointer; color: var(--navy-3); font-weight: 600; }
.tw-details .table-scroll { max-height: 280px; overflow: auto; margin-top: 8px; }

.tw-flow { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tw-flow li { background: var(--bg); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tw-flow li span { display: block; font-size: 12.5px; color: var(--ink-2); }
.tw-flow li small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tw-flow li b { display: block; font: 800 17px/1.2 var(--display); color: var(--navy); margin-top: 6px; }
.tw-flow li.end { background: var(--green-soft); }
.tw-flow li.short { background: var(--amber-soft); }
@media (max-width: 760px) { .tw-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tw-callout { margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #f1d9a6; font-size: 13.5px; color: var(--ink); }
@media (max-width: 700px) {
  .layers, .layers tbody, .layers tr, .layers th, .layers td { display: block; width: auto; }
  .layers thead { display: none; }
  .layers tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .layers tr:last-child { border-bottom: 0; }
  .layers th, .layers td { border-bottom: 0; padding: 6px 16px; }
  .layers tbody th { width: auto; }
  .layers td[data-label="Solar"]::before, .layers td[data-label="Wind"]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
}
.tw-grid2 { align-items: start; }
.tw-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tw-mini b { display: block; font: 800 16px/1.25 var(--display); color: var(--navy); }
.tw-mini span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 520px) { .tw-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tw-table td.wrap { white-space: normal; min-width: 220px; line-height: 1.5; }
.tw-task .tw-alert-rs { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tw-table th.wrap { white-space: normal; min-width: 180px; }
.tw-table th small { font-weight: 400; }
.pill.blue { background: var(--blue-soft); color: var(--navy-3); }
.tw-spares th.wrap { min-width: 130px; }
.tw-spares th, .tw-spares td { padding-left: 6px; padding-right: 6px; }

/* ClimeQuant Twin page: copy beside a screen of the app in the header, and the jump links to its parts */
.twin-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.twin-head h1 { max-width: none; }
.twin-head-shot .browser { max-width: 560px; margin-left: auto; }
.twin-head-shot .shot-frame img, .twin-head-shot .shot-frame video, .shot-frame img { display: block; width: 100%; height: auto; }
.tw-hero-chips a { color: #cfe6ff; }
@media (max-width: 960px) { .twin-head { grid-template-columns: minmax(0, 1fr); gap: 28px; } .twin-head-shot .browser { margin: 0; transform: none; } }
.app-jump.on-light { justify-content: center; margin-top: 0; }
.app-jump.on-light a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.app-jump.on-light a:hover { border-color: var(--green); color: var(--green-2); }
