/* Website-only layout (DESIGN.md §10). Colours, type and components come
   from tokens.css and components.css, unchanged; the theme follows the
   visitor's OS setting. */
body { background: var(--bg-page); color: var(--text); margin: 0; }
/* Menu links to sections (Pricing) glide there, unless the visitor asks
   for less motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* The website's headings use the body family (Figtree), bold and tight;
   the panel keeps DESIGN.md's display face. */
:root { --font-display: "Figtree", system-ui, sans-serif; }
h1, h2, h3, .display, .section-title, .card__title, .page-title { font-family: var(--font-display); letter-spacing: -0.02em; }
.display { font-weight: 700; }
[hidden] { display: none !important; }
a { color: var(--link); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 0 var(--space-10); height: 80px; max-width: 1600px; margin: 0 auto; }
.site-header .brand { font-size: 24px; text-decoration: none; }
.site-header .brand__logo { height: 32px; }
.site-nav { display: flex; gap: var(--space-8); }
.site-nav a { color: var(--text); font-weight: var(--weight-semibold); font-size: 16px; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--link); }
.site-actions { display: flex; align-items: center; gap: var(--space-3); }
.site-actions form { margin: 0; }
.site-actions a[aria-current="page"] { color: var(--link); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: var(--space-12) var(--space-10) 0; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 6vw, var(--text-5xl)); max-width: 1000px; margin: 0; }
.hero p { font-size: var(--text-xl); color: var(--text-muted); max-width: 760px; margin: 0; }
.showcase { margin: var(--space-12) auto 0; max-width: 1280px; background: var(--surface-2); border-radius: var(--radius-2xl); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.showcase .card { border: 0; border-radius: var(--radius-lg); padding: 22px; }
.showcase__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.showcase__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.showcase__head .section-title { margin: 0; }
.benefits { max-width: 1280px; margin: 0 auto; padding: var(--space-12) var(--space-6) var(--space-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-8); }
.pricing { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6) var(--space-12); scroll-margin-top: var(--space-6); }
.pricing { border-top: 1px solid var(--border); padding-top: var(--space-12); }
.pricing__title { font-size: var(--text-3xl); margin: 0 0 var(--space-3); text-align: center; }
.pricing__lead { color: var(--text-muted); max-width: 760px; margin: 0 auto; font-size: 16px; text-align: center; }
.plans--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan__list { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.plan--featured { border-color: var(--primary); box-shadow: var(--shadow-pop); }
.pricing__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.pricing__notes .card { scroll-margin-top: var(--space-6); }
.pricing__notes .card__title { margin: 0 0 var(--space-2); }
.pricing__notes p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.benefit { display: flex; gap: var(--space-4); align-items: flex-start; }
/* Icons without tiles (owner, 2026-10-07, tried on the demo first): each
   in its card's colour, at the top beside its heading. */
.benefit, .extra { --tone: var(--info-fg); }
.benefit__icon { flex-shrink: 0; width: 56px; color: var(--tone); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; gap: 5px; }
.benefit__icon .icon { width: 38px; height: 38px; }
.benefit__cap { font-size: 9px; line-height: 1; font-weight: var(--weight-semibold); letter-spacing: 0; color: var(--tone); white-space: nowrap; }
.benefit__icon:has(.benefit__cap) .icon { width: 34px; height: 34px; }
.benefit__icon--large .icon { width: 44px; height: 44px; }
/* One colour per point, from the design tokens (purple and teal are mixes). */
.benefit:nth-child(2) { --tone: var(--success-fg); }
.benefit:nth-child(3) { --tone: var(--warning-fg); }
.benefit:nth-child(4) { --tone: color-mix(in srgb, var(--primary) 55%, var(--danger-fg)); }
.benefit:nth-child(5) { --tone: color-mix(in srgb, var(--success-fg) 50%, var(--info-fg)); }
.benefit:nth-child(6) { --tone: var(--danger-fg); }
.benefit h3 { margin: var(--space-1) 0 6px; font-size: 19px; }
.benefit p { margin: 0; color: var(--text-muted); font-size: 16px; }
.page-body { max-width: 1100px; margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-16); }
.prose { min-width: 0; max-width: 760px; line-height: 1.65; overflow-wrap: anywhere; }
.prose h1 { font-family: var(--font-display); font-size: var(--text-3xl); margin: 0 0 var(--space-6); }
.prose h2 { margin-top: var(--space-10); }
.prose pre { background: var(--surface-2); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; }
/* Inline code (commands, paths, settings, URLs) stands out from the text. */
.prose :not(pre) > code { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.08em 0.38em; white-space: break-spaces; overflow-wrap: anywhere; }
.prose a > code { color: var(--link); }
.prose h1 code, .prose h2 code, .prose h3 code { background: none; border: 0; padding: 0; }
.prose .table :not(pre) > code { overflow-wrap: normal; word-break: keep-all; }
.prose pre code { font-size: 0.86em; line-height: 1.55; }
.prose pre { border: 1px solid var(--border); }
.prose blockquote { margin: var(--space-4) 0; padding-left: var(--space-4); border-left: 3px solid var(--border); color: var(--text-muted); }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-10); }
.docs nav { font-size: var(--text-sm); }
.docs nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); margin-top: var(--space-8); }
.plans .card { display: flex; flex-direction: column; gap: var(--space-3); }
.plans .card > .btn { margin-top: auto; align-self: flex-start; }
.price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-bold); }
.price small { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); margin-left: 1px; }
.price + .price__vat { margin-top: calc(-1 * var(--space-2)); }
.placeholder { background: var(--warning-bg); color: var(--warning-fg); border-radius: var(--radius-sm); padding: 0 6px; font-weight: var(--weight-semibold); }
.preview-banner { background: var(--warning-bg); color: var(--warning-fg); text-align: center; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-12); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: var(--space-8) var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; font-size: var(--text-sm); color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.table-wrap { overflow-x: auto; margin: var(--space-4) 0; }
.table code { white-space: nowrap; }
/* Words in table cells wrap at spaces, never inside a word. */
.prose .table td, .prose .table th { overflow-wrap: normal; word-break: normal; min-width: 8ch; vertical-align: top; }
/* Phones: each row becomes a card; every cell shows its column header. */
@media (max-width: 700px) {
  .prose .table, .prose .table tbody, .prose .table tr, .prose .table td { display: block; width: 100%; }
  .prose .table { border: 0; background: transparent; overflow: visible; }
  .prose .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose .table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
  .prose .table td { padding: var(--space-2) 0; border-bottom: 1px solid var(--surface-2); min-width: 0; overflow-wrap: break-word; }
  .prose .table :not(pre) > code { overflow-wrap: anywhere; }
  .prose .table tr td:last-child { border-bottom: 0; }
  .prose .table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-subtle); margin-bottom: 2px; }
  .prose .table tbody tr:hover td { background: transparent; }
}
@media (max-width: 1100px) {
  .site-header { padding: var(--space-3) var(--space-4); height: auto; flex-wrap: wrap; row-gap: var(--space-2); }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
  .site-nav a { font-size: 15px; white-space: nowrap; }
  .hero { padding: var(--space-10) var(--space-4) 0; }
  .showcase { margin: var(--space-10) var(--space-4) 0; padding: var(--space-5); }
  .showcase__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-10) var(--space-4); }
  .plans--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing__notes { grid-template-columns: 1fr; }
  .pricing { padding: 0 var(--space-4) var(--space-10); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .page-body { padding: var(--space-8) var(--space-4) var(--space-12); }
}
@media (max-width: 480px) {
  .site-actions .btn--primary { display: none; }
  .site-header .brand { font-size: 20px; }
  .site-header .brand__logo { height: 28px; }
}
@media (max-width: 600px) {
  .benefits, .plans--four { grid-template-columns: 1fr; }
  .showcase__cards { grid-template-columns: 1fr; }
  .site-actions { gap: var(--space-1); }
  .site-actions .btn { padding-inline: var(--space-3); }
}
.showcase .card p, .plan p { margin: 0; }
.plan { gap: var(--space-2); }
.plan .plan__list { margin: var(--space-3) 0; }

