:root {
  color-scheme: light;
  --bg-core: #fbfbfc;
  --bg-soft: #f4f5f7;
  --bg-accent: #eceef2;
  --ink: #111315;
  --ink-soft: #4a535e;
  --brand: #0a63f6;
  --brand-dark: #1141ad;
  --brand-glow: #63c1ff;
  --accent: #17a59f;
  --ok: #19826f;
  --warn: #2d70d8;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(17, 19, 21, 0.1);
  --shadow: 0 20px 56px rgba(20, 26, 36, 0.1);
  --radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-core: #040404;
  --bg-soft: #0b0c0f;
  --bg-accent: #13161c;
  --ink: #f4f6fa;
  --ink-soft: #b9c3d2;
  --brand: #4f86ff;
  --brand-dark: #2b58c2;
  --brand-glow: #8ec9ff;
  --accent: #35b8ac;
  --ok: #49cfb4;
  --warn: #a3c5ff;
  --card: rgba(14, 16, 21, 0.84);
  --line: rgba(193, 208, 232, 0.2);
  --shadow: 0 42px 104px rgba(0, 0, 0, 0.62);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg-core: #040404;
    --bg-soft: #0b0c0f;
    --bg-accent: #13161c;
    --ink: #f4f6fa;
    --ink-soft: #b9c3d2;
    --brand: #4f86ff;
    --brand-dark: #2b58c2;
    --brand-glow: #8ec9ff;
    --accent: #35b8ac;
    --ok: #49cfb4;
    --warn: #a3c5ff;
    --card: rgba(14, 16, 21, 0.84);
    --line: rgba(193, 208, 232, 0.2);
    --shadow: 0 42px 104px rgba(0, 0, 0, 0.62);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--brand) 10%, var(--bg-accent)), transparent 45%),
    radial-gradient(circle at 84% 14%, color-mix(in srgb, var(--brand-glow) 15%, transparent), transparent 34%),
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 32%),
    linear-gradient(160deg, var(--bg-core), var(--bg-soft));
  min-height: 100vh;
  padding-top: 36px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 30;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-core) 74%, transparent);
}

.progress-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: 36px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 6px 14px;
  /* Original v1.0.6 ribbon gradient — burnt orange → orange → sky blue */
  background: linear-gradient(90deg, #b45309, #ea580c, #0ea5e9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
}

.logo span:last-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

.theme-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 95%, transparent);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero {
  padding: 74px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--warn);
}

h1,
h2,
h3 {
  font-family: "Syne", "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.85rem);
  line-height: 1.08;
  margin-top: 16px;
}

.hero-title {
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 22ch;
}

.lead {
  margin-top: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 64ch;
}

.vision-figure {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: var(--shadow);
  width: 100%;
}

.vision-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.vision-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-accent) 42%, transparent);
  text-align: center;
}

.hero-panel .vision-figure {
  margin-top: 16px;
}

.hero-panel .vision-figure img {
  max-height: 420px;
  object-fit: cover;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  padding: 12px 18px;
  font-size: 15px;
  transition: 0.24s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 92%, transparent);
}

.btn:focus-visible,
.theme-switch:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-glow) 70%, #ffffff);
  outline-offset: 2px;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.check-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.section {
  padding: 42px 0;
}

.section h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
}

.section-intro {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 70ch;
  line-height: 1.65;
}

.grid-3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
}

.card h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.kpi {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  padding: 16px;
}

.kpi strong {
  display: block;
  font-size: 1.5rem;
}

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

.timeline {
  margin-top: 22px;
  border-left: 2px solid color-mix(in srgb, var(--brand) 36%, transparent);
  padding-left: 18px;
  display: grid;
  gap: 16px;
}

