/* Apelora Fabric website. One stylesheet. Inter (self-hosted, variable), Apelora teal on white.
   Composition after the CleanShot reference (Feature Stack): big type, white space, product first.
   Contrast (computed): white on #0F766E 5.47:1, on hover #0B5D56 7.74:1, body #334155 on white 10.35:1.
   #14B8A6 is decorative only (2.49:1 on white): never text, never the only sign of a state. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #0f766e;          /* primary actions, links, focus */
  --teal-hover: #0b5d56;
  --teal-press: #094a45;
  --teal-deco: #14b8a6;     /* decoration: rules, glow, icons */
  --mint-50: #f1fbf9;       /* occasional pale surfaces */
  --mint: #e6f7f4;
  --mint-100: #ccfbf1;      /* selected, highlight */
  --mint-ink: #115e59;      /* text on mint-100 */
  --ink: #0f172a;           /* headings */
  --body: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --soft: #f1f5f9;
  --band: #0f172a;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --pad-card: clamp(1.5rem, 3.4vw, 2.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 75rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-lg: 0 2.5rem 5.625rem -2.5rem rgb(15 23 42 / 0.45), 0 0.125rem 0.5rem rgb(15 23 42 / 0.06);
  --shadow-md: 0 1.5rem 3.75rem -1.875rem rgb(15 23 42 / 0.35), 0 0.0625rem 0.25rem rgb(15 23 42 / 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss03"; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.1875rem; text-decoration-thickness: 0.0625rem; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--teal-hover); text-decoration-thickness: 0.125rem; } }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font: 500 0.88em var(--mono); background: var(--soft); padding: 0.12em 0.4em; border-radius: 0.375rem; color: var(--ink); }
:focus-visible { outline: 0.1875rem solid var(--teal); outline-offset: 0.1875rem; border-radius: 0.5rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: #fff; padding: 0.625rem 1rem; border-radius: 0.625rem; font-weight: 600; z-index: 50; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 0.0625rem solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.025em; }
@media (hover: hover) and (pointer: fine) { .brand:hover { color: var(--ink); } }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.5625rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.25rem); }
.nav > a:not(.btn) { color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.97rem; min-height: 2.75rem; display: inline-flex; align-items: center; position: relative; }
@media (hover: hover) and (pointer: fine) { .nav > a:not(.btn):hover { color: var(--ink); } }
.nav > a[aria-current="page"] { color: var(--ink); }
/* The repository link: the GitHub mark on wide screens, the mark and its name in the phone menu. */
.nav > a.nav-gh { justify-content: center; gap: 0.5rem; min-width: 2.75rem; color: var(--ink); }
.nav-gh-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav > a.nav-gh:hover { color: var(--teal); } }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.375rem; height: 0.125rem; border-radius: 0.125rem; background: var(--teal-deco); }
.menu-toggle { display: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.375rem; background: none; border: 0; font: 700 0.97rem var(--font); color: var(--ink); cursor: pointer; }
.menu-toggle svg { transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 0.0625rem solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; box-shadow: 0 1.5rem 2.5rem -1.5rem rgb(15 23 42 / 0.25); display: none; }
  .js .nav.is-open { display: flex; }
  .js .nav > a:not(.btn) { padding: 0.875rem 0; border-bottom: 0.0625rem solid var(--line); font-size: 1.05rem; }
  .js .nav > a[aria-current="page"]::after { display: none; }
  .js .nav .nav-cta { margin-top: 1rem; }
  .js .nav > a.nav-gh { justify-content: flex-start; }
  .js .nav-gh-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav { gap: 0.75rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
  .bar { flex-wrap: wrap; padding-block: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3.25rem; padding: 0 1.75rem; border-radius: 62.4375rem; border: 0.0625rem solid transparent; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn:active { transform: translateY(0.0625rem); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 0.0625rem 0.125rem rgb(15 118 110 / 0.3); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--teal-hover); color: #fff; text-decoration: none; } }
.btn-primary:active { background: var(--teal-press); }
.btn-soft { background: var(--soft); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-soft:hover { background: #e7edf4; color: var(--ink); text-decoration: none; } }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; } }
.btn-sm { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.95rem; }
.btn svg { width: 1rem; height: 1rem; }
.more { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 700; text-decoration: none; min-height: 2.75rem; }
.more svg { width: 0.875rem; height: 0.875rem; transition: transform 0.15s; }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(0.1875rem); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.75rem, 8vw, 6.5rem) 0 0; }
.hero h1 { font-size: clamp(2.25rem, 5.7vw, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.037em; }
.hero h1 span { display: block; }
@media (max-width: 760px) { .hero h1 span { display: inline; } }
.hero .lede { margin-top: 1.625rem; max-width: 58ch; font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0.875rem; margin-top: 2.25rem; }
.lozenge { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.625rem; padding: 0.4375rem 0.875rem; border-radius: 62.4375rem; background: var(--mint-100); color: var(--mint-ink); font: 650 0.88rem/1.2 var(--font); text-decoration: none; }
.lozenge::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal); }
@media (hover: hover) and (pointer: fine) { a.lozenge:hover { background: #b7f5e8; color: var(--mint-ink); } }

/* ---------- Product preview ---------- */
.preview { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.125rem; }
.tab { min-height: 2.75rem; padding: 0 1.25rem; border-radius: 62.4375rem; border: 0.0625rem solid var(--line-2); background: #fff; color: var(--body); font: 650 0.95rem var(--font); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
@media (hover: hover) and (pointer: fine) { .tab:hover { border-color: var(--teal); color: var(--teal); } }
.tab[aria-selected="true"] { background: var(--mint-100); border-color: var(--mint-100); color: var(--mint-ink); }
.shot { margin: 0; background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 0.4375rem; padding: 0.8125rem 1rem; background: var(--mint-50); border-bottom: 0.0625rem solid var(--line); }
.shot-bar i { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: var(--line-2); display: block; }
.shot-bar span { margin-left: 0.625rem; font: 600 0.8rem var(--font); color: var(--muted); }
.shot img { width: 100%; background: #fff; }
.shot.crop img { max-height: 32.5rem; object-fit: cover; object-position: top; }
.shot.tall img { max-height: 38.75rem; object-fit: cover; object-position: top; }
.shot.phone { width: min(100%, 20rem); margin-inline: auto; border-radius: 2rem; }
.shot.paper { background: #fff; }
.shot.paper > a { display: block; padding: clamp(0.625rem, 2.5vw, 1.75rem); border-radius: 0.75rem; }
.shot figcaption { padding: 0.75rem 1.125rem; border-top: 0.0625rem solid var(--line); background: var(--mint-50); font-size: 0.85rem; color: var(--muted); }
.caption { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); max-width: 72ch; }
.panel[hidden] { display: none; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec-head { max-width: 48.75rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.sec-head p { margin-top: 1.125rem; font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.tint { background: var(--mint-50); }

/* Statement band (after the "50 features" band of the reference) */
.statement { padding: clamp(1.75rem, 4vw, 3.5rem) 0 0; }
.statement-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; background: var(--mint); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4.5rem); }
.statement-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.statement-card p { margin-top: 1.125rem; max-width: 52ch; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 62.4375rem; background: #fff; border: 0.0625rem solid #b6e6de; color: var(--ink); font: 650 0.93rem var(--font); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
@media (hover: hover) and (pointer: fine) { a.chip:hover { border-color: var(--teal); color: var(--teal); } }
@media (max-width: 860px) { .statement-card { grid-template-columns: 1fr; } }

/* Feature stack: alternating text and screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.feature + .feature { border-top: 0.0625rem solid var(--line); }
.feature.reverse { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
.feature.reverse > .copy { order: 2; }
.feature h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.feature .copy > p { margin-top: 1rem; color: var(--muted); }
@media (max-width: 900px) { .feature, .feature.reverse { grid-template-columns: 1fr; } .feature.reverse > .copy { order: 0; } }
.checks { display: grid; gap: 0.875rem; margin-top: 1.625rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.checks li::before { content: ""; width: 1.375rem; height: 1.375rem; margin-top: 0.1875rem; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.2 11.4 3.2 3.1 6.4-7' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.checks b { color: var(--ink); font-weight: 650; }
.sources { display: grid; gap: 0.875rem; margin-top: 1.625rem; max-width: 80ch; }
.sources b { color: var(--ink); font-weight: 650; }
.evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1.625rem; font-size: 0.9rem; color: var(--muted); }
.tag { display: inline-block; padding: 0.3125rem 0.6875rem; border-radius: 62.4375rem; font: 650 0.8rem/1.2 var(--font); background: var(--mint-100); color: var(--mint-ink); white-space: nowrap; }
.tag.plain { background: var(--soft); color: var(--body); }
.tag.road { background: #fff; border: 0.0625rem dashed var(--line-2); color: var(--muted); }

/* Small capability grid (the "also included" row) */
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; }
.mini h3 { font-size: 1.1rem; font-weight: 700; }
.mini p { margin-top: 0.5rem; color: var(--muted); font-size: 0.98rem; }
.mini li { padding-top: 1.25rem; border-top: 0.125rem solid var(--teal-deco); }
@media (max-width: 860px) { .mini { grid-template-columns: 1fr; } }

/* Available vs roadmap */
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 3rem; }
.box { background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius-lg); padding: var(--pad-card); }
.box.road { background: var(--mint-50); border-style: dashed; border-color: var(--line-2); }
.box h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.box > p { margin-top: 0.625rem; color: var(--muted); }
.dots { display: grid; gap: 0.75rem; margin-top: 1.375rem; }
.dots li { position: relative; padding-left: 1.375rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--teal-deco); }
.road .dots li::before { background: #fff; border: 0.125rem solid var(--line-2); width: 0.6875rem; height: 0.6875rem; top: 0.55em; left: -0.0625rem; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }

/* Steps (deployment and onboarding) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 3.25rem; counter-reset: s; }
.steps li { position: relative; padding-top: 1.75rem; border-top: 0.125rem solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -0.875rem; left: 0; padding-right: 0.75rem; background: #fff; font: 800 0.95rem var(--font); color: var(--teal); }
.tint .steps li::before { background: var(--mint-50); }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { margin-top: 0.625rem; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Offer cards (cards earn their place here: comparison) */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.125rem, 2.4vw, 2rem); margin-top: 3.25rem; align-items: stretch; }
.offer { display: flex; flex-direction: column; background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius-lg); padding: var(--pad-card); box-shadow: 0 0.0625rem 0.125rem rgb(15 23 42 / 0.04); }
.offer.start { border: 0.125rem solid var(--teal); box-shadow: 0 0 0 0.375rem rgb(20 184 166 / 0.14); }
.offer h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em; }
.offer .for { margin-top: 0.5rem; color: var(--muted); }
.offer hr { border: 0; border-top: 0.0625rem solid var(--line); margin: 1.5rem 0; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.price small { display: block; margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.45; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.offer .checks { margin-top: 1.375rem; flex: 1; align-content: start; }
.offer .btn { margin-top: 1.875rem; align-self: flex-start; }
/* Peer cards share their rows, so titles, prices, lists and buttons line up across the row whatever wraps. --rows is the number of parts in each card. */
@supports (grid-template-rows: subgrid) {
  .offers > .offer { display: grid; grid-template-rows: subgrid; grid-row: span var(--rows, 6); row-gap: 0; }
  .offers > .offer > .btn { align-self: end; justify-self: start; }
}
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { margin-top: 2.5rem; border: 0.0625rem solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 1rem 1.375rem; border-bottom: 0.0625rem solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--mint-50); color: var(--ink); font-weight: 700; font-size: 0.9rem; }
tbody th { color: var(--ink); font-weight: 650; width: 30%; }
td.yes { font-weight: 650; color: var(--mint-ink); }
td.no { color: var(--muted); }
@media (max-width: 760px) {
  .stack-sm thead { display: none; }
  .stack-sm table, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: 100%; }
  .stack-sm tr { padding: 0.875rem 0; border-bottom: 0.0625rem solid var(--line); }
  .stack-sm tr:last-child { border-bottom: 0; }
  .stack-sm th, .stack-sm td { border: 0; padding: 0.25rem 1.25rem; }
  .stack-sm td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}

