/* KAI Water & Energy — site styles. One stylesheet for every page. */
:root {
  --page: #f3f7f7;
  --surface: #ffffff;
  --surface-2: #eaf2f2;
  --ink: #0b1f2a;
  --ink-2: #3b5260;
  --muted: #64788a;
  --line: rgba(11, 31, 42, 0.1);
  --brand: #0e7c86;
  --brand-strong: #0a5e66;
  --brand-ink: #ffffff;
  --mint: #5eead4;
  --sky: #38bdf8;
  --ochre: #c2873a;
  --sand: #e9dcc3;
  --deep: #0b1f2a;
  --ok: #15803d;
  --watch: #b45309;
  --warn: #b91c1c;
  --shadow: 0 1px 2px rgba(11, 31, 42, 0.04), 0 10px 30px -14px rgba(11, 31, 42, 0.18);
  --radius: 18px;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #07141b;
    --surface: #0e1f28;
    --surface-2: #142a35;
    --ink: #e6eef2;
    --ink-2: #b6c6cf;
    --muted: #8aa0ad;
    --line: rgba(230, 238, 242, 0.1);
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-ink: #042f2e;
    --ok: #4ade80;
    --watch: #fbbf24;
    --warn: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img,
svg,
canvas {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
::selection {
  background: color-mix(in srgb, var(--brand) 25%, transparent);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.lede {
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 62ch;
}
.muted {
  color: var(--muted);
}
.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 760px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
.btn-light {
  background: #fff;
  color: #0b1f2a;
}
.btn-light:hover {
  background: #e6f6f4;
}
.btn-outline-light {
  border-color: rgba(230, 238, 242, 0.35);
  color: #e6eef2;
}
.btn-outline-light:hover {
  background: rgba(230, 238, 242, 0.08);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #e6eef2;
  background: rgba(7, 20, 27, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(230, 238, 242, 0.08);
}
.site-header.on-dark {
  background: rgba(11, 31, 42, 0.72);
  border-bottom-color: rgba(230, 238, 242, 0.08);
  color: #e6eef2;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand-name {
  display: grid;
  line-height: 1.05;
}
.brand-name b {
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-name span {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: inherit;
  opacity: 0.82;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--mint);
}
.on-dark .nav-links a[aria-current="page"] {
  color: var(--mint);
}
.nav-links .btn {
  opacity: 1;
  color: var(--brand-ink);
  margin-left: 8px;
  min-height: 40px;
  padding: 0.5rem 1rem;
}
.nav-links .btn:hover {
  background: var(--brand-strong);
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: transparent;
  color: inherit;
  font: 600 0.95rem var(--f-body);
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 1100px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px max(20px, env(safe-area-inset-left, 0px)) 22px;
    background: #0b1f2a;
    color: #e6eef2;
    border-bottom: 1px solid rgba(230, 238, 242, 0.1);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .nav-open .nav-links {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-links a {
    font-size: 1.08rem;
    padding: 13px 12px;
  }
  .nav-links .btn {
    margin: 10px 0 0;
    min-height: 50px;
  }

}

/* ---------- Dark band (hero, CTA, footer) ---------- */
.band {
  position: relative;
  color: #e6eef2;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(165deg, #0b1f2a 0%, #0a2a33 55%, #0b1f2a 100%);
}
.band .lede,
.band .muted {
  color: #a9bfca;
}
.band .eyebrow {
  color: var(--mint);
}
.grad-text {
  background: linear-gradient(90deg, #5eead4, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: -68px;
  padding-top: 68px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: center;
  padding-block: clamp(36px, 7vw, 90px) clamp(28px, 5vw, 64px);
}
.hero-copy {
  display: grid;
  gap: 22px;
}
.hero h1 {
  color: #fff;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: #8fb0be;
}
.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  vertical-align: 2px;
}
.hero-stage {
  position: relative;
  aspect-ratio: 1.18 / 1;
  border-radius: 26px;
  border: 1px solid rgba(230, 238, 242, 0.1);
  background: radial-gradient(120% 90% at 50% 0%, rgba(56, 189, 248, 0.1), transparent 60%), rgba(255, 255, 255, 0.02);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.hero-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: pan-y;
}
.hero-stage .fallback[hidden] {
  display: none;
}
.hero-stage .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8fb0be;
  font-size: 0.85rem;
}
.stage-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #e6eef2;
  background: rgba(11, 31, 42, 0.72);
  border: 1px solid rgba(230, 238, 242, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(6px);
  transition: opacity 300ms ease;
}
.stage-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 10px;
  background: rgba(230, 238, 242, 0.4);
}
.stage-caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: #8fb0be;
  pointer-events: none;
}
.hero-strip {
  border-top: 1px solid rgba(230, 238, 242, 0.1);
}
.hero-strip dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding-block: 22px;
}
.hero-strip dt {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fb0be;
}
.hero-strip dd {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  margin-top: -68px;
  padding-top: 68px;
}
.page-hero .wrap {
  display: grid;
  gap: 18px;
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  max-width: 1160px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
}
.crumbs {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: #8fb0be;
}
.crumbs a {
  color: #8fb0be;
}

/* ---------- Cards and grids ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  align-content: start;
}
a.card {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}
.card p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
}
.card .more {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.icon svg {
  width: 24px;
  height: 24px;
}
.icon.ochre {
  color: var(--ochre);
  background: color-mix(in srgb, var(--ochre) 14%, transparent);
}
.icon.sky {
  color: #0284c7;
  background: color-mix(in srgb, #0ea5e9 13%, transparent);
}
.tag {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
}
.tag.live {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.tag.live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse > :first-child {
  order: 2;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
  background: color-mix(in srgb, var(--brand) 14%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Product showcase frame */
.frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}
.frame-bar span {
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand);
}
.steps p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* People */
.person {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(140deg, #14b8a6, #0e7c86 60%, #0b1f2a);
}
.avatar.ochre {
  background: linear-gradient(140deg, #d6a25b, #c2873a 55%, #5b4a36);
}
.role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface-2);
}

