/* Shared styles for the modernized release pages (SDDP 19, TSL 2.3).
   Visual language shared with the SDDP 19 start page (sddp-platform-homepage/index-19.html). */

:root {
  --navy: #0a1f33;
  --navy-2: #0f2f4d;
  --navy-3: #081a2b;
  --ink: #1c2e3d;
  --ink-soft: #4a5c6b;
  --muted: #6b7c8a;
  --blue: #164b7a;
  --blue-dark: #10395d;
  --teal: #04748b;
  --teal-tint: #e6f2f4;
  --teal-ink: #045a68;
  --accent: #60b1be;
  --accent-soft: #9ccfd6;
  --accent-rgb: 96, 177, 190;
  --paper: #ffffff;
  --canvas: #f7f9fb;
  --line: #e3e8ed;
  --line-strong: #cdd8e0;
  --rule: #dfe5ea;
  --rule-dark: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(22, 75, 122, 0.08);
  --topbar-h: 64px;
  --subnav-h: 53px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* fontello adds side margins to every glyph */
.ico [class^="icon-"]:before,
.ico [class*=" icon-"]:before {
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
}

.btn-accent:hover {
  background: #78bfca;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-new {
  color: var(--teal-ink);
  background: var(--teal-tint);
  border: 1px solid #c3e1e6;
}

.badge-new::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.badge-beta {
  color: #8a5b00;
  background: #fff6e3;
  border: 1px solid #f0d9a6;
}

.badge-note {
  color: var(--blue);
  background: #eff4f9;
  border: 1px solid #d3e0ec;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(16, 40, 64, 0.06);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand img {
  height: 34px;
  width: auto;
}

.rel {
  position: relative;
}

.rel summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  user-select: none;
}

.rel summary::-webkit-details-marker {
  display: none;
}

.rel summary svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.rel[open] summary svg {
  transform: rotate(180deg);
}

.rel-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rel-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}

.rel-menu a:hover {
  background: var(--canvas);
}

.rel-menu a[aria-current] {
  color: var(--teal);
  font-weight: 600;
}

.rel-menu a[aria-current]::after {
  content: "Current";
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-ink);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 1px 8px;
}

.mainnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mainnav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.mainnav a:not(.btn):hover {
  color: var(--blue);
  background: var(--canvas);
}

.mainnav .btn {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% 30%, rgba(var(--accent-rgb), 0.13), transparent 62%),
    radial-gradient(800px 480px at 0% 100%, rgba(4, 116, 139, 0.26), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2) 62%, #0b2a40);
}

.hero-art,
.band-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, rgba(0, 0, 0, 0.35) 45%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 5%, rgba(0, 0, 0, 0.35) 45%, #000 80%);
}

.hero-art .flow-pulse {
  stroke-dasharray: 4 14;
  animation: flow 1.6s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -36;
  }
}

.hero-copy {
  position: relative;
  max-width: 700px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero h1 {
  margin-top: 18px;
  font-size: 84px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.grad-dark {
  background: linear-gradient(90deg, #ffffff, #d3e9ec 50%, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.hero-sub {
  max-width: 600px;
  margin-top: 12px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: #cfe2e8;
}

.hero-intro {
  margin-top: 20px;
  max-width: 600px;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.platform {
  margin-top: 44px;
}

.platform-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tools li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  padding: 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}

.tools img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.tools .is-new {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
}

.tools .is-new::after {
  content: "New";
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 7px;
}

/* Tiles that link to a section of the page (TSL hero) */
.tools .is-link {
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tools .is-link:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
}

.tools .is-link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 12px 12px;
  color: inherit;
  text-decoration: none;
}

.tools .ti {
  height: 28px;
  font-size: 26px;
  line-height: 28px;
  color: #fff;
}

.tools .ti:before {
  margin: 0;
}

/* Photo hero (TSL): the photo sits under a navy gradient that keeps the text side legible */
.hero.photo {
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 35%;
  filter: saturate(0.75) brightness(0.88);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 31, 51, 0.97) 0%, rgba(10, 31, 51, 0.9) 34%, rgba(10, 31, 51, 0.5) 66%, rgba(10, 31, 51, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 31, 51, 0.55), transparent 45%);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 860px) {
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(10, 31, 51, 0.82), rgba(10, 31, 51, 0.94));
  }
}

/* ---------- analytical chain ---------- */

