:root{
  --bg: #F3F3F3;
  --ink: #18232f;
  --muted: #5b6a7b;
  --line: #cbd5df;
  --soft: rgba(11, 15, 23, 0.06);
  --max: 1400px;

  /* Accent colors matching phlux_ui */
  --teal: #068a6d;
  --teal2: #1aa6b7;
  --blue: #2f3c4a;
  --panel: rgba(16, 84, 110, 0.06);

  --sans: "Space Grotesk", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --h1: clamp(44px, 5vw, 76px);
  --h2: clamp(26px, 3vw, 40px);
  --h3: 18px;

  --padX: 32px;
  --radius: 0px;
}

*{ box-sizing: border-box; }

html, body{ height:100%; width:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 900px at 20% 20%, rgba(26, 166, 183, 0.08), transparent 60%),
    radial-gradient(1000px 900px at 80% 30%, rgba(12, 59, 70, 0.06), transparent 65%),
    var(--bg);
  overflow-x: hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* ===== Process / Step graphic ===== */
.steps {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 1200px){
  .steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
  background: #fff;
  min-height: 140px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 56px;
  right: -14px;
  height: 1px;
  background: var(--line);
  opacity: 0.9;
}

@media (max-width: 980px){
  .step::before { display:none; }
}

.step:last-child::before { display: none; }

.stepNum {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  background: rgba(11,15,23,0.02);
}

.stepTitle {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.stepBody {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

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

.badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,15,23,0.03);
  color: rgba(11,15,23,0.78);
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--padX);
}

/* ===== Top bar ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 243, 243, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 16px;
  min-height: 74px;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 210px;
  position: absolute;
  left: var(--padX);
}

.brand img{
  height: 60px;
  width: auto;
  background: transparent;
}

.links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: #0b0f17;
  font-size: 14px;
}

.navlink {
  padding: 10px 14px;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: transparent;
  color: #0b0f17;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, font-weight 0.2s ease;
  border-bottom: 2px solid transparent;
}

.navlink:hover {
  color: var(--teal);
  text-decoration: none;
}

.navlink.active {
  font-weight: 600;
  color: #0b0f17;
  border-bottom: 2px solid #0b0f17;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover{
  text-decoration: none;
  background: var(--ink);
  color: #fff;
}

/* ===== "Pages" ===== */
.page{ display:none; }
.page.active{ display:block; }

/* Hide logo on home page only */
body.page-home .topbar .brand {
  display: none;
}

body.page-home .nav {
  justify-content: center;
}

/* ===== Hero (Home page) ===== */
.hero{
  position: relative;
  min-height: 85vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(6, 138, 109, 0.08), transparent 65%),
    radial-gradient(700px 400px at 80% 60%, rgba(47, 60, 74, 0.06), transparent 70%),
    var(--bg);
}

.btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  background: #2f2f33;     /* dark engineering grey */
  color: #ffffff;

  border: none;
  border-radius: 0;        /* sharp edges */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;

  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btnPrimary:hover {
  background: #1f1f22;     /* slightly darker */
  text-decoration: none;
}

.heroMedia{
  display: none;
}

.heroContent{
  position: relative;
  width: 100%;
  padding: 80px 0;
}

.heroInner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--padX);
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heroLogoContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.heroLogo {
  height: clamp(160px, 20vw, 280px);
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(6, 138, 109, 0.15));
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .heroLogoContainer {
    margin-bottom: 36px;
  }
  .heroLogo {
    height: clamp(120px, 18vw, 180px);
  }
}

@media (max-width: 480px) {
  .heroLogoContainer {
    margin-bottom: 28px;
  }
  .heroLogo {
    height: clamp(100px, 22vw, 140px);
  }
}

.heroKicker{
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--muted);
  margin-bottom: 18px;
}

.heroTitle{
  margin: 0 0 24px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 28ch;
  color: var(--ink);
}

.heroSub{
  margin: 0 0 32px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  max-width: 65ch;
  color: var(--muted);
}

