/* ==========================================================================
   arletop.com — base design system
   Mineral paper, ink type, one conifer accent, flat surfaces (hairlines, no shadows or gradients).
   Zilla Slab (headlines), Public Sans (text), JetBrains Mono (code only); the display/text faces
   are declared in arle.css so the two files stay independent.
   One stylesheet for every page. Page-specific extras live in /assets/css/pages/<slug>.css.

   Sections
   1  Fonts            7  Page head (inner pages)   13 Table
   2  Tokens           8  Prose / article           14 FAQ
   3  Base             9  Lists, chips, callouts    15 Band + contact
   4  Layout           10 Page head, small screens  16 Footer
   5  Header           11 Facts, stats, log         17 Utilities
   6  Buttons          12 Service rows, code, steps 18 Related links
                                                    19 Contrast, forced colors, print
   ========================================================================== */

/* 1 Fonts ----------------------------------------------------------------- */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Fallback"; size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%;
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("LiberationMono"), local("Cousine"); }

/* 2 Tokens ---------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --mist: #f3f5f9;         /* alternate sections, quiet fills (solid, no gradient) */
  --mist-2: #e8ecf3;
  --line: #dfe4ec;
  --line-strong: #c3cbd9;

  --ink: #090c24;          /* headings */
  --text: #2c3552;         /* body    */
  --muted: #56617f;        /* captions, meta */

  --accent: #b4341b;       /* links, primary action: 6.0:1 on white */
  --accent-deep: #922a15;  /* hover */
  --accent-ink: #6e1f10;   /* pressed, text on the pale wash */
  --accent-soft: #f6dfd7;
  --accent-wash: #fbf1ec;
  --azure: #d97757;
  --sky: #f3b8a4;

  --navy: #0b1538;         /* code window */
  --navy-2: #14214d;

  --red: #c21f31;      --red-bg: #fdebed;
  --amber: #934700;    --amber-bg: #fff1d6;
  --green: #0b6a49;    --green-bg: #e3f5ec;

  --font-display: "Zilla Slab", "Zilla Fallback", Georgia, serif;
  --font-text: "Public Sans", "Public Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Fallback", ui-monospace, monospace;

  --radius-s: 4px;
  --radius: 6px;
  --radius-l: 8px;
  --radius-xl: 10px;

  --shadow-sheet: 0 1px 0 rgba(10, 17, 40, .04);
  --shadow-pop: 0 1px 2px rgba(10, 17, 40, .08);
  --shadow-cta: none;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --wrap: 1296px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --z-raise: 1;
  --z-header: 50;
  --z-skip: 100;
}

