/* JMS Dev Lab — site design system v2 (October 2026 rebuild).
   Used by the rebuilt pages (home, apps, pricing, about, contact, labs).
   Every other page still loads style.css until it is migrated.

   Display face: Bricolage Grotesque (SIL OFL 1.1, fonts/OFL.txt), instanced
   to opsz 36 / wght 500-800 and subset to Latin, self-hosted (31 KB).
   Body face: the platform UI font, so body text costs no download. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not shift layout. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f5f9;
  --surface-2: #e8ecf3;
  --line: #d6dce6;
  --ink: #13203a;
  --muted: #4a5568;
  --link: #1d4ed8;
  --brand: #2563eb;
  --btn-bg: #2563eb;
  --btn-ink: #ffffff;
  --btn-bg-hover: #1d4ed8;
  --focus: #b45309;
  --apps: #2563eb;
  --custom: #0f766e;
  --labs: #b45309;
  --ok: #166534;
  --warn-bg: #fff7e6;
  --warn-line: #b45309;

  --font-display: "Bricolage", "Bricolage Fallback", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 72rem;
  --gutter: 1rem;
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1321;
    --surface: #151d2e;
    --surface-2: #1c2639;
    --line: #2c3852;
    --ink: #e8ecf4;
    --muted: #aab4c6;
    --link: #9dbcff;
    --brand: #8cb0ff;
    --btn-bg: #8cb0ff;
    --btn-ink: #0d1321;
    --btn-bg-hover: #b3caff;
    --focus: #f6c177;
    --apps: #8cb0ff;
    --custom: #5fd3c4;
    --labs: #f6c177;
    --ok: #86efac;
    --warn-bg: #2b2112;
    --warn-line: #f6c177;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1321;
  --surface: #151d2e;
  --surface-2: #1c2639;
  --line: #2c3852;
  --ink: #e8ecf4;
  --muted: #aab4c6;
  --link: #9dbcff;
  --brand: #8cb0ff;
  --btn-bg: #8cb0ff;
  --btn-ink: #0d1321;
  --btn-bg-hover: #b3caff;
  --focus: #f6c177;
  --apps: #8cb0ff;
  --custom: #5fd3c4;
  --labs: #f6c177;
  --ok: #86efac;
  --warn-bg: #2b2112;
  --warn-line: #f6c177;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); }
p, ul, ol, dl { margin: 0 0 var(--space-2); }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
small, .small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 40rem; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 42rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header-inner {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 4rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em;
  min-height: 44px; margin-right: auto;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); font-weight: 550;
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.site-nav .nav-contact { background: var(--btn-bg); color: var(--btn-ink); margin-left: 0.25rem; }
.site-nav .nav-contact:hover { background: var(--btn-bg-hover); }
.icon-button, .menu-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 44px; min-height: 44px; padding: 0 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer;
}
.icon-button:hover, .menu-button:hover { background: var(--surface); }
.icon-button svg { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
[data-theme-state="dark"] .theme-icon-dark { display: block; }
[data-theme-state="dark"] .theme-icon-light { display: none; }
.menu-button { display: none; }

@media (max-width: 61.99em) {
  .menu-button { display: inline-flex; }
  .site-nav { display: none; order: 10; flex-basis: 100%; padding-bottom: var(--space-2); }
  .site-nav.active { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { width: 100%; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0.25rem; }
  .site-nav .nav-contact { margin: var(--space-2) 0 0; justify-content: center; border-radius: var(--radius-sm); border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.2rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 2px solid var(--btn-bg); border-radius: var(--radius-sm);
  font: inherit; font-weight: 650; text-decoration: none; line-height: 1.2; text-align: center;
  cursor: pointer;
}
.button:hover, .btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.button-quiet, .btn-outline, .btn-outline-dark {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.button-quiet:hover, .btn-outline:hover, .btn-outline-dark:hover { background: var(--surface); border-color: var(--ink); }
.button svg, .btn svg { width: 18px; height: 18px; flex: none; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Sections ---------- */
.band { padding-block: var(--space-5); }
.band + .band { border-top: 1px solid var(--line); }
.band-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tint + .band { border-top: 0; }
.band-head { max-width: 44rem; margin-bottom: var(--space-4); }
.band-head p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) var(--space-4); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: var(--space-3); }
.page-hero { padding-block: var(--space-5) var(--space-3); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); max-width: 22ch; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Three doors ---------- */
.doors {
  display: grid; gap: 0; margin-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.door {
  position: relative; padding: var(--space-3) 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.door::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 4.5rem; height: 4px;
  background: var(--door, var(--apps)); transform-origin: left;
}
.door-apps { --door: var(--apps); }
.door-custom { --door: var(--custom); }
.door-labs { --door: var(--labs); }
.door h2 { font-size: var(--step-3); margin-bottom: var(--space-1); }
.door h2 a { color: var(--ink); text-decoration: none; }
.door h2 a:hover { text-decoration: underline; }
.door p { color: var(--muted); }
.door .door-price { color: var(--ink); font-weight: 600; margin-top: auto; padding-top: var(--space-1); }
.door .door-link { font-weight: 650; color: var(--link); }
@media (min-width: 56em) {
  .doors { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .door { padding: var(--space-3) var(--space-3) var(--space-4); border-bottom: 0; }
  .door + .door { border-left: 1px solid var(--line); }
  .door::before { left: var(--space-3); }
  .door:first-child { padding-left: 0; }
  .door:first-child::before { left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .doors .door::before { animation: door-open 480ms cubic-bezier(.2,.7,.2,1) both; }
  .doors .door:nth-child(2)::before { animation-delay: 90ms; }
  .doors .door:nth-child(3)::before { animation-delay: 180ms; }
}
@keyframes door-open { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- App list ---------- */
.app-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.app-row {
  display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.app-row h3, .app-row h4 { font-size: var(--step-1); margin: 0 0 0.15rem; }
.app-group { font-size: var(--step-0); font-family: var(--font-body); font-weight: 650; color: var(--muted); letter-spacing: 0; margin: var(--space-4) 0 0.5rem; }
.app-group:first-child { margin-top: 0; }
.app-row h3 a, .app-row h4 a { color: var(--ink); text-decoration: none; }
.app-row h3 a:hover, .app-row h4 a:hover { text-decoration: underline; }
.app-row p { margin: 0; color: var(--muted); }
.app-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; margin-top: 0.5rem; }
.app-price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.app-install { font-weight: 650; display: inline-block; padding: 0.7rem 0; }
.app-status { font-size: var(--step--1); color: var(--muted); }
@media (min-width: 56em) {
  .app-row { grid-template-columns: 3rem minmax(0, 1.6fr) minmax(0, 1fr) 12rem; align-items: center; }
  .app-meta { display: contents; }
  .app-meta .app-price { grid-column: 3; }
  .app-meta .app-install, .app-meta .app-status { grid-column: 4; justify-self: start; }
}
.tile {
  width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; letter-spacing: -0.02em;
  background: hsl(var(--h, 220) 80% 93%); color: hsl(var(--h, 220) 65% 24%);
}
:root[data-theme="dark"] .tile { background: hsl(var(--h, 220) 35% 22%); color: hsl(var(--h, 220) 85% 85%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile { background: hsl(var(--h, 220) 35% 22%); color: hsl(var(--h, 220) 85% 85%); }
}

/* ---------- Facts / price blocks ---------- */
.columns { display: grid; gap: var(--space-4); }
@media (min-width: 56em) { .columns-2 { grid-template-columns: 1fr 1fr; } .columns-3 { grid-template-columns: repeat(3, 1fr); } }
.panel { border-top: 4px solid var(--door, var(--line)); padding-top: var(--space-3); }
.price-list { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.price-list li span:last-child { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list li span:first-child { min-width: 0; }
.figure { font-family: var(--font-display); font-size: var(--step-3); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Data tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table th, .data-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface); font-size: var(--step--1); font-weight: 650; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 40em) { .data-table td:nth-child(2) { white-space: normal; } }

/* Package rows (pricing) */
.packages { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.package { display: grid; gap: 0.25rem 2rem; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.package h3 { margin: 0; }
.package .package-price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; }
.package .package-price small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.package p { margin: 0.25rem 0 0; color: var(--muted); }
.package ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
@media (min-width: 56em) { .package { grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr); } .package .package-price { text-align: right; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; list-style: none; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div, .faq details > p { padding-bottom: 1rem; color: var(--muted); }

/* Steps (a genuine sequence) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.steps li { counter-increment: step; padding-left: 3rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 56em) { .steps-4 { grid-template-columns: repeat(4, 1fr); } .steps-3 { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 56em) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.contact-facts { list-style: none; padding: 0; margin: 0; }
.contact-facts li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-facts li:first-child { border-top: 1px solid var(--line); }
.contact-facts .label { display: block; font-size: var(--step--1); color: var(--muted); }
.contact-facts a, .contact-facts .value { font-size: var(--step-1); font-weight: 600; }
.form-field { margin-bottom: var(--space-3); }
.form-field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.form-field .hint { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #6b7588; border-radius: var(--radius-sm);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.req { color: var(--muted); font-weight: 400; }
.visually-hidden-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin-top: var(--space-2); padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.form-message-success { border-color: var(--ok); }
.form-message-error { border-color: #b91c1c; }

/* Lab entries */
.lab-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.lab-entry { border-top: 4px solid var(--labs); padding-top: var(--space-3); }
.lab-entry dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: var(--space-2) 0 0; }
.lab-entry dt { font-weight: 650; }
.lab-entry dd { margin: 0; color: var(--muted); }
@media (max-width: 40em) { .lab-entry dl { grid-template-columns: 1fr; } .lab-entry dd { margin-bottom: 0.5rem; } }

/* ---------- Legacy components carried onto rebuilt pages ---------- */
/* Answer capsule: generated markup carries an inline light style. */
.quick-answer { border-left: 4px solid var(--brand) !important; background: var(--surface) !important; color: var(--ink); }

/* App detail sections on /apps */
.app-detail { padding: var(--space-4) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.app-detail-header { display: flex; gap: 1rem; align-items: center; margin-bottom: var(--space-2); }
.app-detail-header h3 { font-size: var(--step-2); margin: 0; }
.app-detail .app-card-status { font-size: var(--step--1); font-weight: 650; color: var(--muted); }
.app-detail .app-tagline { margin: 0.15rem 0 0; color: var(--muted); }
.app-detail .app-description { max-width: 44rem; }
.app-detail-features { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 0.4rem; }
@media (min-width: 48em) { .app-detail-features { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.app-detail-features li { display: flex; gap: 0.6rem; align-items: flex-start; }
.app-detail-features svg { color: var(--custom); flex: none; margin-top: 0.3rem; width: 16px; height: 16px; }
.app-detail-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-5); border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--space-5) var(--space-3); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer-legal a { color: var(--muted); }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.newsletter-form input { flex: 1 1 12rem; min-height: 44px; padding: 0.5rem 0.75rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #6b7588; border-radius: var(--radius-sm); }
.newsletter-form button { min-height: 44px; }

/* ---------- Cookie consent (injected by cookie-consent.js) ---------- */
#cookie-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--ink); color: var(--bg); padding: 0.85rem var(--gutter);
  box-shadow: 0 -2px 0 rgba(0,0,0,.08);
}
.cc-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; justify-content: space-between; }
.cc-inner p { margin: 0; font-size: 0.875rem; line-height: 1.45; flex: 1 1 18rem; }
.cc-inner a { color: inherit; text-decoration: underline; }
.cc-buttons { display: flex; gap: 0.5rem; }
.cc-btn { min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; border: 2px solid currentColor; }
.cc-btn-accept { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cc-btn-reject { background: transparent; color: inherit; }
#cookie-settings.cc-btn { position: static !important; display: block; margin: 0 auto var(--space-3); box-shadow: none !important; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-size: 0.8rem; min-height: 36px; padding: 0.35rem 0.75rem; }
#cookie-settings[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header nav, .menu-button, .icon-button, #cookie-consent-banner, #cookie-settings, .preview-notes { display: none !important; }
}

/* ---------- Page bits ---------- */
.fact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0; }
.fact-list dt { font-weight: 650; }
.fact-list dd { margin: 0; color: var(--muted); }
@media (max-width: 40em) { .fact-list { grid-template-columns: 1fr; gap: 0.15rem; } .fact-list dd { margin-bottom: 0.75rem; } }
.support-list { padding-left: 1.1rem; }
.support-list li { margin-bottom: 0.35rem; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); align-self: start; }
.figure small { font-family: var(--font-body); font-size: var(--step-0); font-weight: 500; letter-spacing: 0; }
.lead-capture { margin: var(--space-2) 0; }
.lead-capture-title { font-size: var(--step-0); }
.lead-capture-form { display: grid; gap: 0.5rem; }
.lead-capture-email { min-height: 44px; padding: 0.5rem 0.75rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #6b7588; border-radius: var(--radius-sm); }
.lead-capture-consent { font-size: var(--step--1); }
.page-hero + .band, .page-hero + span + .band { padding-top: var(--space-3); }

/* ---------- v2.1: identity, proof and app pages (31 Oct 2026) ---------- */
:root { --grid: #e6ebf3; --shadow: 0 1px 2px rgba(19,32,58,.06), 0 12px 32px -12px rgba(19,32,58,.22); }
:root[data-theme="dark"] { --grid: #172036; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 36px -14px rgba(0,0,0,.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grid: #172036; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 36px -14px rgba(0,0,0,.7); } }

/* Graph-paper ground: the lab-notebook signature, used only behind heroes. */
.grid-ground {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-wrap { position: relative; }
.hero-wrap > .grid-ground { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-wrap { isolation: isolate; }
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 62em) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { max-width: 16ch; }
.hero-actions { margin-top: var(--space-3); }

/* Product screenshot frames */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.shot-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .shot-grid { grid-template-columns: 1fr 1fr; } }

/* Hero stack: three real app screens, fanned once on load */
.stack { position: relative; aspect-ratio: 16 / 12; max-width: 40rem; width: 100%; justify-self: end; }
.stack figure { position: absolute; width: 78%; margin: 0; }
.stack img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.stack .s1 { left: 0; top: 0; z-index: 1; }
.stack .s2 { left: 11%; top: 17%; z-index: 2; }
.stack .s3 { left: 22%; top: 34%; z-index: 3; }
.stack figcaption { position: absolute; left: 0.6rem; top: 0.6rem; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 650; padding: 0.2rem 0.55rem; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .stack .s2 { animation: fan-2 620ms cubic-bezier(.2,.75,.2,1) 120ms both; }
  .stack .s3 { animation: fan-3 620ms cubic-bezier(.2,.75,.2,1) 200ms both; }
}
@keyframes fan-2 { from { transform: translate(-11%, -17%); } to { transform: none; } }
@keyframes fan-3 { from { transform: translate(-22%, -34%); } to { transform: none; } }
@media (max-width: 61.99em) { .stack { justify-self: stretch; max-width: 34rem; } }

/* App rows use the real app icon */
.app-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* App pages */
.app-hero { display: grid; gap: var(--space-4); padding-block: var(--space-5) var(--space-4); align-items: center; }
@media (min-width: 62em) { .app-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.app-title { display: flex; align-items: center; gap: 0.9rem; margin-bottom: var(--space-2); }
.app-title img { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.app-title h1 { margin: 0; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
.app-for { margin-top: var(--space-2); }
.app-hero-price { font-weight: 650; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tick-list li { position: relative; padding-left: 1.9rem; }
.tick-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 1rem; height: 0.55rem; border-left: 2.5px solid var(--custom); border-bottom: 2.5px solid var(--custom); transform: rotate(-45deg); }
.mini-apps { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mini-apps a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.35rem 0.85rem 0.35rem 0.4rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mini-apps a:hover { border-color: var(--ink); }
.mini-apps img { border-radius: 8px; }
.mini-apps li:last-child a { padding-left: 0.85rem; }

/* Work (case studies) */
.work-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.work { display: grid; gap: var(--space-3); align-items: start; scroll-margin-top: 1rem; }
@media (min-width: 56em) { .work { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4); } .work:nth-child(even) .shot { order: 2; } }
.work h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.work .kind { color: var(--muted); margin-bottom: var(--space-2); }
.work dl { display: grid; gap: 0.2rem; margin: var(--space-2) 0; }
.work dt { font-weight: 650; }
.work dd { margin: 0 0 0.6rem; color: var(--muted); }
.work .stack-line { font-size: var(--step--1); color: var(--muted); }
.work-teaser { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 48em) { .work-teaser { grid-template-columns: repeat(3, 1fr); } }
.work-teaser a { color: var(--ink); text-decoration: none; display: block; }
.work-teaser a:hover h3 { text-decoration: underline; }
.work-teaser h3 { font-size: var(--step-1); margin: 0.75rem 0 0.15rem; }
.work-teaser p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Labs diagram */
.loop { max-width: 46rem; margin: var(--space-3) 0; }
.loop svg { width: 100%; height: auto; }
.loop text { font-family: var(--font-body); fill: var(--ink); }
.loop .box { fill: var(--surface); stroke: var(--line); }
.loop .arrow { stroke: var(--muted); fill: none; stroke-width: 1.6; }
.loop .labsbox { stroke: var(--labs); stroke-width: 2; }
.stages { columns: 2 16rem; column-gap: var(--space-4); padding-left: 1.4rem; }
.stages li { break-inside: avoid; margin-bottom: 0.35rem; }
