/* ==========================================================================
   Public website + portal chrome. No frameworks, no external fonts or CDNs.
   Brand colours come from the logo: light = navy #083a53 + teal #127783 + green #6cb33f; dark = deep navy #012135 + cyan #22e3f2 + green #86e540.
   Light theme by default; dark theme automatically via prefers-color-scheme.
   No inline styles are used anywhere (CSP), all styling is in this file.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light dark;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  /* headings and eyebrows: a theme may replace these (iv.css sets a coding typeface); the product sites keep the defaults */
  --font-heading: var(--font);
  --heading-tracking: -.01em;
  --h1-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.7rem);

  --bg: #ffffff;
  --bg-alt: #f2f7f9;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --text: #12212b;
  --text-strong: #0a1a24;
  --muted: #465a67;
  --border: #d3dfe6;
  --border-strong: #b5c7d2;

  --brand-900: #083a53;
  --brand: #0f7688;          /* teal of the logo: 5.4:1 on white */
  --brand-strong: #0a5f6e;
  --brand-soft: #dff0f5;
  --accent: #6cb33f;
  --accent-text: #3d7a1c;
  --on-brand: #ffffff;

  --btn-bg: #0f7688;
  --btn-bg-hover: #0a5f6e;
  --btn-fg: #ffffff;

  --focus: #0b7fa0;
  --danger: #a8231b;
  --danger-bg: #fbe3e1;
  --warn: #7a5200;
  --warn-bg: #fff1cc;
  --ok: #2b6f30;
  --ok-bg: #e3f3e6;
  --info-bg: #e4f1f6;

  --hero-from: #e3f2f6;
  --hero-to: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --footer-bg: #012135;
  --footer-text: #d4e6ee;
  --footer-link: #ffffff;
  --shadow: 0 1px 2px rgba(10, 53, 82, .08), 0 6px 18px rgba(10, 53, 82, .08);

  /* illustration palette */
  --ill-bg: #f2f7f9;
  --ill-panel: #ffffff;
  --ill-line: #083a53;
  --ill-brand: #0f7688;
  --ill-light: #7cc4d8;
  --ill-green: #5aa02f;
  --ill-mute: #b8cad4;
  --ill-text: #083a53;
  --ill-new: #d5eed9;
  --ill-chg: #fdeeb8;
  --ill-del: #f9d5d1;

  --radius: 10px;
  --radius-lg: 16px;
  --gutter: 1.25rem;
  --maxw: 1240px;
  --header-h: 5.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #012135;
    --bg-alt: #032b44;
    --surface: #06304a;
    --surface-2: #032840;
    --text: #dcedf4;
    --text-strong: #ffffff;
    --muted: #9fc0d0;
    --border: #0f4560;
    --border-strong: #1a5f80;

    --brand: #22e3f2;
    --brand-strong: #6cf0f9;
    --brand-soft: #06405a;
    --accent: #86e540;
    --accent-text: #86e540;

    --btn-bg: #22e3f2;
    --btn-bg-hover: #6cf0f9;
    --btn-fg: #012135;

    --focus: #6cf0f9;
    --danger: #ff9d94;
    --danger-bg: #40201f;
    --warn: #f0c866;
    --warn-bg: #3d3212;
    --ok: #93d69a;
    --ok-bg: #173a1f;
    --info-bg: #07405a;

    --hero-from: #032b44;
    --hero-to: #012135;
    --header-bg: rgba(1, 33, 53, .92);
    --footer-bg: #011a2b;
    --footer-text: #9fc0d0;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);

    --ill-bg: #032840;
    --ill-panel: #06304a;
    --ill-line: #d7f6fb;
    --ill-brand: #22e3f2;
    --ill-light: #1b7d97;
    --ill-green: #86e540;
    --ill-mute: #1a5f80;
    --ill-text: #d7f6fb;
    --ill-new: #0f4a2a;
    --ill-chg: #5a4a12;
    --ill-del: #5a2529;
  }
}