/* 3 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
  accent-color: var(--accent);
  scrollbar-color: var(--line-strong) transparent;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.25rem); letter-spacing: -.03em; font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.3rem + 2.1vw, 3.25rem); letter-spacing: -.03em; font-weight: 750; line-height: 1.04; }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); line-height: 1.15; }
h4 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(180, 52, 27, .38); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
li { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #f3ddd3; color: var(--ink); }
summary { -webkit-tap-highlight-color: transparent; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent); }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600; transition: top .15s;
}
.skip-link:focus, .skip-link:hover { top: 1rem; color: #fff; }

.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; }
.i--s { width: 1em; height: 1em; }

/* Reduced motion: no travel, no entrances. Colour and opacity feedback stays so state changes remain visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-property: color, background-color, border-color, text-decoration-color, opacity, box-shadow !important; }
}

/* 4 Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem); }
.section--tint { background: var(--mist); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section__head { max-width: 48rem; display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.section__head p { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .split--center { align-items: center; }
}
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* 5 Header ---------------------------------------------------------------- */
/* Opaque by default (no-JS safe); site.js marks .is-top so the header turns transparent over the ribbon. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1.1rem + .55vw, 1.65rem); letter-spacing: -.025em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: none; align-items: center; gap: .15rem; }
.site-nav a {
  position: relative; padding: .5rem .85rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: var(--accent); background: var(--mist); }
.site-nav a:active { background: var(--mist-2); }
.site-nav a:focus-visible { outline-offset: 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--accent); }
.site-header .site-header__cta { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .9); cursor: pointer; color: var(--ink); touch-action: manipulation;
}
.nav-toggle:hover { border-color: var(--line-strong); background: #fff; }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.nav-toggle .i { grid-area: 1 / 1; width: 1.4rem; height: 1.4rem; }
.nav-toggle .i--close { display: none; }
.nav-toggle[aria-expanded="true"] .i--open { display: none; }
.nav-toggle[aria-expanded="true"] .i--close { display: block; }
.mobile-menu { display: grid; gap: .25rem; padding: .5rem var(--gutter) 1.5rem; border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: .75rem .25rem; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1.125rem; border-bottom: 1px solid var(--line); transition: color .15s, background-color .15s; }
.mobile-menu a:not(.btn):active { background: var(--accent-wash); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu a[aria-current="page"]::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.mobile-menu .btn { margin-top: 1rem; }
@media (min-width: 980px) {
  .site-nav { display: flex; }
  .site-header .site-header__cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
  .brand { margin-right: 1.75rem; }
  .brand img { width: 44px; height: 44px; }
  .site-nav { margin-right: auto; }
}

/* Phone/tablet header stays in its own row; opening navigation must not reflow content. */
@media (max-width: 979px) {
  :root { --header-h: calc(77px + env(safe-area-inset-top, 0px)); }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--paper); border-bottom-color: var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header__bar { min-height: 76px; gap: .9rem; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .site-header .brand { min-width: 0; margin-right: auto; gap: .7rem; font-size: 1.35rem; white-space: nowrap; }
  .site-header .brand img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
  .nav-toggle { flex: none; width: 46px; height: 46px; }
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: .5rem var(--gutter) max(1rem, env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--header-h));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -20px rgba(9, 12, 36, .3);
  }
}

/* 6 Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 8px;
  font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease-out); }
.btn:hover .i--go, .btn:focus-visible .i--go { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--primary:active { background: var(--accent-ink); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--secondary:active { background: var(--mist); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--mist); color: var(--ink); }
.btn--lg { min-height: 58px; padding: 1rem 1.7rem; font-size: 1.125rem; border-radius: 8px; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: 1rem; border-radius: 8px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow .i { transition: transform .2s var(--ease-out); }
.link-arrow:hover .i, .link-arrow:focus-visible .i { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem 1.5rem; align-items: center; }

/* 7 Page head (inner pages) ---------------------------------------------- */
/* Flat page head: opaque header above, hairline below. */
.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 13em; }
.page-head .lead { margin-top: 1.25rem; }
.page-head .cta-row { margin-top: 2rem; }
.page-head__meta { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.lead { font-size: clamp(1.125rem, 1.05rem + .45vw, 1.4rem); line-height: 1.5; color: var(--text); max-width: 42rem; }

/* 8 Prose / article ------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose > * + *, .prose > section > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 3.5rem; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.prose h3 { margin-top: 2.25rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.prose h2 + *, .prose h3 + * { margin-top: .9rem; }
.prose > :first-child, .prose > :first-child > h2:first-child { margin-top: 0; }
.prose :where(ul, ol):not([class]) { padding-left: 1.4rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 500; }
.prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 1px solid var(--accent); color: var(--ink); font-size: 1.15rem; }
.prose code { background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
.prose pre { background: var(--navy); color: #D9E6E0; border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--radius); }
.founder-photo { display: flex; align-items: center; gap: 1rem; margin-inline: 0; }
.founder-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.founder-photo figcaption { color: var(--muted); }
.short-answer { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.short-answer p { font-size: clamp(1.125rem, 1.08rem + .25vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.article { display: grid; gap: 3rem; }
.article > * { min-width: 0; }
@media (min-width: 1000px) { .article { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; } }
.toc { align-self: start; font-size: .95rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 2rem); } }
.toc strong { display: block; margin-bottom: .75rem; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.toc ol { list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc a:focus-visible { outline-offset: 0; }
@media (max-width: 999px) {
  .toc { padding: 1.25rem 1.25rem 1rem; background: var(--mist); border-radius: var(--radius-l); }
  .toc ol { border-left: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0 1.5rem; }
  .toc a { padding: .45rem 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); color: var(--text); }
}

/* 9 Lists, chips, callouts ----------------------------------------------- */
.checks, .crosses { list-style: none; display: grid; gap: .75rem; }
.checks li, .crosses li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; }
.checks .i, .crosses .i { margin-top: .2em; width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }
.checks .i { color: var(--accent); }
.crosses .i { color: var(--red); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--accent-soft); color: var(--accent-ink); }
.chip--red { background: var(--red-bg); color: var(--red); }
.chip--amber { background: var(--amber-bg); color: var(--amber); }
.chip--green { background: var(--green-bg); color: var(--green); }
.chip--plain { background: var(--mist); color: var(--muted); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: var(--accent-wash); color: var(--ink); }
.callout:not(:has(> .i)) { display: block; }
.callout .i { margin-top: .15em; color: var(--accent); }
.note { font-size: .9375rem; color: var(--muted); }