.timeline .item {
  position: relative;
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline .item h3 {
  font-size: 1.06rem;
}

.notice {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.page-hero {
  padding: 52px 0 28px;
}

.page-hero h1 {
  max-width: 22ch;
}

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

.pill-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  padding: 7px 11px;
}

.news-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.news-item {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-radius: 13px;
  padding: 14px;
}

.news-item small {
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 13px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 96%, transparent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.form-note li + li {
  margin-top: 6px;
}

.form-note code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
}

.compliance-list {
  margin-top: 20px;
}

.compliance-list .pill {
  font-size: 11px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 28px 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-grid .admin-toolbar {
  align-self: end;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-toolbar.compact {
  justify-content: space-between;
  margin-bottom: 12px;
}

.pager {
  display: flex;
  gap: 8px;
}

.table-card {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.webmail-frame-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.webmail-frame {
  width: 100%;
  min-height: 680px;
  border: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

.admin-table th {
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-cell {
  max-width: 46ch;
  white-space: pre-wrap;
  word-break: break-word;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .logo span:last-child {
    max-width: 320px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .kpis,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    padding: 8px 0 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .logo {
    width: 100%;
  }

  .logo span:last-child {
    max-width: none;
    white-space: normal;
    line-height: 1.2;
  }

  h1 {
    line-height: 1.13;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 11px;
    font-size: 13px;
  }

  .theme-switch {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, 94vw);
  }

  .hero {
    padding: 52px 0 34px;
  }

  h1 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    margin-top: 12px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.3rem, 6vw, 1.68rem);
  }

  .lead {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .vision-figure {
    margin-top: 14px;
    border-radius: 14px;
  }

  .vision-figure figcaption {
    font-size: 13px;
    padding: 9px 11px;
  }

  .hero-panel .vision-figure img {
    max-height: none;
    object-fit: contain;
  }

  .card,
  .hero-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .section {
    padding: 30px 0;
  }

  .page-hero {
    padding: 38px 0 22px;
  }

  .cta-row {
    width: 100%;
    gap: 10px;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
    border-radius: 16px;
    padding: 12px 14px;
  }

  .kpi strong {
    font-size: 1.3rem;
  }

  .progress-banner {
    font-size: 12px;
    padding: 0 10px;
  }

  .admin-toolbar.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
    font-size: 13px;
  }

  .message-cell {
    max-width: 28ch;
  }

  .webmail-frame {
    min-height: 560px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    text-align: center;
  }

  .pill {
    font-size: 11px;
    padding: 6px 9px;
  }

  .footer-links {
    gap: 8px;
  }
}

/* ============================================================================
   PRODUCT FAMILY UPLIFT v1.1.0 — additive components for the constellation IA
   Added: 2026-04-06
   ============================================================================ */

/* ----- Family Tree diagram embed ----- */
.constellation-wrap {
  margin-top: 32px;
  padding: 0;
}

.constellation-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.diagram-caption {
  margin: 14px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 60ch;
}

/* ----- Cluster eyebrow (small uppercase label above cluster H2) ----- */
.cluster-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.cluster-eyebrow.foundation-eyebrow {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
}

.cluster-section .cluster-eyebrow {
  color: var(--brand);
}

.cluster-healthcare .cluster-eyebrow {
  color: #0d9488;
  background: color-mix(in srgb, #14b8a6 14%, transparent);
}

.cluster-pharma .cluster-eyebrow {
  color: #7e22ce;
  background: color-mix(in srgb, #a855f7 14%, transparent);
}

.cluster-finance .cluster-eyebrow {
  color: #1d4ed8;
  background: color-mix(in srgb, #3b82f6 14%, transparent);
}

.cluster-travel .cluster-eyebrow {
  color: #047857;
  background: color-mix(in srgb, #10b981 14%, transparent);
}

/* ----- Foundation card (large prominent OpenLI Codex card) ----- */
.foundation-card {
  margin-top: 24px;
  border-radius: 22px;
  padding: 32px 36px;
  background:
    linear-gradient(135deg, #0ea5e9, #6366f1 50%, #8b5cf6),
    var(--card);
  color: #fff;
  box-shadow: 0 30px 80px -20px rgba(99, 102, 241, 0.45);
  position: relative;
  overflow: hidden;
}

.foundation-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.foundation-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.foundation-card-header > div {
  flex: 1;
  min-width: 0;
}

.foundation-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.foundation-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #fff;
}

.foundation-formerly {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.06em;
  margin-left: 6px;
  vertical-align: middle;
}

.foundation-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 64ch;
}

.foundation-substrate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 24px;
  position: relative;
}

.substrate-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
}

.substrate-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.substrate-name {
  white-space: nowrap;
}

.substrate-plus {
  font-size: 22px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.foundation-bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foundation-bullets li {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  padding-left: 22px;
  position: relative;
}

.foundation-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.foundation-bullets strong {
  color: #fff;
  font-weight: 700;
}

.foundation-card .cta-row {
  margin-top: 22px;
  position: relative;
}

.foundation-card .btn-primary {
  background: #fff;
  color: #1e1b4b;
  border: 1px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.foundation-card .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.foundation-card .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.foundation-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ----- Cluster sections ----- */
.cluster-section {
  border-top: 1px solid var(--line);
}

.cluster-section h2 {
  margin-top: 6px;
}

/* ----- Cluster grids ----- */
.cluster-grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

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

.grid-1-centered {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

/* ----- Product cards (extends .card with cluster colour treatment) ----- */
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.product-card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.product-card-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.product-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 12px;
  flex-grow: 0;
}

.product-card ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  flex-grow: 1;
}

.product-card ul li {
  position: relative;
  padding-left: 14px;
}

.product-card ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: 800;
  color: var(--brand);
}

.product-card .cta-row.compact {
  margin-top: auto;
  gap: 6px;
}

.product-card .cta-row.compact .btn {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 9px;
  flex: 1;
  text-align: center;
}

/* ----- Cluster colour borders for product cards ----- */
.cluster-card-healthcare {
  border-top: 3px solid #14b8a6;
}

.cluster-card-pharma {
  border-top: 3px solid #a855f7;
}

.cluster-card-finance {
  border-top: 3px solid #3b82f6;
}

.cluster-card-travel {
  border-top: 3px solid #10b981;
}

/* ----- IRIS CoPilot vision-sample subtle accent ----- */
.product-card.vision-sample {
  border-top-style: dotted;
  border-top-width: 4px;
}

.product-card.vision-sample .product-card-sub {
  color: #14b8a6;
  font-weight: 700;
}

/* ----- GitHub icon button on product cards ----- */
.gh-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.gh-icon:hover {
  background: var(--ink);
  color: var(--bg-core);
}

/* ----- Pipeline pill (amber, used on pipeline product cards) ----- */
.pipeline-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1917;
  background: #fbbf24;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ----- Pipeline product card variant (amber dashed border) ----- */
.product-card-pipeline {
  border: 2px dashed #fbbf24;
  background: color-mix(in srgb, #fef3c7 6%, var(--card));
}

.product-card-pipeline .product-card-sub {
  color: #b45309;
  font-weight: 700;
}

/* ----- Partner-led pill (white-bordered, used on GSJ) ----- */
.partner-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 95%, transparent);
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ----- Whitelabel badge on the foundation card ----- */
.whitelabel-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  cursor: help;
}

/* ----- Inline whitelabel marker on product card subtitles ----- */
.whitelabel-tiny {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  margin-left: 4px;
}

/* ----- Index page Product Demos cluster sub-headers ----- */
.cluster-mini-header {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 6px;
}

.cluster-mini-header:first-child {
  margin-top: 0;
}

.check-list .dot.pipeline {
  background: #fbbf24;
}

/* ----- 2-column check-list (home page Product Family panel) -----
   v1.3.2: switched from CSS grid to FLEXBOX for bulletproof 2-col layout.
   Each item is exactly 50% width with cluster headers spanning full row.
   Single column only on very narrow viewports (<=520px).
   IMPORTANT: this MUST override the base .check-list { display: grid }
   from earlier in this file — using !important to defeat any cache /
   cascade weirdness reported in v1.3.1 user testing.
   ----- */
.check-list.grouped {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 10px;
  font-size: 14px;
  /* Defeat any inherited grid-template */
  grid-template-columns: none;
}

.check-list.grouped .cluster-mini-header {
  flex: 0 0 100%;
  width: 100%;
  margin: 18px 0 6px;
  padding: 0;
  border: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}

.check-list.grouped .cluster-mini-header:first-child {
  margin-top: 0;
}

/* Each product item is exactly 50% width minus half the gap */
.check-list.grouped a,
.check-list.grouped span {
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

/* Product names are bold and slightly darker for emphasis */
.check-list.grouped a strong,
.check-list.grouped span strong {
  font-weight: 700;
  color: var(--ink);
}

.check-list.grouped a:hover strong,
.check-list.grouped a:focus-visible strong {
  color: var(--brand);
}

.check-list.grouped a:hover,
.check-list.grouped a:focus-visible {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  outline: none;
}

.check-list.grouped .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0;
}

/* Only collapse to single column on very narrow phones */
@media (max-width: 520px) {
  .check-list.grouped a,
  .check-list.grouped span {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ----- Clickable section headings on the home page (v1.3.8) -----
   "Who we are" -> about.html
   "What we do" -> services.html
   The arrow appears on hover.
   ----- */
h2 .h2-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.18s ease;
}

h2 .h2-link:hover,
h2 .h2-link:focus-visible {
  color: var(--brand);
  outline: none;
}

h2 .h2-link-arrow {
  display: inline-block;
  margin-left: 6px;
  font-weight: 500;
  color: var(--brand);
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

h2 .h2-link:hover .h2-link-arrow,
h2 .h2-link:focus-visible .h2-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Inline text links inside section intros */
.inline-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 50%, transparent);
}

.inline-link:hover {
  border-bottom-style: solid;
}

/* Wrap an entire .card in a clickable anchor without restyling the card */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
}

.card-link .card {
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: var(--shadow);
}

.card-link:focus-visible {
  outline: 2px solid var(--brand-glow);
  outline-offset: 4px;
}

.card-link .card h3 {
  transition: color 0.18s ease;
}

.card-link:hover .card h3 {
  color: var(--brand);
}

/* ----- Vision banner section (home page, between hero and "Who we are") -----
   v1.3.5: hosts the language-mesh vision figure as a centered manifesto moment.
   Replaces the previous in-hero-panel placement which was crowding the panel.
   ----- */
.vision-banner {
  padding: 38px 0 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 70%);
}

.vision-banner-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.vision-figure-centered {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.vision-figure-centered img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}

.vision-figure-centered figcaption {
  text-align: center;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-accent) 50%, transparent);
  font-family: "Syne", "Space Grotesk", sans-serif;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .vision-banner {
    padding: 28px 0 22px;
  }
  .vision-figure-centered figcaption {
    font-size: 15px;
    padding: 14px 18px;
  }
}

.powered-by {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.powered-by a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 50%, transparent);
}

.powered-by a:hover {
  border-bottom-color: var(--brand);
}

/* ----- Responsive: cluster grids collapse ----- */
@media (max-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid-5,
  .grid-2,
  .grid-3,
  .grid-1-centered {
    grid-template-columns: 1fr;
  }

  .foundation-card {
    padding: 24px 22px;
  }

  .foundation-substrate {
    flex-direction: column;
    align-items: stretch;
  }

  .substrate-pill {
    justify-content: center;
  }

  .foundation-card-header {
    flex-direction: column;
  }

  .whitelabel-badge {
    align-self: flex-start;
  }

  .product-card .cta-row.compact {
    flex-wrap: wrap;
  }

  .constellation-wrap {
    margin-top: 22px;
  }
}