/* ---------- Security page ---------- */
.sec-hero { max-width: 820px; }
.sec-hero p { font-size: 18px; color: var(--text-muted); }
.diagram { margin: var(--space-6) 0 var(--space-10); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.diagram figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
/* A wide diagram has a portrait twin, drawn to be read on a phone: it shows
 * whenever its figure is narrower than the wide one needs (phones, narrow
 * columns on tablets), rather than shrinking or scrolling sideways. */
.diagram { container-type: inline-size; }
.diagram svg.dg-phone { display: none; }
@container (max-width: 639px) {
  .diagram svg.dg-wide { display: none; }
  .diagram svg.dg-phone { display: block; min-width: 0; max-width: 400px; margin: 0 auto; }
}
.shot { margin: var(--space-5) 0 var(--space-8); }
.shot img { margin: 0; }
.shot--top img { aspect-ratio: 1280 / 860; object-fit: cover; object-position: top; } /* tall screenshots: the top, where the story is */
.shot figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.dg-zone { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.dg-box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.dg-key { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.dg-box--out { fill: var(--surface); stroke: var(--text-subtle); stroke-width: 1.5; stroke-dasharray: 6 4; }
.dg-title { fill: var(--text); font: 600 15px var(--font-ui); }
.dg-text { fill: var(--text-muted); font: 400 12.5px var(--font-ui); }
.dg-zone-label { fill: var(--text-subtle); font: 600 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.dg-line { stroke: var(--text-muted); stroke-width: 1.8; fill: none; }
.dg-line--out { stroke: var(--text-subtle); stroke-width: 1.6; stroke-dasharray: 6 4; fill: none; }
.dg-line--no { stroke: var(--danger-fg); stroke-width: 1.8; fill: none; }
.dg-arrow { fill: var(--text-muted); }
.dg-label { fill: var(--text); font: 600 12px var(--font-ui); }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin: var(--space-5) 0 var(--space-10); }
.sec-grid .card h3 { margin: 0 0 var(--space-2); font-size: 18px; }
.sec-grid .card p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 800px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- Docs ---------- */
.docs nav .docs__group { margin-top: var(--space-4); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.docs nav .docs__group:first-child { margin-top: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: var(--space-4) 0 var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.06)); }
.docs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; max-width: 1100px; }
.docs-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: var(--space-2); }
.docs-card:hover { border-color: var(--primary); }
.docs-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.docs-card--main { grid-column: 1 / -1; }
.docs-card__group { font-size: var(--text-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--weight-semibold); }
@media (max-width: 800px) { .docs-cards { grid-template-columns: 1fr; } }