/* 10 Page head on small screens (the landing hero lives in arle.css) ------- */
@media (max-width: 599px) {
  .page-head .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .page-head .cta-row .btn { width: 100%; padding-inline: 1rem; min-height: 52px; font-size: 1.0625rem; }
  .page-head h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.1; overflow-wrap: anywhere; }
  .page-head .lead { margin-top: 1rem; }
  .page-head__meta { margin-top: 1.25rem; }
}

/* 11 Facts, stats, log ---------------------------------------------------- */
.facts { list-style: none; display: grid; border-block: 1px solid var(--line); }
.facts li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .3rem; }
.facts li:last-child { border-bottom: 0; }
.facts strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; font-weight: 700; }
.facts span { color: var(--muted); font-size: .975rem; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

.stats { list-style: none; display: grid; }
.stats li { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.25rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.6rem + 1.5vw, 2.9rem); line-height: 1; letter-spacing: -.035em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats .num small { font-size: 1.125rem; letter-spacing: -.01em; margin-left: .15em; }
.stats p { color: var(--text); }
@media (max-width: 480px) { .stats li { grid-template-columns: 1fr; gap: .35rem; } }
.stats a { color: var(--muted); font-size: .9rem; }

.log { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); }
.log__row { display: grid; gap: 1rem; padding: 1.5rem; border-top: 1px solid var(--line); }
.log__row:first-child { border-top: 0; }
.log__what { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.log__says { display: grid; gap: .85rem; }
.say { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; align-items: baseline; }
.say .chip { justify-self: start; }
.say--cloud p { color: var(--muted); }
.say--ours p { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) {
  .log__row { grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; padding: 1.85rem 2.1rem; }
}
@media (max-width: 480px) { .say { grid-template-columns: 1fr; gap: .35rem; } }

/* 12 Service rows, code, steps ------------------------------------------- */
.service { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 4rem); padding-block: clamp(2.75rem, 2rem + 3.5vw, 5.5rem); border-top: 1px solid var(--line); align-items: center; }
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service--flip > .service__body { order: 2; }
}
.service__body { display: grid; gap: 1.25rem; align-content: start; }
.service__body > p { max-width: 36rem; }
.service__body h3 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 750; }
.service__visual { display: grid; gap: 1rem; min-width: 0; }
.service figure { margin: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); }
.service figcaption { padding: .75rem 1rem; font-size: .875rem; color: var(--muted); }

