/*
  ImpactLayer Apps · shared stylesheet
  Owner: mkt-holidays. Other projects: use these classes, don't edit this file.
  Component reference and page template: /assets/README.md (in the repo).
  Class names are a stable contract. Add new ones; never rename or remove.
*/

/* ---------- 1. Font (Geist, SIL OFL 1.1, self-hosted) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand (from impactlayer.co.uk) */
  --brand-ink: #0f1413;
  --brand-paper: #f3f4ef;
  --brand-lime: #d0fb15;

  /* Light theme */
  --bg: #f7f8f4;
  --bg-alt: #eff1ea;
  --surface: #ffffff;
  --surface-2: #f2f4ee;
  --ink: #0f1413;
  --ink-2: #3f4844;
  --ink-3: #59625d;
  --line: #e0e4db;
  --line-strong: #c5ccc1;
  --accent: #d0fb15;
  --accent-ink: #111311;
  --accent-edge: #a9cf00;
  --accent-soft: #f1fdc4;
  --link: #3a5200;
  --link-hover: #0f1413;
  --focus: #3a5200;
  --info-bg: #eef5ff;
  --info-line: #b8d0f5;
  --info-ink: #1c3f75;
  --warn-bg: #fff6e0;
  --warn-line: #ecd08a;
  --warn-ink: #6b4a00;
  --ok-bg: #effbd6;
  --ok-line: #c3e57a;
  --ok-ink: #2f4600;
  --shadow-1: 0 1px 2px rgb(15 20 19 / 0.06), 0 1px 1px rgb(15 20 19 / 0.04);
  --shadow-2: 0 1px 2px rgb(15 20 19 / 0.05), 0 8px 24px -8px rgb(15 20 19 / 0.12);

  /* Store dots */
  --store-highlevel: #188bf6;
  --store-monday: #ff3d57;
  --store-wix: #116dff;
  --store-apify: #97d700;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --t-xl: clamp(1.375rem, 1.25rem + 0.55vw, 1.625rem);
  --t-2xl: clamp(1.625rem, 1.4rem + 1vw, 2.125rem);
  --t-3xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.375rem);
  --leading: 1.6;
  --leading-tight: 1.15;
  --track-tight: -0.028em;
  --track-snug: -0.015em;

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

  /* Shape */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --container: 72rem;
  --measure: 68ch;
  --header-h: 4rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --bg-alt: #131917;
    --surface: #161d1b;
    --surface-2: #1b2321;
    --ink: #f3f4ef;
    --ink-2: #c9cec4;
    --ink-3: #a3aa9f;
    --line: #26302d;
    --line-strong: #3a4541;
    --accent: #d0fb15;
    --accent-ink: #111311;
    --accent-edge: #d0fb15;
    --accent-soft: #232d10;
    --link: #d8fc4a;
    --link-hover: #f3f4ef;
    --focus: #d0fb15;
    --info-bg: #142033;
    --info-line: #2b4466;
    --info-ink: #cfe0fb;
    --warn-bg: #2a2310;
    --warn-line: #5a4a1d;
    --warn-ink: #f5e2b0;
    --ok-bg: #1d2710;
    --ok-line: #3f5419;
    --ok-ink: #e3f7b4;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.35), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --store-highlevel: #4ea8ff;
    --store-monday: #ff6b80;
    --store-wix: #5b9bff;
    --store-apify: #a8e61a;
  }
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--leading);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: var(--track-snug);
  font-weight: 650;
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.section--alt + .section,
.section + .section--alt { padding-top: var(--section); }