/* ---------- Plan comparison (front page) ---------- */
.compare-wrap { position: relative; margin-top: var(--space-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow-x: auto; box-shadow: var(--shadow-card); }
.compare { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.compare thead th:first-child { width: 30%; }
.compare th, .compare td { padding: var(--space-3) var(--space-4); text-align: center; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.compare tbody th[scope="row"] { text-align: left; font-weight: var(--weight-medium); color: var(--text); width: 32%; }
.compare thead th { vertical-align: top; padding: var(--space-5) var(--space-4); border-bottom: 1px solid var(--border); font-weight: var(--weight-regular, 400); }
.compare thead th > * { display: block; }
.compare thead .btn { display: inline-flex; margin-top: var(--space-3); }
.compare__corner { text-align: left !important; vertical-align: bottom !important; }
.compare__plan { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.compare__price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin-top: var(--space-2); color: var(--text); }
.compare__per { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; margin-left: 1px; }
.compare__badge--empty { visibility: hidden; }
.compare thead .compare__badge { white-space: nowrap; }
.compare__period { font-size: var(--text-xs); color: var(--text-muted); min-height: 2.6em; margin-top: 2px; line-height: 1.3; }
.compare__badge { justify-self: center; align-self: center; margin: 0 auto var(--space-1); padding: 2px 8px; width: max-content; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-size: 10px; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .06em; line-height: 1.6; }
.compare__featured { background: var(--surface-2); }
.compare__group th { text-align: left !important; background: var(--bg-page); font-family: var(--font-display); font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .05em; color: var(--text); padding-top: var(--space-5); border-top: 1px solid var(--border-strong); }
.compare tbody tr.compare__group:first-child th { border-top: 0; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare__yes { width: 20px; height: 20px; fill: none; stroke: var(--success-fg, var(--primary)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.compare__no { color: var(--text-subtle); }
/* Phones: the table scrolls sideways; the feature names stay in view. */
@media (max-width: 800px) {
  .compare tbody th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--surface-2); }
  .compare__group th { position: static; }
  .compare { min-width: 600px; font-size: 13px; }
  .compare th, .compare td { padding: var(--space-2) var(--space-3); }
  .compare tbody th[scope="row"], .compare thead th:first-child { width: 140px; min-width: 140px; }
  .compare__corner span { display: none !important; }
  .compare__badge { font-size: 9px; letter-spacing: .02em; padding: 1px 6px; }
}

/* ---------- Theme switch: System, Light, Dark as three icons ---------- */
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: transparent; }
.theme-switch__btn, .theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-subtle); cursor: pointer; }
.theme-switch__btn svg, .theme-switch button svg { width: 16px; height: 16px; }
.theme-switch__btn:hover, .theme-switch button:hover { color: var(--text); }
.theme-switch [aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.theme-switch form { margin: 0; display: contents; }

/* Customer tables on the licence site (an account's licences, a dashboard's
   databases): on a phone each row is a card, its first cell the title and the
   others labelled lines (data-label), rather than a table scrolling sideways. */
@media (max-width: 700px) {
  .table-wrap:has(> .table--phone-cards) { overflow: visible; }
  .table.table--phone-cards, .table.table--phone-cards tbody, .table.table--phone-cards tr { display: block; width: 100%; }
  .table.table--phone-cards { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .table.table--phone-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.table--phone-cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
  .table.table--phone-cards tr td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: var(--space-3); align-items: baseline; justify-items: start; padding: var(--space-2) 0; border-bottom: 1px solid var(--surface-2); text-align: start; overflow-wrap: anywhere; }
  .table.table--phone-cards td::before { content: attr(data-label); font-family: var(--font-ui); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-subtle); }
  .table.table--phone-cards tr td:first-child { display: block; font-size: var(--text-md); font-weight: var(--weight-semibold); }
  .table.table--phone-cards td:first-child::before { content: none; }
  .table.table--phone-cards tr td:last-child { border-bottom: 0; }
  .table.table--phone-cards td:empty { display: none; }
  .table.table--phone-cards tbody tr:hover td { background: transparent; }
}

/* Wide reference tables (six or more columns, e.g. the module catalogue):
   every row is a card at every width, its first cell the title and the
   other cells labelled lines, so a row is read whole without scrolling
   sideways; the page scrolls down through the rows. */
.prose .table-wrap:has(> .table--cards) { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.prose .table--cards, .prose .table--cards tbody, .prose .table--cards tr { display: block; width: 100%; }
.prose .table--cards { border: 0; background: transparent; overflow: visible; }
.prose .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prose .table--cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-5) var(--space-2); margin-bottom: var(--space-3); box-shadow: var(--shadow-card, none); }
.prose .table--cards td { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--surface-2); min-width: 0; overflow-wrap: break-word; }
.prose .table--cards td::before { content: attr(data-label); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-subtle); }
.prose .table--cards td:first-child { display: block; font-family: var(--font-display); font-size: var(--text-lg, 18px); font-weight: var(--weight-bold); color: var(--text); padding: var(--space-1) 0 var(--space-3); }
.prose .table--cards td:first-child::before { content: none; }
.prose .table--cards td:last-child { border-bottom: 0; }
.prose .table--cards td:empty { display: none; }
.prose .table--cards tbody tr:hover td { background: transparent; }
@media (max-width: 700px) {
  .prose .table--cards td { display: block; }
  .prose .table--cards td::before { display: block; font-size: var(--text-xs); margin-bottom: 2px; }
}