.code-window { background: var(--navy); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-sheet); }
.code-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--navy-2); color: #a3b6e0; font-size: .85rem; }
.code-window__bar .chip { background: rgba(121, 199, 178, .16); color: #9FD5C6; }
.code-window pre { margin: 0; padding: 1.25rem 1.25rem 1.4rem; overflow-x: auto; color: #D9E6E0; font-size: .875rem; line-height: 1.7; tab-size: 2; scrollbar-color: #3a4f86 transparent; }
.code-window ::selection { background: #2a4f9f; color: #fff; }
.code-window .t-s { color: #a6e3cf; }
.code-window .t-k { color: #8FD1C0; }

.chat { display: grid; gap: .75rem; padding: 1.35rem; background: var(--accent-wash); border-radius: var(--radius-l); }
.chat__msg { max-width: 92%; padding: .8rem 1.05rem; border-radius: 14px; font-size: .975rem; line-height: 1.5; }
.chat__msg b { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .15rem; color: var(--muted); }
.chat__msg--user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat__msg--cloud { background: var(--paper); color: var(--muted); border-bottom-left-radius: 4px; }
.chat__msg--ours { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(180, 52, 27, .45); }
.chat__msg--ours b { color: var(--accent); }
.chat__msg--user b { color: #DCE7E2; }

.scope { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); }
.scope__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); align-items: center; }
.scope__row:first-child { border-top: 0; }
.scope__row strong { font-weight: 600; }
.scope__row span { color: var(--muted); font-size: .925rem; grid-column: 1; }
.scope__row .chip { grid-column: 2; grid-row: 1 / span 2; }
.scope__head { padding: .9rem 1.25rem; background: var(--mist); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; gap: .6rem; padding: 0 0 2.25rem 3.6rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; z-index: var(--z-raise); }
.steps li::after { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: .4rem; width: 1px; background: var(--line-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps p { max-width: 34rem; }
.steps h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
@media (min-width: 900px) {
  .wrap > .steps, .split .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  :is(.wrap, .split) > .steps li { padding: 4rem 0 0; }
  :is(.wrap, .split) > .steps li::before { top: 0; }
  :is(.wrap, .split) > .steps li::after { left: 2.5rem; right: -2.5rem; top: 1.25rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-strong)); }
}

.limits { display: grid; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); }
.limits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.limits > div { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; box-shadow: -1px -1px 0 var(--line); }
.limits > div + div { background: var(--mist); }
.limits h3 { display: flex; align-items: center; gap: .6rem; }
.prose .limits > div { padding: 1.5rem; gap: .75rem; }
.prose .limits > div > * { margin: 0; }
.prose .limits h3 { font-size: 1.2rem; }
.prose .steps { margin-top: 1.75rem; }
.prose .steps li > * { margin: 0; }
.prose .steps + .cta-row { margin-top: 2rem; }

/* 13 Table ---------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l);
  /* Scroll shadows: the paper-coloured gradients cover the dark ones at either scroll
     limit, so a table that fits shows none and a side that scrolls shows the cue. */
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--paper) 40%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, var(--paper) 40%, rgba(255, 255, 255, 0)),
    radial-gradient(farthest-side at 0 50%, rgba(17, 17, 16, .2), rgba(17, 17, 16, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(17, 17, 16, .2), rgba(17, 17, 16, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 2.5rem 100%, 2.5rem 100%, .7rem 100%, .7rem 100%;
  background-attachment: local, local, scroll, scroll;
}
table.data { width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
table.data:has(tr > :nth-child(3)) { min-width: 38rem; }
table.data caption { padding: .9rem 1.25rem; text-align: left; font-size: .9rem; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
table.data th, table.data td { padding: 1.05rem 1.3rem; vertical-align: top; border-top: 1px solid var(--line); }
table.data thead th { border-top: 0; background: var(--mist); font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
table.data tbody th { font-weight: 600; color: var(--ink); width: 24%; text-align: left; }
table.data td { color: var(--muted); }
table.data td strong { color: var(--ink); }
.table-wrap:focus-visible { outline-offset: 2px; }
table.data .ours { background: var(--accent-wash); color: var(--ink); font-weight: 500; }
table.data thead .ours { background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .table-wrap--stack { border: 0; background: none; overflow: visible; }
  .table-wrap--stack table.data, .table-wrap--stack table.data:has(tr > :nth-child(3)) { min-width: 0; }
  .table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap--stack tbody, .table-wrap--stack tr, .table-wrap--stack th, .table-wrap--stack td { display: block; width: 100%; }
  .table-wrap--stack tr { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--paper); }
  .table-wrap--stack table.data tbody th { width: 100%; border-top: 0; background: var(--mist); }
  .table-wrap--stack td { border-top: 1px solid var(--line); }
  .table-wrap--stack td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
  .table-wrap--stack td.ours::before { color: var(--accent); }
}

/* 14 FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); font-weight: 650; letter-spacing: -.015em; line-height: 1.3; text-wrap: pretty; transition: color .15s; }
.faq summary:hover h3, .faq details[open] summary h3 { color: var(--accent); }
.faq summary:focus-visible { outline-offset: 2px; border-radius: var(--radius-s); }
.faq summary .i { margin: 0; flex: none; width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 50%; background: var(--accent-wash); color: var(--accent); transition: transform .3s var(--ease-out), background-color .2s; }
.faq summary:hover .i { background: var(--accent-soft); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 3rem 1.5rem 0; max-width: 42rem; color: var(--text); }
.faq .answer > * + * { margin-top: .75rem; }
.prose .faq { margin-top: 1.5rem; }
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; } .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; align-self: start; } }

/* 15 Band + contact ------------------------------------------------------- */
/* Closing band: solid ink. */
.band { position: relative; color: #CBD8D3; background: var(--ink); }
.band .wrap { position: relative; }
.band h2 { color: #fff; max-width: 13.3em; }
.band p { color: #DCE7E2; font-size: 1.1875rem; max-width: 36rem; }
.band__inner { display: grid; gap: 1.75rem; padding-block: clamp(3.75rem, 2.5rem + 4.5vw, 6.5rem); justify-items: start; }

.contact { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact__info { display: grid; gap: 1.75rem; }

/* contact on the blue band */
.band .contact__info { color: #DCE7E2; }
.band .contact__info h3 { color: #fff; }
.band .checks .i { color: #9FD5C6; }
.band .checks li { color: #DCE7E2; }
.band p a, .band li a { color: #fff; text-decoration-thickness: 1px; }
.band p a:hover, .band li a:hover { color: #FFFFFF; }
.band :focus-visible { outline-color: #fff; }

/* 16 Footer --------------------------------------------------------------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-top: clamp(3rem, 2.5rem + 3vw, 5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.site-footer .brand { font-size: 1.35rem; }
.site-footer .brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-footer p { color: var(--muted); max-width: 22rem; margin-top: 1rem; }
.site-footer__title { font-family: var(--font-display); color: var(--ink); font-size: 1rem; letter-spacing: -.01em; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; font-size: .975rem; color: var(--text); }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer__contact { margin-top: 1.5rem; }
.byline__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .5rem; }

/* 17 Utilities ------------------------------------------------------------ */
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; }

/* facts inside a split column: stack as a ledger instead of four squeezed columns */
@media (min-width: 760px) {
  .split .facts, .service .facts { grid-template-columns: 1fr; }
  .split .facts li, .service .facts li { border-left: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
  .split .facts li:last-child, .service .facts li:last-child { border-bottom: 0; }
}

.grid > div > * + *, .grid > article > * + * { margin-top: .6rem; }
.grid > div > h3 + p, .grid > article > h3 + p { margin-top: .75rem; }

/* ROI calculator (kasutusjuhud, ai-automatiseerimine) */
.calculator { margin-top: 1.25rem; background: var(--mist); border-radius: var(--radius-l); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); display: grid; gap: 1.5rem; }
.calculator-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .calculator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calculator-field { display: grid; gap: .4rem; align-content: start; }
.calculator-field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.calculator-field input { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); font-size: 1rem; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.calculator-field input:hover { border-color: #8faee6; }
.calculator-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180, 52, 27, .16); }
.calculator-result { display: grid; gap: 1rem; }
@media (min-width: 700px) { .calculator-result { grid-template-columns: 1fr 1fr; } }
.calculator-result > div { background: var(--paper); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; gap: .25rem; }
.calculator-result span { color: var(--muted); font-size: .9rem; }
.calculator-result output { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calculator-note { font-size: .9rem; color: var(--muted); }

/* 18 Related links -------------------------------------------------------- */
/* End-of-article list: three internal pages, title + one line, hairline rows. */
.related h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.related__list { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.related__list li { border-bottom: 1px solid var(--line); }
.faq-layout.related .related__list { margin-top: 0; }
.related__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; row-gap: .2rem; align-items: center;
  padding: 1.15rem .5rem 1.15rem 0; color: var(--text); text-decoration: none; font-weight: 400;
}
.related__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); transition: color .15s; }
.related__desc { grid-column: 1; color: var(--muted); font-size: .975rem; }
.related__list .i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); transition: transform .2s var(--ease-out); }
.related__list a:hover .related__title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.related__list a:hover .i, .related__list a:focus-visible .i { transform: translateX(3px); }
.related__list a:focus-visible { outline-offset: 0; }

/* 19 Contrast, forced colors, print -------------------------------------- */
@media (prefers-contrast: more) {
  :root { --text: #1d2643; --muted: #353f5c; --line: #a3b4d2; --line-strong: #7088b0; }
  a { text-decoration-color: currentColor; }
  .site-nav a, .toc a, .breadcrumbs a, .related__list a { text-decoration: underline; }
}
@media (forced-colors: active) {
  .btn, .chip, .nav-toggle, .callout, .demo, .demo__card, .demo__prompt { border: 1px solid CanvasText; }
  .site-nav a[aria-current="page"]::after, .mobile-menu a[aria-current="page"]::after { background: Highlight; }
  .steps li::before { border: 1px solid CanvasText; }
  .hero__ribbon, .page-head::before, .band::before { display: none; }
  .i { stroke: currentColor; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; line-height: 1.5; color: #000; background: #fff; }
  .skip-link, .site-header, .mobile-menu, .toc, .site-footer__grid nav, .cta-row, .band .btn, .faq summary .i, .related__list .i, .hero__ribbon, .demo__send { display: none !important; }
  .hero, .page-head { margin-top: 0; padding-top: 1rem; }
  .page-head::before, .band::before { display: none; }
  .page-head, .hero, .section--tint, .band, .site-footer, .callout, .short-answer, .demo { background: none !important; box-shadow: none !important; }
  .band, .band h2, .band p, .band a { color: #000 !important; }
  .section, .section--tight, .band__inner { padding-block: 1.25rem; }
  h1, h2, h3, h4, strong { color: #000; }
  h2, h3, summary { break-after: avoid; }
  tr, li, figure, .faq details, .limits > div, .related__list li, .code-window, .demo { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #333; overflow-wrap: anywhere; }
  .faq details::details-content { content-visibility: visible; display: block; }
  .code-window, .prose pre { box-shadow: none; }
  .code-window pre, .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .table-wrap { overflow: visible; border-color: #999; }
  table.data:has(tr > :nth-child(3)) { min-width: 0; }
  .article { display: block; }
}

/* NIS2 applicability self-check */
.nis2-check { display: grid; gap: 1rem; margin: 1.5rem 0; }
.nis2-check fieldset { margin: 0; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.nis2-check legend { padding: 0 .35rem; font-weight: 650; color: var(--ink); }
.nis2-check__hint { margin: .25rem 0 .5rem; color: var(--muted); font-size: .9375rem; }
.nis2-check label { display: flex; align-items: center; gap: .55rem; min-height: 2rem; margin: .35rem 0; cursor: pointer; }
.nis2-check input[type="radio"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); }
.nis2-check__result { margin-top: 1.25rem; padding: 1rem 1.15rem; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--accent-wash); }
.nis2-check__result[hidden] { display: none; }
.nis2-check__result > * + * { margin-top: .65rem; }
.nis2-check__note { color: var(--muted); font-size: .9375rem; }
.nis2-check__actions { font-weight: 550; }