/* FAQ */
.faq { margin-top: 2.5rem; max-width: 51.25rem; }
.faq details { border-top: 0.0625rem solid var(--line); }
.faq details:last-child { border-bottom: 0.0625rem solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4rem; padding: 0.875rem 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-right: 0.1562rem solid var(--teal); border-bottom: 0.1562rem solid var(--teal); transform: rotate(45deg) translateY(-0.1875rem); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-0.1875rem); }
.faq details > div { padding: 0 0 1.5rem; max-width: 70ch; color: var(--body); }
.faq details > div p + p { margin-top: 0.75rem; }

/* Page heads (inner pages) */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-head h1 span { display: block; }
@media (max-width: 760px) { .page-head h1 span { display: inline; } }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; max-width: 24ch; }
.page-head p { margin-top: 1.375rem; font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* Prose for legal text */
.prose { max-width: 70ch; }
/* A prose page keeps the page's left edge (aligned with its heading) and limits only the line length. */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 44rem; }
.prose h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.025em; margin-top: 3.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li + li { margin-top: 0.5rem; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem); margin-top: 3rem; }
.doc-group h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; padding-bottom: 0.875rem; border-bottom: 0.125rem solid var(--teal-deco); }
.doc-group li { border-bottom: 0.0625rem solid var(--line); }
.doc-group li a { display: block; padding: 1rem 0; text-decoration: none; color: var(--ink); font-weight: 650; }
.doc-group li a span { display: block; margin-top: 0.125rem; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) { .doc-group li a:hover { color: var(--teal); } }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }

/* Use cases */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 4.5rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 0.0625rem solid var(--line); }
.case h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.12; }
.case .lead { margin-top: 0.875rem; color: var(--muted); }
.case dl { margin: 0; display: grid; gap: 1.375rem; }
.case dt { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.case dd { margin: 0.375rem 0 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.form { background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius-lg); padding: var(--pad-card); box-shadow: var(--shadow-md); }
.form h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.field { margin-top: 1.5rem; }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 0.5rem; font-size: 0.97rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3.125rem; padding: 0.75rem 1rem; border: 0.0625rem solid #94a3b8; border-radius: 0.875rem; background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 9.375rem; resize: vertical; }
@supports (field-sizing: content) { .field textarea { field-sizing: content; min-height: 9.375rem; max-height: 20lh; overflow-y: auto; } }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal); } }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0.1875rem solid var(--teal); outline-offset: 0.0625rem; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #b42318; border-width: 0.125rem; }
.error { margin-top: 0.5rem; color: #b42318; font-weight: 600; font-size: 0.93rem; }
.error:empty { display: none; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 0.0625rem; height: 0.0625rem; overflow: hidden; }
.form .btn { margin-top: 2rem; }
.form .btn[disabled] { opacity: 0.75; cursor: progress; }
.spin { width: 1rem; height: 1rem; border-radius: 50%; border: 0.1562rem solid rgb(255 255 255 / 0.45); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { margin-top: 1.5rem; padding: 1.125rem 1.25rem; border-radius: 1rem; border: 0.0625rem solid var(--line-2); background: var(--soft); color: var(--ink); }
.status[hidden] { display: none; }
.status h3 { font-size: 1.05rem; font-weight: 800; }
.status p { margin-top: 0.375rem; }
.status.ok { background: var(--mint); border-color: #9fe0d5; }
.status.warn { background: #fff7e6; border-color: #f2d28b; }
.status.bad { background: #fef3f2; border-color: #f4b6b0; }
.status .btn { margin-top: 0.875rem; }
.notice { margin-top: 1.5rem; padding: 0.75rem 1rem; border-radius: 0.875rem; background: #fff7e6; border: 0.0625rem solid #f2d28b; color: #5c3b00; font-size: 0.95rem; }
.notice[hidden] { display: none; }
.form-note { margin: 1.5rem 0 1rem; font-size: 0.9rem; color: var(--muted); max-width: 60ch; }
.aside h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.aside ul { margin-top: 0.875rem; }
.aside li { padding: 0.875rem 0; border-bottom: 0.0625rem solid var(--line); }
.aside li:first-child { border-top: 0.0625rem solid var(--line); }
.aside li b { color: var(--ink); display: block; }

/* ---------- Closing band ---------- */
.cta-band { padding: 0 0 clamp(3.5rem, 8vw, 6.5rem); }
.cta-card { background: var(--band); color: #e2e8f0; border-radius: var(--radius-lg); padding: clamp(2.25rem, 7vw, 5.5rem); }
.cta-card h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 18ch; }
.cta-card p { margin-top: 1.125rem; max-width: 54ch; color: #cbd5e1; font-size: 1.1rem; }
.cta-card .btn-soft { background: rgb(255 255 255 / 0.1); color: #fff; }
@media (hover: hover) and (pointer: fine) { .cta-card .btn-soft:hover { background: rgb(255 255 255 / 0.18); color: #fff; } }
.cta-card .btn-primary { background: #5eead4; color: #042f2e; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .cta-card .btn-primary:hover { background: #99f6e4; color: #042f2e; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 0.0625rem solid var(--line); padding: 3.5rem 0 3rem; font-size: 0.97rem; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.foot-brand p { margin-top: 0.875rem; max-width: 30ch; color: var(--muted); }
.foot-brand .brand { font-size: 1.1rem; }
.foot-brand .brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.4375rem; }
.site-footer h2 { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 0.875rem; }
.site-footer li + li { margin-top: 0.625rem; }
.site-footer li a { color: var(--body); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer li a:hover { color: var(--teal); text-decoration: underline; } }
.legalese { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 0.0625rem solid var(--line); font-size: 0.88rem; color: var(--muted); }
@media (max-width: 960px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Motion (subtle; off for reduced-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(0.875rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.shot { transition: box-shadow 0.3s ease, transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .feature .shot:hover { box-shadow: 0 3.125rem 6.25rem -2.5rem rgb(15 23 42 / 0.5), 0 0.125rem 0.5rem rgb(15 23 42 / 0.06); transform: translateY(-0.1875rem); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .actions, .cta-band, .tabs { display: none; } body { font-size: 11pt; } }

/* ---------- Who it is for, and by hand vs with Fabric ---------- */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2.75rem; }
.who .box h3 { display: flex; align-items: center; gap: 0.625rem; }
.compare { margin-top: 2.75rem; border: 0.0625rem solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare table { font-size: 1rem; }
.compare thead th { background: #fff; font-size: 0.9rem; padding-top: 1.375rem; padding-bottom: 0.875rem; }
.compare thead th:last-child { color: var(--mint-ink); }
.compare tbody th { width: 22%; }
.compare tbody td:nth-child(2) { color: var(--muted); }
.compare tbody td:last-child { background: var(--mint-50); color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 1rem 0; border-bottom: 0.0625rem solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 0.25rem 1.375rem; }
  .compare td::before { content: attr(data-label); display: block; font: 700 0.78rem var(--font); color: var(--muted); margin-bottom: 0.125rem; }
  .compare tbody td:last-child { background: none; }
  .compare tbody td:last-child::before { color: var(--mint-ink); }
}
.tag.start { background: var(--teal); color: #fff; }
.offer .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.offer .head .tag { flex: none; margin-top: 0.25rem; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3.5rem; margin: 2.75rem 0 0; }
.terms dt { font-weight: 800; color: var(--ink); }
.terms dd { margin: 0.375rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }
.case .shot { margin-top: 1.75rem; box-shadow: var(--shadow-md); }
.pager { display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem; margin-top: 1.75rem; }

.sr-only { position: absolute; width: 0.0625rem; height: 0.0625rem; margin: -0.0625rem; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Recovery illustration ---------- */
.recovery { --ar-ink: #132c32; --ar-muted: #4b5f62; --ar-teal: #0f766e; --ar-bright: #14b8a6; --ar-red: #c9363f; --ar-green: #139a70; }
.ar-stage { padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1.125rem); background: #fff; color: var(--ar-ink); }
.ar-scene { height: 20.375rem; position: relative; isolation: isolate; }
.ar-ground { position: absolute; left: 3%; right: 1%; top: 16.4rem; height: 1.2rem; border-radius: 50%; background: radial-gradient(ellipse, #dcebe9a6, transparent 70%); z-index: -1; }
.ar-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ar-path { fill: none; stroke: #b6dcd4; stroke-width: 1.5; opacity: 0; transition: opacity 0.18s; }
.ar-flow { fill: none; stroke: var(--ar-bright); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 12; opacity: 0; }
.ar-host { position: absolute; top: 7.5rem; width: clamp(4.75rem, 18%, 7.75rem); transform: translateX(-50%); text-align: center; }
.ar-h1 { left: 15%; } .ar-h2 { left: 52%; } .ar-h3 { left: 85%; }
.ar-tower { position: relative; height: 9.0625rem; background: linear-gradient(110deg, #fff 0%, #f3f7f6 70%); border: 0.0625rem solid #b9cbc7; border-radius: 0.625rem; box-shadow: 0.3rem 0.3rem 0 #e2ebe8, 0 0.9rem 1.4rem -1.2rem #47796e; padding: 0.625rem 0.5rem; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.ar-tower::before { content: ""; position: absolute; top: -0.4375rem; left: 0.25rem; right: -0.0625rem; height: 0.4375rem; border: 0.0625rem solid #cfdcd8; border-radius: 0.4375rem 0.4375rem 0 0; background: repeating-linear-gradient(90deg, #e9f0ee 0 0.25rem, #f8fbfa 0.25rem 0.4375rem); transform: skewX(-26deg); transform-origin: bottom; }
.ar-vent { height: 1rem; border: 0.0625rem solid #cbd9d5; border-radius: 0.1875rem; background: #eaf0ee; display: flex; align-items: center; justify-content: space-between; padding: 0 0.3125rem; margin-bottom: 0.375rem; }
.ar-slits { height: 0.1875rem; width: 48%; background: repeating-linear-gradient(90deg, #8aa09a 0 0.125rem, transparent 0.125rem 0.25rem); }
.ar-led { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--ar-bright); box-shadow: 0 0 0.375rem #14b8a640; }
.ar-slot { height: 2.375rem; margin-top: 0.375rem; border-radius: 0.3125rem; border: 0.0625rem dashed #b4cdc4; background: #f8fbfa; }
.ar-h2 .ar-slot, .ar-h3 .ar-slot { margin-top: 1.0625rem; height: 3rem; }
.ar-grille { position: absolute; bottom: 0.625rem; left: 0.75rem; right: 0.75rem; height: 0.4375rem; background: repeating-linear-gradient(90deg, #b5c8c1 0 0.125rem, transparent 0.125rem 0.3125rem); }
.ar-badge { position: absolute; top: -0.9375rem; right: -0.75rem; width: 1.8125rem; height: 1.8125rem; display: grid; place-items: center; border: 0.1875rem solid #fff; border-radius: 50%; background: var(--ar-green); color: #fff; box-shadow: 0 0.1875rem 0.5625rem #1d725218; z-index: 2; font-size: 0.9375rem; font-weight: 700; line-height: 1; transition: background 0.18s; }
.ar-server-name { font-size: 0.8125rem; font-weight: 700; color: var(--ink); margin-top: 1.0625rem; }
.ar-server-state { color: var(--ar-muted); font-size: 0.75rem; line-height: 1.4; margin-top: 0.1875rem; min-height: 1.05rem; }
.ar-host.failed .ar-tower { background: linear-gradient(110deg, #f9f8f8, #eeefef); border-color: #d6bfc2; box-shadow: 0.3rem 0.3rem 0 #e9e3e3, 0 0.9rem 1.4rem -1.2rem #8f6464; }
.ar-host.failed .ar-led { background: #9aa6a2; box-shadow: none; }
.ar-host.failed .ar-badge { background: var(--ar-red); }
.ar-host.failed .ar-server-state { color: #a12c37; font-weight: 600; }
.ar-host.ready .ar-tower { border-color: #6fbfab; background: linear-gradient(110deg, #fff, #edf9f3); box-shadow: 0.3rem 0.3rem 0 #cce9df, 0 0.9rem 1.5rem -1rem #0f766e45; }
.ar-halo { position: absolute; top: -1.4rem; right: -1.25rem; width: 2.8rem; height: 2.8rem; border: 0.0625rem solid #33b48b; border-radius: 50%; opacity: 0; pointer-events: none; }
.ar-module { position: absolute; left: 0; top: 0; width: 4.9rem; height: 2.125rem; display: flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.5rem; background: var(--ar-teal); color: #fff; border: 0.0625rem solid var(--ar-teal); border-radius: 0.375rem; box-shadow: 0 0.25rem 0.5625rem #0f766e20; z-index: 5; will-change: transform; }
.ar-module-id { width: 1.25rem; height: 1.25rem; flex: none; display: grid; place-items: center; border-radius: 0.25rem; background: #ffffff26; font-size: 0.75rem; font-weight: 700; }
.ar-module-label { font-size: 0.75rem; font-weight: 600; }
.ar-module.off { color: #4d5f59; background: #eef2f0; border-color: #c4d0cb; box-shadow: none; opacity: 0.8; }
.ar-module.off .ar-module-id { background: #dbe4e0; }
.ar-module.flying { color: var(--ar-teal); background: #fff; border-color: #6fbfab; box-shadow: 0 0.5rem 1.05rem #0f766e24; }
.ar-module.flying .ar-module-id { background: #e3f7ef; }
.ar-node-port { position: absolute; top: 0.75rem; width: 0.375rem; height: 0.375rem; background: #fff; border: 0.09375rem solid #65b69f; border-radius: 50%; }
.ar-port-l { left: -0.25rem; } .ar-port-r { right: -0.25rem; }
.ar-fence { position: absolute; left: 32%; top: 2.5rem; transform: translate(-50%, 0.5rem); opacity: 0; display: flex; align-items: center; gap: 0.375rem; background: #fff; border: 0.0625rem solid #b3dccf; box-shadow: 0 0.3rem 1rem #0f766e14; border-radius: 62.4375rem; padding: 0.4375rem 0.75rem; font-size: 0.78rem; font-weight: 650; color: var(--ar-teal); transition: opacity 0.18s, transform 0.25s; z-index: 6; white-space: nowrap; }
.ar-fence.visible { opacity: 1; transform: translate(-50%, 0); }
.ar-footer { border-top: 0.0625rem solid #e2ece8; padding-top: 0.8rem; }
.ar-state-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.75rem; }
.ar-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; line-height: 1.4; color: var(--ink); font-weight: 600; }
.ar-dot { width: 0.5rem; height: 0.5rem; background: var(--ar-teal); border-radius: 50%; flex: none; }
.ar-control { align-items: center; justify-content: center; flex: none; min-width: 4.5rem; min-height: 2.75rem; border: 0.0625rem solid var(--line-2); border-radius: 0.625rem; background: #fff; color: var(--teal); font: 650 0.85rem var(--font); padding: 0 0.875rem; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .ar-control:hover { border-color: var(--teal); background: var(--mint-50); } }
.ar-steps { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.ar-step { display: flex; align-items: center; gap: 0.3125rem; color: var(--ar-muted); font-size: 0.78rem; white-space: nowrap; }
.ar-step-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #cddad4; transition: background 0.2s; }
.ar-step.passed { color: var(--ar-teal); font-weight: 650; }
.ar-step.passed .ar-step-dot { background: var(--ar-teal); }
.ar-step-link { flex: 1; height: 0.0625rem; background: #dbe6e1; }
@media (max-width: 480px) {
  .ar-scene { height: 21.25rem; }
  .ar-module { width: 3.9rem; height: 2rem; padding: 0.25rem; gap: 0.25rem; }
  .ar-module-id { width: 1.05rem; height: 1.1rem; }
  .ar-fence { left: 29%; top: 1.75rem; padding: 0.375rem 0.5rem; }
  .ar-host { width: 4.6rem; }
  .ar-badge { right: -0.45rem; }
  .ar-server-state { min-height: 1.9rem; }
  .ar-steps { gap: 0.3125rem; }
  .ar-step { font-size: 0.75rem; gap: 0.25rem; }
  .ar-status { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) { .recovery * { transition: none !important; } }
/* ---------- Documentation ---------- */
.docs { background: #fff; }
.docs-wrap { width: min(100% - 2 * var(--gutter), 112rem); display: grid; grid-template-columns: 16.5rem minmax(0, 1fr) 13.5rem; gap: clamp(1.25rem, 2vw, 2.25rem); padding-block: 1.5rem 5rem; align-items: start; }
.docs-nav { position: sticky; top: 5.25rem; max-height: calc(100vh - 6.25rem); overflow-y: auto; padding: 0.25rem 0.75rem 1.5rem 0; font-size: 0.93rem; scrollbar-width: thin; }
.docs-search { position: relative; margin-bottom: 0.75rem; }
.docs-search input { width: 100%; min-height: 2.75rem; padding: 0 0.875rem; border: 0.0625rem solid var(--line-2); border-radius: 0.75rem; background: #fff; font: 500 0.95rem var(--font); color: var(--ink); }
.docs-search input::placeholder { color: var(--muted); }
.docs-results { position: absolute; z-index: 20; left: 0; right: -14rem; top: calc(100% + 0.375rem); max-height: 26rem; overflow-y: auto; background: #fff; border: 0.0625rem solid var(--line-2); border-radius: 0.875rem; box-shadow: var(--shadow-md); padding: 0.375rem; }
.docs-results[hidden] { display: none; }
.docs-results a { display: block; padding: 0.625rem 0.75rem; border-radius: 0.625rem; text-decoration: none; color: var(--body); font-size: 0.9rem; line-height: 1.4; }
.docs-results a b { display: block; color: var(--ink); font-weight: 650; }
.docs-results a small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.125rem; }
.docs-results a[aria-selected="true"] { background: var(--mint); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .docs-results a:hover { background: var(--mint); text-decoration: none; } }
.docs-results .none { padding: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.dn-home { display: flex; align-items: center; min-height: 2.5rem; padding: 0 0.625rem; margin-bottom: 0.25rem; border-radius: 0.5rem; color: var(--ink); font-weight: 650; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .dn-home:hover { background: var(--soft); } }
.dn-group { border-top: 0.0625rem solid var(--line); }
.dn-heading { margin: 1.5rem 0 0.25rem; padding: 0 0.625rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.dn-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: 0 0.625rem; cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.dn-group summary::-webkit-details-marker { display: none; }
.dn-group summary svg { transition: transform 0.15s; color: var(--muted); }
.dn-group[open] summary svg { transform: rotate(90deg); }
.dn-group ul { padding-bottom: 0.5rem; }
.dn-group li a { display: block; padding: 0.4375rem 0.625rem; min-height: 2.25rem; border-radius: 0.5rem; color: var(--body); text-decoration: none; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .dn-group li a:hover { background: var(--soft); color: var(--ink); } }
.dn-group li a[aria-current="page"] { background: var(--mint-100); color: var(--mint-ink); font-weight: 650; }
.docs-menu-btn { display: none; align-items: center; justify-content: space-between; width: 100%; min-height: 2.75rem; padding: 0 1rem; border: 0.0625rem solid var(--line-2); border-radius: 0.75rem; background: #fff; font: 650 0.95rem var(--font); color: var(--ink); cursor: pointer; }
.docs-menu-btn svg { transition: transform 0.15s; }
.docs-menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); }

.docs-body { min-width: 0; max-width: none; }
.docs-body .prose { max-width: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.875rem; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 2rem; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--teal); text-decoration: underline; } }
.docs-body h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 1.5rem; }
.docs-body .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.prose { font-size: 1.02rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 750; margin-top: 3rem; padding-top: 1.75rem; border-top: 0.0625rem solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2.25rem; letter-spacing: -0.01em; }
.prose h4 { font-size: 1.02rem; font-weight: 700; margin-top: 1.75rem; }
.prose h2 a, .prose h3 a { color: inherit; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.4rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--teal); font-weight: 650; }
.prose li > ul, .prose li > ol { margin-top: 0.4rem; }
.prose li > input[type="checkbox"] { margin-right: 0.375rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { height: auto; border: 0.0625rem solid var(--line); border-radius: 0.875rem; }
.prose p > img:only-child, .prose p[align] > img { margin-inline: auto; }
.prose p[align="center"] { text-align: center; }
.prose hr { border: 0; border-top: 0.0625rem solid var(--line); margin-block: 2.5rem; }
.prose pre { position: relative; margin-top: 1.25rem; padding: 1.125rem 1.25rem; background: #0f172a; color: #e2e8f0; border-radius: 0.875rem; overflow-x: auto; font: 500 0.86rem/1.65 var(--mono); tab-size: 2; }
.prose pre code { background: none; padding: 0; border-radius: 0; color: inherit; font: inherit; }
.prose pre:focus-visible { outline-offset: 0.125rem; }
.prose .copy { position: absolute; top: 0.5rem; right: 0.5rem; min-height: 2rem; padding: 0 0.75rem; border: 0.0625rem solid #475569; border-radius: 0.5rem; background: #1e293b; color: #e2e8f0; font: 600 0.75rem var(--font); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.prose pre:focus-within .copy, .prose .copy:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .prose pre:hover .copy { opacity: 1; } }
@media (hover: none) { .prose .copy { opacity: 1; } }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; background: var(--mint-50); border: 0.0625rem solid #b6e6de; border-radius: 0.875rem; color: var(--body); }
.prose blockquote > * + * { margin-top: 0.625rem; }
.prose .table-wrap { margin-top: 1.25rem; overflow-x: auto; border-radius: 0.875rem; }
.prose table { width: 100%; font-size: 0.92rem; min-width: 0; }
.prose th, .prose td { padding: 0.75rem 1rem; overflow-wrap: break-word; }
.prose thead th { white-space: normal; }
.prose tbody th { width: auto; }
.prose figure { margin: 1.5rem 0 0; }
.prose figure.shot { margin-top: 1.75rem; }
.prose figure.shot img { border: 0; border-radius: 0; }
.prose figure.diagram { padding: 1rem; border: 0.0625rem solid var(--line); border-radius: 0.875rem; background: #fff; }
.prose figure.diagram img { border: 0; margin-inline: auto; }
.prose figure.diagram details { margin-top: 0.75rem; font-size: 0.9rem; }
.prose figure.diagram summary { cursor: pointer; color: var(--teal); font-weight: 650; min-height: 2.25rem; display: flex; align-items: center; }
.prose details { padding: 0.25rem 0; }
.prose details > summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.docs-source { margin-top: 3rem; padding-top: 1.25rem; border-top: 0.0625rem solid var(--line); font-size: 0.88rem; color: var(--muted); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.docs-pager a { display: block; padding: 1rem 1.25rem; border: 0.0625rem solid var(--line-2); border-radius: 0.875rem; color: var(--ink); font-weight: 650; text-decoration: none; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .docs-pager a:hover { border-color: var(--teal); } }
.docs-pager a span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-bottom: 0.25rem; }
.docs-pager .next { text-align: right; grid-column: 2; }
.docs-pager .prev { grid-column: 1; }
.docs-toc { position: sticky; top: 5.25rem; max-height: calc(100vh - 6.25rem); overflow-y: auto; font-size: 0.85rem; padding-bottom: 1.5rem; scrollbar-width: thin; }
.docs-toc h2 { font-size: 0.9rem; color: var(--ink); font-weight: 700; margin-bottom: 0.5rem; }
.docs-toc a { display: block; padding: 0.3125rem 0.5rem; border-radius: 0.5rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.docs-toc li.l3 a { padding-left: 1.5rem; font-size: 0.82rem; }
@media (hover: hover) and (pointer: fine) { .docs-toc a:hover { color: var(--ink); } }
.docs-toc a.is-current { color: var(--mint-ink); background: var(--mint-100); font-weight: 650; }
.docs-list { display: grid; gap: 0.75rem; }
.docs-list a { display: block; padding: 1rem 1.25rem; border: 0.0625rem solid var(--line); border-radius: 0.875rem; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
@media (hover: hover) and (pointer: fine) { .docs-list a:hover { border-color: var(--teal); background: var(--mint-50); } }
.docs-list b { display: block; color: var(--ink); font-weight: 700; }
.docs-list span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

@media (max-width: 1140px) { .docs-wrap { grid-template-columns: 15.5rem minmax(0, 1fr); } .docs-toc { display: none; } .docs-results { right: -6rem; } }
@media (max-width: 860px) {
  .docs-wrap { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1rem; }
  .prose table { min-width: 36rem; }
  .js .docs-menu-btn { display: flex; }
  .docs-nav { position: static; max-height: none; padding: 0; }
  .js .docs-nav { display: none; padding: 0.75rem 1rem 1rem; border: 0.0625rem solid var(--line); border-radius: 0.875rem; }
  .js .docs-nav.is-open { display: block; }
  .docs-results { right: 0; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager .next, .docs-pager .prev { grid-column: 1; text-align: left; }
}

/* Documentation home */
.docs-home { max-width: none; }
.docs-home h2 { font-size: 1.55rem; letter-spacing: -0.02em; font-weight: 750; margin: 3rem 0 1.25rem; line-height: 1.2; }
.docs-home h2:first-of-type { margin-top: 2rem; }
.docs-home p + dl, .docs-home h2 + p { margin-top: 0; }
.docs-home > p { margin-top: 1rem; }
.journey { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.875rem; counter-reset: none; }
.journey a { position: relative; display: block; height: 100%; padding: 1.125rem 1.25rem 1.25rem 3.75rem; border: 0.0625rem solid var(--line); border-radius: 0.875rem; text-decoration: none; color: var(--body); transition: border-color 0.15s, background-color 0.15s; }
@media (hover: hover) and (pointer: fine) { .journey a:hover { border-color: var(--teal); background: var(--mint-50); } }
.journey .n { position: absolute; left: 1.125rem; top: 1.125rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mint-100); color: var(--mint-ink); font: 800 0.85rem var(--font); }
.journey b { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; }
.journey small { display: block; margin-top: 0.25rem; font-size: 0.86rem; line-height: 1.45; color: var(--muted); }
.home-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.home-shots a { display: block; border: 0.0625rem solid var(--line); border-radius: 0.875rem; overflow: hidden; text-decoration: none; color: var(--ink); font-weight: 650; box-shadow: var(--shadow-md); transition: border-color 0.15s; }
@media (hover: hover) and (pointer: fine) { .home-shots a:hover { border-color: var(--teal); } }
.home-shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.home-shots span { display: block; padding: 0.75rem 1rem; border-top: 0.0625rem solid var(--line); background: var(--mint-50); font-size: 0.92rem; }
.docs-home .table-wrap { margin-top: 0; overflow-x: auto; border-radius: 0.875rem; }
.docs-home table { font-size: 0.95rem; min-width: 28rem; }
.docs-home tbody th { width: 55%; }
.sec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.875rem; }
.sec-cards a { display: block; height: 100%; padding: 1.125rem 1.25rem; border: 0.0625rem solid var(--line); border-radius: 0.875rem; text-decoration: none; color: var(--body); transition: border-color 0.15s, background-color 0.15s; }
@media (hover: hover) and (pointer: fine) { .sec-cards a:hover { border-color: var(--teal); background: var(--mint-50); } }
.sec-cards b { display: block; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.sec-cards span { display: block; margin-top: 0.375rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.sec-cards small { display: block; margin-top: 0.625rem; font-size: 0.8rem; font-weight: 650; color: var(--teal); }
.docs-terms { margin-top: 1rem; }
@media (max-width: 600px) { .home-shots { grid-template-columns: 1fr; } }
.prose p.ev { padding: 0.875rem 1.125rem; background: var(--mint-50); border: 0.0625rem solid #b6e6de; border-radius: 0.75rem; font-size: 0.95rem; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
html:not(.js) .recovery .ar-stage { display: none; }

/* Included, not included, partly: an icon and its words, never colour alone */
.mk { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.mk svg { width: 1.375rem; height: 1.375rem; flex: none; }
.mk.yes svg circle { fill: #15803d; }
.mk.no svg circle { fill: #b42318; }
.mk.part svg circle:first-child { fill: #b45309; }
.mk-text { font-size: 0.92rem; color: var(--body); font-weight: 600; }
td.cell { vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem; margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend .mk svg { width: 1.125rem; height: 1.125rem; }
@media (max-width: 760px) { .stack-sm td.cell { display: flex; align-items: center; gap: 0.5rem; } .stack-sm td.cell[data-label]::before { min-width: 6.5rem; } }

/* ---------- Home: split hero, facts, bento, start cards ---------- */
.hero-split { padding: clamp(1.75rem, 4.5vw, 3.75rem) 0 clamp(2rem, 4vw, 3.5rem); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-split h1 { font-size: clamp(2.2rem, 4.1vw, 3.5rem); line-height: 1.05; }
.hero-split .lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin-top: 1.25rem; }
.hero-split .actions { margin-top: 1.75rem; }
.hero-split .preview { margin-top: 0; min-width: 0; }
.try { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.75rem; max-width: 30rem; }
.try-label { font: 650 0.82rem var(--font); color: var(--muted); letter-spacing: 0.01em; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.375rem 0.375rem 0.375rem 1rem; background: #0f172a; border-radius: 0.875rem; }
.cmd code { background: none; color: #e2e8f0; font: 500 0.92rem var(--mono); padding: 0; white-space: nowrap; overflow-x: auto; }
.cmd button { min-height: 2.75rem; padding: 0 1rem; border: 0.0625rem solid #475569; border-radius: 0.625rem; background: #1e293b; color: #e2e8f0; font: 650 0.85rem var(--font); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .cmd button:hover { background: #334155; } }
.try-note { font-size: 0.85rem; color: var(--muted); }
.hero-split .lozenge { margin-top: 1.5rem; }
@media (max-width: 999px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.facts-band { padding: 0; border-block: 0.0625rem solid var(--line); background: #fff; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts li { padding: 1.5rem 1.25rem 1.5rem 0; }
.facts li + li { padding-left: 1.25rem; border-left: 0.0625rem solid var(--line); }
.facts b { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--font); letter-spacing: -0.03em; color: var(--teal); }
.facts span { display: block; margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li, .facts li + li { padding: 1.125rem 1rem 1.125rem 0; border-left: 0; border-bottom: 0.0625rem solid var(--line); } .facts li:last-child { grid-column: 1 / -1; } }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.tile { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.375rem, 2.4vw, 2rem); background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, box-shadow 0.2s; }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: #9fd9cf; box-shadow: var(--shadow-md); } }
.tile.big { grid-column: span 3; }
.tile.sm { grid-column: span 2; background: var(--mint-50); }
.tile h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tile > p { color: var(--muted); font-size: 0.98rem; }
.tile .evidence { margin-top: 0.25rem; }
.tile.sm .evidence { margin-top: auto; padding-top: 0.25rem; }
.tile .more { margin-top: 0.25rem; }
.tile img { margin-top: auto; padding-top: 1rem; border-radius: 0; }
.tile.big img { border: 0.0625rem solid var(--line); border-radius: 0.75rem; margin-top: 1rem; padding-top: 0; }
@media (max-width: 900px) { .tile.big, .tile.sm { grid-column: 1 / -1; } }

.start-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.start-cards a { position: relative; display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.5rem 1.5rem 1.375rem; background: #fff; border: 0.0625rem solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--body); transition: border-color 0.15s, transform 0.15s; }
@media (hover: hover) and (pointer: fine) { .start-cards a:hover { border-color: var(--teal); } }
.start-cards .n { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--mint-100); color: var(--mint-ink); font: 800 0.95rem var(--font); }
.start-cards b { margin-top: 0.5rem; color: var(--ink); font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
.start-cards small { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.start-cards .go { margin-top: auto; padding-top: 0.75rem; font-weight: 700; color: var(--teal); }
.start-cards .go::after { content: " →"; }
@media (max-width: 900px) { .start-cards { grid-template-columns: minmax(0, 1fr); } }
.hero-split h1 { font-size: clamp(2.1rem, 3.7vw, 3.15rem); }
.hero-split h1 span { display: inline; }
.cmd button { display: inline-flex; align-items: center; justify-content: center; }
.hero-split .lozenge { border-radius: 1rem; }
.subhead { margin: clamp(2.75rem, 6vw, 4rem) 0 1.5rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