/* Product page: a framed hero screenshot, the four steps, alternating
   feature rows (text beside a screenshot or diagram), extras, where it runs. */
.prod-hero { padding-bottom: var(--space-8); }
.frame { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--text) 30%, transparent), var(--shadow-card, none); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame__bar em { margin-left: var(--space-3); font-style: normal; font-size: var(--text-xs); color: var(--text-subtle); }
.frame img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.frame img.crop { aspect-ratio: 1280 / 820; object-fit: cover; object-position: top; }
.prod-shot { max-width: 1120px; margin: 0 auto var(--space-12); }
.steps { max-width: 1120px; margin: 0 auto var(--space-16); padding: 0 var(--space-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); counter-reset: step; }
.step { position: relative; display: block; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.step:hover { border-color: var(--primary); transform: translateY(-2px); }
.step + .step::before { content: ""; position: absolute; left: calc(-1 * var(--space-4)); top: 50%; width: var(--space-4); border-top: 2px dashed var(--border-strong); }
.step__icon { --tone: var(--info-fg); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-lg); color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, var(--surface)); }
.step__icon svg { width: 24px; height: 24px; }
.step:nth-child(2) .step__icon { --tone: color-mix(in srgb, var(--success-fg) 50%, var(--info-fg)); }
.step:nth-child(3) .step__icon { --tone: var(--success-fg); }
.step:nth-child(4) .step__icon { --tone: color-mix(in srgb, var(--primary) 55%, var(--danger-fg)); }
.step__n { position: absolute; top: var(--space-4); right: var(--space-5); font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl, 24px); color: var(--text-subtle); opacity: .5; }
.step h2 { margin: var(--space-3) 0 var(--space-1); font-size: 20px; }
.step p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.feature { max-width: 1200px; margin: 0 auto var(--space-16); padding: 0 var(--space-6); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-10); align-items: center; scroll-margin-top: var(--space-8); }
.feature--flip .feature__text { order: 2; }
.feature--wide-media { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature--flip.feature--wide-media { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature__kicker { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: var(--space-2); }
.feature h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 var(--space-4); line-height: 1.15; }
.feature__text > p { color: var(--text-muted); font-size: 17px; }
.feature__media.diagram { margin: 0; }
.feature__media.diagram svg { min-width: 0; }
.stack-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; }
.chips { list-style: none; padding: 0; margin: var(--space-4) 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--text-sm); color: var(--text); }
.levels { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); counter-reset: level; }
.levels li { counter-increment: level; position: relative; padding: var(--space-3) var(--space-4) var(--space-3) 52px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-muted); font-size: 15px; }
.levels li::before { content: counter(level); position: absolute; left: var(--space-3); top: var(--space-3); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm); color: var(--link); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.levels strong { display: block; color: var(--text); margin-bottom: 2px; }
.mock-check { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-card, none); }
.mock-check__head, .mock-check__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.mock-check pre { margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-2); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mock-check__foot { color: var(--text-muted); }
.extras { max-width: 1200px; margin: 0 auto var(--space-16); padding: 0 var(--space-6); }
.extras .section-title { text-align: center; margin-bottom: var(--space-8); }
.extras__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.extra { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.extra .benefit__icon { width: auto; align-items: flex-start; padding-top: 0; }
.extra:nth-child(2) { --tone: var(--success-fg); }
.extra:nth-child(3) { --tone: var(--warning-fg); }
.extra:nth-child(4) { --tone: color-mix(in srgb, var(--primary) 55%, var(--danger-fg)); }
.extra h3 { margin: var(--space-2) 0 0; font-size: 18px; }
.extra p { margin: 0; color: var(--text-muted); font-size: 15px; }
.runs-on { max-width: 1200px; margin: 0 auto var(--space-16); padding: var(--space-8) var(--space-8); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface)); }
.runs-on h2 { margin: 0 0 var(--space-3); font-size: 28px; }
.runs-on p { color: var(--text-muted); }
.runs-on__cta { display: flex; flex-direction: column; gap: var(--space-3); align-items: stretch; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3)::before { display: none; }
  .extras__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature, .feature--wide-media, .feature--flip.feature--wide-media { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .feature--flip .feature__text { order: 0; }
  .runs-on { grid-template-columns: minmax(0, 1fr); margin-left: var(--space-4); margin-right: var(--space-4); padding: var(--space-6); }
}
@media (max-width: 560px) {
  .steps, .extras__grid { grid-template-columns: minmax(0, 1fr); }
  .step::before { display: none; }
  .prod-shot { margin-left: var(--space-4); margin-right: var(--space-4); }
}
.dg-lg .dg-title { font-size: 18px; }
.dg-lg .dg-text { font-size: 15px; }
.dg-lg .dg-label { font-size: 15px; }
.dg-lg .dg-zone-label { font-size: 13px; }
.extras .section-title { font-size: clamp(26px, 3vw, 34px); }
/* The shop's order page (ADR 0076). */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-5); align-items: start; }
.order__main { display: grid; gap: var(--space-5); min-width: 0; }
.order__main .card { margin: 0; }
.order .card__title { display: flex; align-items: center; gap: var(--space-2); }
.order__step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--link); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.order__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.order__choice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; background: var(--surface); }
.order__choice > span { display: grid; gap: 2px; }
.order__choice input { margin-top: 4px; accent-color: var(--link); }
.order__choice:has(input:checked) { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.order__choice .chip { justify-self: start; }
.order__qty { max-width: 10rem; }
.addons { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.addon--on { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.addon--off { opacity: .6; }
.addon__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--surface-2); color: var(--link); }
.addon__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.addon__text { display: grid; gap: 2px; }
.addon__price { font-weight: var(--weight-semibold); }
.stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.stepper .input { width: 4.5rem; text-align: center; }
.stepper .btn { min-width: 36px; justify-content: center; font-size: 18px; line-height: 1; }
.order__summary { position: sticky; top: var(--space-6); margin: 0; display: grid; gap: var(--space-3); }
.order__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.order__lines li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.order__lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order__vat { padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text-muted); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.order__total strong { font-size: 24px; white-space: nowrap; }
.order__total small { font-size: var(--text-sm); font-weight: 400; }
.order__facts { margin: 0; }
.order__pay { justify-content: center; }
.order__summary p { margin: 0; }
@media (max-width: 900px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .order__summary { position: static; }
}
@media (max-width: 560px) {
  .addon { grid-template-columns: auto minmax(0, 1fr); }
  .stepper { grid-column: 1 / -1; justify-self: end; }
}

/* ---------- Deep navy (owner, 2026-10-04; ADR 0079) ----------
   The website and the shop use a deep navy instead of the bright blue in
   the light theme, matching the emails. Only the website and the licence
   site load this file; the panel keeps the design tokens as they are, and
   the dark theme keeps its lighter accents. */
/* The palette lives in tokens.css (deep navy, light and dark; the --band-*
   tokens are the navy bands below). */

/* The top bar stays in view while scrolling. */
.site-header { position: sticky; top: 0; z-index: 50; max-width: none; padding-left: max(var(--space-10), calc((100% - 1600px) / 2 + var(--space-10))); padding-right: max(var(--space-10), calc((100% - 1600px) / 2 + var(--space-10)));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border-strong); box-shadow: 0 2px 12px color-mix(in srgb, var(--text) 8%, transparent); } /* stands out from the page in the light theme too (owner, 2026-10-07) */
[id] { scroll-margin-top: 96px; }
@media (max-width: 1100px) { .site-header { padding-left: var(--space-6); padding-right: var(--space-6); } }
@media (max-width: 700px) { .site-header { padding-left: var(--space-4); padding-right: var(--space-4); } [id] { scroll-margin-top: 120px; } }