.stack > * + * { margin-top: var(--s-4); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--bg); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: var(--track-snug);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name { font-size: 1.0625rem; }
.brand__sub { color: var(--ink-3); font-weight: 500; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav__wide { display: none; }
@media (min-width: 40em) { .site-nav__wide { display: list-item; } }
@media (max-width: 25.99em) {
  .site-nav__home { display: none; }
}
@media (max-width: 22.49em) {
  .site-nav a { padding: 0 var(--s-2); }
}

@media (prefers-color-scheme: dark) {
  .feature__icon { color: var(--accent); }
  /* Dark tiles (logo, app icons) need an edge on the dark page. */
  .brand__mark { border-radius: 7px; box-shadow: 0 0 0 1px var(--line-strong); }
  .appnav__icon, .app-card__icon, .hero__icon { box-shadow: 0 0 0 1px var(--line-strong); }
}

/* ---------- 7. App sub-navigation ---------- */
.appnav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.appnav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-3);
}
.appnav__app {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
}
.appnav__app:hover { color: var(--ink); }
.appnav__icon { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.appnav__links {
  display: flex;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin-inline: calc(-1 * var(--s-3));
  overflow-x: auto;
  scrollbar-width: none;
}
.appnav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.appnav__links a:hover { color: var(--ink); background: var(--surface-2); }
.appnav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.appnav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .appnav__links a[aria-current="page"]::after { background: var(--accent); }
}
@media (min-width: 48em) {
  .appnav__links { margin-inline: 0 calc(-1 * var(--s-3)); }
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-edge);
}
.btn--primary:hover { background: #dbff45; color: var(--accent-ink); }
.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { color: var(--ink); border-color: var(--ink-3); background: var(--surface-2); }
.btn--quiet {
  padding-inline: var(--s-2);
  color: var(--ink);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}
.btn--quiet:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn--sm { min-height: 36px; padding: 0.375rem 0.75rem; font-size: var(--t-xs); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---------- 9. Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--store::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink-3);
}
.badge--highlevel::before { background: var(--store-highlevel); }
.badge--monday::before { background: var(--store-monday); }
.badge--wix::before { background: var(--store-wix); }
.badge--apify::before { background: var(--store-apify); }
.badge--soon { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.badge--live { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.badge--plain { background: transparent; }

/* ---------- 10. Section heads ---------- */
.eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-title { font-size: var(--t-2xl); letter-spacing: var(--track-tight); }
.section-lede { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; }

/* ---------- 11. Hero ---------- */
.hero { padding-block: clamp(2rem, 1.25rem + 3.5vw, 4.5rem) var(--section); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 60em) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--s-8); }
}
.hero__body > * + * { margin-top: var(--s-5); }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.hero__icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-2); }
.hero__title {
  font-size: var(--t-3xl);
  letter-spacing: var(--track-tight);
  line-height: 1.06;
  font-weight: 680;
  max-width: 20ch;
}
.hero__lede { max-width: 36rem; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero__note { color: var(--ink-3); font-size: var(--t-sm); }
.hero--simple .hero__title { max-width: 22ch; }
.hero--simple { padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.hero + .section { padding-top: 0; }

/* ---------- 12. Illustration card (labelled, never a fake screenshot) ---------- */
.preview {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.preview__title { font-size: var(--t-sm); font-weight: 600; }
.preview__meta { color: var(--ink-3); font-size: var(--t-xs); }
.preview__list { list-style: none; padding: 0; }
.preview__body + .preview__list { border-top: 1px solid var(--line); }
.preview__row {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 0.7rem var(--s-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.preview__row:last-child { border-bottom: 0; }
.preview__date { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.preview__name { min-width: 0; color: var(--ink); font-weight: 500; }
.preview__row--custom { background: var(--accent-soft); }
.preview__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.preview__caption { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--t-xs); text-align: center; }
.preview__body { padding: var(--s-5); }
.preview__body > * + * { margin-top: var(--s-4); }
.recipe {
  font-size: var(--t-lg);
  line-height: 1.55;
  font-weight: 500;
}
.recipe__field {
  padding: 0 0.15em;
  border-bottom: 2px solid var(--accent-edge);
  font-weight: 650;
}
@media (max-width: 26em) {
  .preview__row { grid-template-columns: minmax(0, 1fr) auto; padding-inline: var(--s-4); }
  .preview__date { grid-column: 1 / -1; margin-bottom: -0.45rem; font-size: var(--t-xs); }
  .preview__head, .preview__foot, .preview__body { padding-inline: var(--s-4); }
}

/* ---------- 13. Feature grid ---------- */
.features {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  padding: 0;
}
.feature {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--s-4);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--ink);
}
.feature__icon svg { width: 1.25rem; height: 1.25rem; }
.feature__title { font-size: var(--t-base); font-weight: 620; letter-spacing: -0.01em; }
.feature__text { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }

/* ---------- 14. Steps ---------- */
.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step { counter-increment: step; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: var(--t-base); font-weight: 620; }
.step__text { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- 15. Fact strip (dated, sourced figure) ---------- */
.fact {
  display: grid;
  gap: var(--s-5) var(--s-8);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--brand-ink);
  color: var(--brand-paper);
}
@media (min-width: 48em) {
  .fact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
}
.fact__figure { display: grid; gap: var(--s-2); }
.fact__number {
  color: var(--brand-lime);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.fact__label { max-width: 24ch; color: #d9ddd4; font-size: var(--t-sm); font-weight: 500; }
.fact__body > * + * { margin-top: var(--s-4); }
.fact__text { font-size: var(--t-xl); line-height: 1.35; letter-spacing: var(--track-snug); font-weight: 560; max-width: 36ch; }
.fact__source { color: #b9c0b5; font-size: var(--t-sm); }
.fact a { color: var(--brand-paper); }
.fact a:hover { color: var(--brand-lime); }
@media (prefers-color-scheme: dark) {
  .fact { background: var(--surface); border: 1px solid var(--line); }
}

/* ---------- 16. Pricing ---------- */
.pricing {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: stretch;
}
.pricing--single { max-width: 30rem; grid-template-columns: 1fr; }
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow-2); }
@media (prefers-color-scheme: dark) { .plan--featured { border-color: var(--accent); } }
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.plan__name { font-size: var(--t-lg); font-weight: 650; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.plan__amount { font-size: var(--t-3xl); font-weight: 680; letter-spacing: var(--track-tight); line-height: 1; font-variant-numeric: tabular-nums; }
.plan__amount--tbc { font-size: var(--t-xl); line-height: 1.2; color: var(--ink-2); }
.plan__unit { color: var(--ink-3); font-size: var(--t-sm); }
.plan__list { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); }
.plan__list li { position: relative; padding-left: 1.6rem; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) { .plan__list li::before { border-color: var(--accent); } }
.plan__note { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-xs); }

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary {
  position: relative;
  display: block;
  padding: var(--s-5) var(--s-7) var(--s-5) 0;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::before,
.faq__item > summary::after {
  content: "";
  position: absolute;
  right: var(--s-2);
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform var(--dur) var(--ease);
}
.faq__item > summary::after { transform: rotate(90deg); }
.faq__item[open] > summary::after { transform: rotate(0deg); }
.faq__item > summary:hover { color: var(--ink); }
.faq__item > summary:focus-visible { outline-offset: 0; }
.faq__body { padding: 0 var(--s-7) var(--s-5) 0; color: var(--ink-2); }
.faq__body > * + * { margin-top: var(--s-3); }

/* ---------- 18. Callouts ---------- */
.callout {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.callout > * + * { margin-top: var(--s-2); }
.callout__title { color: var(--ink); font-weight: 650; font-size: var(--t-sm); }
.callout--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.callout--success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.callout--info .callout__title,
.callout--warn .callout__title,
.callout--success .callout__title { color: inherit; }
.callout a { color: inherit; }

/* ---------- 19. Data tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  line-height: 1.5;
}
.table caption { padding: var(--s-3) var(--s-4); text-align: left; color: var(--ink-3); font-size: var(--t-xs); caption-side: bottom; border-top: 1px solid var(--line); }
.table th,
.table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: var(--t-xs); letter-spacing: 0.02em; white-space: nowrap; }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table--compare td,
.table--compare thead th:not(:first-child) { text-align: center; }
.table--compare tbody th { min-width: 12rem; }

/* ---------- 20. Page head (legal, support) ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--s-7); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: var(--t-3xl); letter-spacing: var(--track-tight); line-height: 1.08; font-weight: 680; }
.page-head__lede { margin-top: var(--s-4); max-width: 42rem; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; }
.page-head__meta { margin-top: var(--s-4); color: var(--ink-3); font-size: var(--t-sm); }

/* ---------- 21. Legal layout + prose ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-7) var(--section); }
.legal > * { min-width: 0; }
@media (min-width: 60em) {
  .legal { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-8); align-items: start; }
}
.legal__toc {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--t-sm);
}
@media (min-width: 60em) {
  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    max-height: calc(100vh - var(--header-h) - var(--s-7));
    overflow-y: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
}
.legal__toc-title { margin-bottom: var(--s-3); color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.legal__toc ol { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: var(--s-2);
  padding: 0.3rem 0;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}
.legal__toc a::before { content: counter(toc) "."; min-width: 1.4em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 60em) {
  .legal__toc a { padding: 0.35rem 0 0.35rem var(--s-3); border-left: 2px solid var(--line); }
  .legal__toc a:hover { border-left-color: var(--ink-3); }
}

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 {
  margin-top: var(--s-7);
  padding-top: var(--s-2);
  color: var(--ink);
  font-size: var(--t-xl);
  letter-spacing: var(--track-snug);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; }
.prose h3 { margin-top: var(--s-6); color: var(--ink); font-size: var(--t-lg); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose strong { color: var(--ink); font-weight: 620; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--ink-3); }
.prose .table-wrap, .prose .callout { margin-top: var(--s-5); }
.prose .table-wrap + *, .prose .callout + * { margin-top: var(--s-5); }
.prose dl { display: grid; gap: var(--s-3); }
.prose dt { color: var(--ink); font-weight: 600; }
.prose dd { margin: 0; }

/* ---------- 22. Contact card (support) ---------- */
.contact-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 48em) {
  .contact-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.contact-card__title { font-size: var(--t-xl); letter-spacing: var(--track-snug); }
.contact-card__text { margin-top: var(--s-2); color: var(--ink-2); }
.contact-card__email { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 23. App cards (index) ---------- */
.app-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  list-style: none;
  padding: 0;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.app-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.app-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.app-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.app-card__icon { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app-card__icon--fallback {
  display: grid;
  place-items: center;
  background: var(--brand-ink);
  color: var(--brand-lime);
  font-weight: 700;
  font-size: 1.25rem;
}
.app-card__title { font-size: var(--t-lg); letter-spacing: var(--track-snug); }
.app-card__link { color: var(--ink); text-decoration: none; }
.app-card__link:hover { color: var(--ink); }
.app-card__link:focus-visible { outline: none; }
.app-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card__tagline { color: var(--ink-2); font-size: var(--t-sm); }
.app-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.app-card__more { position: relative; z-index: 1; font-size: var(--t-sm); font-weight: 600; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink-2);
}
.empty-state__title { color: var(--ink); font-size: var(--t-lg); }

/* ---------- 24. Principles (index) ---------- */
.principles { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; }
.principle__title { font-size: var(--t-base); font-weight: 620; }
.principle__text { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- 25. Error page ---------- */
.error-page { padding-block: var(--s-9); text-align: center; }
.error-page__code { color: var(--ink-3); font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0.08em; }
.error-page__title { margin-top: var(--s-3); font-size: var(--t-3xl); letter-spacing: var(--track-tight); }
.error-page__text { margin: var(--s-4) auto 0; max-width: 32rem; color: var(--ink-2); }
.error-page .hero__actions { justify-content: center; margin-top: var(--s-6); }

/* ---------- 26. Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-3);
  font-size: var(--t-sm);
}
.site-footer__inner { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 48em) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
.site-footer__brand { display: grid; gap: var(--s-3); max-width: 28rem; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; }
.site-footer__nav a { color: var(--ink-2); text-decoration: none; display: inline-block; padding-block: 0.35rem; }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-xs); }

/* ---------- 27. Utilities ---------- */
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mt-7 { margin-top: var(--s-7) !important; }

/* ---------- 28. Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .app-card:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .appnav, .skip-link, .legal__toc, .site-footer__nav { display: none; }
  body { background: #fff; color: #000; }
  .legal { display: block; }
  .prose { max-width: none; color: #000; }
  a { color: #000; }
}
