/* The website's look (COMMON website; design/website/website.md § How it looks) — the portal's Prism theme: glass
   panes floating over the Prism picture, Poppins for words, the device's own font for figures. One column of sections,
   1180px wide. Every colour is a token below, taken from the standard theme and Prism's own colours
   (build/config/settings.json, look_dark, look_light and look_pictures.prism); Dark is the starting look and Light
   redefines the same tokens. The picture and the fonts are the portal's own files, put beside this one when the
   release image is built (build/Dockerfile). */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --figures: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --base: rgb(11 11 12);
  --ink: rgb(255 255 255 / 0.94);
  --ink-2: rgb(255 255 255 / 0.74);
  --ink-3: rgb(255 255 255 / 0.54);
  --heading: rgb(224 196 255);
  --violet: rgb(123 78 190);
  --teal: rgb(24 120 150);
  --orange: rgb(242 110 30);
  --orange-ink: rgb(250 170 110);
  --link: rgb(147 197 253);
  --wash-top: rgb(7 8 13 / 0.50);
  --wash-bottom: rgb(7 8 13 / 0.74);
  --glass: rgb(18 18 23 / 0.50);
  --glass-3: rgb(30 30 38 / 0.60);
  --glass-raised: rgb(30 30 38 / 0.78);
  --rim: rgb(255 255 255 / 0.19);
  --rim-3: rgb(255 255 255 / 0.10);
  --divider: rgb(255 255 255 / 0.12);
  --control: rgb(255 255 255 / 0.06);
  --control-rim: rgb(255 255 255 / 0.16);
  --control-rim-strong: rgb(255 255 255 / 0.32);
  --hover: rgb(255 255 255 / 0.08);
  --inset: rgb(255 255 255 / 0.10);
  --shadow: rgb(0 0 0 / 0.45);
  --shadow-2: rgb(0 0 0 / 0.28);
  --sheen: rgb(255 255 255 / 0.10);
  --success: rgb(74 222 128);
  --success-fill: rgb(22 163 74 / 0.16);
  --warning: rgb(251 191 36);
  --warning-fill: rgb(245 158 11 / 0.16);
  --info: rgb(147 197 253);
  --info-fill: rgb(59 130 246 / 0.16);
  --chart: rgb(96 165 250);
  --node-connector: rgb(176 120 230);
  --node-dataset: rgb(56 190 175);
  --node-step: rgb(132 204 22);
  --node-decide: rgb(212 180 131);
  --node-target: rgb(244 114 182);
  --focus: rgb(96 165 250);
  --blur: 18px;
  --radius: 12px;
  --radius-control: 8px;
}
:root[data-look="light"] {
  color-scheme: light;
  --base: rgb(244 244 247);
  --ink: rgb(14 14 22);
  --ink-2: rgb(44 44 58);
  --ink-3: rgb(72 72 88);
  --heading: rgb(92 28 146);
  --orange-ink: rgb(150 58 8);
  --link: rgb(29 78 216);
  --wash-top: rgb(246 247 251 / 0.72);
  --wash-bottom: rgb(246 247 251 / 0.86);
  --glass: rgb(255 255 255 / 0.58);
  --glass-3: rgb(255 255 255 / 0.62);
  --glass-raised: rgb(255 255 255 / 0.80);
  --rim: rgb(24 24 40 / 0.11);
  --rim-3: rgb(24 24 40 / 0.12);
  --divider: rgb(24 24 40 / 0.12);
  --control: rgb(255 255 255 / 0.70);
  --control-rim: rgb(24 24 40 / 0.20);
  --control-rim-strong: rgb(24 24 40 / 0.38);
  --hover: rgb(24 24 40 / 0.07);
  --inset: rgb(255 255 255 / 0.60);
  --shadow: rgb(30 30 60 / 0.16);
  --shadow-2: rgb(30 30 60 / 0.10);
  --sheen: rgb(255 255 255 / 0.55);
  --success: rgb(21 115 55);
  --success-fill: rgb(22 163 74 / 0.12);
  --warning: rgb(147 97 4);
  --warning-fill: rgb(245 158 11 / 0.14);
  --info: rgb(29 78 216);
  --info-fill: rgb(59 130 246 / 0.12);
  --chart: rgb(37 99 235);
  --node-connector: rgb(139 79 201);
  --node-dataset: rgb(15 143 130);
  --node-step: rgb(77 124 15);
  --node-decide: rgb(138 106 46);
  --node-target: rgb(219 39 119);
  --focus: rgb(37 99 235);
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- The page ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100%; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--base); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--figures); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bg { position: fixed; inset: -6%; z-index: -2; background: var(--base) url("assets/prism.webp") center / cover no-repeat; animation: drift 70s ease-in-out infinite alternate; }
.wash { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--wash-top), var(--wash-bottom)); transition: background 0.5s ease; }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, 1.5%, 0); } }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Glass: a pane nearest the picture blurs it; a surface on a pane only tints. */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); backdrop-filter: blur(var(--blur)) saturate(140%); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rim), inset 0 1px 0 var(--inset), 0 24px 64px -16px var(--shadow); }
.surface { background: var(--glass-3); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rim-3), inset 0 1px 0 var(--inset), 0 8px 24px -8px var(--shadow-2); }
.sheen { position: relative; }
.sheen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--sheen), transparent 62%); }
.sheen:hover::before { opacity: 1; }
.lift { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.lift:hover { transform: translateY(-2px); }

/* Words */
.eyebrow { color: var(--heading); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); font-weight: 300; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.grad { background: linear-gradient(90deg, rgb(250 170 110), rgb(214 128 245) 45%, rgb(72 200 226)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-look="light"] .grad { background-image: linear-gradient(90deg, rgb(194 80 14), rgb(123 60 190) 45%, rgb(14 116 144)); }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-control); font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #fff; background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 6px 20px -6px rgb(123 78 190 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.22); text-shadow: 0 1px 2px rgb(0 0 0 / 0.28); }
.btn.primary:hover { box-shadow: 0 10px 26px -6px rgb(123 78 190 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn.ghost { background: var(--control); box-shadow: inset 0 0 0 1px var(--control-rim); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--control-rim-strong); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; transition: transform 0.18s ease; }
.btn:hover .ic.go { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--control); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rim-3); }
.pill.ok { background: var(--success-fill); color: var(--success); box-shadow: none; }
.pill.plan { background: var(--warning-fill); color: var(--warning); box-shadow: none; }
.pill.info { background: var(--info-fill); color: var(--info); box-shadow: none; }
.textlink { color: var(--link); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.textlink .ic { width: 16px; height: 16px; transition: transform 0.18s ease; }
.textlink:hover .ic { transform: translateX(3px); }

/* ---------- The top bar ---------- */
.nav { position: sticky; top: 12px; z-index: 50; padding-top: 12px; margin-bottom: -12px; }
.nav-bar { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 8px 10px 8px 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.06em; margin-right: 14px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 600; letter-spacing: 0; background: linear-gradient(135deg, var(--violet), var(--teal)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 4px 12px -4px rgb(123 78 190 / 0.6); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 6px 14px; border-radius: 6px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); transition: background 0.12s ease, color 0.12s ease; }
.nav-link:hover { color: var(--ink); background: var(--hover); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-rim); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--ink-2); transition: background 0.12s ease, color 0.12s ease; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.look-btn .moon, :root[data-look="light"] .look-btn .sun { display: none; }
:root[data-look="light"] .look-btn .moon { display: block; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; padding: 8px; }
  .nav.open .nav-links { display: flex; }
  .nav-link { padding: 10px 14px; }
  .nav-bar { position: relative; }
  .nav-end .btn.primary { display: none; }
}

