/* Shared styles for /products/*. Colours and type follow site/index.html. */
:root {
  --sky: #7fdbff; --bar-mark: #5cc8f5; --navy: #001f3f; --ink: #fff; --body: #dcebf5; --muted: #a9c4d6;
  --line: rgba(127,219,255,.22); --panel: rgba(10,38,68,.78); --panel2: rgba(16,49,81,.72);
  --ok: #7ff0c6; --warn: #ffc46b; --bad: #ffb4a3;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--body); background: var(--navy); font: 500 17px/1.6 "Quicksand", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 62% 62% at 100% 30%, #264f70 0%, rgba(38,80,112,.5) 45%, rgba(38,80,112,0) 100%),
    linear-gradient(90deg, #001f3f 0%, #001f3f 28%, #103151 58%, #173c5d 100%);
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
sup { line-height: 0; font-size: .7em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Header, matching the home page */
.bar { position: sticky; top: 0; z-index: 20; background: #102a46; }
.bar-in { height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #8bdcff; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; display: block; }
.brand span { font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .01em; }
.bar nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.bar nav a { display: block; color: #fff; font: 400 14px "Outfit", "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--sky); text-decoration: none; }

/* Hero */
.crumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 26px 0 40px; }
.eyebrow { color: var(--sky); font: 500 14px "Outfit", "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.12; letter-spacing: .005em; margin-top: 12px; }
.lede { margin-top: 18px; font-size: 19px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid var(--sky); }
.btn:hover { text-decoration: none; }
.btn.fill { background: var(--sky); color: #0d2b49; box-shadow: 0 0 14px rgba(127,219,255,.45); transition: box-shadow .2s; }
.btn.fill:hover { box-shadow: 0 0 24px rgba(127,219,255,.85); }
.hero-art svg { display: block; width: 100%; height: auto; }
.pulse { animation: pulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.drift { animation: drift 7s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .42; } }
@keyframes drift { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .pulse, .drift { animation: none; } * { transition: none !important; } }

/* Fact band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stat b { display: block; color: #fff; font: 500 36px/1.1 "Outfit", "Segoe UI", sans-serif; }
.stat span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--body); }

/* In-page contents */
.toc { position: sticky; top: 72px; z-index: 10; background: rgba(9,35,62,.94); border-block: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0 auto; padding: 0 40px; max-width: 1200px; display: flex; gap: 19px; overflow-x: auto; scrollbar-width: none; }
.toc a { display: block; padding: 11px 0; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--body); }
.toc a:hover { color: var(--sky); text-decoration: none; }

/* Sections */
section.sec { padding: 54px 0 8px; }
.sec > h2 { font-size: clamp(26px, 2.6vw, 34px); }
.sec > h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--sky); }
.intro { margin-top: 16px; max-width: 880px; }
.intro + .intro { margin-top: 12px; }
.sec h3 { font-size: 19px; }
.grid2, .grid3 { display: grid; gap: 18px; margin-top: 24px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.card:hover { border-color: rgba(127,219,255,.5); }
.card p { margin-top: 8px; font-size: 16px; }
.ic { display: block; width: 34px; height: 34px; margin-bottom: 10px; fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15.5px; line-height: 1.45; }
.ticks li { position: relative; padding-left: 16px; margin-top: 7px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* Figures */
figure { margin: 26px 0 0; }
.fig-body { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(16,49,81,.86), rgba(7,33,60,.86)); overflow: hidden; }
figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 900px; }
figcaption b { color: var(--body); font-weight: 700; }
.fig-svg { display: block; width: 100%; height: auto; max-width: 780px; margin: 0 auto; }

/* Numbered flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 26px 26px; counter-reset: s; }
.flow li { position: relative; padding: 14px 14px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); counter-increment: s; min-width: 0; }
.flow li::before { content: counter(s); position: absolute; top: -12px; left: 12px; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font: 500 13px "Outfit", sans-serif; color: #0d2b49; background: var(--sky); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -22px; width: 17px; height: 10px; margin-top: -5px; background: var(--sky); clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%); opacity: .8; }
.flow h4 { font-size: 15.5px; margin-top: 5px; }
.flow p { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--body); }
.flow .key { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset; background: rgba(39,92,133,.62); }
.flow .human { border-color: var(--warn); }
.flow .human::before { background: var(--warn); }
.flow .out { border-style: dashed; background: transparent; }
.flow .planned { border-style: dashed; background: transparent; }
.flow .planned::before { background: var(--muted); }
.tag { display: inline-block; margin-top: 5px; padding: 0 7px; border: 1px solid var(--muted); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--body); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13.5px; color: var(--body); }
.legend i { display: inline-block; width: 16px; height: 12px; margin-right: 7px; vertical-align: -1px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel2); }
.legend .k { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset; background: rgba(39,92,133,.62); }
.legend .h { border-color: var(--warn); }
.legend .o { border-style: dashed; background: transparent; border-color: var(--body); }

/* Module map */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); }
.layer h4 { font-size: 15px; color: var(--sky); }
.layer.hi { border-color: var(--sky); background: rgba(39,92,133,.5); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 4px 11px; border-radius: 999px; font-size: 13.5px; line-height: 1.3; color: #fff; background: rgba(127,219,255,.12); border: 1px solid rgba(127,219,255,.3); }

/* Bars (single series, value labelled directly) */
.bars { display: grid; gap: 9px; max-width: 860px; margin: 0 auto; }
.brow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 15px; color: #fff; }
.btrack { height: 18px; border-radius: 0 4px 4px 0; }
.bfill { display: block; height: 100%; min-width: 4px; background: var(--bar-mark); border-radius: 0 4px 4px 0; }
.brow b { font-weight: 700; text-align: right; }

/* Column pipeline */
.pipe { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 30px; }
.pcol { position: relative; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); min-width: 0; }
.pcol.hi { border-color: var(--sky); background: rgba(39,92,133,.5); }
.pcol:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -26px; width: 21px; height: 14px; margin-top: -7px; background: var(--sky); clip-path: polygon(0 38%, 62% 38%, 62% 0, 100% 50%, 62% 100%, 62% 62%, 0 62%); }
.pcol h4 { font-size: 15.5px; color: var(--sky); }
.pcol .ticks { font-size: 14.5px; }
.pcol p { margin-top: 7px; font-size: 14.5px; line-height: 1.4; }

/* Tenancy diagram */
.plane { padding: 14px 18px; border: 1px solid var(--sky); border-radius: 12px; background: rgba(39,92,133,.6); color: #fff; text-align: center; }
.plane b { display: block; }
.plane span { font-size: 14px; color: var(--body); }
.tenants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; position: relative; }
.tenant { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); font-size: 13.5px; line-height: 1.3; }
.tenant::before { content: ""; position: absolute; left: 50%; top: -27px; height: 26px; border-left: 2px dashed var(--sky); }
.tenant b { display: block; margin-bottom: 7px; color: #fff; font-size: 14.5px; }
.tenant div { margin-top: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(127,219,255,.12); color: #fff; }

/* Guard chain and chip sequences */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chain li { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--sky); background: rgba(39,92,133,.5); color: #fff; font-size: 14px; }
.chain li + li::before { content: "\2192"; margin: 0 9px 0 -2px; color: var(--sky); }
.sub { margin: 18px 0 9px; font-size: 15.5px; color: var(--sky); }
.sub:first-child { margin-top: 0; }

/* Timeline strip */
.tl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; margin: 12px 0; }
.tl div { padding: 9px 0; border-radius: 6px; text-align: center; font-size: 13px; color: #0d2b49; font-weight: 700; background: var(--bar-mark); }
.tl-ends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 14.5px; line-height: 1.4; }
.tl-ends > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.tl-ends b { display: block; color: #fff; }

/* Illustrative screens */
.screen { border: 1px solid rgba(127,219,255,.35); border-radius: 12px; overflow: hidden; background: #071d36; box-shadow: 0 14px 34px rgba(0,16,36,.5); max-width: 900px; margin: 0 auto; font-size: 14px; color: var(--body); }
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: #102a46; font-size: 13px; }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(127,219,255,.4); }
.scr-bar span { margin-left: 8px; color: #fff; font-weight: 600; }
.scr-bar em { margin-left: auto; padding: 1px 9px; border: 1px solid var(--muted); border-radius: 999px; font-style: normal; font-size: 11.5px; }
.scr-body { padding: 16px; display: grid; gap: 12px; }
.scr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scr-tile { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; line-height: 1.25; }
.scr-tile b { display: block; color: #fff; font: 500 25px "Outfit", sans-serif; }
.scr-tile span { font-size: 12.5px; }
.scr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.scr-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 5px 8px; border-bottom: 1px solid var(--line); }
.scr-table td { padding: 7px 8px; border-bottom: 1px solid rgba(127,219,255,.1); color: #fff; }
.st { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); } .st.info { color: var(--sky); }
.scr-scroll { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal div { padding: 6px 0; text-align: center; border-radius: 5px; font-size: 12.5px; color: #fff; background: rgba(127,219,255,.07); }
.cal .a { background: rgba(92,200,245,.36); } .cal .b { background: rgba(92,200,245,.72); color: #06223c; font-weight: 700; }
.scr-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; }
.cal { grid-auto-rows: 1fr; height: 100%; }
.cal div { display: grid; place-items: center; }

/* Tables */
.tbl-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--panel); }
table.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.tbl th { padding: 13px 16px; text-align: left; color: #fff; background: rgba(39,92,133,.55); font-weight: 700; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { color: #fff; font-weight: 600; }

/* FAQ */
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 14px 18px; color: #fff; font-weight: 700; }
.faq details > p { padding: 0 18px 16px; font-size: 16px; }

/* Scope notes, call to action, references */
.note { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--sky); border-radius: 0 10px 10px 0; background: var(--panel2); font-size: 16px; }
.cta { margin-top: 56px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--sky); border-radius: 18px; background: linear-gradient(110deg, rgba(39,92,133,.8), rgba(16,49,81,.8)); }
.cta h2 { font-size: 27px; }
.cta p { margin-top: 8px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.related a { display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--body); font-size: 14.5px; line-height: 1.4; }
.related a:hover { border-color: var(--sky); text-decoration: none; }
.related b { display: block; color: #fff; font-size: 16.5px; }
.refs { margin: 16px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.refs li { margin-top: 5px; }
.disclaim { margin-top: 16px; font-size: 14px; color: var(--muted); }
.foot { margin-top: 46px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; }

/* 404 */
.nf { min-height: calc(100vh - 220px); display: grid; align-content: center; padding: 50px 0; }
.nf h1 { margin-top: 10px; }
.nf .lede { max-width: 680px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-art { max-width: 560px; }
  .flow { --cols: 2 !important; }
  .flow li:nth-child(2n)::after { display: none; }
  .grid3, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tenants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenant::before { display: none; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pcol:not(:last-child)::after { top: auto; bottom: -23px; right: 50%; margin: 0 -10px 0 0; transform: rotate(90deg); }
  .scr-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .toc ul { padding-left: 18px; padding-right: 18px; }
  .bar-in { height: auto; padding: 12px 16px; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .brand span { font-size: 23px; }
  .bar nav ul { gap: 15px; }
  .bar nav a { font-size: 12px; }
  html { scroll-padding-top: 140px; }
  .toc { position: static; }
  .bar { position: static; }
  .grid2, .grid3, .related, .cta, .tl-ends { grid-template-columns: minmax(0, 1fr); }
  .flow { --cols: 1 !important; }
  .flow li::after { display: none !important; }
  .fig-body { padding: 18px 13px; }
  .stat b { font-size: 29px; }
  .scr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brow { grid-template-columns: 88px minmax(0, 1fr) 30px; font-size: 14px; }
  .cta { padding: 24px 20px; }
  .tenants { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body { background: #fff; color: #000; }
  .toc, .bar nav { display: none; }
}

.chain.nolink li + li::before { display: none; }
.brow { grid-template-columns: 124px minmax(0, 1fr) 44px; }
@media (min-width: 981px) { .flow li.eol::after { display: none; } }
.scr-split .scr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sub ~ .bars { margin-left: 0; max-width: none; }
@media (max-width: 680px) {
  .fig-body:has(.fig-svg) { overflow-x: auto; }
  .fig-svg { min-width: 600px; }
}

/* Titles of different lengths must not push the text below them out of line across a row. */
@supports (grid-template-rows: subgrid) {
  .grid2 > .card, .grid3 > .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; }
  .stats > .stat { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .grid2, .grid3 { row-gap: 18px; }
  .tenants > .tenant { align-self: stretch; }
}
@media (max-width: 680px) { .stat b { font-size: 24px; white-space: nowrap; } }
