/*! BGEase. Copyright (c) 2026 Quantumines. All rights reserved. */
/* BGEase: shared styles
   1 tokens   2 base   3 buttons and controls   4 header   5 footer
   6 landing sections   7 compare slider   8 document pages          */

/* ---------- 1. Tokens ---------- */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-soft: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #f5f7f6;
  --line: #e0e6e2;
  --line-strong: #c5cec9;
  --text: #0d1512;
  --text-2: #4a5751;
  --text-3: #65726b;

  --accent: #1fd16a;
  --accent-hover: #17bd5d;
  --accent-ink: #03170b;
  --accent-text: #0a7a3d;
  --accent-soft: #e3f8ec;

  --danger: #b93424;
  --danger-soft: #fdeeeb;

  --checker-a: #ffffff;
  --checker-b: #e7ebe9;

  --shadow-s: 0 1px 2px rgba(13, 21, 18, .07);
  --shadow-m: 0 10px 28px -12px rgba(13, 21, 18, .18), 0 2px 6px rgba(13, 21, 18, .05);
  --shadow-l: 0 36px 70px -32px rgba(13, 21, 18, .28), 0 10px 24px -12px rgba(13, 21, 18, .10);

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #171b19;
  --bg-soft: #1c211f;
  --surface: #212725;
  --surface-2: #29302d;
  --line: #313a36;
  --line-strong: #47534d;
  --text: #eef3f0;
  --text-2: #a9b5af;
  --text-3: #84918a;

  --accent: #2fe07b;
  --accent-hover: #52e892;
  --accent-ink: #03170b;
  --accent-text: #54e394;
  --accent-soft: #1c3226;

  --danger: #ff8272;
  --danger-soft: #3a221f;

  --checker-a: #2c3330;
  --checker-b: #242a28;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 10px 28px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-l: 0 36px 70px -32px rgba(0, 0, 0, .7), 0 10px 24px -12px rgba(0, 0, 0, .35);
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 660; letter-spacing: -.024em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.625rem); }
h3 { font-size: 1.125rem; font-weight: 620; letter-spacing: -.012em; line-height: 1.3; }
p { text-wrap: pretty; }

a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

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

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

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-s);
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.checker {
  background-color: var(--checker-a);
  background-image: conic-gradient(var(--checker-b) 25%, transparent 0 50%, var(--checker-b) 0 75%, transparent 0);
  background-size: 20px 20px;
}

kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 6px; margin-inline: 2px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); color: var(--text-2);
  font: 600 .75rem/1.5 var(--font); text-align: center;
}

/* ---------- 3. Buttons and controls ---------- */

.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 18px;
  border: 1px solid transparent; border-radius: 11px;
  background: none; color: var(--text);
  font-weight: 620; font-size: .9375rem; line-height: 1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn--quiet { color: var(--text-2); }
.btn--quiet:hover { background: var(--surface-2); color: var(--text); }
.btn--lg { --btn-h: 54px; padding: 0 26px; border-radius: 14px; font-size: 1.0625rem; }
.btn--sm { --btn-h: 36px; padding: 0 12px; border-radius: 9px; font-size: .875rem; gap: 6px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 10px; background: none; color: var(--text-2);
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn[disabled]:hover { background: none; color: var(--text-2); }

/* ---------- 4. Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark { flex: none; }
/* The mark lives in the SVG sprite; these match its shapes there and pick up the theme colours. */
.logo-tile { fill: var(--text); }
.logo-a { fill: var(--accent); }
.logo-b { fill: var(--bg); }
.brand__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -.028em; }
.brand__name span { font-weight: 450; color: var(--text-2); }

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: 9px;
  color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon--sun { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }

@media (max-width: 860px) {
  .site-nav { display: none; }
}
@media (max-width: 420px) {
  .site-header__in { gap: 12px; }
  .brand__name { font-size: 1.0625rem; }
  .site-header .btn--sm { padding: 0 10px; }
}
/* Narrow phones: the upload button keeps its icon; its label stays available to screen readers. */
@media (max-width: 384px) {
  .site-header [data-upload-label] {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .site-header .btn--sm { padding: 0 12px; }
}

/* ---------- 5. Footer ---------- */

.site-footer {
  flex: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  font-size: .9375rem;
}
.site-footer__top {
  display: grid; gap: 40px 32px;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
}
.site-footer__about p { margin-top: 14px; max-width: 30em; color: var(--text-2); }
.site-footer__rights a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.site-footer__rights a:hover { color: var(--text); text-decoration-color: currentColor; }
.site-footer__col h2 {
  font-size: .875rem; font-weight: 650; letter-spacing: 0; line-height: 1.4; color: var(--text);
  margin-bottom: 12px;
}
.site-footer__col ul { display: grid; gap: 9px; }
.site-footer__col a { color: var(--text-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--text); text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: .875rem;
}
.site-footer__rights { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.site-footer__note { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer { padding-block: 40px 24px; }
  .site-footer__top { gap: 32px 20px; }
}

/* ---------- 6. Landing ---------- */

.section { padding-block: clamp(64px, 9vw, 116px); }

/* Hero */
.hero { background: var(--bg-soft); padding-block: clamp(28px, 5vw, 76px) clamp(44px, 7vw, 96px); }
.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-template-areas: "copy tool" "facts tool";
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 28px;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__facts { grid-area: facts; align-self: start; }
.hero__tool { grid-area: tool; }

.hero__title {
  font-size: clamp(2.375rem, 1.35rem + 4.1vw, 4.25rem);
  font-weight: 680; line-height: 1.01; letter-spacing: -.032em;
}
.hero__lede {
  margin-top: 22px; max-width: 30em;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); line-height: 1.5; color: var(--text-2);
}
.hero__facts { display: grid; gap: 10px; font-weight: 520; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts .icon {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); stroke-width: 2.6;
}

/* Dropzone */
.dropzone {
  position: relative; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-l);
}
.dropzone__body {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: clamp(280px, 38vw, 372px); padding: 36px 20px;
  border-radius: 15px; text-align: center;
  background-color: var(--surface);
  background-image:
    radial-gradient(closest-side, var(--surface) 55%, transparent 130%),
    conic-gradient(var(--surface-2) 25%, transparent 0 50%, var(--surface-2) 0 75%, transparent 0);
  background-size: 100% 100%, 22px 22px;
}
.dropzone__ants {
  position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px);
  overflow: visible; pointer-events: none;
}
.dropzone__ants rect {
  fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 7 7;
  transition: stroke .15s;
}
.dropzone:hover .dropzone__ants rect { stroke: var(--text-3); }
.dropzone__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}
.dropzone__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.dropzone__title { font-size: 1.25rem; font-weight: 640; letter-spacing: -.02em; }
.dropzone__hint { color: var(--text-3); font-size: .9375rem; }
.dropzone__error {
  max-width: 28em; padding: 9px 14px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger); font-size: .9375rem; font-weight: 520;
}
.dropzone__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  padding: 12px 10px 4px; color: var(--text-3); font-size: .8125rem;
}
.dropzone__foot span { display: inline-flex; align-items: center; gap: 6px; }
.dropzone__foot .icon { width: 15px; height: 15px; }

.dropzone.is-dragover { border-color: var(--accent); }
.dropzone.is-dragover .dropzone__ants rect {
  stroke: var(--accent-text); stroke-width: 2; animation: ants .5s linear infinite;
}
.dropzone.is-dragover .dropzone__icon {
  transform: translateY(-4px) scale(1.06);
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
@keyframes ants { to { stroke-dashoffset: -14; } }

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "tool" "facts";
    row-gap: 26px;
  }
  .hero__copy { align-self: auto; }
  .hero__lede { margin-top: 14px; }
  .hero__facts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .dropzone__body { min-height: 264px; padding: 28px 16px; }
  .dropzone__hint { display: none; }
  .dropzone__foot { justify-content: center; text-align: center; }
}

/* How it works */
.how__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
}
.how__steps { counter-reset: step; margin-top: 36px; display: grid; gap: 28px; }
.how__steps li {
  counter-increment: step; position: relative; padding-left: 56px;
}
.how__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--text); font-weight: 680; font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.how__steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17.25px; top: 40px; bottom: -22px; width: 1.5px;
  background: var(--line-strong);
}
.how__steps p { margin-top: 6px; color: var(--text-2); max-width: 34em; }
.how__demo figcaption { margin-top: 12px; color: var(--text-3); font-size: .875rem; text-align: center; }