/* Benefits as cards, tinted with their icon's colour (owner, 2026-10-07). */
.benefit { background: color-mix(in srgb, var(--tone) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 40%, var(--border)); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-card); }

/* The front page's example: a navy band with white cards. */
.showcase { background: var(--band-bg); box-shadow: var(--shadow-card); }
.showcase__head .section-title { color: var(--band-fg); }
.showcase__head .muted, .showcase__head span { color: var(--band-muted); }

/* Pricing: a navy header band, the featured column highlighted down the
   table, tinted group rows, ticks on green. */
.compare-wrap { box-shadow: var(--shadow-card); }
.compare thead th { background: var(--band-bg); color: var(--band-fg); border-bottom: 0; }
.compare thead th.compare__featured { background: var(--band-featured); }
.compare thead .compare__plan, .compare thead .compare__price { color: var(--band-fg); }
.compare thead .compare__period, .compare thead .compare__per { color: var(--band-muted) !important; }
.compare thead .compare__badge { background: var(--band-fg); color: var(--band-bg); }
.compare thead .btn--secondary { background: transparent; color: var(--band-fg); border: 1px solid color-mix(in srgb, var(--band-fg) 50%, transparent); }
.compare thead .btn--secondary:hover { background: color-mix(in srgb, var(--band-fg) 12%, transparent); }
.compare thead .btn--primary { background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg); }
.compare tbody td.compare__featured { background: var(--band-tint); }
.compare__group th { background: var(--group-bg) !important; }
/* The notes under the table: navy cards like the table's header. */
.pricing__notes .card { background: var(--band-bg); border-color: var(--band-bg); color: var(--band-muted); }
.pricing__notes .card__title { color: var(--band-fg); }
.pricing__notes .card p { color: var(--band-muted); }
.pricing__notes .card a { color: var(--band-fg); text-decoration: underline; text-underline-offset: 2px; }
.pricing__notes .card strong { color: var(--band-fg); }
.compare__yes { box-sizing: border-box; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--success-bg); }
@media (max-width: 800px) {
  .compare thead th:first-child { background: var(--band-bg); }
}