.chain {
  padding: 88px 0 80px;
  background: linear-gradient(180deg, var(--canvas), var(--paper));
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.chain-head {
  max-width: 860px;
}

.chain-head h2 {
  margin-top: 12px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}

.chain-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}

.horizon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.horizon::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal) 60%, #3f9fb0);
}

.stop {
  position: relative;
  text-align: center;
}

.stop .node {
  display: block;
  width: 22px;
  height: 22px;
  margin: 11px auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--dot);
  box-shadow: 0 0 0 4px var(--paper);
}

.stop:nth-child(1) { --dot: #164b7a; }
.stop:nth-child(2) { --dot: #0f5f83; }
.stop:nth-child(3) { --dot: #04748b; }
.stop:nth-child(4) { --dot: #3f9fb0; }

.stop:nth-child(4) .node {
  box-shadow: 0 0 0 4px var(--paper), 0 0 14px rgba(63, 159, 176, 0.45);
}

.stop .t {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.stop .d {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- section navigation ---------- */

.subnav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.subnav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.subnav a .n {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.subnav a:hover {
  background: var(--canvas);
}

.subnav a.active {
  color: var(--teal);
  background: var(--teal-tint);
  border-color: #cfe5e9;
}

.subnav a.active .n {
  color: var(--teal);
}

/* ---------- feature sections ---------- */

.sec {
  padding: 88px 0;
  scroll-margin-top: calc(var(--topbar-h) + var(--subnav-h));
}

.sec.alt {
  background: var(--canvas);
}

.sec-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.sec-kicker .n {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sec-kicker .n::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.sec-head h2 {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Small call-to-action button at the foot of a column; columns in the same row share its baseline */
.lines > .item.has-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-cta {
  margin-top: auto;
  padding-top: 22px;
}

.sec-lede {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* Section header with a photo beside it (TSL block on the SDDP page) */
.head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.head-split .sec-head {
  margin-bottom: 0;
}

.head-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(10, 31, 51, 0.18);
}

.head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single-column layouts use minmax(0, 1fr) throughout: a plain 1fr lets content that does not
   wrap (a dashboard title bar, a screenshot track) widen the column past the phone screen */
@media (max-width: 860px) {
  .head-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Text blocks separated only by thin rules between columns and rows.
   Each item draws its left and top rule; the wrapper clips the outer ones. */

.lines-wrap {
  overflow: hidden;
}

.lines {
  display: grid;
  margin: -32px -40px;
}

.lines > .item {
  padding: 32px 40px;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ico {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ico svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Outline icons from the stock library, drawn as filled shapes. Each one sets its own
   stroke-width inline to thicken the lines to the weight of the icon font. */
.ico svg.glyph {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
}

.item:hover .ico,
.fitem:hover .ico {
  background: var(--teal);
  color: #fff;
}

.item .ico {
  margin-bottom: 20px;
}

.item h3,
.fitem h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 17.5px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--ink);
}

.item p,
.fitem p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.prod {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.prod img {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.text-link:hover {
  color: var(--teal);
}

.text-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 0.2s ease;
}

.text-link:hover svg {
  translate: 3px 0;
}

/* compatibility warning */

.note .ico {
  border-color: #b98a2c;
  color: #8a5b00;
}

.note:hover .ico {
  background: #b98a2c;
  color: #fff;
}

.note h3 {
  color: #6b4700;
}

.note p {
  color: #6f5a33;
}

/* split: feature list next to media */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.split.media-first {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Wider media column, for pages where the demo videos carry the content (TSL) */
.split.media-wide {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.split.media-wide.media-first {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.flist {
  display: flex;
  flex-direction: column;
}

.fitem {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.fitem:first-child {
  padding-top: 0;
  border-top: 0;
}

.fitem:last-child {
  padding-bottom: 0;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(10, 31, 51, 0.18);
}

.media.cover {
  align-self: stretch;
  min-height: 440px;
}

.media.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo in a fixed 4:3 frame instead of stretching to the height of the list next to it */
.media.cover.landscape {
  align-self: center;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.media.natural {
  background: var(--paper);
  border: 1px solid var(--line);
}

.media.natural img,
.media.natural video {
  width: 100%;
  height: auto;
}

/* dark band */

.sec.dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 92% 0%, rgba(var(--accent-rgb), 0.11), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}

.sec.dark .wrap {
  position: relative;
}

.sec.dark .sec-kicker {
  color: var(--accent-soft);
}

.sec.dark .sec-kicker .n {
  color: rgba(255, 255, 255, 0.5);
}

.sec.dark .sec-kicker .n::after {
  background: rgba(255, 255, 255, 0.25);
}

.sec.dark .sec-head h2 {
  color: #fff;
}

.sec.dark .badge-new {
  color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.sec.dark .badge-new::before {
  background: var(--accent);
}

.sec.dark .lines > .item {
  border-color: var(--rule-dark);
}

.sec.dark .item h3 {
  color: #fff;
}

.sec.dark .item p {
  color: rgba(255, 255, 255, 0.7);
}

.sec.dark .ico {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.sec.dark .item:hover .ico,
.sec.dark .fitem:hover .ico {
  background: var(--accent);
  color: var(--navy);
}

.sec.dark .fitem {
  border-color: var(--rule-dark);
}

.sec.dark .fitem h3 {
  color: #fff;
}

.sec.dark .fitem p,
.sec.dark .sec-lede {
  color: rgba(255, 255, 255, 0.7);
}

.sec.dark .media.natural {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Energy Map next to PSRIO and Plot */

.bento {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.bento .big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

/* Local carousel of Energy Map screenshots, pinned to the foot of the block. The track
   scroll-snaps, so it swipes natively on touch screens; the arrows and dots step through it.
   The controls sit on the caption line, at the right. */
.shots {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
}

.shots-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shots-track:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 12px;
}

.shot {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shot figcaption {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-top: 14px;
  padding-right: 164px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.shots-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shots-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shots-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.shots-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shots-dots {
  display: flex;
}

/* Each dot is a 24px-tall tap target; the visible dot is drawn inside it */
.shots-dots button {
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width 0.25s ease;
}

.shots-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.25s ease, background 0.25s ease;
}

.shots-dots button[aria-current="true"] {
  width: 32px;
}

.shots-dots button[aria-current="true"]::before {
  width: 22px;
  background: var(--teal);
}

/* ---------- documentation ---------- */

.docs {
  padding: 88px 0;
  scroll-margin-top: var(--topbar-h);
}

.doc {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.doc:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -6px;
}

.doc h3 {
  font-size: 17px;
}

.doc p {
  font-size: 14px;
}

.doc .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.doc:hover .text-link {
  color: var(--teal);
}

.doc:hover .text-link svg {
  translate: 3px 0;
}

/* ---------- download ---------- */

.download {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: #fff;
  scroll-margin-top: var(--topbar-h);
  background:
    radial-gradient(800px 460px at 100% 100%, rgba(var(--accent-rgb), 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}

.dl-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.dl-grid h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dl-grid p {
  margin-top: 12px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
}

.dl-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dl {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 250px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dl:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.dl .fa {
  width: 32px;
  font-size: 28px;
  text-align: center;
}

.dl b {
  display: block;
  font-size: 16px;
}

.dl small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.dl svg {
  margin-left: auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- footer ---------- */

.footer {
  padding: 56px 0 28px;
  background: var(--navy-3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.foot-logo {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-soft);
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.social a:hover {
  border-color: var(--accent);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.copyright a {
  color: #fff;
}

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--d, 0) * 70ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-art .flow-pulse {
    animation: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  /* The chain line would run into the hero text below this width */
  .hero-art .chain-path {
    display: none;
  }
}

@media (max-width: 1024px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 68px;
  }

  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .mainnav {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 40, 64, 0.08);
  }

  .topbar.open .mainnav {
    display: flex;
  }

  .mainnav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .sec,
  .docs,
  .download {
    padding: 64px 0;
  }

  .sec-head h2,
  .dl-grid h2 {
    font-size: 32px;
  }

  .chain {
    padding: 64px 0;
  }

  .chain-head h2 {
    font-size: 28px;
  }

  .cols-3,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento .big {
    grid-row: auto;
  }

  .split,
  .split.media-first,
  .split.media-wide,
  .split.media-wide.media-first {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    gap: 40px;
  }

  .media.cover {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .wrap,
  .subnav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cols-2,
  .cols-4,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Taller footer links, easier to tap */
  .footer ul {
    gap: 2px;
  }

  .footer ul a {
    display: inline-block;
    padding: 5px 0;
  }

  .lines {
    margin: -24px -40px;
  }

  .lines > .item {
    padding: 24px 40px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-sub {
    font-size: 21px;
  }

  .hero-art {
    opacity: 0.5;
  }

  .horizon {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .horizon::before {
    display: none;
  }

  .dl {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Product pages (OptNet, NetPlan)
   ========================================================================== */

.badge-soon {
  color: #46586a;
  background: #eef2f6;
  border: 1px solid #d5dde6;
}

.sec.dark .badge-soon {
  color: #d6e2ec;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.tools .is-soon::after {
  content: "Soon";
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: #d6e2ec;
  border-radius: 999px;
  padding: 1px 7px;
}

.hero-brand .brand-glyph {
  font-size: 24px;
  line-height: 1;
  color: #fff;
}

.hero-brand .brand-glyph:before {
  margin: 0;
}

.sec.dark .text-link {
  color: var(--accent-soft);
}

.sec.dark .text-link:hover {
  color: #fff;
}

/* Small heading between blocks of the same section */
.subhead {
  margin: 56px 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec.dark .subhead {
  color: rgba(255, 255, 255, 0.55);
}

/* Checklist of modeled equipment or outputs */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
}

.checklist.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2304748b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.sec.dark .checklist li {
  color: #fff;
  border-color: var(--rule-dark);
}

.sec.dark .checklist li::before {
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%239ccfd6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Highlighted note under a block */
.callout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--teal-tint);
  font-size: 15px;
  color: var(--ink);
}

.callout .ico {
  background: #fff;
}

.sec.dark .callout {
  background: rgba(var(--accent-rgb), 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.sec.dark .callout .ico {
  background: transparent;
}

/* Planning chain diagram (sits on the dark band) */
.flow {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.flow-group {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 38px 18px 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: 18px;
}

.flow-group-label {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.flow-node {
  flex: none;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.flow-node .role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.flow-node img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.flow-node .glyph {
  height: 34px;
  font-size: 30px;
  line-height: 34px;
  color: #fff;
}

.flow-node .glyph:before {
  margin: 0;
}

.flow-node b {
  font-size: 15px;
  color: #fff;
}

.flow-node.is-focus {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.flow-node.is-optional {
  border-style: dashed;
  background: transparent;
}

.flow-link {
  flex: 1 1 0;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.flow-link span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.flow-link::after {
  content: "";
  width: 100%;
  height: 10px;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / calc(100% - 6px) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0L10 5L0 10z' fill='%2360b1be'/%3E%3C/svg%3E") right center / 10px 10px no-repeat;
}

.flow.compact .flow-node {
  width: 140px;
}

.flow.compact .flow-link {
  min-width: 72px;
}

/* Paragraph under the planning chain diagram */
.flow-note {
  max-width: 900px;
  margin-top: 32px;
  font-size: 16px;
  color: var(--ink-soft);
}

.sec.dark .flow-note {
  color: rgba(255, 255, 255, 0.75);
}

/* Export targets (NetPlan network export tool) */
.export-viz {
  display: flex;
  align-items: center;
}

.ev-source {
  flex: none;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  text-align: center;
}

.ev-source img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ev-source b {
  font-size: 16px;
}

.ev-source span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.export-viz .flow-link {
  min-width: 64px;
}

.export-viz .flow-link span {
  color: var(--ink-soft);
}

.export-viz .flow-link::after {
  background:
    linear-gradient(var(--teal), var(--teal)) left center / calc(100% - 6px) 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0L10 5L0 10z' fill='%2304748b'/%3E%3C/svg%3E") right center / 10px 10px no-repeat;
}

.ev-targets {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ev-target {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  background: #fff;
}

.ev-target b {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.ev-target span {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 1024px) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow,
  .flow-group,
  .export-viz {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-group {
    padding: 40px 18px 18px;
  }

  .flow-node,
  .flow.compact .flow-node,
  .ev-source,
  .ev-targets {
    width: auto;
    max-width: none;
  }

  .flow-link,
  .flow.compact .flow-link {
    flex: none;
    min-width: 0;
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
  }

  .flow-link::after {
    order: -1;
    width: 10px;
    height: 34px;
    background:
      linear-gradient(var(--accent), var(--accent)) center top / 2px calc(100% - 6px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0L10 0L5 10z' fill='%2360b1be'/%3E%3C/svg%3E") center bottom / 10px 10px no-repeat;
  }

  .export-viz .flow-link::after {
    background:
      linear-gradient(var(--teal), var(--teal)) center top / 2px calc(100% - 6px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0L10 0L5 10z' fill='%2304748b'/%3E%3C/svg%3E") center bottom / 10px 10px no-repeat;
  }
}

@media (max-width: 860px) {
  .checklist.c3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .callout {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .checklist,
  .checklist.c3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Automation illustration (SDDP page): AI assistant chat, recorded Factory
   script and an add-in badge, drawn in HTML so it stays crisp and on palette.
   Sizes use container units so the whole composition scales with its frame.
   ========================================================================== */

.art-auto {
  container-type: inline-size;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(var(--accent-rgb), 0.24), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}

.art-auto .art-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.aw {
  position: absolute;
  overflow: hidden;
  border-radius: 2.4cqw;
  box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, 0.38);
  font-size: 2.5cqw;
  line-height: 1.45;
}

.aw-head {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.6cqw 2.4cqw;
  font-size: 2.2cqw;
  font-weight: 600;
}

.aw-head svg {
  width: 2.8cqw;
  height: 2.8cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aw-dots {
  display: inline-flex;
  gap: 0.8cqw;
  margin-right: 0.6cqw;
}

.aw-dots i {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.aw-tag {
  margin-left: auto;
  padding: 0.3cqw 1.4cqw;
  border-radius: 999px;
  font-size: 1.8cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Chat window */
.aw-chat {
  left: 6%;
  top: 7%;
  width: 62%;
  background: #fff;
  color: var(--ink);
}

.aw-chat .aw-head {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.aw-chat .aw-head svg {
  color: var(--teal);
}

.aw-msgs {
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 2.4cqw;
}

.msg {
  max-width: 88%;
  padding: 1.5cqw 2.2cqw;
  border-radius: 2cqw;
}

.msg.user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 0.6cqw;
}

.msg.bot {
  align-self: flex-start;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-bottom-left-radius: 0.6cqw;
}

/* Code window */
.aw-code {
  right: 5%;
  bottom: 7%;
  width: 70%;
  background: #0b1724;
  color: #d7e3ea;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-code .aw-head {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-code .aw-tag {
  color: var(--navy);
  background: var(--accent-soft);
}

.aw-code pre {
  margin: 0;
  padding: 2cqw 2.4cqw 2.4cqw;
  overflow: hidden;
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 1.9cqw;
  line-height: 1.6;
  white-space: pre;
}

.tk-c { color: #6f8798; }
.tk-k { color: var(--accent-soft); }
.tk-f { color: #ffffff; }
.tk-s { color: #e6c38f; }

/* Add-in badge */
.aw-chip {
  position: absolute;
  right: 5%;
  top: 9%;
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.2cqw 2.2cqw 1.2cqw 1.4cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.3);
  font-size: 2.2cqw;
  font-weight: 600;
  color: var(--ink);
}

.aw-chip .chip-ico {
  width: 4cqw;
  height: 4cqw;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2cqw;
  color: var(--teal);
}

.aw-chip .chip-ico:before {
  margin: 0;
}

/* Interactive animation drawn straight on the section background (TSL bifacial panel) */
.anim-figure {
  margin: 0;
}

.anim-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  touch-action: none;
  cursor: grab;
}

.anim-canvas:active {
  cursor: grabbing;
}

.anim-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.anim-figure .key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.anim-figure .key i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.anim-figure .hint {
  color: var(--muted);
}

/* Touch screens: the canvas captures drags, so let swipes scroll the page instead */
@media (hover: none) {
  .anim-canvas {
    pointer-events: none;
  }

  .anim-figure .hint {
    display: none;
  }
}

/* Live PSRIO dashboard beside the results list. The script lays the dashboard out at a
   desktop width and scales it down to the frame, so it reads like a screenshot but stays interactive. */
.dash-split {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.dash-split .sec-head {
  margin-bottom: 36px;
}

.dash-embed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.dash-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(10, 31, 51, 0.14);
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.dash-dots {
  display: inline-flex;
  gap: 6px;
}

.dash-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dash-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.dash-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-viewport {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
  background: #f3f5f7;
}

/* Starts at the desktop width so the dashboard never boots in its mobile layout
   (collapsed sidebar) before the script scales it */
.dash-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 100%;
  border: 0;
  transform-origin: 0 0;
}

.dash-embed figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .dash-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-window,
  .dash-viewport {
    flex: none;
  }

  .dash-viewport {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .dash-viewport {
    aspect-ratio: 4 / 5;
  }

  .dash-dots {
    display: none;
  }
}