/* ---------- Views and movement ---------- */
.js-on [data-view]:not(.is-current) { display: none; }
.js-on [data-view].is-current { animation: view-in 0.5s ease both; }
@keyframes view-in { from { opacity: 0.2; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js-on .reveal { opacity: 0.15; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js-on .reveal.in { opacity: 1; transform: none; }

section { padding-block: clamp(40px, 5.5vw, 64px); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.page-head { padding-block: clamp(56px, 8vw, 96px) 8px; display: grid; gap: 18px; }

/* ---------- Home: the opening ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 56px); }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.app-stage { perspective: 1800px; min-width: 0; }
.app { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 8px; padding: 8px; font-size: 12px; line-height: 1.4; transform-origin: left center; transform: rotateY(-6deg) rotateX(2deg); animation: turn-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both, float 9s ease-in-out 1.4s infinite alternate; }
@keyframes turn-in { from { opacity: 0.3; transform: rotateY(-78deg) rotateX(0deg); } to { opacity: 1; transform: rotateY(-6deg) rotateX(2deg); } }
@keyframes float { from { transform: rotateY(-6deg) rotateX(2deg) translateY(0); } to { transform: rotateY(-4deg) rotateX(1deg) translateY(-10px); } }
.app-rail { padding: 10px 6px; display: grid; gap: 2px; align-content: start; }
.app-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: 0.06em; padding: 0 6px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--divider); }
.app-brand .brand-mark { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.rail-head { color: var(--heading); font-weight: 500; font-size: 10px; padding: 7px 8px 1px; }
.rail-row { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); }
.rail-row .ic { width: 13px; height: 13px; }
.rail-row.on { color: #fff; background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 4px 16px -4px rgb(123 78 190 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.22); }
.app-main { display: grid; gap: 8px; align-content: start; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0; color: var(--ink-2); }
.app-top b { color: var(--orange-ink); font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 10px; display: grid; gap: 2px; min-width: 0; }
.tile-name { color: var(--ink-2); }
.tile-value { font-family: var(--figures); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; }
.tile svg { width: 100%; height: 34px; margin-top: 4px; overflow: visible; }
.spark { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 0; animation: draw 2.2s ease 0.9s both; }
.spark-fill { fill: var(--chart); opacity: 0.2; animation: fade 1.2s ease 2.2s both; }
.spark-end { fill: var(--chart); animation: fade 0.4s ease 2.8s both; }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.bars rect { fill: var(--chart); opacity: 0.85; transform-origin: bottom; transform-box: fill-box; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes grow { from { transform: scaleY(0.05); } }
.donut-track { fill: none; stroke: var(--hover); stroke-width: 7; }
.donut-arc { fill: none; stroke: var(--chart); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 44 88; transform: rotate(-90deg); transform-origin: center; transform-box: fill-box; animation: arc 1.6s ease 1s both; }
@keyframes arc { from { stroke-dasharray: 0 88; } }
.app-table { padding: 8px 10px 6px; min-width: 0; }
.app-table-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.app-table-head strong { font-weight: 600; font-size: 12px; }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 62px 104px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--divider); }
.row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.th { color: var(--ink-3); border-top: 0; padding-top: 2px; }
.row .amt { text-align: right; font-family: var(--figures); font-variant-numeric: tabular-nums; }
.row .pill { height: 20px; padding: 0 8px; font-size: 10.5px; justify-self: start; }
.sample { font-size: 11px; color: var(--ink-3); }
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .app { transform: none; animation: view-in 0.8s ease both; }
}
@media (max-width: 560px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-rail { display: none; }
  .row { grid-template-columns: minmax(0, 1.4fr) 62px 96px; }
  .row > :nth-child(2) { display: none; }
}

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 24px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--divider); }
.fact:first-child { border-left: 0; }
.fact-value { font-family: var(--figures); font-variant-numeric: tabular-nums; font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--orange-ink); }
.fact p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--divider); } }
@media (max-width: 460px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact { border-left: 0; } .fact:nth-child(n+2) { border-top: 1px solid var(--divider); } }

/* The lead-to-invoice flow */
.flow { padding: 28px; }
.flow-scroll { overflow-x: auto; margin: -6px; padding: 6px; }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); min-width: 660px; }
.flow-track, .flow-fill { position: absolute; top: 17px; left: calc(100% / 14); height: 4px; border-radius: 2px; }
.flow-track { right: calc(100% / 14); background: var(--hover); }
.flow-fill { width: 0; background: linear-gradient(90deg, var(--violet), var(--teal)); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.flow-step { position: relative; display: grid; justify-items: center; gap: 10px; padding: 4px 4px 2px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: center; }
.flow-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--glass-raised); box-shadow: inset 0 0 0 1px var(--control-rim); font-family: var(--figures); font-size: 12px; transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease; }
.flow-step.done .flow-dot { background: var(--violet); color: #fff; box-shadow: none; }
.flow-step.on { color: var(--ink); }
.flow-step.on .flow-dot { color: #fff; background: linear-gradient(135deg, var(--violet), var(--teal)); box-shadow: 0 0 0 5px rgb(123 78 190 / 0.25); transform: scale(1.12); }
.flow-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; padding: 24px; }
.js-on .flow-detail:not(.is-current) { display: none; }
.js-on .flow-detail.is-current { animation: view-in 0.45s ease both; }
.flow-detail h3 { margin-bottom: 8px; }
.keeps { display: grid; gap: 8px; align-content: start; font-size: 14.5px; color: var(--ink-2); }
.keeps-title { color: var(--heading); font-weight: 500; font-size: 13px; }
.keeps li { display: flex; gap: 10px; align-items: flex-start; }
.keeps .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--success); }
@media (max-width: 760px) { .flow { padding: 18px; } .flow-detail { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--ink-2); font-size: 15px; }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-rim); color: var(--heading); margin-bottom: 4px; }
.card .textlink { margin-top: 4px; font-size: 14.5px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: minmax(0, 1fr); } }