/* Lists with ticks (Enterprise). */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.ticks li { position: relative; padding-left: 34px; color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border: solid var(--success-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ent-steps { margin: var(--space-4) 0 0; }

/* ---------- Report checker (/verify/) ---------- */
.verify-form { display: grid; gap: var(--space-4); }
.verify-result { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.verify-result .banner--success { background: var(--success-bg); color: var(--success-fg); }
.verify-result .facts { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: var(--space-2) var(--space-6); margin: 0; font-size: var(--text-sm); }
.verify-result .facts dt { color: var(--text-subtle); }
.verify-result .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.verify-result .card__title { overflow-wrap: anywhere; }

/* The pre-launch demo site (demo.restorly.eu, ADR 0090). */
.hero .hero__note { font-size: var(--text-sm); }
.sample-files { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.sample-files a { font-weight: var(--weight-semibold); }
.sample-files .muted { font-size: var(--text-xs); margin-left: var(--space-1); }
#notify { scroll-margin-top: 120px; }
.notify { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.notify-form { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.notify-form__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.notify-form__row .input { flex: 1 1 220px; min-width: 0; }
.notify-form__note { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.notify .notify-form__status { margin: 0; min-height: 1.5em; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text); }
.notify .notify-form__status[data-state="ok"] { color: var(--success-fg); }
.notify .notify-form__status[data-state="error"] { color: var(--danger-fg); }
.notify-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .notify { grid-template-columns: minmax(0, 1fr); } }