/* forced dark look (BrandVariant = "dark") */
:root[data-theme="dark"] {
    --bg: #012135;
    --bg-alt: #032b44;
    --surface: #06304a;
    --surface-2: #032840;
    --text: #dcedf4;
    --text-strong: #ffffff;
    --muted: #9fc0d0;
    --border: #0f4560;
    --border-strong: #1a5f80;

    --brand: #22e3f2;
    --brand-strong: #6cf0f9;
    --brand-soft: #06405a;
    --accent: #86e540;
    --accent-text: #86e540;

    --btn-bg: #22e3f2;
    --btn-bg-hover: #6cf0f9;
    --btn-fg: #012135;

    --focus: #6cf0f9;
    --danger: #ff9d94;
    --danger-bg: #40201f;
    --warn: #f0c866;
    --warn-bg: #3d3212;
    --ok: #93d69a;
    --ok-bg: #173a1f;
    --info-bg: #07405a;

    --hero-from: #032b44;
    --hero-to: #012135;
    --header-bg: rgba(1, 33, 53, .92);
    --footer-bg: #011a2b;
    --footer-text: #9fc0d0;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);

    --ill-bg: #032840;
    --ill-panel: #06304a;
    --ill-line: #d7f6fb;
    --ill-brand: #22e3f2;
    --ill-light: #1b7d97;
    --ill-green: #86e540;
    --ill-mute: #1a5f80;
    --ill-text: #d7f6fb;
    --ill-new: #0f4a2a;
    --ill-chg: #5a4a12;
    --ill-del: #5a2529;
}