@media (max-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Privacy */
.privacy { background: var(--bg-soft); }
.privacy__head { max-width: 46rem; }
.privacy__head p { margin-top: 18px; font-size: 1.0625rem; color: var(--text-2); }

.flow { margin-top: 44px; display: grid; gap: 14px; }
.flow__row {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 18px 20px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
}
.flow__label { font-weight: 640; letter-spacing: -.012em; }
.flow__row:not(.flow__row--us) .flow__label { color: var(--text-2); }
.flow__track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zone {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 20px 14px 12px; border: 1.5px dashed var(--line-strong); border-radius: 14px;
}
.zone--wide { flex: 1; justify-content: space-between; border-color: var(--accent-text); background: var(--accent-soft); }
.zone__label {
  position: absolute; top: -10px; left: 12px; padding: 0 7px;
  background: var(--surface); color: var(--text-3);
  font-size: .75rem; font-weight: 560; line-height: 20px; border-radius: 6px;
}
.zone--wide .zone__label { color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent); line-height: 18px; }
.node {
  padding: 9px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .9375rem; font-weight: 540; white-space: nowrap;
}
.zone--wide .node { background: var(--surface); border-color: color-mix(in srgb, var(--accent-text) 25%, var(--line)); }
.node--out { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.node--in { background: var(--accent) !important; border-color: transparent !important; color: var(--accent-ink); }
.flow__arrow {
  flex: 1; min-width: 18px; height: 1.5px; background: var(--line-strong); position: relative;
}
.flow__arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.zone--wide .flow__arrow, .zone--wide .flow__arrow::after { background-color: transparent; border-color: var(--accent-text); }
.zone--wide .flow__arrow { background: var(--accent-text); }

.privacy__facts {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px;
}
.privacy__facts dt { font-size: 1.125rem; font-weight: 640; letter-spacing: -.012em; }
.privacy__facts dd { margin-top: 6px; color: var(--text-2); }

@media (max-width: 860px) {
  .flow__row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 16px 16px; }
  .flow__track, .zone--wide { flex-direction: column; align-items: stretch; }
  .zone { justify-content: center; }
  .node { text-align: center; white-space: normal; }
  .flow__arrow { flex: none; align-self: center; width: 1.5px; height: 18px; min-width: 0; }
  .flow__arrow::after { right: 50%; top: auto; bottom: 0; transform: translate(50%, 0) rotate(135deg); }
  .privacy__facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* Editing features */
.editing h2 { max-width: 16em; }
.editing__list {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.editing__list li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.editing__list li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.editing__list .icon { width: 26px; height: 26px; stroke-width: 1.6; color: var(--accent-text); }
.editing__list h3 { margin-top: 16px; }
.editing__list p { margin-top: 6px; color: var(--text-2); font-size: .9688rem; }

@media (max-width: 900px) {
  .editing__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editing__list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .editing__list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .editing__list li { padding-right: 24px; }
}
@media (max-width: 560px) {
  .editing__list { grid-template-columns: minmax(0, 1fr); }
  .editing__list li, .editing__list li:nth-child(even) { padding: 22px 0 24px; border-left: 0; }
}

/* FAQ */
.faq { background: var(--bg-soft); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq__head p { margin-top: 16px; color: var(--text-2); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 1.0938rem; font-weight: 600; letter-spacing: -.012em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.75px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.75px 100% no-repeat;
  transition: transform .2s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 40px 22px 2px; color: var(--text-2); max-width: 44em; }

@media (max-width: 860px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Closing call to action */
.cta { background: var(--text); color: var(--bg); padding-block: clamp(48px, 7vw, 84px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
[data-theme="dark"] .cta { background: var(--surface-2); color: var(--text); }
[data-theme="light"] .cta .btn--primary { background: #2fe07b; }
[data-theme="light"] .cta .btn--primary:hover { background: #52e892; }

/* ---------- 7. Compare slider ---------- */

.compare {
  --pos: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-l);
  -webkit-user-select: none; user-select: none;
}
.compare--art { border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.compare__layer { line-height: 0; }
.compare__layer > * { display: block; width: 100%; height: auto; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before > * { height: 100%; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(13, 21, 18, .18);
  pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(13, 21, 18, .28), 0 0 0 1px rgba(13, 21, 18, .08);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  border-left: 2px solid #0d1512; border-bottom: 2px solid #0d1512;
}
.compare__handle span::before { left: 10px; transform: translateY(-50%) rotate(45deg); }
.compare__handle span::after { right: 10px; transform: translateY(-50%) rotate(-135deg); }
.compare__tag {
  position: absolute; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px;
  background: rgba(13, 21, 18, .72); color: #fff; font-size: .75rem; font-weight: 560; line-height: 1.4;
  pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.compare__range {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
  touch-action: pan-y;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 2px; height: 100vh; border: 0; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* ---------- 8. Document pages (legal, about, contact) ---------- */

.doc { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.doc__in { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.doc__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); letter-spacing: -.03em; }
.doc__meta { margin-top: 14px; color: var(--text-3); font-size: .9375rem; }
.doc__lede { margin-top: 22px; font-size: 1.125rem; color: var(--text-2); }
.doc__body { margin-top: 36px; }
.doc__body h2 { margin-top: 44px; font-size: 1.4375rem; letter-spacing: -.022em; line-height: 1.2; }
.doc__body h3 { margin-top: 28px; }
.doc__body p, .doc__body ul, .doc__body ol { margin-top: 14px; color: var(--text-2); }
.doc__body ul, .doc__body ol { padding-left: 1.25em; display: grid; gap: 8px; }
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body li::marker { color: var(--text-3); }
.doc__body strong { color: var(--text); font-weight: 640; }
.doc__body code {
  padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  font: 500 .875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.doc__body table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .9375rem; }
.doc__body th, .doc__body td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__body th { color: var(--text); font-weight: 640; }
.doc__body td { color: var(--text-2); }
.doc__table { overflow-x: auto; }
.doc__note {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--r-m);
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2);
}
.doc__note p { margin-top: 0; }
.doc__contact {
  margin-top: 22px; display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r-l);
  border: 1px solid var(--line); background: var(--surface);
}
.doc__contact a { font-size: 1.1875rem; font-weight: 620; }
.doc__contact span { color: var(--text-3); font-size: .9375rem; }

.notfound { text-align: center; padding-block: clamp(72px, 14vw, 160px); }
.notfound p { margin: 16px auto 28px; color: var(--text-2); max-width: 30em; }

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