/* Two columns: words beside a drawing */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.split-text { display: grid; gap: 16px; justify-items: start; }
.ticks { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--success); }
.split.stack { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.split.stack .split-text { max-width: 760px; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Drawings */
.drawing { padding: 18px; }
.drawing-scroll { overflow-x: auto; }
.drawing svg { width: 100%; height: auto; }
.canvas { background-image: radial-gradient(var(--control-rim) 1px, transparent 1.4px); background-size: 22px 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.d-node { fill: var(--glass-raised); stroke-width: 1.5; }
.d-box { fill: var(--glass-raised); stroke: var(--control-rim); stroke-width: 1; }
.d-core { fill: url(#coreGrad); stroke: none; }
.d-name { fill: var(--ink); font-size: 12px; font-weight: 500; text-anchor: middle; }
.d-title { fill: var(--ink); font-size: 14px; font-weight: 600; text-anchor: middle; }
.d-sub { fill: var(--ink-2); font-size: 11px; text-anchor: middle; }
.d-core-title { fill: #fff; font-size: 17px; font-weight: 600; text-anchor: middle; }
.d-core-sub { fill: rgb(255 255 255 / 0.86); font-size: 11.5px; text-anchor: middle; }
.d-line { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 6 8; animation: march 1.1s linear infinite; }
.d-line.reads { stroke-dasharray: 2 6; animation-duration: 2s; }
@keyframes march { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
.d-arrow { fill: var(--ink-3); }
.d-glyph { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The platform page: tabs and panels */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background 0.12s ease, color 0.12s ease; }
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); background: var(--hover); }
.tab[aria-selected="true"] { color: var(--orange-ink); font-weight: 600; background: color-mix(in srgb, var(--orange) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 36%, transparent); }
.panel { margin-top: 16px; padding: 28px; }
.js-on .panel:not(.is-current) { display: none; }
.js-on .panel.is-current { animation: view-in 0.45s ease both; }
.panel-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 70ch; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--divider); }
.features .ic { margin-top: 3px; color: var(--heading); }
.features h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.features p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.example { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--info-fill); box-shadow: inset 3px 0 0 var(--info); font-size: 14.5px; }
.example .ic { color: var(--info); margin-top: 2px; }
.example b { font-weight: 600; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } .panel { padding: 20px; } }

/* Instances */
.instances { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.instances::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; border-top: 2px dashed var(--control-rim-strong); }
.instance { position: relative; padding: 18px; display: grid; gap: 10px; background: var(--glass-raised); }
.instance-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14.5px; }
.part { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--control); box-shadow: inset 0 0 0 1px var(--rim-3); font-size: 13.5px; color: var(--ink-2); }
.part .ic { width: 16px; height: 16px; color: var(--heading); }
.instances-note { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 820px) { .instances { grid-template-columns: minmax(0, 1fr); gap: 16px; } .instances::before { display: none; } }