.heroActions{
  margin-top: 0;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btnLight{
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btnLight:hover{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btnSolid{
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btnSolid:hover{
  background: #057e64;
  border-color: #057e64;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Content blocks ===== */
.section{
  padding: 74px 0;
  border-bottom: 1px solid rgba(203, 213, 223, 0.5);
}

.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

h2{
  margin: 0 0 12px;
  font-size: var(--h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.lede{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 80ch;
}

.lede + .lede { margin-top: 16px; }

.callout{
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  background: #fff;
  align-self: start;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.callout h3{
  margin: 0 0 10px;
  font-size: var(--h3);
  letter-spacing: -0.01em;
  font-weight: 650;
}

.callout p, .callout li{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

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

/* Welcome screenshot (replaces callout on platform) */
.welcomeScreenshotWrap {
  align-self: start;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.welcomeScreenshotWrap h3 {
  margin: 0 0 8px;
  font-size: var(--h3);
  letter-spacing: -0.01em;
  font-weight: 650;
}
.welcomeScreenshotBtn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.welcomeScreenshotBtn:hover {
  opacity: 0.92;
}
.welcomeScreenshot {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

/* Lightbox for welcome screenshot */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.isOpen {
  display: flex;
}
.lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.lightboxContent {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: auto;
}
.lightboxContent img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
}
.lightboxClose {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}
.lightboxClose:hover {
  background: #fff;
}

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

.card{
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
  background: #fff;
  min-height: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card h3{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#page-what .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ===== Virtual Pilot: diagram styles ===== */
/* =========================
   PILOT: Results viewer
   ========================= */
.pilotResultsShell{
  margin-top: 22px;
  padding: 18px;
}

.pilotResultsHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

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

.pilotToggleGroup{
  display:flex;
  gap:8px;
  align-items:center;
}

.pilotToggleBtn{
  appearance: none;
  border: 0;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  font: inherit;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.10);
}

.pilotToggleBtn:hover{ background: rgba(2, 123, 139, 0.08); }

.pilotToggleBtnActive{
  background:#215b75;
  color:#fff;
  border-color:#215b75;
}

.pilotKpiRow{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap:12px;
  margin-top:16px;
}

.pilotKpi{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 12px 12px;
}

.pilotKpiLabel{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:0.7;
}

.pilotKpiValue{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 500;
  color:#000;
}

.pilotGrid{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}

.pilotPanel{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 12px;
  display:flex;
  flex-direction:column;
  min-height: 420px;
}

.pilotPanelHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.pilotPanelTitle{
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:0.85;
}

.pilotPanelHint{
  font-size: 12px;
  opacity:0.55;
  white-space: nowrap;
}

.pilotPlotGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pilotThumbBtn{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
}

.pilotThumbImg{
  width:100%;
  height:auto;
  display:block;
  border: 1px solid rgba(0,0,0,0.08);
  background:#fff;
}

/* Wear section */
.pilotWearSection{ margin-top: 14px; }
.pilotWearHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 10px;
}
.pilotWearTitle{
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:0.85;
}
.pilotWearHint{
  font-size: 12px;
  opacity:0.55;
}

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

/* modal (keep your existing styles if you prefer — these are compatible) */
.pilotModal{ display:none; }
.pilotModalOpen{ display:block; position:fixed; inset:0; z-index:9999; }
.pilotModalBackdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.55); }
.pilotModalCard{
  position:relative;
  width:min(980px, calc(100% - 28px));
  margin: 40px auto;
  background:#fff;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.10);
}
.pilotModalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pilotModalTitle{
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:0.85;
}
.pilotModalClose{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.18);
  background:#fff;
  border-radius:8px;
  padding: 6px 10px;
  cursor:pointer;
}
.pilotModalBody{ padding: 14px; }

/* responsive */
@media (max-width: 980px){
  .pilotKpiRow{ grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .pilotGrid{ grid-template-columns: 1fr; }
  .pilotPanel{ min-height: 360px; }
  .pilotWearGrid{ grid-template-columns: 1fr; }
  .pilotPanelHint{ white-space: normal; }
}

.pilotHeader {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pilotTitleBlock p{
  margin:0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 80ch;
}

.diagramCard{
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.diagramWrap{
  width: 100%;
  border-radius: 0;
  background:
    radial-gradient(1200px 420px at 28% 40%, rgba(58,160,169,0.12), transparent 55%),
    radial-gradient(900px 380px at 78% 65%, rgba(31,95,122,0.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(245,251,252,1));
  border: 1px solid var(--line);
  padding: 14px;
}

.diagramCaption{
  margin-top: 12px;
  color: rgba(11,15,23,0.68);
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--mono);
}

/* SVG look (teal/blue scheme) */
.pfd svg{ width:100%; height:auto; display:block; }
.pfd .wire{ stroke: rgba(31,95,122,0.35); stroke-width: 2; fill:none; }
.pfd .pipe{ stroke: rgba(43,122,134,0.92); stroke-width: 4; fill:none; stroke-linecap: round; stroke-linejoin: round; }
.pfd .pipeSoft{ stroke: rgba(31,95,122,0.40); stroke-width: 4; fill:none; stroke-linecap: round; stroke-linejoin: round; }
.pfd .symbol{ stroke: rgba(16, 84, 110, 0.78); stroke-width: 2.5; fill: #fff; }
.pfd .fillSoft{ fill: rgba(58,160,169,0.08); }
.pfd .label{ fill: rgba(11,15,23,0.84); font-size: 12.5px; font-family: var(--mono); }
.pfd .small{ fill: rgba(11,15,23,0.62); font-size: 11.5px; font-family: var(--mono); }

/* Draw animation */
.pfd .draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 1.35s ease forwards;
}
.pfd .draw2 { animation-delay: .18s; }
.pfd .draw3 { animation-delay: .30s; }
.pfd .draw4 { animation-delay: .42s; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Flow dots */
.pfd .flowDot { fill: rgba(43,122,134,0.92); opacity: 0.95; }
.pfd .flowDotSoft { fill: rgba(31,95,122,0.45); opacity: 0.85; }

@media (prefers-reduced-motion: reduce){
  .pfd .draw { animation: none; stroke-dashoffset: 0; }
  .pfd animateMotion, .pfd animate { display:none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
  .brand{ 
    min-width: unset;
    position: static;
  }
  .brand img{ height: 52px; }
  
  .nav {
    justify-content: flex-start;
  }
  
  .links {
    justify-content: flex-start;
  }
  
  body.page-home .nav {
    justify-content: center;
  }
  
  body.page-home .links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .links { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .navlink { padding: 8px 10px; font-size: 13px; }
  .btn { padding: 10px 12px; font-size: 13px; }
  .brand img { height: 48px; }
  .cards{ grid-template-columns: 1fr; }
  #page-what .cards { grid-template-columns: 1fr; }
  
  .hero {
    min-height: 75vh;
  }
  
  .heroContent {
    padding: 60px 0;
  }
  
  .heroTitle {
    font-size: clamp(28px, 8vw, 42px);
  }
}
/* Mobile nav: keep all tabs on ONE row (horizontal scroll if needed) */
@media (max-width: 640px){
  .nav{
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Tabs always start left-aligned on mobile so Home is visible first */
  body.page-home .nav,
  body.page-home .links {
    justify-content: flex-start;
  }

  .brand{
    position: static;
    min-width: 0;
    flex: 0 0 auto;
  }

  .links{
    flex: 1 1 auto;
    min-width: 0;              /* allow flex child to shrink for overflow */
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;       /* keep each tab in one line */
    gap: 6px;
    padding-bottom: 6px;       /* space so scrollbar (if any) doesn’t cut */
    scrollbar-width: none;     /* Firefox */
  }

  .links::-webkit-scrollbar{ display:none; } /* Safari/Chrome */

  .navlink{
    flex: 0 0 auto;            /* prevent shrinking into two rows */
    padding: 8px 10px;
    font-size: 13px;
  }

  /* Reduce topbar padding so tabs start closer to left edge */
  .topbar .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* ===== Footer ===== */
footer{
  padding: 34px 0 48px;
  color: rgba(11,15,23,0.62);
  font-size: 13px;
}

.footerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.fine{ font-family: var(--mono); }

/* Flat engineering-style box (used on Pilot + Value Drivers) */
.flatBox {
  background: #f3f3f3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px;
}
.plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Publications tiles (screenshot style) */
.pubSection{ margin-top: 28px; }
.pubHeading{ margin-bottom: 14px; }

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

@media (max-width: 980px){
  .pubGrid{ grid-template-columns: 1fr; }
}

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

.pubThumb{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;     /* consistent tile height */
  overflow: hidden;
  background: #f3f3f3;      /* flat placeholder */
}

.pubThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text matches your clean engineering feel */
.pubTitle{
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

.pubDesc{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  max-width: 36ch; /* keeps it looking like the screenshot */
}

.pubLink{
  display: inline-block;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
  color: #0b57d0; /* adjust to your site link color if needed */
}

.pubLink:hover{ opacity: 0.85; }

/* Force publications into a clean 1-column stack when in sidebar */
.pubGrid--stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Make thumbs look good in a narrower column */
.pubGrid--stack .pubThumb img{
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================
   HOW: workflow styling
   (UPDATED so iPhone scrolls horizontally like desktop)
   ========================== */

.workflowSteps{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;

  /* horizontal scroll when needed (desktop + iPhone) */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding-bottom: 10px;

  /* smoother “stepper” feel */
  scroll-snap-type: x proximity;
}

/* On narrower screens, keep it HORIZONTAL (do NOT collapse to 2/1 cols).
   Switch to “auto columns” so cards have a usable width and scroll. */
@media (max-width: 1100px){
  .workflowSteps{
    grid-template-columns: none;          /* stop squeezing columns */
    grid-auto-flow: column;              /* lay out columns left->right */
    grid-auto-columns: 280px;            /* card width on phone/tablet */
  }
}

.workflowSteps .step{
  /* sharp edges */
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--card, #fff);

  /* spacing */
  padding: 16px 16px 14px;

  /* keeps cards feeling crisp */
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);

  /* snap behavior */
  scroll-snap-align: start;
}

/* Slightly different accent per step (same family, subtle progression) */
.workflowSteps .step:nth-child(1) { --accent: #068a6d; } /* Phlux teal */
.workflowSteps .step:nth-child(2) { --accent: #057e64; }
.workflowSteps .step:nth-child(3) { --accent: #04725b; }
.workflowSteps .step:nth-child(4) { --accent: #036652; }
.workflowSteps .step:nth-child(5) { --accent: #025a49; }

/* Step number: make it match the accent */
.workflowSteps .stepNum{
  width: 34px;
  height: 34px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;

  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,0.9);
}

/* Titles / body spacing tightened slightly for cleanliness */
.workflowSteps .stepTitle{
  margin: 10px 0 8px;
  font-size: 16px;
}

.workflowSteps .stepBody{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Badges: keep them subtle and consistent */
.workflowSteps .badgeRow{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflowSteps .badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.02);
  color: var(--muted);
  font-size: 12.5px;
}

/* =========================
   PILOT-READY BOXED SECTION
   ========================= */

.pilotReadySection{ margin-top: 42px; }
.pilotReadySection h3{ margin-bottom: 16px; }

/* Outer container feel (light structure, not heavy) */
.pilotReadyGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;   /* keeps it readable but LEFT aligned */
}

/* Individual checklist cards */
.pilotCard{
  display: flex;
  gap: 12px;
  align-items: flex-start;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Checkmark */
.pilotCard .check{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pilotCard strong{
  display: block;
  margin-bottom: 2px;
}

.pilotCard p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 720px){
  .pilotReadyGrid{ grid-template-columns: 1fr; }
}

/* Option C: single panel with 3 columns (matches your clean enterprise style) */
.integrationPanel{
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0,0,0,0.015);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.integrationItem{
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.integrationKicker{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.integrationTitle{
  font-weight: 700;
  margin-bottom: 8px;
}

.integrationBody{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.integrationPills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.02);
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 900px){
  .integrationGrid{ grid-template-columns: 1fr; }
}

.deploymentGrid{
  display:grid;
  grid-template-columns: 1.0fr 1.1fr; /* give image more room */
  gap: 28px;
  align-items: stretch; /* makes both columns same row height */
}

/* Prevent text from stretching too wide */
.deploymentLede{ max-width: 60ch; }

/* Image column: no card/outline, make it fill height */
.deploymentDiagram{
  display:flex;
  align-items: stretch;
  justify-content: flex-end;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Make image tall enough to match left column (cards) */
.deploymentDiagram img{
  height: 100%;
  width: auto;
  max-width: 100%;
  display:block;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0; /* or 10px if you want */
}

/* Mobile: stack cleanly */
@media (max-width: 900px){
  .deploymentGrid{ grid-template-columns: 1fr; }
  .deploymentDiagram{
    justify-content: center;
    margin-top: 16px;
  }
  .deploymentDiagram img{
    width: 100%;
    height: auto;
  }
}

/* Make deployment cards wider */
.deploymentLeft .cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Let cards fill more horizontal space */
.deploymentLeft .card{ width: 100%; }

/* Deployment option badge: rectangle with background below header */
.deploymentOption {
  display: inline-block;
  padding: 6px 12px;
  margin: 8px 0 14px 0;
  background: rgba(6, 138, 109, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0;
}

/* =========================================================
   PILOT: Flow Prediction Accuracy (final-only)
   Two wear-colored parity plots + shared wear legend + KPI tiles
   ========================================================= */
.pilotAccuracyShell{
  margin-top: 22px;
  padding: 10px 0 0;
}

.pilotAccuracyHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.pilotAccuracyGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pilotPlotCard{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 4px;
  overflow:hidden;
}

.pilotPlotBadge{
  padding: 12px 14px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color:#fff;
}

.pilotPlotBadgeLow{ background: #011733; }
.pilotPlotBadgeHigh{ background: #0a749e; }

.pilotPlotInner{
  padding: 12px;
}

.pilotPlotCanvas{
  width: 100%;
  height: 340px; /* JS will scale with DPR */
  display:block;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  background:#fff;
}

.pilotLegendRow{
  margin: 14px 0 6px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

.pilotLegendLabel{
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.pilotLegendBarWrap{
  flex: 1 1 420px;
  min-width: 260px;
}

.pilotLegendBar{
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: linear-gradient(90deg, rgb(9,121,107) 0%, rgb(242,193,78) 50%, rgb(161,33,41) 100%);
}

.pilotLegendTicks{
  display:flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.62);
}

.pilotLegendCaps{
  display:flex;
  align-items:center;
  gap: 8px;
}

.pilotLegendCap{
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  color: rgba(0,0,0,0.72);
}

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

.pilotKpiBlock{
  border-top: 1px solid rgba(0,0,0,0.10);
  padding-top: 14px;
}

.pilotKpiBlockTitle{
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color:#000;
  margin-bottom: 10px;
}

.pilotKpiRow2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pilotKpiTile{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 4px;
  padding: 12px 12px;
}

.pilotKpiTileWarm{ background: rgba(208,132,50,0.06); }
.pilotKpiTileHot{ background: rgba(161,33,41,0.06); }

.pilotKpiTileLabel{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:0.70;
}

.pilotKpiTileValue{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 650;
  color:#000;
}

.pilotKpiTileSub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
}

.pilotFootnote{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.62);
}

@media (max-width: 980px){
  .pilotAccuracyGrid{ grid-template-columns: 1fr; }
  .pilotPlotCanvas{ height: 320px; }
  .pilotKpiGrid{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .pilotPlotCanvas{ height: 290px; }
  .pilotKpiRow2{ grid-template-columns: 1fr; }
}

/* ===== NEW HOME PAGE STYLES (Inference-first narrative) ===== */

.contentBlock {
  max-width: 1200px;
}

.contentBlock h2 {
  margin-bottom: 18px;
}

/* Home hero: no empty band above divider — size to content, divider right below */
#page-home .hero {
  min-height: 0;
  align-items: flex-start;
}
#page-home .heroContent {
  padding: 60px 0 32px;
  width: 100%;
}

/* First section after hero: align block with header divider */
#page-home .section:first-of-type {
  padding-top: 60px;
  background: var(--bg);
}

/* Platform hero: no empty band above divider — size to content, divider right below */
#page-platform .hero {
  min-height: 0;
  align-items: flex-start;
}
#page-platform .heroContent {
  padding: 60px 0 32px;
  width: 100%;
}

/* First section after hero on platform */
#page-platform .section:first-of-type {
  padding-top: 60px;
  background: var(--bg);
}

/* Key capabilities: no gap between content band and section divider line */
#page-platform .sectionKeyCapabilities {
  padding-bottom: 0;
  margin-bottom: 0;
  /* Linear gradient: tint starts at top (divider) and fades down */
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}
#page-platform .sectionKeyCapabilities .wrap {
  padding-bottom: 0;
}
#page-platform .sectionKeyCapabilities .wrap > *:last-child {
  margin-bottom: 0 !important;
}
#page-platform .sectionKeyCapabilities .cards {
  margin-bottom: 0;
}
#page-platform .sectionKeyCapabilities .wrap .lede:last-of-type {
  margin-bottom: 0 !important;
}

/* Section after Key capabilities (Avoiding the black box): tint starts at top */
#page-platform .sectionKeyCapabilities + .section {
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}

/* The 5-step story: tint starts at top */
#page-platform .section:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}

.sectionAlt {
  background: rgba(255, 255, 255, 0.4);
}

/* Third section on home: tint starts at top (divider above) */
#page-home .section:nth-of-type(3) {
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}

/* Architecture (deployment) page: section backgrounds start at divider above */
#page-deployment .section:first-of-type {
  background: var(--bg);
}
#page-deployment .section:nth-of-type(2),
#page-deployment .section:nth-of-type(3) {
  /* Linear gradient: tint starts at top (divider) and fades down */
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}

/* About page: section backgrounds start at divider above */
#page-about .section:first-of-type {
  background: var(--bg);
}
#page-about .section:nth-of-type(2) {
  /* Linear gradient: tint starts at top (divider) and fades down */
  background:
    linear-gradient(180deg, rgba(6, 138, 109, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, rgba(47, 60, 74, 0.04) 0%, transparent 40%),
    var(--bg);
}

.sectionPlatform {
  background: 
    radial-gradient(900px 500px at 50% 50%, rgba(6, 138, 109, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.3);
}

.sectionTrust {
  background: rgba(255, 255, 255, 0.4);
}

.sectionCTA {
  background: 
    radial-gradient(1000px 600px at 50% 50%, rgba(47, 60, 74, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.5);
}

/* Outcome Cards */
.outcomeCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.outcomeCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.outcomeIcon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--teal);
}

.outcomeCard h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}

.outcomeCard p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Approach Grid */
.approachGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.approachCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  display: grid;
  grid-template-rows: 20px 42.5px 1fr;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
  align-items: start;
}

.approachNum {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  display: block;
  height: 20px;
  margin: 0;
  padding: 0;
  line-height: 20px;
}

.approachCard h3 {
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  height: 42.5px;
  display: block;
  overflow: hidden;
}

.approachCard p {
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Platform Features */
.platformFeatures {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.featureRow {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.featureRow:last-child {
  border-bottom: none;
}

.featureLabel {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.featureValue {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 768px) {
  .featureRow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.platformCTA {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* Delivery Modes */
.deliveryModes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.deliveryCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

.deliveryCard h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
}

.deliveryCard p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.deliveryLink {
  margin-top: auto;
}

.deliveryLink a {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.deliveryLink a:hover {
  text-decoration: underline;
}

/* Trust Grid */
.trustGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.trustCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trustCard h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
}

.trustCard p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA Block */
.ctaBlock {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ctaBlock h2 {
  margin-bottom: 18px;
}

.ctaBlock .lede {
  max-width: 100%;
}

.ctaActions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button variations */
.btnOutline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btnOutline:hover {
  background: var(--ink);
  color: #fff;
}

.btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--teal);
  border-radius: 0;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btnPrimary:hover {
  background: #057e64;
  border-color: #057e64;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