/* forced light look (BrandVariant = "light"): keeps the light tokens even when the visitor prefers dark */
:root[data-theme="light"] { color-scheme: light; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--text-strong); font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: var(--heading-tracking); }
h1 { font-size: var(--h1-size); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, dl, table, pre, figure { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px; padding: .08em .35em; overflow-wrap: anywhere; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
kbd {
  display: inline-block; padding: .05em .45em; border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 5px; background: var(--surface); color: var(--text-strong); font-size: .85em; line-height: 1.4;
}
mark { background: var(--warn-bg); color: inherit; padding: 0 .2em; border-radius: 3px; }
small { font-size: .875em; }
.placeholder { background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--warn); border-radius: 4px; padding: 0 .3em; font-style: normal; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 200; background: var(--btn-bg); color: var(--btn-fg);
  padding: .6rem 1rem; border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; }
main:focus { outline: none; }

/* ---------- 3. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text-strong); font-weight: 700; line-height: 1.15; }
.brand:hover { color: var(--text-strong); }
.brand-logo { display: block; width: 14rem; height: auto; }
.brand-logo-footer { display: block; width: 15rem; height: auto; margin-bottom: .5rem; }
/* The animated header logo of the company site: the traces draw, the wordmark is typed, an underscore blinks once. Without motion, on
   later pages of a visit (site.js adds .is-static) and without JavaScript it is simply the finished logo. */
.brand-anim { display: block; color: var(--text-strong); overflow: visible; }
.brand-anim .bl-icon { fill: none; stroke: var(--brand); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-anim .bl-nd { fill: none; transform-box: fill-box; transform-origin: center; }
.brand-anim .bl-l { fill: currentColor; }
.brand-anim .bl-h { fill: var(--brand); }
.brand-anim .bl-cur rect { fill: var(--brand); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .brand-anim:not(.is-static) .bl-tr { stroke-dasharray: 1; animation: bl-draw .5s ease-out both; }
  .brand-anim:not(.is-static) .bl-tr:nth-of-type(2) { animation-delay: .12s; }
  .brand-anim:not(.is-static) .bl-tr:nth-of-type(3) { animation-delay: .24s; }
  .brand-anim:not(.is-static) .bl-tr:nth-of-type(4) { animation-delay: .36s; }
  .brand-anim:not(.is-static) .bl-nd { animation: bl-pop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
  .brand-anim:not(.is-static) .bl-nd:nth-of-type(1) { animation-delay: .1s; }
  .brand-anim:not(.is-static) .bl-nd:nth-of-type(2) { animation-delay: .22s; }
  .brand-anim:not(.is-static) .bl-nd:nth-of-type(3) { animation-delay: .34s; }
  .brand-anim:not(.is-static) .bl-nd:nth-of-type(4) { animation-delay: .46s; }
  .brand-anim:not(.is-static) .bl-l, .brand-anim:not(.is-static) .bl-h { animation: bl-type .01s steps(1, end) both; }  .brand-anim:not(.is-static) path:nth-of-type(1).bl-l, .brand-anim:not(.is-static) path:nth-of-type(1).bl-h { animation-delay: 0.55s; }
  .brand-anim:not(.is-static) path:nth-of-type(2).bl-l, .brand-anim:not(.is-static) path:nth-of-type(2).bl-h { animation-delay: 0.61s; }
  .brand-anim:not(.is-static) path:nth-of-type(3).bl-l, .brand-anim:not(.is-static) path:nth-of-type(3).bl-h { animation-delay: 0.67s; }
  .brand-anim:not(.is-static) path:nth-of-type(4).bl-l, .brand-anim:not(.is-static) path:nth-of-type(4).bl-h { animation-delay: 0.73s; }
  .brand-anim:not(.is-static) path:nth-of-type(5).bl-l, .brand-anim:not(.is-static) path:nth-of-type(5).bl-h { animation-delay: 0.79s; }
  .brand-anim:not(.is-static) path:nth-of-type(6).bl-l, .brand-anim:not(.is-static) path:nth-of-type(6).bl-h { animation-delay: 0.85s; }
  .brand-anim:not(.is-static) path:nth-of-type(7).bl-l, .brand-anim:not(.is-static) path:nth-of-type(7).bl-h { animation-delay: 0.91s; }
  .brand-anim:not(.is-static) path:nth-of-type(8).bl-l, .brand-anim:not(.is-static) path:nth-of-type(8).bl-h { animation-delay: 0.97s; }
  .brand-anim:not(.is-static) path:nth-of-type(9).bl-l, .brand-anim:not(.is-static) path:nth-of-type(9).bl-h { animation-delay: 1.03s; }
  .brand-anim:not(.is-static) path:nth-of-type(10).bl-l, .brand-anim:not(.is-static) path:nth-of-type(10).bl-h { animation-delay: 1.09s; }
  .brand-anim:not(.is-static) path:nth-of-type(11).bl-l, .brand-anim:not(.is-static) path:nth-of-type(11).bl-h { animation-delay: 1.15s; }
  .brand-anim:not(.is-static) path:nth-of-type(12).bl-l, .brand-anim:not(.is-static) path:nth-of-type(12).bl-h { animation-delay: 1.21s; }
  .brand-anim:not(.is-static) path:nth-of-type(13).bl-l, .brand-anim:not(.is-static) path:nth-of-type(13).bl-h { animation-delay: 1.27s; }
  .brand-anim:not(.is-static) .bl-cur { animation: bl-move .78s steps(13, jump-start) .55s both; }
  .brand-anim:not(.is-static) .bl-cur rect { animation: bl-blink 2.25s steps(1, end) .5s forwards; }
}
@keyframes bl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bl-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bl-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes bl-move { from { transform: translateX(0); } to { transform: translateX(873.6px); } }
@keyframes bl-blink { 0% { opacity: 1; } 37% { opacity: 0; } 50% { opacity: 1; } 64% { opacity: 0; } 100% { opacity: 0; } }

.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 0; left: 0; }
.nav-toggle-btn {
  display: none; margin-left: auto; align-items: center; gap: .55rem; cursor: pointer; padding: .5rem .8rem;
  border: 1px solid var(--border-strong); border-radius: 8px; font-weight: 600; color: var(--text-strong); background: var(--surface);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle-input:focus-visible ~ .site-header .nav-toggle-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-panel { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.site-nav ul, .header-actions ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-link { display: block; padding: .5rem .62rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-link:hover { background: var(--bg-alt); color: var(--text-strong); }
.nav-link.is-current { color: var(--brand-strong); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { gap: 0 !important; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.lang-switch a { display: block; padding: .35rem .6rem; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { background: var(--bg-alt); }
.lang-switch a.is-current { background: var(--brand-soft); color: var(--brand-strong); }

@media (max-width: 1239px) {
  .nav-toggle-btn { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem var(--gutter) 1.25rem; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-toggle-input:checked ~ .site-header .nav-panel { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .nav-link { padding: .7rem .5rem; }
  .nav-link.is-current { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
  .header-actions { flex-wrap: wrap; }
  .header-actions .btn { flex: 1 1 auto; text-align: center; }
  .lang-switch { order: -1; align-self: flex-start; }
}
@media (max-width: 420px) { .brand-logo { width: 10.5rem; } }

/* ---------- 4. Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.15rem; border-radius: 9px;
  border: 2px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--brand-strong); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
button.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- 5. Sections / hero ---------- */
.site-main { min-height: 60vh; }
.page-plain { padding-block: 2.5rem 4rem; }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--accent-text); margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }

.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-grid.hero-solo { grid-template-columns: minmax(0, 46rem); }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.25rem; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.hero-art { min-width: 0; }
.hero-art .ill { filter: drop-shadow(0 12px 26px rgba(10, 53, 82, .18)); }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .4rem; }
.checklist li::before {
  content: ""; position: absolute; left: .1rem; top: .45em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-text);
  border-bottom: 3px solid var(--accent-text); transform: rotate(-45deg) translateY(-25%);
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(1rem, .5rem + 2vw, 2rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { margin-bottom: 0; }
.page-body { padding-block: 2.25rem 4.5rem; }

/* ---------- 6. Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow); min-width: 0;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.feature-card { display: flex; flex-direction: column; gap: .35rem; padding: 0; overflow: hidden; }
.feature-card .ill-frame { background: var(--ill-bg); border-bottom: 1px solid var(--border); padding: .75rem; }
.feature-card .feature-body { padding: 1.1rem 1.35rem 1.35rem; }
.icon-card .icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: .8rem; }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ill { display: block; width: 100%; height: auto; }
.ill text { font-family: var(--font-mono); }
.ill .k-bg { fill: var(--ill-bg); }
.ill .k-panel { fill: var(--ill-panel); stroke: var(--ill-mute); stroke-width: 1.5; }
.ill .k-line { fill: none; stroke: var(--ill-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .k-thin { fill: none; stroke: var(--ill-line); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .k-brand { fill: none; stroke: var(--ill-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .k-brand-fill { fill: var(--ill-brand); }
.ill .k-light { fill: var(--ill-light); }
.ill .k-green { fill: none; stroke: var(--ill-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .k-green-fill { fill: var(--ill-green); }
.ill .k-mute { fill: var(--ill-mute); }
.ill .k-mute-line { fill: none; stroke: var(--ill-mute); stroke-width: 2; stroke-linecap: round; }
.ill .k-navy-fill { fill: var(--ill-line); }
.ill .k-text { fill: var(--ill-text); font-size: 9px; }
.ill .k-text-g { fill: var(--ill-green); font-size: 9px; font-weight: 700; }
.ill .k-new { fill: var(--ill-new); }
.ill .k-chg { fill: var(--ill-chg); }
.ill .k-del { fill: var(--ill-del); }
.ill .k-onbrand { fill: none; stroke: var(--ill-panel); stroke-width: 2; stroke-linecap: round; }
.ill .k-rail { fill: none; stroke: var(--ill-line); stroke-width: 3; stroke-linecap: round; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps > li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem 1.35rem 1.35rem 4.1rem; box-shadow: var(--shadow); }
.steps > li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(135deg, var(--brand-900), var(--cta-to, #0b6f86)); color: #eaf6fa; border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3rem); text-align: center; }
.cta-band h2, .cta-band h3 { color: #ffffff; }
.cta-band p { color: #d4ebf2; max-width: 40rem; margin-inline: auto; }
.cta-band .btn-primary { background: #ffffff; color: #0a3552; }
.cta-band .btn-primary:hover { background: #dff0f5; color: #0a3552; }
.cta-band .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.cta-band .btn-row { justify-content: center; }
.cta-band a:not(.btn) { color: #ffffff; }
.cta-band a:not(.btn):hover { color: #dff0f5; }
.cta-band :focus-visible { outline-color: #ffffff; }

.trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.trust-list li { display: flex; gap: 1rem; align-items: flex-start; }
.trust-list .icon { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.trust-list h3 { font-size: 1.05rem; margin-bottom: .2em; }
.trust-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .trust-list { grid-template-columns: 1fr; } }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-strong); vertical-align: middle; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- 7. Prose (manual, legal, features text) ---------- */
.page-body.has-toc { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.prose { min-width: 0; max-width: 52rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6em; padding-top: .4em; border-top: 1px solid var(--border); }
.prose > h2:first-child, .prose > .notice + h2, .prose > .meta + h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose img { border-radius: var(--radius); }
.prose .lead-in { font-size: 1.1rem; color: var(--muted); }
.prose-wide { max-width: none; }
.prose table { width: 100%; }

.toc-wrap { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; }
.toc { border-left: 3px solid var(--border); padding-left: 1rem; }
.toc-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: .28rem 0; color: var(--muted); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.toc a:hover { color: var(--brand-strong); }
.toc a.is-active, .toc a[aria-current="location"] { color: var(--brand-strong); font-weight: 700; }
@media (max-width: 960px) {
  .page-body.has-toc { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc-wrap { position: static; max-height: none; overflow: visible; }
  .toc { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; background: var(--surface-2); }
  .toc ol { columns: 2; column-gap: 1.5rem; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

.notice { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--info-bg); margin-bottom: 1rem; font-size: .95rem; }

.callout { border-left: 4px solid var(--brand); background: var(--info-bg); border-radius: 0 var(--radius) var(--radius) 0; padding: .8rem 1rem; margin: 1.25rem 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: 700; color: var(--text-strong); margin-bottom: .2rem; }
.callout-tip { border-left-color: var(--accent-text); background: var(--ok-bg); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout-danger { border-left-color: var(--danger); background: var(--danger-bg); }

.chip { display: inline-block; padding: .05rem .55rem; border-radius: 6px; font-size: .85rem; font-weight: 600; border: 1px solid transparent; color: #12212b; }
.chip-new { background: #e3f3e6; border-color: #9fd0a8; }
.chip-changed { background: #fff1cc; border-color: #e2c665; }
.chip-removed { background: #fbe3e1; border-color: #e3a29d; text-decoration: line-through; }
.chip-cache { background: #8bc34a; border-color: #8bc34a; }

.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap table { margin: 0; }
th, td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-alt); color: var(--text-strong); font-weight: 700; border-bottom: 2px solid var(--border-strong); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--text-strong); }
caption { text-align: left; padding: .5rem .85rem; color: var(--muted); font-size: .9rem; caption-side: bottom; }

.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare .tier-head { min-width: 8.5rem; }
.compare .col-featured { background: var(--brand-soft); }
.compare thead .col-featured { background: var(--brand-soft); }
.compare td .yes, .compare td .no { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: 50%; line-height: 1.4rem; text-align: center; font-weight: 700; font-size: .85rem; }
.compare .yes { background: var(--ok-bg); color: var(--ok); }
.compare .no { color: var(--muted); }

/* Two-column text + illustration block (features page) */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin-bottom: 1rem; }
.split.reverse > :first-child { order: 2; }
.split .ill-frame { background: var(--ill-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .75rem; }
.split > div > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1rem; } .split.reverse > :first-child { order: 0; } }
.feature-section h2 { border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
.feature-section + .feature-section { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.tick-list { list-style: none; padding: 0 !important; }
.tick-list li { position: relative; padding-left: 1.6rem; }
.tick-list li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .8rem; height: .45rem; border-left: 3px solid var(--accent-text); border-bottom: 3px solid var(--accent-text); transform: rotate(-45deg); }

/* Pricing cards */
.tier { display: flex; flex-direction: column; }
.tier.is-featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.tier h3 { margin-bottom: .15em; }
.tier .price { font-size: 2rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; margin: .6rem 0 .1rem; }
.tier .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.tier .price-note { color: var(--muted); font-size: .85rem; min-height: 2.6em; }
.tier ul { padding-left: 1.2rem; }
.tier .btn { margin-top: auto; }
.example-flag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); border: 1px dashed var(--warn); border-radius: 6px; padding: .1rem .5rem; margin-top: .25rem; }

/* FAQ */
.faq-tools { display: flex; gap: .6rem; margin-bottom: 1rem; }
.faq-tools .btn { padding: .4rem .85rem; font-size: .85rem; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: .6rem; }
.faq-list summary {
  cursor: pointer; padding: .85rem 2.6rem .85rem 1rem; font-weight: 600; color: var(--text-strong); list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq-list details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { background: var(--bg-alt); border-radius: var(--radius); }
.faq-list details[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.faq-a { padding: .85rem 1rem 1rem; }
.faq-a > :last-child { margin-bottom: 0; }

.prompt-list { list-style: none; padding: 0 !important; counter-reset: p; }
.prompt-list li { counter-increment: p; position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem .75rem 3rem; margin-bottom: .6rem; }
.prompt-list li::before { content: counter(p); position: absolute; left: .9rem; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.prompt-list q { quotes: none; font-weight: 600; color: var(--text-strong); }
.prompt-list q::before, .prompt-list q::after { content: none; }
.prompt-list span { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }

.link-list { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.link-list li { margin-bottom: .4rem; }

.kv { display: grid; grid-template-columns: 12rem 1fr; gap: .4rem 1.25rem; margin: 0 0 1.25rem; }
.kv dt { font-weight: 600; color: var(--text-strong); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .7rem; } }

.changelog-entry { border-left: 3px solid var(--brand); padding-left: 1.25rem; margin-bottom: 2rem; }
.changelog-entry h2 { border: 0; margin-top: 0; padding-top: 0; font-size: 1.5rem; }

/* ---------- 8. Forms and messages (also used by account / trial / admin pages) ---------- */
label { font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; max-width: 32rem; padding: .6rem .75rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit;
}
textarea { max-width: 42rem; min-height: 6rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); vertical-align: -.15em; }
button, input[type="submit"] {
  font: inherit; font-weight: 600; padding: .6rem 1.15rem; border-radius: 9px; border: 2px solid transparent; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--btn-bg-hover); }
button.btn-ghost, button.secondary { background: transparent; color: var(--brand-strong); border-color: var(--border-strong); }
.form-row, .field { margin-bottom: 1rem; }
.field-validation-error, .text-danger, .error, .validation-summary-errors { color: var(--danger); }
.alert { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--info-bg); margin: 0 0 1rem; }
.alert-success, .success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.alert-danger, .alert-error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.alert-warning, .alert-warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.text-muted { color: var(--muted); }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin-top: .9rem; font-size: .9rem; max-width: 26rem; }
.brand-footer, .brand-footer:hover { color: #ffffff; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: #ffffff; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .93rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-legal p { margin: 0 0 .4rem; }
.footer-small { font-size: .78rem; opacity: .85; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 10. Motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .site-footer, .toc-wrap, .cta-band, .skip-link, .faq-tools { display: none !important; }
  body { background: #fff; color: #000; }
  .page-body.has-toc { display: block; }
  .faq-list details > * { display: block; }
  a { color: inherit; }
}

/* The Ladder rung of the company hero (the layout of the first LinkedIn post): fixed dark colours, the coil lights up when both contacts are closed. */
.rung { display: block; width: 100%; height: auto; max-width: 34rem; margin-inline: auto; filter: drop-shadow(0 12px 26px rgba(28, 25, 23, .25)); }
.rung text { font-family: var(--font-mono, ui-monospace, monospace); }
.rung .rung-panel { fill: #1c1917; stroke: #3a3532; stroke-width: 2; }
.rung .rung-rail, .rung .rung-wire, .rung .rung-contact { fill: none; stroke: #7a726a; stroke-width: 3; stroke-linecap: round; }
.rung .rung-rail { stroke-width: 4; }
.rung .rung-coil { fill: none; stroke: #ffc400; stroke-width: 4; stroke-linecap: round; }
.rung .rung-label { fill: #d6d0c8; font-size: 13px; }
.rung .rung-label-on { fill: #ffc400; }
.rung .rung-addr { fill: #7a726a; font-size: 11px; }
.rung .rung-foot { fill: #f5f1ea; font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .rung .rung-coil { animation: rung-coil 5s ease-in-out infinite; }
  .rung .rung-label-on { animation: rung-coil-text 5s ease-in-out infinite; }
  @keyframes rung-coil { 0%, 35% { stroke: #7a726a; } 50%, 90% { stroke: #ffc400; } 100% { stroke: #7a726a; } }
  @keyframes rung-coil-text { 0%, 35% { fill: #7a726a; } 50%, 90% { fill: #ffc400; } 100% { fill: #7a726a; } }
}

.series-img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-lg, 12px); }
.card[id^="post-"] { margin-bottom: 1.5rem; }

/* The owner's pages of the company site (/admin/series): a plain bar of links next to the logo. */
.iv-admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.iv-admin-bar .brand-logo { height: 2.1rem; width: auto; }
.iv-admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; }
.iv-admin-nav a { text-decoration: none; font-weight: 600; }
.iv-admin-nav a:hover { text-decoration: underline; }
.page-plain table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; }
.page-plain th, .page-plain td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.page-plain textarea, .page-plain input[type="text"], .page-plain input:not([type]), .page-plain input[type="date"], .page-plain input[type="number"], .page-plain select { font: inherit; padding: .4rem .5rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); max-width: 100%; }
.page-plain textarea { width: 100%; }
.preview-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--border-strong); margin: 0 0 .5rem; }