/* KAI-Hydro demo */
.demo {
  display: grid;
  gap: 22px;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--watch);
  color: var(--watch);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.example {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 4px 9px;
  border-radius: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.stat b {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: var(--muted);
  font-size: 0.82rem;
}
.chart-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#chart {
  width: 100%;
  min-width: 540px;
  height: auto;
  display: block;
}
#chart text {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--muted);
}
.table-box {
  overflow-x: auto;
}
.outlook {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.outlook th,
.outlook td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.outlook th {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.pill.ok {
  color: var(--ok);
}
.pill.watch {
  color: var(--watch);
}
.pill.warn {
  color: var(--warn);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field small {
  color: var(--muted);
  font-size: 0.8rem;
}
.input {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
textarea.input {
  min-height: 150px;
  resize: vertical;
}
.input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
}
.notice.ok {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}
.notice.err {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 {
  color: #fff;
  max-width: 22ch;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-block: 64px 44px;
}
.footer-grid h2 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-grid a {
  color: #a9bfca;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-grid a.btn-light {
  color: #0b1f2a;
}
.footer-about p {
  color: #a9bfca;
  font-size: 0.95rem;
  max-width: 34ch;
  margin-top: 14px;
}
.footer-about em {
  font-style: normal;
  color: var(--mint);
}
.footer-contact address {
  font-style: normal;
  color: #a9bfca;
  font-size: 0.95rem;
  display: grid;
  gap: 10px;
}
.footer-contact .btn {
  justify-self: start;
  margin-top: 4px;
}
.footer-base {
  border-top: 1px solid rgba(230, 238, 242, 0.1);
}
.footer-base .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  font-size: 0.82rem;
  color: #8fb0be;
}
.footer-base a {
  color: #8fb0be;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .tag.live::before {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about,
  .footer-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .hero-strip dl,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .hero-stage {
    aspect-ratio: 1 / 0.95;
    border-radius: 20px;
  }
}
@media (max-width: 480px) {
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }
  .person {
    grid-template-columns: 60px 1fr;
  }
  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.2rem;
  }
  .brand-name span {
    display: none;
  }
}

/* A card that uses the dark band background */
.card.band {
  background:
    radial-gradient(500px 260px at 90% -20%, rgba(45, 212, 191, 0.25), transparent 60%),
    linear-gradient(160deg, #0b1f2a 0%, #0a2a33 100%);
  color: #e6eef2;
}
.card.band p {
  color: #a9bfca;
}

/* =====================================================================
   v3 — product-led layout (GroundWater Analyst hero, packages, galleries)
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-tight { padding-block: clamp(24px, 5vw, 56px); }

/* Dropdown menus */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: inherit; font: 500 0.95rem var(--f-body); padding: 8px 10px 8px 12px; border-radius: 10px; cursor: pointer; opacity: 0.85; }
.dd-btn:hover, .dd.open .dd-btn { opacity: 1; background: rgba(230, 238, 242, 0.08); }
.dd-btn svg { width: 15px; height: 15px; transition: transform 180ms ease; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-btn[aria-current] { color: var(--mint); opacity: 1; }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -6px; min-width: 300px; display: grid; gap: 2px; padding: 8px; background: #0e2430; border: 1px solid rgba(230, 238, 242, 0.1); border-radius: 16px; box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; z-index: 60; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) { .dd:hover .dd-panel { opacity: 1; visibility: visible; transform: none; } }
.nav-links .dd-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; opacity: 1; }
.dd-panel a b { font-weight: 600; color: #fff; font-size: 0.95rem; }
.dd-panel a small { color: #8fb0be; font-size: 0.8rem; font-weight: 400; }
.dd-panel a.all b { color: var(--mint); font-size: 0.88rem; }
.nav-links .btn-primary { color: var(--brand-ink); }
@media (max-width: 1100px) {
  .dd-btn { pointer-events: none; font: 500 0.7rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); opacity: 1; padding: 16px 12px 4px; }
  .dd-btn svg { display: none; }
  .dd-panel { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; }
  .nav-links .dd-panel a { padding: 9px 12px; }
  .dd-panel a small { display: none; }
  .nav-plain { margin-top: 10px; }
}

/* Live model hero */
.hero-live { position: relative; margin-top: -68px; min-height: min(94vh, 920px); display: grid; grid-template-rows: 1fr auto; color: #e6eef2; overflow: hidden;
  background: radial-gradient(1100px 700px at 68% 42%, #123848 0%, #0b2330 50%, #07141b 100%); }
.hl-stage { position: absolute; inset: 0; z-index: 0; }
.hl-stage::before { content: ""; position: absolute; inset: 0; background: url(img/ga-hero.jpg) 50% 50% / cover no-repeat; transition: opacity 1.2s ease; }
.hl-stage.ready::before { opacity: 0; }
.hl-stage iframe, .case-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 1.2s ease; color-scheme: light; background: transparent; }
.hl-stage.ready iframe, .case-frame.ready iframe { opacity: 1; }
.locked iframe { pointer-events: none; }
.hl-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 20, 27, 0.95) 0%, rgba(7, 20, 27, 0.72) 30%, rgba(7, 20, 27, 0) 56%), linear-gradient(0deg, rgba(7, 20, 27, 0.85) 0%, rgba(7, 20, 27, 0) 26%), linear-gradient(180deg, rgba(7, 20, 27, 0.7) 0%, rgba(7, 20, 27, 0) 18%); }
.hl-copy { position: relative; z-index: 2; align-self: center; display: grid; gap: 22px; padding-top: calc(68px + clamp(32px, 7vh, 88px)); padding-bottom: clamp(28px, 5vh, 56px); pointer-events: none; }
.hl-copy > * { pointer-events: auto; max-width: 560px; }
.hl-copy h1 { color: #fff; font-size: clamp(2.3rem, 4.3vw, 3.9rem); }
.hl-copy > h1 { max-width: 620px; }
.hl-copy .lede { color: #b8ccd5; }
.hl-copy .eyebrow { color: var(--mint); display: inline-flex; align-items: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; margin-right: 10px; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } }
.hl-strip { position: relative; z-index: 2; border-top: 1px solid rgba(230, 238, 242, 0.1); background: rgba(7, 20, 27, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hl-strip dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 auto; padding-block: 20px 4px; }
.hl-strip dt { font: 800 clamp(1.5rem, 2.6vw, 2.1rem) / 1.1 var(--f-display); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hl-strip dd { margin: 4px 0 0; color: #8fb0be; font-size: 0.88rem; }
.hl-note { font-family: var(--f-mono); font-size: 0.7rem; color: #6f8d9b; padding-bottom: 14px; padding-top: 8px; }
.hl-legend { position: absolute; right: max(20px, calc((100vw - 1160px) / 2 + 20px)); bottom: calc(100% + 14px); display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-family: var(--f-mono); font-size: 0.7rem; color: #cfe0e6; pointer-events: none; }
.hl-legend span { display: inline-flex; align-items: center; gap: 6px; background: rgba(7, 20, 27, 0.6); border: 1px solid rgba(230, 238, 242, 0.1); padding: 4px 9px; border-radius: 999px; }
.hl-legend i { width: 9px; height: 9px; border-radius: 3px; }
.hl-touch { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(230, 238, 242, 0.25); background: rgba(7, 20, 27, 0.75); color: #fff; font: 600 0.92rem var(--f-body); white-space: nowrap; backdrop-filter: blur(8px); cursor: pointer; }
.hl-touch::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9M21 3l-6 6M15 3h6v6'/%3E%3C/svg%3E") center/contain no-repeat; }
.hl-done { position: absolute; right: 12px; top: 12px; z-index: 3; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #0b1f2a; font: 600 0.88rem var(--f-body); cursor: pointer; }
.hl-touch[hidden], .hl-done[hidden] { display: none; }
@media (max-width: 860px) {
  .hero-live { display: flex; flex-direction: column; min-height: 0; }
  .hl-copy { order: 1; padding-top: calc(68px + 26px); padding-bottom: 4px; gap: 16px; }
  .hl-copy .lede { font-size: 1rem; }
  .hl-copy .cta-row .btn { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.93rem; }
  .hl-stage { order: 2; position: relative; inset: auto; height: min(96vw, 440px); }
  .hl-scrim { display: none; }
  .hl-strip { order: 3; }
  .hl-legend { position: static; justify-content: flex-start; gap: 8px; padding: 14px max(20px, env(safe-area-inset-left, 0px)) 0; }
  .hl-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; }
}

/* Product packages */
.pkg-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.pkg { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 200ms ease, border-color 200ms ease; }
.pkg:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.pkg-img { aspect-ratio: 16 / 10; overflow: hidden; background: #eef4f4; }
.pkg-img.dark { background: #07141b; }
.pkg-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pkg-img.dark img { object-position: center; }
.pkg:hover .pkg-img img { transform: scale(1.04); }
.pkg-body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.pkg-body p { color: var(--ink-2); font-size: 0.97rem; }
.pkg .more, .tile .more { font-weight: 600; color: var(--brand); font-size: 0.95rem; }
.pkg-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.pkg-row:nth-child(even) > .pkg-img { order: 2; }
.pkg-row .pkg-img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pkg-row .pkg-body { padding: 0; gap: 16px; }

/* What's unique */
.uniq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.uniq { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(230, 238, 242, 0.08); }
.uniq h3 { color: #fff; }
.uniq p { color: #a9bfca; font-size: 0.95rem; }
.band .icon { color: var(--mint); background: rgba(94, 234, 212, 0.1); }

/* Solution tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; min-height: 320px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: #07141b; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 20, 27, 0.96) 0%, rgba(7, 20, 27, 0.7) 45%, rgba(7, 20, 27, 0.15) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile > div { position: relative; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.tile h3 { color: #fff; }
.tile p { color: #cfe0e6; font-size: 0.93rem; }
.tile .more { color: var(--mint); }

/* Screenshots in frames */
.shot { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.55); background: var(--surface); color: inherit; text-decoration: none; transition: transform 200ms ease; }
.shot:hover { transform: translateY(-3px); }
.shot img { display: block; width: 100%; height: auto; }
.shot.dark { background: #07141b; border-color: rgba(230, 238, 242, 0.12); }
.shot.dark .frame-bar { background: #0e2430; border-bottom-color: rgba(230, 238, 242, 0.08); color: #8fb0be; }
.case-sec { background: var(--surface-2); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; }
.mini-stats div { border-left: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); padding-left: 12px; }
.mini-stats dt { font: 800 1.6rem / 1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.mini-stats.on-dark dt { color: #fff; }
.mini-stats.on-dark dd { color: #8fb0be; }
.mini-stats.on-dark div { border-left-color: rgba(94, 234, 212, 0.5); }

/* Product page hero */
.product-hero .ph-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 1160px; }
.ph-copy { display: grid; gap: 18px; }
.why h3 { font-size: 1.1rem; }

/* Workflow */
.workflow-sec { background: var(--surface-2); }
.workflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: w; }
.workflow li { counter-increment: w; display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.workflow li::before { content: counter(w); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 800 1.05rem var(--f-display); margin-bottom: 4px; }
.workflow p { color: var(--ink-2); font-size: 0.95rem; }

/* Feature gallery */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.feat-img { aspect-ratio: 16 / 10; background: #07141b; overflow: hidden; }
.feat-img.light { background: #f3f7f7; }
.feat-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.feat-img.light img { object-position: center top; }
.feat:hover .feat-img img { transform: scale(1.04); }
.feat.tall .feat-img img { object-fit: cover; object-position: center 52%; }
.feat figcaption { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.feat figcaption p { color: var(--ink-2); font-size: 0.94rem; }

/* Case study with live model */
.case-live { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: start; }
.case-frame { position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; border: 1px solid rgba(230, 238, 242, 0.12); background: #07141b; }
.case-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease; }
.case-frame.ready .case-poster { opacity: 0; pointer-events: none; }
.case-copy { display: grid; gap: 16px; }
.case-copy h3 { color: #fff; margin-top: 6px; }
.case-copy .src { font-size: 0.78rem; color: #6f8d9b; }
.check-list.on-dark li { color: #cfe0e6; }
.check-list.on-dark li::before { background-color: rgba(94, 234, 212, 0.14); }

/* Footer contact form */
.footer-grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 1.5fr; }
.footer-about .addr { font-family: var(--f-mono); font-size: 0.75rem; color: #8fb0be; }
.mini-form { display: grid; gap: 10px; }
.mini-form .input { background: rgba(255, 255, 255, 0.06); border-color: rgba(230, 238, 242, 0.16); color: #fff; min-height: 44px; font-size: 0.95rem; }
.mini-form textarea.input { min-height: 88px; }
.mini-form .input::placeholder { color: #8fb0be; }
.mini-form .btn { justify-self: start; }
.mini-form .notice.ok { color: #86efac; background: rgba(74, 222, 128, 0.1); }
.mini-form .notice.err { color: #fca5a5; background: rgba(248, 113, 113, 0.1); }

@media (max-width: 980px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .pkg-lead { grid-column: 1 / -1; }
  .uniq-grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero .ph-grid, .case-live { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pkg-grid, .uniq-grid, .feat-grid, .pkg-row { grid-template-columns: 1fr; }
  .pkg-row:nth-child(even) > .pkg-img { order: 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 240px; }
  .tile > div { padding: 16px; }
  .tile p { display: none; }
  .workflow { grid-template-columns: 1fr; }
  .case-frame { aspect-ratio: 4 / 5; }
}
.workflow li.wf-next { background: linear-gradient(160deg, #0b1f2a 0%, #0a2a33 100%); border-color: transparent; color: #e6eef2; }
.workflow li.wf-next::before { content: "→"; background: var(--mint); color: #042f2e; }
.workflow li.wf-next h3 { color: #fff; }
.workflow li.wf-next p { color: #a9bfca; }
.workflow li.wf-next .more { color: var(--mint); font-weight: 600; }

/* =====================================================================
   v4 — business flow: Challenges → Solutions → Products → Pricing → Login
   ===================================================================== */
.nav-links .nav-login { font-weight: 600; opacity: 1; }
.nav-links .nav-login::before { content: ""; display: inline-block; width: 1px; height: 18px; background: rgba(230, 238, 242, 0.2); margin-right: 14px; vertical-align: -4px; }
@media (max-width: 1100px) { .nav-links .nav-login::before { display: none; } .nav-links .nav-login { margin-top: 10px; } }
.btn-sm { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.9rem; border-radius: 10px; }
.more-link { font-weight: 600; color: var(--brand); text-decoration: none; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.fine a { font-weight: 600; }

/* hero bullets + caption */
.hero-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #cfe0e6; }
.hero-bullets li { display: flex; gap: 10px; align-items: baseline; }
.hero-bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); flex: none; transform: translateY(-2px); }
.hl-cap { border-color: rgba(94, 234, 212, 0.35) !important; color: var(--mint) !important; }

/* challenges */
.chal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chal { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 6px 14px; align-items: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 180ms ease, border-color 180ms ease; }
.chal:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.chal .icon { grid-row: span 2; }
.chal span:not(.icon) { font: 700 1.08rem / 1.3 var(--f-display); letter-spacing: -0.01em; }
.chal b { color: var(--brand); font-size: 0.9rem; }
.sectors { display: grid; gap: 22px; }
.sector { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sector-head { display: grid; gap: 12px; align-content: start; }
.sector-head h2 { font-size: 1.4rem; }
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sector-list li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sector-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sector-list .q { font-size: 1.05rem; color: var(--ink); }
.sector-list a { font-weight: 600; text-decoration: none; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sol { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 180ms ease, border-color 180ms ease; }
.sol:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.sol h3 { font-size: 1.08rem; }
.sol p { color: var(--ink-2); font-size: 0.93rem; }
.sol .more { font-weight: 600; color: var(--brand); font-size: 0.9rem; }
.prose { display: grid; gap: 14px; }
.prose p { color: var(--ink-2); font-size: 1.04rem; }
.prose.wide { max-width: 860px; }
.prose h2 { margin-bottom: 0; }
.prose .sub { font: 600 1.15rem var(--f-display); color: var(--brand); margin-top: -4px; }
.prod-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.prod-mini { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.prod-mini .pkg-img { border-radius: 12px; aspect-ratio: 16 / 11; }
.prod-mini > span:last-child { display: grid; gap: 4px; }
.prod-mini b { font: 700 1.25rem var(--f-display); }
.prod-mini small { color: var(--ink-2); }
.prod-mini .more { color: var(--brand); font-weight: 600; }

/* packages: price line */
.pkg-price { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted) !important; }
.pkg h3 a { color: inherit; text-decoration: none; }
.pkg-img { display: block; }
.uniq-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* tier ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rung { padding: 24px; background: var(--surface); display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); }
.rung:last-child { border-right: 0; background: linear-gradient(160deg, #0b1f2a 0%, #0a2a33 100%); color: #e6eef2; }
.rung:last-child p { color: #a9bfca; }
.rung:last-child h3 { color: #fff; }
.rung span { font: 800 1.5rem var(--f-display); color: var(--brand); }
.rung:last-child span { color: var(--mint); }
.rung p { color: var(--ink-2); font-size: 0.95rem; }

/* tier cards */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.tier.tier-pro { border: 2px solid var(--brand); }
.tier-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier-badge { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.tier h3 { font-size: 1.2rem; }
.tier-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tier-price b { font: 800 2rem / 1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier-price small { color: var(--muted); font-size: 0.85rem; }
.tier-blurb { color: var(--ink-2); font-size: 0.95rem; }
.tier .check-list { flex: 1; }
.tier .btn { margin-top: 6px; }
.check-list.tight { gap: 8px; }
.check-list.tight li { font-size: 0.92rem; }
.check-list.big li { font-size: 1rem; }
.price-tabs { position: sticky; top: 68px; z-index: 30; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.price-tabs .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; }
.price-tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; background: var(--surface); }
.price-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.price-block + .price-block { padding-top: 0; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-2); padding-bottom: 16px; }

/* products index: audience row */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aud { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aud a { text-decoration: none; color: inherit; font: 700 1.35rem var(--f-display); }
.aud p { color: var(--ink-2); }
.aud small { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }

/* product page galleries */
.gal-grid { display: grid; gap: 14px; }
.gal-grid.two { grid-template-columns: 1fr 1fr; }
.gal-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eef4f4; display: grid; grid-template-rows: auto auto; }
.gal.dark { background: #07141b; border-color: rgba(230, 238, 242, 0.12); }
.gal img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center top; }
.gal.dark img { object-position: center; }
.gal figcaption { font-size: 0.82rem; padding: 8px 12px; color: var(--ink-2); background: var(--surface); border-top: 1px solid var(--line); }
.demo-call { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.demo-call > div { display: grid; gap: 6px; max-width: 640px; }

@media (max-width: 980px) {
  .chal-grid { grid-template-columns: 1fr 1fr; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .rung:nth-child(2) { border-right: 0; }
  .rung:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sector { grid-template-columns: 1fr; }
  .uniq-grid.six { grid-template-columns: 1fr 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .chal-grid, .sol-grid, .tiers, .uniq-grid.six, .gal-grid.three { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .rung { border-right: 0; border-bottom: 1px solid var(--line); }
  .prod-mini { grid-template-columns: 1fr; }
  .hero-bullets { font-size: 0.95rem; }
}
.pkg-who { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }

/* v5 — product-first: grouped menus, coming-soon products */
.dd-panel.wide { grid-template-columns: 1fr 1fr; min-width: 640px; column-gap: 10px; left: 50%; translate: -50% 0; }
.dd-col { display: grid; gap: 2px; align-content: start; }
.dd-group { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); padding: 12px 12px 4px; display: flex; align-items: center; gap: 8px; }
.dd-group::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dd-group.energy { color: var(--energy-on-dark); }
.dd-group.ground { color: #9fb3bf; }
.dd-col .dd-group:not(:first-child) { margin-top: 8px; }
.dd-panel .all { grid-column: 1 / -1; border-top: 1px solid rgba(230, 238, 242, 0.08); border-radius: 0 0 10px 10px; margin-top: 4px; }
.soon-tag { font: 500 0.62rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #9fb3bf; border: 1px solid rgba(230, 238, 242, 0.18); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }
@media (max-width: 1100px) { .dd-panel.wide { grid-template-columns: 1fr; min-width: 0; translate: none; } .dd-group { padding: 8px 12px 0; } .dd-panel .all { border-top: 0; } }
.pkg-grid { grid-template-columns: 1fr 1fr; }
.aud-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.soon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.soon { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
.soon h3 { font-size: 1.08rem; }
.soon h3 a { color: inherit; text-decoration: none; }
.soon p { color: var(--ink-2); font-size: 0.9rem; }
.soon .more { font-weight: 600; color: var(--brand); font-size: 0.88rem; text-decoration: none; }
.h2s { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.icon-media { display: grid !important; place-items: center; background: color-mix(in srgb, var(--brand) 8%, var(--surface)) !important; }
.icon-media .icon { width: 64px; height: 64px; }
.chal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pkg-img img[src$=".svg"] { object-fit: contain; background: #fff; }
.gal img[src$=".svg"] { object-fit: contain; background: #fff; }
.shot img[src$=".svg"] { background: #fff; }
@media (max-width: 1100px) { .soon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .aud-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .soon-grid, .aud-grid.four, .pkg-grid, .chal-grid { grid-template-columns: 1fr; } }
.gal-grid.two > :only-child { grid-column: 1 / -1; }

/* key number on a real-data case card */
.case-kpi { display: grid; gap: 2px; }
.case-kpi b { font: 700 1.7rem/1.1 var(--f-display); color: var(--brand); }
.case-kpi span { font-size: 0.85rem; color: var(--muted); }

/* v6 — water and energy */
:root { --energy: #c2873a; --energy-ink: #8a5a1c; --energy-on-dark: #f0b765; --water-on-dark: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --energy: #e0a24f; --energy-ink: #f0b765; } }
.icon.ochre { color: var(--energy-ink); background: color-mix(in srgb, var(--energy) 15%, transparent); }
.eyebrow.energy, .band .eyebrow.energy { color: var(--energy-on-dark); }
.btn-energy { background: #e0a24f; color: #2a1a05; box-shadow: 0 8px 22px -10px rgba(224, 162, 79, 0.8); }
.btn-energy:hover { background: #f0b765; }

/* hero: water and energy side by side */
.hl-copy > .hero-split { max-width: 600px; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.hsp { display: grid; gap: 8px; align-content: start; }
.hsp > b { font: 600 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--water-on-dark); }
.hsp.energy > b { color: var(--energy-on-dark); }
.hsp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: #cfe0e6; font-size: 0.95rem; line-height: 1.4; }
.hsp li { display: flex; gap: 10px; align-items: baseline; }
.hsp li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--water-on-dark); flex: none; transform: translateY(-2px); }
.hsp.energy li::before { background: var(--energy-on-dark); }

/* sector tags */
.sec-tag { display: inline-block; font: 500 0.66rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; padding: 2px 8px; border-radius: 999px; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); }
.sec-tag.energy { color: var(--energy-ink); background: color-mix(in srgb, var(--energy) 15%, transparent); }
.sec-tag.ground { color: var(--ink-2); background: color-mix(in srgb, var(--ink-2) 10%, transparent); }
.chal b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chal .icon.ochre + span + b { color: var(--energy-ink); }
.sector-head .sec-tag { justify-self: start; }

/* the platform: two sector panels */
.sector-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp { position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: 22px; color: #e6eef2; overflow: hidden; isolation: isolate; }
.sp.water { background: radial-gradient(120% 90% at 0% 0%, #0f5d66 0%, #0b2f3a 55%, #08202a 100%); }
.sp.energy { background: radial-gradient(120% 90% at 100% 0%, #5c3a12 0%, #2a2116 50%, #141a1f 100%); }
.sp::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.22; background-repeat: no-repeat; background-position: right -40px bottom -30px; background-size: 260px; }
.sp.water::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='.5'%3E%3Cpath d='M12 3c4 5 7 8.6 7 12a7 7 0 0 1-14 0c0-3.4 3-7 7-12Z'/%3E%3C/svg%3E"); }
.sp.energy::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b765' stroke-width='.5'%3E%3Cpath d='M13 2.5 4.5 13.5h6.5l-1 8 8.5-11h-6.5l1-8Z'/%3E%3C/svg%3E"); }
.sp header { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; }
.sp-mark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(94, 234, 212, 0.14); color: var(--water-on-dark); }
.sp.energy .sp-mark { background: rgba(240, 183, 101, 0.15); color: var(--energy-on-dark); }
.sp-mark svg { width: 28px; height: 28px; }
.sp h3 { font: 800 clamp(1.6rem, 2.6vw, 2.1rem) / 1.05 var(--f-display); letter-spacing: -0.02em; color: #fff; }
.sp header p { color: #a9bfca; font-size: 0.95rem; margin-top: 4px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sp-list a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 11px 12px; margin-inline: -12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background 160ms ease; }
.sp-list a:hover, .sp-list a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.sp-list .icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(94, 234, 212, 0.1); color: var(--water-on-dark); }
.sp.energy .sp-list .icon { background: rgba(240, 183, 101, 0.12); color: var(--energy-on-dark); }
.sp-list .icon svg { width: 20px; height: 20px; }
.sp-list b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; font-weight: 600; }
.sp-list small { display: block; color: #9fb7c2; font-size: 0.86rem; margin-top: 2px; }
.pst { font: 500 0.62rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; padding: 2px 8px; border-radius: 999px; }
.pst.live { color: #062f2b; background: var(--water-on-dark); }
.sp.energy .pst.live { color: #2a1a05; background: var(--energy-on-dark); }
.pst.soon { color: #b6c6cf; border: 1px solid rgba(230, 238, 242, 0.22); }
.sp-ground { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(230, 238, 242, 0.1); }
.sp-ground > span { font: 500 0.68rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #9fb3bf; }
.sp-ground .icon { background: rgba(230, 238, 242, 0.08) !important; color: #b6c6cf !important; }
.sp-more { justify-self: start; font-weight: 600; color: var(--water-on-dark); text-decoration: none; }
.sp.energy .sp-more { color: var(--energy-on-dark); }

/* solutions grouped by sector */
.sol-sectors { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.sol-side { display: grid; gap: 20px; }
.sol-sector { padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sec-h { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--brand); }
.sec-h.energy { border-bottom-color: var(--energy); }
.sec-h.ground { border-bottom-color: var(--muted); }
.sol-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sol-list li + li { border-top: 1px solid var(--line); }
.sol-list a { display: grid; grid-template-columns: 40px 1fr 16px; gap: 14px; align-items: center; padding: 12px 8px; margin-inline: -8px; border-radius: 10px; color: inherit; text-decoration: none; }
.sol-list a::after { content: "→"; color: var(--muted); transition: transform 160ms ease; }
.sol-list a:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.sol-list a:hover::after { transform: translateX(3px); color: var(--brand); }
.sol-list .icon { width: 40px; height: 40px; }
.sol-list .icon svg { width: 20px; height: 20px; }
.sol-list b { display: block; font-weight: 600; }
.sol-list small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 1px; }

/* hydropower spotlight */
.hp-spot { background: radial-gradient(90% 120% at 100% 0%, #3d2a10 0%, #14212a 45%, #0b1a22 100%); }
.hp-grid { align-items: center; gap: clamp(26px, 4vw, 54px); }
.hp-copy { display: grid; gap: 18px; }
.hp-copy h2 { color: #fff; }
.hp-copy .check-list li { color: #d2e0e6; }
.hp-copy .check-list li::before { color: var(--energy-on-dark); }
.hp-fig { margin: 0; padding: 16px 16px 12px; border-radius: 20px; background: #0b1f2a; border: 1px solid rgba(240, 183, 101, 0.22); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.hp-fig svg { display: block; width: 100%; height: auto; }
.hp-fig text { font-family: var(--f-mono); font-size: 11px; fill: #8fb0be; }
.hp-fig text.z { fill: #c9d7de; font-family: var(--f-body); font-size: 12px; font-weight: 600; }
.hp-fig text.lv { fill: #8fb0be; }
.hp-fig text.ax { fill: #8fb0be; }
.hp-fig text.call { fill: #fca5a5; font-family: var(--f-body); font-size: 13px; font-weight: 700; }
.hp-fig text.ok { fill: #5eead4; font-family: var(--f-body); font-size: 13px; font-weight: 700; }
.hp-fig figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 4px 0; font-size: 0.8rem; color: #a9bfca; }
.hp-fig figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.hp-fig figcaption i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.hp-fig figcaption i.dash { background: repeating-linear-gradient(90deg, #f87171 0 5px, transparent 5px 8px) !important; }
.hp-fig figcaption .note { margin-left: auto; color: #6f8a97; font-style: italic; }

/* soon cards: six in development */
.soon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soon .icon.ochre ~ .more { color: var(--energy-ink); }

/* footer: staff entry to the admin console */
.team-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.team-link svg { width: 14px; height: 14px; }
.team-link:hover { color: #fff !important; }

@media (max-width: 980px) {
  .sector-panels, .sol-sectors { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-split { grid-template-columns: 1fr; gap: 14px; }
  .hp-fig figcaption .note { margin-left: 0; }
  .soon-grid { grid-template-columns: 1fr; }
}
.eyebrow.energy-ink { color: var(--energy-ink); }
.pst.soon { background: transparent; }

/* ---- v7: KAI Academy */
.acad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.acad-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.acad-stats dt { font: 700 1.6rem/1.1 var(--f-display); color: var(--brand); }
.acad-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.acad-track { margin-top: 34px; }
.acad-track:first-of-type { margin-top: 8px; }
.acad-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.acad-head > div { flex: 1; min-width: 0; }
.acad-head h3 { margin: 2px 0 2px; font: 700 1.25rem/1.2 var(--f-display); }
.acad-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.acad-head .icon { flex: none; margin: 0; }
.acad-head .pst.live { color: #fff; background: var(--brand); }
.acad-head .pst.soon { color: var(--muted); border: 1px solid var(--line); }
.acad-track.energy .sec-tag { color: var(--energy-ink, #8a5a1c); }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tut { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.tut-top { display: flex; align-items: baseline; gap: 10px; font: 500 0.72rem var(--f-mono); color: var(--muted); letter-spacing: 0.02em; }
.tut-top b { font: 700 1.05rem var(--f-display); color: var(--brand); }
.tut h4 { margin: 0; font: 700 1.05rem/1.3 var(--f-display); }
.tut h4 a { color: inherit; text-decoration: none; }
.tut h4 a:hover { color: var(--brand); }
.tut p { margin: 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.55; flex: 1; }
.tut-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tut-chips span { font: 500 0.7rem var(--f-mono); color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 3px 9px; }
.tut-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; }
.tut-links a { color: var(--brand); text-decoration: none; }
.tut-links a:hover { text-decoration: underline; }
.tut.soon { background: transparent; box-shadow: none; border-style: dashed; }
.tut.soon h4, .tut.soon p { color: var(--muted); }
.acad-code { margin: 0; background: #07141b; color: #d7e6ec; border-radius: 16px; padding: 20px 22px; font: 0.82rem/1.75 var(--f-mono); overflow-x: auto; border: 1px solid rgba(230, 238, 242, 0.1); }
.acad-code span { color: #7f97a3; }
.acad-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.acad-next > div:first-child { flex: 1 1 380px; }
.acad-next h3 { margin: 6px 0; }
.acad-next p { margin: 0; }
@media (max-width: 820px) {
  .acad-stats { grid-template-columns: repeat(2, 1fr); }
  .acad-head { flex-wrap: wrap; }
}
.tut-chips span.data { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tut.soon .tut-top span { font-size: 0.68rem; }

/* ---- v8: KAI hexagon mark and product icons */
.picon { display: block; flex: none; object-fit: contain; }
.sp-list a .picon { width: 38px; height: 38px; justify-self: center; }
.soon > .picon { margin-bottom: 4px; }
.pkg-h { display: flex; align-items: center; gap: 10px; }
.pkg-h .picon { width: 34px; height: 34px; }
.ph-title { display: flex; align-items: center; gap: 16px; }
.ph-icon { width: 58px; height: 58px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }
@media (max-width: 640px) { .ph-icon { width: 44px; height: 44px; } .ph-title { gap: 12px; } }
.cowork-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: cw; }
.cowork-grid li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.cowork-grid li::before { counter-increment: cw; content: "0" counter(cw); display: block; font: 700 1.05rem var(--f-display); color: var(--brand); margin-bottom: 8px; }
.cowork-grid h3 { margin: 0 0 6px; font: 700 1.08rem/1.25 var(--f-display); }
.cowork-grid p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; }
.cowork-note { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.cowork-note span::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 7px; }
.cowork-grid { padding: 0; margin: 0; }
@media (max-width: 900px) { .cowork-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cowork-grid { grid-template-columns: 1fr; } }
.brand-mark { width: 40px; height: 40px; }
/* v9: public-data proof sections */
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats-row .stat span { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; line-height: 1.45; }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr; } }

/* v10: interactive lab card (KAI-Subsurface) */
.lab-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--line, #e3e3e3); border-radius: 18px; overflow: hidden; background: var(--surface, #fff); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.lab-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(16, 24, 40, .12); }
.lab-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab-card > span { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; justify-content: center; }
.lab-card b { font-size: 1.45rem; line-height: 1.2; }
.lab-card small { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.lab-card em { font-style: normal; font-weight: 650; color: var(--brand, #0a27a5); margin-top: 6px; }
@media (max-width: 760px) { .lab-card { grid-template-columns: 1fr; } .lab-card > span { padding: 20px; } }

/* v10: full-width result figures, never cropped */
.fig-stack { display: grid; gap: 18px; }
.gal.fit img { aspect-ratio: auto; object-fit: contain; background: #fff; }

.lab-card em a { color: var(--brand, #0e7c86); text-decoration: none; font-weight: 650; } .lab-card em a:hover { text-decoration: underline; }

/* v11: interactive case pages (Plotly charts, KAI-Subsurface reference cases) */
.case-page { display: grid; gap: 22px; }
.case-banner { margin: 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); font-weight: 600; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .lbl { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--f-display); font-size: 1.65rem; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi b.good { color: var(--ok); }
.kpi small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.plot-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); color: inherit; text-decoration: none; min-width: 0; }
.plot-card h2 { font-size: 1.35rem; margin: 6px 0 6px; }
.plot-card h3 { margin: 0 0 10px; }
.plot-card .sub { color: var(--ink-2); margin: 0 0 12px; max-width: 70ch; line-height: 1.55; }
.plot-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.plot-head span { color: var(--muted); font-size: .82rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plot { width: 100%; min-width: 0; position: relative; }
.plot.zrp-loading::after { content: "Loading the chart…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); font-size: .78rem; }
.zrp-fail { color: var(--muted); }
.note-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; color: var(--ink-2); line-height: 1.55; font-size: .92rem; }
.case-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.5; }
.more-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 0; }
.plot-card.repro { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plot-card.repro small { display: block; color: var(--muted); margin-top: 4px; }
.plot-card.repro em { font-style: normal; font-weight: 650; color: var(--brand); white-space: nowrap; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } .plot-card { padding: 16px 14px; } .plot-card.repro { flex-direction: column; align-items: flex-start; } }

/* v12: HydroSaaS chart style for the interactive case charts (legend chips, tighter cards) */
.plot-card { padding: 16px 18px; border-radius: 14px; }
.plot-card h2 { font-size: 1.15rem; font-weight: 650; margin: 6px 0 4px; }
.plot-card .sub { font-size: .9rem; color: var(--muted); }
.plot-head b { font-weight: 600; font-size: 1rem; }
.zrp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .78rem; color: var(--ink-2); }
.zrp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.zrp-legend button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.zrp-legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.zrp-legend button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.zrp-sw { display: inline-block; flex: none; width: 16px; height: 10px; border-radius: 2px; background: var(--c); }
.zrp-sw.zrp-line { height: 2px; border-radius: 1px; }
.zrp-sw.zrp-dash { height: 0; background: none; border-top: 2px dashed var(--c); }
.zrp-sw.zrp-dot-line { height: 0; background: none; border-top: 2px dotted var(--c); }
.zrp-sw.zrp-dot { width: 9px; height: 9px; border-radius: 50%; }
.zrp-sw.zrp-soft { background: var(--soft); border: 1px solid var(--c); }
.zrp-sw.zrp-tri { width: 0; height: 0; background: none; border-radius: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--c); }
.zrp-wrap { min-width: 0; }
/* v13: Plotly toolbar inside KAI pages. The site's .icon class (feature icons) also matches Plotly's toolbar icons; undo it there. */
.modebar-btn svg.icon { display: inline-block !important; width: 1em !important; height: 1em !important; max-width: none; border-radius: 0; background: none !important; color: inherit; place-items: initial; vertical-align: middle; }
.modebar-group { background: transparent !important; }

/* v14: KAI honeycomb watermark. Page headers and the footer sit on a deep-blue grade with a blue hex mesh
   (water) that fades into an amber mesh (energy) on the right, matching the KAI social graphics. */
:root {
  --hex-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%236f9bff' stroke-width='1.3'/%3E%3C/svg%3E");
  --hex-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23f2b544' stroke-width='1.3'/%3E%3C/svg%3E");
  --hive-grade:
    radial-gradient(1000px 560px at 6% -25%, rgba(47, 107, 255, 0.5), transparent 62%),
    radial-gradient(900px 500px at 104% 125%, rgba(242, 181, 68, 0.16), transparent 60%),
    linear-gradient(160deg, #0b2a96 0%, #081d6b 46%, #06123d 100%);
}
.page-hero.band, .site-footer.band { background: var(--hive-grade); }
.page-hero, .site-footer { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before, .site-footer::before,
.page-hero::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: 56px 100px;
}
.page-hero::before, .site-footer::before {
  background-image: var(--hex-blue); opacity: 0.42;
  -webkit-mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 72%);
          mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 72%);
}
.page-hero::after, .site-footer::after {
  background-image: var(--hex-amber); opacity: 0.3;
  -webkit-mask-image: linear-gradient(100deg, transparent 50%, rgba(0, 0, 0, 0.45) 72%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 50%, rgba(0, 0, 0, 0.45) 72%, #000 100%);
}
.site-footer::before { opacity: 0.3; }
.site-footer::after { opacity: 0.22; }
.page-hero .lede, .site-footer .muted { color: #c3d3ff; }
.page-hero .eyebrow, .footer-grid h2 { color: #8db8ff; }
@media (max-width: 640px) {
  .page-hero::after, .site-footer::after { opacity: 0.18; }
}

/* v15: full KAI honeycomb makeover (matches the Hydro-SaaS platform). Every dark band, the home hero,
   its stats strip and the Water / Energy panels sit on the deep-blue grade with the hex mesh. */
:root {
  --hex-blue-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%236f9bff' stroke-opacity='.2' stroke-width='1.3'/%3E%3C/svg%3E");
  --hex-amber-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23f2b544' stroke-opacity='.2' stroke-width='1.3'/%3E%3C/svg%3E");
}
/* every dark band (CTA bands, spotlight sections, page heroes, footer) */
.band { background: var(--hive-grade); position: relative; isolation: isolate; }
.band:not(.page-hero):not(.site-footer)::before, .band:not(.page-hero):not(.site-footer)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background-size: 56px 100px;
}
.band:not(.page-hero):not(.site-footer)::before {
  background-image: var(--hex-blue); opacity: 0.36;
  -webkit-mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 72%);
          mask-image: radial-gradient(130% 120% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 72%);
}
.band:not(.page-hero):not(.site-footer)::after {
  background-image: var(--hex-amber); opacity: 0.34;
  -webkit-mask-image: linear-gradient(100deg, transparent 50%, rgba(0, 0, 0, 0.45) 72%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 50%, rgba(0, 0, 0, 0.45) 72%, #000 100%);
}
.band .lede, .band .muted { color: #c3d3ff; }

/* home hero: blue grade behind the live 3D model, honeycomb watermark on the left */
.hero-live { background: radial-gradient(1100px 700px at 68% 42%, #0f39b4 0%, #0a2386 45%, #06123d 100%); }
.hero-live::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--hex-blue) 0 0 / 56px 100px; opacity: 0.4;
  -webkit-mask-image: radial-gradient(120% 110% at 0% 10%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 65%);
          mask-image: radial-gradient(120% 110% at 0% 10%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 65%);
}
.hl-stage::before { opacity: 0.85; }
.hl-scrim {
  background: linear-gradient(90deg, rgba(6, 18, 61, 0.92) 0%, rgba(6, 18, 61, 0.62) 30%, rgba(6, 18, 61, 0) 56%),
              linear-gradient(0deg, rgba(6, 18, 61, 0.85) 0%, rgba(6, 18, 61, 0) 26%),
              linear-gradient(180deg, rgba(6, 18, 61, 0.7) 0%, rgba(6, 18, 61, 0) 18%);
}
.hl-copy .lede { color: #c3d3ff; }
.hl-strip { background: rgba(6, 18, 61, 0.62); border-top-color: rgba(141, 184, 255, 0.16); }
.hl-strip dd { color: #a9bce6; }
.hl-note { color: #8aa2d6; }
.hl-legend span, .hl-touch { background: rgba(6, 18, 61, 0.7); border-color: rgba(141, 184, 255, 0.2); }

/* the platform panels: water on blue honeycomb, energy on slate with an amber honeycomb */
.sp.water { background: var(--hex-blue-soft) 0 0 / 56px 100px, radial-gradient(120% 90% at 0% 0%, #1440c4 0%, #0b2a96 45%, #081d6b 100%); }
.sp.energy { background: var(--hex-amber-soft) 0 0 / 56px 100px, radial-gradient(120% 90% at 100% 0%, #3a3f52 0%, #1d2434 50%, #141925 100%); }
.sp.water::after { opacity: 0.3; }
.sp-mark { background: rgba(141, 184, 255, 0.16); }
/* KAI blue replaces teal for buttons, links and eyebrows */
:root { --brand: #1d4ed8; --brand-strong: #1e3a8a; --brand-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --brand: #8db8ff; --brand-strong: #b5d0ff; --brand-ink: #06123d; } }

/* v16: menu bar gets the KAI honeycomb (same treatment as the Hydro-SaaS header) */
.site-header, .site-header.on-dark {
  isolation: isolate;
  background: linear-gradient(100deg, rgba(11, 42, 150, 0.94) 0%, rgba(8, 29, 107, 0.94) 55%, rgba(6, 18, 61, 0.94) 100%);
  border-bottom-color: rgba(141, 184, 255, 0.16);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hex-blue) 0 0 / 56px 100px; opacity: 0.24;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
}

/* v17: phone taps. On screens up to 1100px the dropdown panels sit inside the slide-down menu. They used to force
   visibility: visible, which kept the closed (invisible) menu tappable over the page, so taps landed on hidden menu
   links. Panels now follow the menu, and the closed menu ignores taps. */
@media (max-width: 1100px) {
  .dd-panel { visibility: inherit; }
  .site-header:not(.nav-open) .nav-links { pointer-events: none; }
  .site-header.nav-open .nav-links { pointer-events: auto; }
  .nav-links { background: linear-gradient(180deg, #0b2a96 0%, #081d6b 60%, #06123d 100%); border-bottom-color: rgba(141, 184, 255, 0.16); }
}
.dd-panel { background: #0b2470; border-color: rgba(141, 184, 255, 0.16); }
.dd-panel a small { color: #a9bce6; }

/* v18: home hero figures link to their pages; "Latest" ticker scrolls right to left (pauses on hover, focus or tap) */
.hl-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 auto; padding-block: 18px 6px; }
.hl-stats a { display: block; color: inherit; text-decoration: none; border-radius: 12px; padding: 6px 8px; margin: -6px -8px; transition: background 160ms ease; }
.hl-stats a:hover, .hl-stats a:focus-visible { background: rgba(141, 184, 255, 0.1); }
.hl-stats b { display: block; font: 800 clamp(1.5rem, 2.6vw, 2.1rem) / 1.1 var(--f-display); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hl-stats span { display: block; margin-top: 4px; color: #a9bce6; font-size: 0.88rem; line-height: 1.45; }
.hl-stats a:hover span { color: #dbe6ff; }
.hl-stats a::after { content: "→"; display: inline-block; margin-top: 2px; color: var(--mint); font-size: 0.85rem; opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 160ms ease; }
.hl-stats a:hover::after, .hl-stats a:focus-visible::after { opacity: 1; transform: none; }
.hl-strip { min-width: 0; max-width: 100%; }
.ticker { display: flex; align-items: center; gap: 0; width: 100%; max-width: 100vw; overflow: hidden; contain: inline-size; border-top: 1px solid rgba(141, 184, 255, 0.14); margin-top: 10px; min-height: 46px; }
.tk-label { flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 14px 0 max(20px, calc((100vw - 1160px) / 2 + 20px)); font: 600 0.7rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); background: linear-gradient(90deg, rgba(6, 18, 61, 0.98) 80%, rgba(6, 18, 61, 0)); position: relative; z-index: 1; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent); }
.tk-move { display: flex; width: max-content; animation: tk-scroll 70s linear infinite; }
.ticker:hover .tk-move, .ticker:focus-within .tk-move, .ticker.paused .tk-move { animation-play-state: paused; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-track { list-style: none; display: flex; margin: 0; padding: 0; }
.tk-track li { display: flex; align-items: center; }
.tk-track li::after { content: ""; width: 5px; height: 5px; margin: 0 18px; border-radius: 50%; background: rgba(141, 184, 255, 0.4); }
.tk-track a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #dbe6ff; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.tk-track a:hover, .tk-track a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tk-track em { font: normal 600 0.66rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #06123d; background: var(--mint); padding: 3px 7px; border-radius: 999px; }
.tk-track li:nth-child(3n+2) em { background: #f2b544; }
.tk-track li:nth-child(3n) em { background: #8db8ff; }
.tk-pause { flex: none; width: 44px; height: 44px; margin-right: max(8px, calc((100vw - 1160px) / 2)); border: 0; border-radius: 999px; background: transparent; color: #a9bce6; font-size: 0.7rem; letter-spacing: -1px; cursor: pointer; }
.tk-pause:hover, .tk-pause:focus-visible { color: #fff; background: rgba(141, 184, 255, 0.12); }
.ticker.paused .tk-pause { color: var(--mint); }
@media (prefers-reduced-motion: reduce) {
  .tk-move { animation: none; }
  .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tk-track[aria-hidden="true"], .tk-pause { display: none; }
}
@media (max-width: 860px) {
  .hl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; }
  .tk-label { padding-left: 16px; }
  .tk-move { animation-duration: 55s; }
}

/* Footer: follow KAI */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.social > span { flex-basis: 100%; font: 600 0.68rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8fb0be; margin-right: 4px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(141, 184, 255, 0.22); background: rgba(141, 184, 255, 0.08); color: #dbe6ff; text-decoration: none; font-size: 0.88rem; transition: background 160ms ease, border-color 160ms ease; }
.social a:hover, .social a:focus-visible { background: rgba(141, 184, 255, 0.18); border-color: rgba(141, 184, 255, 0.45); color: #fff; }
.social svg { width: 18px; height: 18px; }
.social b { font-weight: 600; }

/* KAI-Hydro trigger explorer */
.khx { display: grid; gap: 14px; margin-top: 22px; padding: clamp(16px, 3vw, 26px); }
.khx-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; }
.khx-head h3 { margin: 6px 0 0; }
.khx-ctl { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.khx-field { display: grid; gap: 6px; min-width: 0; }
.khx-field > span { font: 600 0.68rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.khx-field select { min-height: 44px; max-width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2, var(--ink)); font: 600 0.86rem var(--f-body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.khx-chart-box { width: 100%; overflow: hidden; border-radius: 12px; background: var(--surface-2); padding: 6px 4px 0; }
.khx-chart-box svg { display: block; width: 100%; height: auto; min-height: 220px; }
.khx-grid { stroke: var(--line); stroke-width: 1; }
.khx-tick { fill: var(--muted); font: 11px var(--f-mono); }
.khx-flood { fill: color-mix(in srgb, #2a78d6 9%, transparent); }
.khx-lvo { stroke: #2a78d6; stroke-width: 1.6; stroke-dasharray: 6 4; }
.khx-lvg { stroke: #eb6834; stroke-width: 1.4; stroke-dasharray: 2 4; }
.khx-lvg.on { stroke-width: 2.2; stroke-dasharray: none; }
.khx-obs-line { fill: none; stroke: #2a78d6; stroke-width: 1.4; opacity: 0.55; }
.khx-mod-line { fill: none; stroke: #eb6834; stroke-width: 1.4; opacity: 0.6; }
.khx-obs { fill: #2a78d6; stroke: var(--surface); stroke-width: 1.2; }
.khx-mod { fill: #eb6834; stroke: var(--surface); stroke-width: 1.2; }
.khx-mk.hit { fill: var(--ok); } .khx-mk.miss { fill: none; stroke: var(--warn); stroke-width: 1.6; } .khx-mk.fp { fill: var(--warn); }
@media (prefers-color-scheme: dark) {
  .khx-flood { fill: rgba(141, 184, 255, 0.1); }
  .khx-lvo, .khx-obs-line { stroke: #3987e5; } .khx-obs { fill: #3987e5; }
  .khx-lvg, .khx-mod-line { stroke: #d95926; } .khx-mod { fill: #d95926; }
}
.khx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78rem; color: var(--muted); }
.khx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.khx-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.khx-legend i.o { background: #2a78d6; } .khx-legend i.m { background: #eb6834; }
.khx-legend i.lo { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed #2a78d6; }
.khx-legend i.lg { width: 18px; height: 0; border-radius: 0; border-top: 2px solid #eb6834; }
.khx-legend i.fl { border-radius: 3px; background: color-mix(in srgb, #2a78d6 18%, transparent); }
.khx-legend i.hit { border-radius: 2px; background: var(--ok); } .khx-legend i.fp { border-radius: 2px; background: var(--warn); }
.khx-legend i.miss { border-radius: 2px; border: 1.6px solid var(--warn); }
@media (prefers-color-scheme: dark) { .khx-legend i.o { background: #3987e5; } .khx-legend i.m { background: #d95926; } .khx-legend i.lo { border-top-color: #3987e5; } .khx-legend i.lg { border-top-color: #d95926; } }
.khx-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.khx-score div { border-radius: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.khx-score dt { font: 800 1.6rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.khx-score dd { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.khx-score .hit dt { color: var(--ok); } .khx-score .miss dt, .khx-score .fp dt { color: var(--warn); }
.khx-read, .khx-pool { margin: 0; line-height: 1.55; color: var(--ink-2, var(--ink)); max-width: 92ch; }
.khx-pool { font-size: 0.92rem; color: var(--muted); }
.khx .src { margin: 0; font-size: 0.74rem; color: var(--muted); font-family: var(--f-mono); }
.khx-learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.khx-learn .note { color: var(--muted); font-size: 0.86rem; margin: 10px 0 0; }
@media (max-width: 760px) { .khx-score { grid-template-columns: repeat(2, minmax(0, 1fr)); } .khx-learn { grid-template-columns: 1fr; } .khx-ctl { display: grid; } .khx-field select { width: 100%; } }

/* v19: Guadalquivir case page (KAI-Hydro), same chart style as Zeerijp-3A */
.plot-head h2 { margin: 6px 0 4px; }
.plot-head { align-items: flex-end; }
.gq-pick { display: grid; gap: 4px; min-width: min(100%, 280px); }
.gq-pick > span { font: 600 0.66rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gq-pick select { min-height: 42px; }
.zrp-sw.zrp-box-open { background: none; border: 2px solid var(--c); width: 12px; height: 10px; }
.zrp-sw.zrp-x { background: none; width: 12px; height: 12px; position: relative; }
.zrp-sw.zrp-x::before, .zrp-sw.zrp-x::after { content: ""; position: absolute; left: 5px; top: -1px; width: 2px; height: 14px; background: var(--c); transform: rotate(45deg); }
.zrp-sw.zrp-x::after { transform: rotate(-45deg); }
.case-page > .src { margin: 0; font-size: 0.74rem; color: var(--muted); font-family: var(--f-mono); }
.plot-card .note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 10px 0 0; }

/* v20: KAI-Hydro forecast-point map (MapLibre) */
.khm { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 0; margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.khm-canvas { height: clamp(360px, 52vh, 520px); min-width: 0; }
.khm-loading .khm-canvas::after { content: "Loading the map…"; display: grid; place-items: center; height: 100%; color: var(--muted); font: 0.78rem var(--f-mono); }
.khm-panel { padding: 16px 18px; display: grid; align-content: start; gap: 8px; border-left: 1px solid var(--line); background: var(--surface); font-size: 0.92rem; line-height: 1.5; color: var(--ink-2, var(--ink)); }
.khm-panel p { margin: 0; }
.khm-panel .khm-ll { font: 600 1.05rem var(--f-mono); color: var(--ink); }
.khm-panel .khm-near { color: var(--muted); font-size: 0.86rem; }
.khm-panel .cta-row { margin-top: 4px; }
.khm-bases { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 2px 10px rgba(11, 31, 42, 0.18); }
.khm-bases button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #0b1f2a; font: 600 0.8rem var(--f-body); cursor: pointer; }
.khm-bases button[aria-pressed="true"] { background: #2a78d6; color: #fff; }
.khm-legend { margin-top: 10px; }
.khm-pop { display: grid; gap: 6px; font: 0.86rem var(--f-body); color: #0b1f2a; }
.khm-pop > span { color: #64788a; font-size: 0.8rem; }
.khm-pop dl { margin: 2px 0; display: grid; gap: 2px; }
.khm-pop dl div { display: flex; justify-content: space-between; gap: 10px; }
.khm-pop dt { color: #64788a; } .khm-pop dd { margin: 0; font-weight: 650; }
.khm-pop .khm-go { margin-top: 4px; min-height: 36px; border: 0; border-radius: 8px; background: #2a78d6; color: #fff; font: 600 0.84rem var(--f-body); cursor: pointer; }
.maplibregl-popup-content { border-radius: 12px; padding: 12px 14px; }
.maplibregl-ctrl-group button { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .khm { grid-template-columns: 1fr; }
  .khm-canvas { height: 380px; }
  .khm-panel { border-left: 0; border-top: 1px solid var(--line); }
}

/* v21: Challenges path, "what you get", your own workspace, cross-scale ladder */
.chal-path-sec { padding-bottom: 8px; }
.chal-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chal-path li { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chal-path em { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: normal 700 0.9rem var(--f-display); }
.chal-path b { font-family: var(--f-display); }
.chal-path span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.sector-get { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border-left: 3px solid var(--brand); font-size: 0.92rem; line-height: 1.5; }
.sector-get b { display: block; font: 600 0.66rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.ws-sec { background: var(--surface-2); }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.ws-grid .section-head { margin: 0; }
.ws-stack { margin: 0; display: grid; gap: 10px; }
.ws-layer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px 16px; border-radius: 14px; color: #fff; }
.ws-layer b { flex-basis: 100%; font: 600 0.68rem var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.ws-layer span { font-size: 0.9rem; }
.ws-layer.kai span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.ws-layer.you { background: linear-gradient(100deg, #2a78d6, #1d4ed8); }
.ws-layer.kai { background: linear-gradient(100deg, #0b2a96, #081d6b); position: relative; isolation: isolate; overflow: hidden; }
.ws-layer.kai::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hex-blue) 0 0 / 40px 72px; opacity: 0.25; }
.ws-layer.engine { background: linear-gradient(100deg, #06123d, #1f2a36); }
.ws-stack figcaption { color: var(--muted); font-size: 0.84rem; text-align: center; }
.ws-cards { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ws-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.ws-cards h3 { margin: 4px 0 0; font-size: 1.02rem; }
.ws-cards p { margin: 0; color: var(--ink-2, var(--ink)); font-size: 0.92rem; line-height: 1.5; }
.xs-ladder { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: xs; }
.xs-ladder li { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.xs-ladder li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; color: #d97706; font-weight: 700; z-index: 1; }
.xs-ladder em { justify-self: start; font: normal 600 0.7rem var(--f-mono); color: #92400e; background: #fef3c7; padding: 3px 8px; border-radius: 999px; }
.xs-ladder b { font-family: var(--f-display); font-size: 1.05rem; }
.xs-ladder p { margin: 0; color: var(--ink-2, var(--ink)); font-size: 0.9rem; line-height: 1.5; }
.xs-ladder a { font-weight: 650; font-size: 0.88rem; color: var(--brand); text-decoration: none; }
@media (prefers-color-scheme: dark) { .xs-ladder em { color: #fde68a; background: rgba(217, 119, 6, 0.22); } }
@media (max-width: 1000px) { .xs-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xs-ladder li::after { display: none; } .chal-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-grid { grid-template-columns: 1fr; } .ws-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xs-ladder, .chal-path, .ws-cards { grid-template-columns: 1fr; } }

/* v22: map layers panel */
.khm-layers { position: absolute; top: 54px; left: 10px; z-index: 2; max-width: 230px; border-radius: 10px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 2px 10px rgba(11, 31, 42, 0.18); color: #0b1f2a; font-size: 0.84rem; }
.khm-layers summary { cursor: pointer; padding: 8px 12px; font-weight: 650; list-style: none; }
.khm-layers summary::-webkit-details-marker { display: none; }
.khm-layers summary::after { content: " ▾"; color: #64788a; }
.khm-layers[open] summary::after { content: " ▴"; }
.khm-layers fieldset { border: 0; margin: 0; padding: 2px 12px 8px; display: grid; gap: 4px; }
.khm-layers legend { font: 600 0.62rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #64788a; padding: 4px 0 2px; }
.khm-layers label { display: flex; align-items: center; gap: 7px; min-height: 28px; cursor: pointer; }
.khm-layers input { accent-color: #2a78d6; width: 16px; height: 16px; margin: 0; }
.khm-layers i { display: inline-block; width: 16px; height: 0; border-top: 3px solid #0ea5e9; }
.khm-layers i.sw-stream { border-top: 1.5px solid #38bdf8; }
.khm-layers i.sw-water { height: 10px; border: 1px solid #0284c7; background: rgba(56, 189, 248, 0.55); }
.khm-layers i.sw-admin { border-top: 2px dashed #7c3aed; }
.khm-pop small { color: #64788a; font-size: 0.78rem; line-height: 1.4; }
@media (max-width: 760px) { .khm-layers { top: auto; bottom: 34px; } }
.khm-view { font-weight: 400; color: #64788a; }

/* v23: energy pages keep the Energy panel's look: charcoal grade, amber honeycomb, a faint bolt */
.page-hero.band.energy-hero { background: radial-gradient(120% 110% at 100% 0%, #3a3f52 0%, #1d2434 52%, #141925 100%); }
.page-hero.energy-hero::before {
  background-image: var(--hex-amber); opacity: 0.32;
  -webkit-mask-image: radial-gradient(140% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
          mask-image: radial-gradient(140% 120% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
}
.page-hero.energy-hero::after {
  -webkit-mask-image: none; mask-image: none; opacity: 0.2; background-size: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b765' stroke-width='.45'%3E%3Cpath d='M13 2.5 4.5 13.5h6.5l-1 8 8.5-11h-6.5l1-8Z'/%3E%3C/svg%3E") no-repeat right max(-30px, calc((100vw - 1160px) / 2 - 120px)) bottom -40px / min(420px, 46vw);
}
.page-hero.energy-hero .eyebrow, .page-hero.energy-hero .crumbs { color: #f0b765; }
.page-hero.energy-hero .crumbs a { color: #f6d39a; }
.page-hero.energy-hero .lede { color: #ddd6c8; }
.page-hero.energy-hero .btn-light { color: #2a1a05; }
.page-hero.energy-hero .btn-light:hover { background: #fde8c4; }
@media (max-width: 640px) { .page-hero.energy-hero::after { opacity: 0.12; } }

/* KAI Reservoir Lab teaser (KAI-GeoEnergy) */
.rl-teaser { position: relative; isolation: isolate; overflow: hidden; color: #e6eef2; padding-block: clamp(48px, 7vw, 88px);
  background: radial-gradient(110% 90% at 85% 0%, #2a3348 0%, #1d2434 45%, #141925 100%); }
.rl-teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23f2b544' stroke-width='1.2'/%3E%3C/svg%3E") 0 0/62px 110px;
  -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 100% 0%, #000, transparent 75%); }
.rl-head h2 { color: #fff; max-width: 860px; margin: 10px 0 0; }
.rl-head h2 em { font-style: normal; color: #f2b544; }
.rl-head .lede { color: #c9d6dd; max-width: 820px; }
.rl-badge { display: inline-block; margin-right: 10px; padding: 4px 12px; border-radius: 999px; background: #f2b544; color: #1d2434; font: 700 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.rl-chain { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rl-chain li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(20, 25, 37, .6); border: 1px solid rgba(147, 167, 179, .25); }
.rl-chain li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: #f2b544; font-weight: 700; }
.rl-chain i { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; font: 800 1rem var(--f-display); font-style: normal; color: #1d2434; background: #93a7b3; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rl-chain b { color: #fff; font-family: var(--f-display); }
.rl-chain span { color: #9fb0bc; font-size: .86rem; }
.rl-chain li.on { border: 2px dashed rgba(242, 181, 68, .8); background: rgba(242, 181, 68, .08); }
.rl-chain li.on i { background: #f2b544; }
.rl-chain li.on span { color: #f2d79a; }
.rl-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rl-kpi { padding: 16px 18px; border-radius: 14px; background: rgba(20, 25, 37, .6); border: 1px solid rgba(242, 181, 68, .28); }
.rl-kpi b { display: block; font: 800 1.9rem/1.05 var(--f-display); color: #f2b544; font-variant-numeric: tabular-nums; }
.rl-kpi span { display: block; margin-top: 8px; color: #c9d6dd; font-size: .88rem; line-height: 1.45; }
.rl-case { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 20px 22px; border-radius: 16px; background: rgba(242, 181, 68, .07); border: 1px solid rgba(242, 181, 68, .35); }
.rl-case h3 { color: #fff; margin: 6px 0 8px; font-family: var(--f-display); }
.rl-case p { color: #c9d6dd; margin: 0 0 8px; max-width: 760px; line-height: 1.55; }
.rl-case .fine { color: #8a9aa6; font-size: .8rem; }
@media (max-width: 900px) { .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rl-case { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .rl-chain { grid-template-columns: 1fr; } .rl-chain li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: none; } .rl-grid { grid-template-columns: 1fr; } }
/* "In build" status (product menu, product lists, cards) */
.soon-tag.build-tag { color: #2a1a05; background: #f2b544; border-color: #f2b544; }
.pst.build { color: #2a1a05; background: #f2b544; }
/* Guadalquivir case: GloFAS 4.0 vs 5.0 table */
.gq-v5 { margin-bottom: 22px; border: 2px solid #2a78d6; }
.gq-v5t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gq-v5t th, .gq-v5t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.gq-v5t th:not(:first-child), .gq-v5t td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gq-v5t td b { color: #1d4ed8; }
.table-wrap { overflow-x: auto; }
@media (max-width: 560px) { .gq-v5t { font-size: .82rem; } .gq-v5t th, .gq-v5t td { padding: 8px 6px; } .gq-v5t th:not(:first-child), .gq-v5t td:not(:first-child) { white-space: normal; width: 22%; } }
/* GloFAS version switch and KAI-Hydro Professional work package */
.kpi small s { text-decoration: none; color: #94a3b8; white-space: nowrap; }
.gq-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font: 600 .78rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gq-switch a { text-transform: none; letter-spacing: 0; font: 600 .92rem var(--f-body, inherit); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.gq-switch a em { font-style: normal; font-size: .72rem; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #f2b544; color: #2a1a05; }
.gq-switch a.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.kh-wp { margin-top: 22px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; color: #e6eeff; background: radial-gradient(120% 110% at 10% 0%, #1440c4 0%, #0b2a96 40%, #06123d 100%); }
.kh-wp-head h2 { color: #fff; margin: 6px 0 6px; }
.kh-wp-head p { color: #c3d3ff; margin: 0; max-width: 760px; }
.kh-wp .eyebrow { color: #8db8ff; }
.kh-wp-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: wp; }
.kh-wp-steps li { counter-increment: wp; padding: 14px; border-radius: 14px; background: rgba(6, 18, 61, .55); border: 1px solid rgba(141, 184, 255, .28); display: grid; gap: 6px; align-content: start; }
.kh-wp-steps li::before { content: counter(wp); width: 30px; height: 30px; display: grid; place-items: center; font: 800 .9rem var(--f-display); color: #06123d; background: #f2b544; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.kh-wp-steps b { color: #fff; font-family: var(--f-display); }
.kh-wp-steps span { color: #c3d3ff; font-size: .88rem; line-height: 1.45; }
.kh-wp-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(141, 184, 255, .25); }
.kh-wp-foot b { display: block; color: #fff; font-size: 1.1rem; }
.kh-wp-foot span { color: #c3d3ff; font-size: .9rem; }
.kh-wp .btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.55); }
.kh-wp .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 900px) { .kh-wp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kh-wp-steps { grid-template-columns: 1fr; } }

.soon-tag.preview-tag { color: #2a1a05; background: #f2b544; border-color: #f2b544; }
.pst.preview { color: #2a1a05; background: #f2b544; }

/* "Was this useful?" (assets/feedback.js) */
.kai-fb { font: 0.92rem/1.4 var(--f-body, system-ui, sans-serif); color: var(--ink-2, #3b5260); }
.kai-fb .fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kai-fb .fb-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line, rgba(11,31,42,.12)); background: var(--surface, #fff); color: inherit; font-size: 1.15rem; cursor: pointer; }
.kai-fb .fb-btn:hover { background: var(--surface-2, #eaf2f2); }
.kai-fb .fb-btn[aria-pressed="true"] { border-color: var(--brand, #0e7c86); background: color-mix(in srgb, var(--brand, #0e7c86) 14%, transparent); }
.kai-fb .fb-btn:focus-visible { outline: 3px solid var(--brand, #0e7c86); outline-offset: 2px; }
.kai-fb .fb-note { font-size: 0.85rem; color: var(--muted, #64788a); }
.kai-fb .fb-form { display: grid; gap: 6px; max-width: 520px; margin-top: 8px; }
.kai-fb .fb-form label { font-size: 0.85rem; font-weight: 600; }
.kai-fb .fb-form textarea, .kai-fb .fb-form input[type=email] { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, rgba(11,31,42,.12)); background: var(--surface, #fff); color: var(--ink, #0b1f2a); }
.kai-fb .fb-count { font-size: 0.75rem; color: var(--ink-2, #3b5260); }
.kai-fb [hidden] { display: none !important; }
.kai-fb .fb-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500 !important; }
.kai-fb .fb-check input { width: 20px; height: 20px; }
.kai-fb .fb-form button[type=submit] { justify-self: start; min-height: 44px; }
.kai-fb .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kai-fb .hp { position: absolute; left: -9999px; }
.page-fb { padding-block: 18px 26px; border-top: 1px solid var(--line); }
.faq-a .kai-fb { padding-bottom: 14px; }
.faq-a .faq-link { padding-bottom: 6px !important; font-size: 0.82rem; }
.faq-a .faq-link a { color: var(--muted); }

/* Header search (assets/search.js): a link to search.html without JavaScript */
.search-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); color: inherit; text-decoration: none; font: 500 0.92rem var(--f-body); }
.search-btn svg { width: 18px; height: 18px; flex: none; }
.search-btn kbd { font: 500 0.7rem var(--f-mono); padding: 1px 6px; border-radius: 6px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); opacity: 0.75; }
.search-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.search-btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
@media (max-width: 1100px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { padding: 0 10px; } }
html.srch-lock { overflow: hidden; }
.srch-sheet { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(6, 18, 30, 0.55); }
.srch-sheet.open { display: block; }
.srch-sheet .srch-bar, .srch-sheet .srch-out { background: var(--surface); color: var(--ink); }
.srch-bar { display: flex; gap: 8px; align-items: center; padding: 10px max(12px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.srch-bar input { flex: 1; min-width: 0; min-height: 48px; font: 500 1.05rem var(--f-body); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface-2); color: var(--ink); }
.srch-bar input:focus { outline: 3px solid var(--brand); outline-offset: 0; }
.srch-close { min-height: 44px; min-width: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.85rem var(--f-body); cursor: pointer; }
.srch-sheet .srch-out { position: absolute; top: 69px; bottom: 0; left: 0; right: 0; overflow: auto; overscroll-behavior: contain; padding: 8px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .srch-sheet { background: rgba(6, 18, 30, 0.35); }
  .srch-sheet .srch-bar { position: absolute; top: 76px; left: 50%; width: min(720px, calc(100vw - 48px)); translate: -50% 0; border-radius: 16px 16px 0 0; border: 1px solid var(--line); }
  .srch-sheet .srch-out { top: 145px; bottom: auto; left: 50%; width: min(720px, calc(100vw - 48px)); translate: -50% 0; max-height: calc(100vh - 190px); border-radius: 0 0 16px 16px; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow); }
}
.srch-hint, .srch-none p { color: var(--ink-2); margin: 12px 4px; }
.srch-sub { font: 500 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted) !important; }
.srch-nears { display: grid; gap: 6px; margin: 0 4px 10px; }
.srch-near { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.srch-group h3 { font: 500 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 6px; }
.srch-item { display: grid; gap: 2px; min-height: 48px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.srch-item:hover, .srch-item:focus { background: var(--surface-2); outline: none; }
.srch-item:focus-visible { outline: 3px solid var(--brand); }
.srch-item b { font-weight: 600; }
.srch-item small { color: var(--ink-2); font-size: 0.86rem; }
.st { justify-self: start; font: 500 0.68rem var(--f-mono); letter-spacing: 0.05em; font-style: normal; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.st-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.st-preview { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.st-soon, .st-build { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); }
#search-page .srch-bar.page { border: 0; padding: 0 0 18px; }
#search-page .srch-out { max-width: 820px; }
.srch-plist, .srch-flist { list-style: none; padding: 0; display: grid; gap: 6px; }
.srch-plist a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.srch-plist small { color: var(--ink-2); }

/* faq.html */
.faq-tools { display: grid; gap: 12px; max-width: 860px; margin-bottom: 18px; position: sticky; top: 68px; z-index: 5; background: var(--page); padding: 10px 0; }
.faq-tools .input { min-height: 48px; }
.faq-tools .chip { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 0.85rem var(--f-body); cursor: pointer; }
.faq-tools .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.faq-sec { margin-top: 26px; scroll-margin-top: 150px; }
.faq-sec h2 { font-size: 1.3rem; margin-bottom: 10px; }
.faq-page .faq { scroll-margin-top: 150px; }
.faq-none { color: var(--ink-2); }

/* privacy.html */
.privacy { max-width: 860px; }
.privacy h2 { margin-top: 28px; }
.privacy .check-list li { margin-bottom: 8px; }
.optout { margin-top: 22px; display: grid; gap: 10px; justify-items: start; }
.optout-state { font-weight: 600; }
@media (max-width: 720px) {
  .faq-tools { position: static; }
  .faq-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .faq-tools .chip { flex: none; }
}

/* ---- SEO: the brand in the home H1, guides (tools/seo.py) ---- */
.hl-copy h1 .h1-brand { display: flex; width: max-content; max-width: 100%; margin-bottom: 22px; font-family: var(--f-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
@media (max-width: 720px) { .hl-copy h1 .h1-brand { margin-bottom: 16px; } }
.g-byline { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; margin: 10px 0 0; }
.g-byline b { color: #fff; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 48px; align-items: start; }
.guide .g-body { max-width: 760px; gap: 16px; }
.guide .g-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 18px; }
.guide .g-body h3 { margin-top: 8px; }
.guide .g-body ul, .guide .g-body ol { margin: 0; padding-left: 1.3rem; color: var(--ink-2); display: grid; gap: 6px; }
.guide .g-body li { font-size: 1.02rem; }
.guide .g-body table { width: 100%; border-collapse: collapse; font-size: 0.94rem; display: block; overflow-x: auto; }
.guide .g-body th, .guide .g-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide .g-body th { font-weight: 600; background: var(--surface-2); }
.guide .g-body blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.guide .g-body a[href^="#src-"] { text-decoration: none; font-size: 0.82em; vertical-align: 0.15em; }
.g-fig { margin: 8px 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.g-fig svg { display: block; width: 100%; height: auto; }
.g-fig figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.g-note { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); }
.g-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.g-box { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; }
.g-box h2 { font-size: 1.05rem; }
.g-box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; font-size: 0.95rem; }
.g-box .cta-row { display: grid; gap: 8px; }
.g-sources { grid-column: 1 / -1; max-width: 860px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.g-sources h2 { font-size: 1.3rem; }
.g-sources ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.93rem; overflow-wrap: anywhere; }
.g-sources li:target { background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 6px; }
.g-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-cards a { display: grid; gap: 6px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.g-cards a:hover { border-color: var(--brand); }
.g-cards b { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.25; }
.g-cards small { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.g-cards em { color: var(--muted); font-style: normal; font-size: 0.84rem; }
.guides-rel .section-head { margin-bottom: 16px; }
.guides-index { display: grid; gap: 34px; }
.g-group { display: grid; gap: 14px; }
.g-group h2 { font-size: 1.4rem; }
@media (max-width: 960px) { .guide { grid-template-columns: minmax(0, 1fr); } .g-side { position: static; } }
@media (max-width: 600px) { .g-fig { overflow-x: auto; } .g-fig svg { min-width: 540px; } .g-fig figcaption { position: sticky; left: 0; max-width: calc(100vw - 72px); } }

/* v19: home headline figures rotate (assets/site.js); new results carry a tag */
.hl-stats li { transition: opacity 320ms ease, transform 320ms ease; }
.hl-stats li.hs-out, .hl-stats li.hs-in { opacity: 0; transform: translateY(6px); }
.hl-stats span em { font: normal 600 0.62rem var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #06123d; background: var(--mint); padding: 2px 6px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .hl-stats li { transition: none; } }