/* The audit trail illustration */
.chain-scroll { overflow-x: auto; margin: -6px; padding: 6px; }
.chain { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 26px; min-width: 860px; }
.entry { position: relative; padding: 14px; display: grid; gap: 4px; font-size: 13px; background: var(--glass-raised); transition: box-shadow 0.35s ease; }
.entry:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; border-top: 2px solid var(--control-rim-strong); transition: border-color 0.35s ease; }
.entry-top { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: 11.5px; }
.entry strong { font-weight: 600; font-size: 14px; }
.entry .by { color: var(--ink-2); }
.entry .was { color: var(--ink-2); font-family: var(--figures); font-variant-numeric: tabular-nums; }
.entry .print { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.entry .print .ic { width: 13px; height: 13px; }
.entry.checked { box-shadow: inset 0 0 0 1px var(--success), 0 8px 24px -8px var(--shadow-2); }
.entry.checked::after { border-color: var(--success); }
.entry.checked .print { color: var(--success); }
.chain-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; }
.notice.ok { background: var(--success-fill); box-shadow: inset 3px 0 0 var(--success); }
.notice.ok .ic { color: var(--success); margin-top: 2px; }
.notice.info { background: var(--info-fill); box-shadow: inset 3px 0 0 var(--info); }
.notice.info .ic { color: var(--info); margin-top: 2px; }
.notice[hidden] { display: none; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; padding-block: clamp(56px, 8vw, 96px); }
.contact-text { display: grid; gap: 18px; }
.form { padding: 28px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); width: 100%; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-rim); transition: box-shadow 0.12s ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field select option { color: #111; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--control-rim-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } .form { padding: 20px; } }

/* The closing band and the foot */
.band { position: relative; padding: clamp(32px, 5vw, 56px); display: grid; gap: 18px; justify-items: center; text-align: center; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; pointer-events: none; background: radial-gradient(closest-side, rgb(123 78 190 / 0.35), transparent); }
.band > * { position: relative; z-index: 1; }
.band .lead { margin-inline: auto; }
.foot { margin-top: 24px; padding-block: 36px 44px; border-top: 1px solid var(--divider); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { color: var(--heading); font-weight: 500; font-size: 13px; margin-bottom: 10px; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink-2); font-size: 14.5px; }
.foot a:hover { color: var(--ink); }
.foot-note { margin-top: 28px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot-about { display: grid; gap: 12px; justify-items: start; font-size: 14.5px; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

/* Drawings: moving lights, time, small drawings inside a panel */
.d-box, .d-node, .d-core { filter: drop-shadow(0 6px 10px var(--shadow-2)); }
.d-pulse { fill: var(--orange-ink); filter: drop-shadow(0 0 5px var(--orange)); }
.d-pulse.cool { fill: rgb(103 232 249); filter: drop-shadow(0 0 5px rgb(34 211 238)); }
:root[data-look="light"] .d-pulse { fill: var(--orange); }
:root[data-look="light"] .d-pulse.cool { fill: rgb(14 116 144); }
@media (prefers-reduced-motion: reduce) { .d-pulse { display: none; } }
.d-axis { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.d-event { fill: var(--orange); stroke: var(--glass-raised); stroke-width: 3; }
.d-chip { fill: var(--base); stroke: var(--control-rim); }
.d-tree path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.seg { stroke: none; }
.seg-1 { fill: var(--success-fill); stroke: var(--success); stroke-width: 1; }
.seg-2 { fill: rgb(59 130 246 / 0.78); }
.seg-3 { fill: var(--violet); }
.mini { margin-top: 20px; padding: 16px; }
.mini svg { width: 100%; height: auto; }
.mini figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
