/* ==========================================================================
   SnapDesk — site design system
   Fonts: Bricolage Grotesque (display), Geist (text), Geist Mono (specs)
   Colors are taken from the SnapDesk logo (blue + teal on near-black ink).
   ========================================================================== */

:root {
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --paper-3: #e2e0d7;
  --card: #ffffff;
  --ink: #0d0f12;
  --ink-2: #2b2f36;
  --muted: #646a73;
  --line: #d9d7ce;
  --line-soft: #e6e4dc;
  --blue: #2f5bff;
  --blue-ink: #1d3fd6;
  --blue-soft: #e3e9ff;
  --teal: #16c0ae;
  --teal-soft: #d6f5f0;
  --pdf: #e5484d;
  --amber: #f2a93b;

  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --radius: 14px;
  --radius-s: 8px;
  --shadow-win: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -20px rgba(13, 15, 18, .28), 0 12px 24px -12px rgba(13, 15, 18, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base (only on redesigned pages) ---------- */
body.sd {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:where(body.sd) *, :where(body.sd) *::before, :where(body.sd) *::after { box-sizing: border-box; }
:where(body.sd) :where(img, svg) { display: block; max-width: 100%; }
:where(body.sd) a { color: inherit; }
:where(body.sd) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(body.sd) :where(ul, ol) { list-style: none; }
:where(body.sd) button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
body.sd :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sd-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.sd-skip:focus { left: 8px; }

.sd-mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: -.01em; }
.sd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.sd-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }

.sd-h1, .sd-h2, .sd-h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -.035em; color: var(--ink); }
.sd-h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1; }
.sd-h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; }
.sd-h3 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.sd-lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.sd-muted { color: var(--muted); }
.sd-hl { color: var(--blue); }

.sd-section { padding: 112px 0; }
.sd-section--tight { padding: 80px 0; }
.sd-head { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; max-width: 720px; }
.sd-head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.sd-head p { color: var(--ink-2); max-width: 46ch; }

/* ---------- Buttons ---------- */
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.sd-btn svg { width: 18px; height: 18px; flex: none; }
.sd-btn--primary { background: var(--blue); color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(47, 91, 255, .7); }
.sd-btn--primary:hover { background: var(--blue-ink); transform: translateY(-1px); }
.sd-btn--xl { min-height: 60px; padding: 0 28px; font-size: 1.075rem; border-radius: 12px; }
.sd-btn--ink { background: var(--ink); color: #fff !important; }
.sd-btn--ink:hover { background: #262a31; }
.sd-btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.sd-btn--ghost:hover { border-color: var(--ink); }
.sd-btn--light { background: #fff; color: var(--ink) !important; }
.sd-btn--light:hover { background: var(--paper); }
.sd-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.sd-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.sd-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(245, 244, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-text); color: var(--ink);
}
.sd-header__in { display: flex; align-items: center; gap: 28px; height: 68px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sd-logo img { width: 30px; height: 30px; border-radius: 7px; }
.sd-logo b { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.sd-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sd-nav a { padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.sd-nav a:hover { background: var(--paper-2); color: var(--ink); }
.sd-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.sd-header .sd-btn { min-height: 40px; padding: 0 16px; font-size: .925rem; border-radius: 9px; }
.sd-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; margin-left: 4px; }
.sd-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.sd-burger span::before, .sd-burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.sd-burger span::before { top: -5px; } .sd-burger span::after { top: 5px; }
.sd-header.is-open .sd-burger span { background: transparent; }
.sd-header.is-open .sd-burger span::before { transform: translateY(5px) rotate(45deg); }
.sd-header.is-open .sd-burger span::after { transform: translateY(-5px) rotate(-45deg); }
.sd-mnav { display: none; border-top: 1px solid var(--line-soft); padding: 12px 24px 24px; }
.sd-mnav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.sd-mnav .sd-btn { width: 100%; margin-top: 18px; min-height: 52px; }
.sd-header.is-open .sd-mnav { display: block; }

/* ---------- Icons ---------- */
.sd-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hero ---------- */
.sd-hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.sd-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(13, 15, 18, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.sd-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.sd-hero__copy { display: grid; gap: 24px; align-content: start; }
.sd-badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--ink-2); text-decoration: none;
}
.sd-badge b { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 999px; }
.sd-hero .sd-h1 { max-width: 15ch; }
.sd-hero .sd-lead { max-width: 40ch; }
.sd-cta { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.sd-cta__meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sd-cta__meta a { color: var(--muted); }
.sd-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sd-checks { gap: 6px; }
.sd-checks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; font-size: .84rem !important; background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.sd-checks svg { width: 16px; height: 16px; color: var(--teal); stroke-width: 2.4; }

/* ---------- App window mock ---------- */
.sd-demo { position: relative; }
.sd-demo__tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.sd-demo__tab {
  position: relative; flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px; border: 0; border-radius: 10px; background: transparent;
  font-size: .875rem; font-weight: 600; color: var(--muted); text-align: left; overflow: hidden;
  transition: background-color .2s, color .2s;
}
.sd-demo__tab:hover { color: var(--ink); }
.sd-demo__tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(13,15,18,.06); }
.sd-demo__tab .sd-ico { width: 17px; height: 17px; }
.sd-demo__tab i { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.sd-demo__tab i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.sd-demo__tab[aria-selected="true"] i::after { animation: sdProgress var(--dur, 6s) linear forwards; }
.sd-demo.is-paused .sd-demo__tab i::after { animation-play-state: paused; }
@keyframes sdProgress { to { transform: scaleX(1); } }

.app {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid rgba(13,15,18,.1);
  box-shadow: var(--shadow-win); overflow: hidden; font-family: var(--f-text); color: var(--ink); user-select: none;
}
.app__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding-left: 14px; border-bottom: 1px solid var(--line-soft); background: #fbfbf9; font-size: .8rem; }
.app__bar img { width: 16px; height: 16px; border-radius: 4px; }
.app__bar b { font-weight: 600; }
.app__bar span { color: var(--muted); }
.app__win { margin-left: auto; display: flex; height: 100%; }
.app__win i { width: 44px; display: grid; place-items: center; color: var(--ink-2); }
.app__win i svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.2; fill: none; }
.app__body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.app__side { border-right: 1px solid var(--line-soft); padding: 12px 10px; background: #fbfbf9; display: grid; align-content: start; gap: 2px; }
.app__side p { font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px 8px; }
.app__tool { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: .82rem; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s; }
.app__tool .sd-ico { width: 16px; height: 16px; }
.app__tool.is-on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.app__main { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--paper); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.app__stage { position: relative; min-height: 320px; }
.app__foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-soft); background: var(--card); font-size: .78rem; }
.app__foot > span:first-child { color: var(--muted); font-family: var(--f-mono); font-size: .72rem; }
.app__save { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 600; font-size: .78rem; transition: transform .15s; }
.app__save.is-press { transform: scale(.94); background: var(--blue-ink); }

.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; padding: 24px; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .35s; }

/* PDF page thumbnail */
.pg {
  position: relative; width: 64px; height: 84px; border-radius: 4px; background: #fff;
  box-shadow: 0 0 0 1px rgba(13,15,18,.1), 0 4px 10px -4px rgba(13,15,18,.18);
  padding: 9px 8px; display: grid; align-content: start; gap: 4px; flex: none;
}
.pg::before { content: ""; height: 6px; width: 60%; border-radius: 2px; background: var(--c, var(--blue)); }
.pg::after { content: ""; height: 34px; border-radius: 2px; background: repeating-linear-gradient(to bottom, #d9dbe0 0 2px, transparent 2px 6px); }
.pg--b { --c: var(--teal); }
.pg--img::after { background: linear-gradient(135deg, #c9d3f5, #e8edfb); height: 30px; }
.pg em { position: absolute; bottom: 5px; right: 6px; font-family: var(--f-mono); font-style: normal; font-size: .6rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.chip small { font-family: var(--f-mono); font-weight: 400; color: var(--muted); font-size: .68rem; }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--blue)); }
.chip--ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--ok small { color: #b9bec7; }
.chip--ok svg { width: 14px; height: 14px; color: var(--teal); stroke-width: 2.6; }

/* Scene: merge */
.mg { display: grid; justify-items: center; gap: 26px; }
.mg__files { display: flex; gap: 12px; transition: opacity .4s, transform .5s var(--ease); }
.mg__row { position: relative; display: flex; gap: 10px; padding: 14px; border-radius: 12px; border: 1.5px dashed transparent; transition: border-color .4s, background-color .4s; }
.mg__row .pg { transition: transform .8s var(--ease); }
.mg__row .pg--b { transform: translate(70px, 70px) rotate(8deg); }
.mg__row .pg--a:nth-child(1) { transform: translateX(-24px); }
.mg__row .pg--a:nth-child(2) { transform: translateX(-12px); }
.mg__res { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.scene[data-step="1"] .mg__row .pg, .scene[data-step="2"] .mg__row .pg { transform: none; }
.scene[data-step="1"] .mg__row .pg--b { transition-delay: .1s; }
.scene[data-step="2"] .mg__row { border-color: var(--blue); background: rgba(47,91,255,.05); }
.scene[data-step="2"] .mg__files { opacity: .35; transform: scale(.96); }
.scene[data-step="2"] .mg__res { opacity: 1; transform: none; }

/* Scene: compress */
.cp { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; width: 100%; max-width: 460px; }
.cp__doc { position: relative; }
.cp__doc .pg { width: 110px; height: 144px; padding: 14px 12px; gap: 7px; transition: transform .9s var(--ease); }
.cp__doc .pg::after { height: 56px; }
.cp__doc .pg + .pg { position: absolute; top: 8px; left: 8px; z-index: -1; }
.cp__panel { display: grid; gap: 14px; }
.cp__label { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cp__seg { display: flex; padding: 3px; border-radius: 8px; background: var(--paper-2); font-size: .72rem; font-weight: 600; }
.cp__seg span { flex: 1; text-align: center; padding: 5px 6px; border-radius: 6px; color: var(--muted); }
.cp__seg span.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(13,15,18,.1); }
.cp__size { display: flex; align-items: baseline; gap: 10px; }
.cp__size b { font-family: var(--f-display); font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp__size em { font-style: normal; font-family: var(--f-mono); font-size: .75rem; padding: 3px 7px; border-radius: 6px; background: var(--teal-soft); color: #0b7d71; opacity: 0; transition: opacity .3s; }
.cp__bar { height: 8px; border-radius: 8px; background: var(--paper-2); overflow: hidden; }
.cp__bar i { display: block; height: 100%; width: 100%; border-radius: 8px; background: var(--pdf); transition: width 1.6s var(--ease), background-color 1.6s; }
.cp__was { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.scene[data-step="1"] .cp__bar i, .scene[data-step="2"] .cp__bar i { width: 14%; background: var(--teal); }
.scene[data-step="1"] .cp__doc .pg:first-child, .scene[data-step="2"] .cp__doc .pg:first-child { transform: scale(.86); }
.scene[data-step="2"] .cp__size em { opacity: 1; }

/* Scene: organize */
.og { display: grid; justify-items: center; gap: 26px; }
.og__row { position: relative; width: calc(5 * 64px + 4 * 14px); height: 84px; }
.og__row .pg { position: absolute; top: 0; left: calc(var(--slot) * 78px); transition: left .7s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.og__row .pg.lift { transform: translateY(-20px) rotate(-3deg); z-index: 2; box-shadow: 0 0 0 2px var(--blue), 0 18px 30px -10px rgba(13,15,18,.35); }
.og__row .pg.bad::before { background: var(--amber); }
.og__row .pg em { font-size: .72rem; font-weight: 600; color: var(--ink); }
.og__cursor { position: absolute; width: 22px; height: 22px; left: calc(var(--cx, 3) * 78px + 40px); top: 54px; transition: left .7s var(--ease), top .35s var(--ease); z-index: 3; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.og__res { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.scene[data-step="3"] .og__res { opacity: 1; transform: none; }
.og__hint { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }

/* ---------- Tool grid (bento) ---------- */
.sd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.tool:hover { border-color: var(--line); transform: translateY(-2px); }
.tool--wide { grid-column: span 2; }
.tool__viz { position: relative; height: 190px; background: var(--paper); border-bottom: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.tool__body { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.tool__body header { display: flex; align-items: center; gap: 10px; }
.tool__body header .sd-ico { color: var(--blue); }
.tool__body p { color: var(--ink-2); font-size: .97rem; }
.tool__use { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); margin-top: 4px; }
.tool--note { background: var(--ink); color: #e6e8ec; border-color: var(--ink); }
.tool--note .tool__body { padding: 28px; align-content: space-between; height: 100%; }
.tool--note h3 { color: #fff; }
.tool--note p { color: #b9bec7; }
.tool--note ul { display: grid; gap: 10px; margin-top: 12px; }
.tool--note li { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: #fff; }
.tool--note li svg { color: var(--pdf); width: 16px; height: 16px; stroke-width: 2.4; }

/* mini visualisations — animate only while visible */
.viz { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.viz .pg { width: 46px; height: 60px; padding: 7px 6px; gap: 3px; }
.viz .pg::before { height: 4px; }
.viz .pg::after { height: 22px; background: repeating-linear-gradient(to bottom, #d9dbe0 0 2px, transparent 2px 5px); }
.viz * { animation-play-state: paused !important; }
.in-view .viz * { animation-play-state: running !important; }

.v-merge .pg--a { animation: vMergeA 4s var(--ease) infinite; }
.v-merge .pg--b { animation: vMergeB 4s var(--ease) infinite; }
.v-merge .pg:nth-child(2) { animation-delay: .06s; }
.v-merge .pg:nth-child(4) { animation-delay: .06s; }
.v-merge .bracket { position: absolute; inset: -12px; border: 1.5px dashed var(--blue); border-radius: 10px; animation: vBracket 4s var(--ease) infinite; }
@keyframes vMergeA { 0%, 12% { transform: translateX(-34px); } 45%, 88% { transform: none; } 100% { transform: translateX(-34px); } }
@keyframes vMergeB { 0%, 12% { transform: translateX(34px); } 45%, 88% { transform: none; } 100% { transform: translateX(34px); } }
@keyframes vBracket { 0%, 45% { opacity: 0; transform: scale(1.06); } 55%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.v-split .pg { animation: vSplitL 4s var(--ease) infinite; }
.v-split .pg.r { animation-name: vSplitR; }
.v-split .pg.sel::before { animation: vSel 4s infinite; }
@keyframes vSplitL { 0%, 25% { transform: none; } 55%, 85% { transform: translateX(-18px); } 100% { transform: none; } }
@keyframes vSplitR { 0%, 25% { transform: none; } 55%, 85% { transform: translateX(18px) translateY(-6px); box-shadow: 0 0 0 2px var(--blue), 0 8px 14px -6px rgba(13,15,18,.3); } 100% { transform: none; } }
@keyframes vSel { 0%, 20% { background: var(--blue); } 30%, 90% { background: var(--teal); } }

.v-compress { flex-direction: column; gap: 14px; width: 70%; max-width: 260px; }
.v-compress .row { display: flex; justify-content: space-between; width: 100%; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.v-compress .row b { font-family: var(--f-display); color: var(--ink); font-size: 1.6rem; letter-spacing: -.03em; position: relative; display: inline-grid; }
.v-compress .row b span { grid-area: 1 / 1; text-align: right; }
.v-compress .row b span:first-child { animation: vFadeOut 4s infinite; }
.v-compress .row b span:last-child { animation: vFadeIn 4s infinite; color: #0b7d71; }
.v-compress .bar { width: 100%; height: 10px; border-radius: 10px; background: var(--paper-3); overflow: hidden; }
.v-compress .bar i { display: block; height: 100%; border-radius: 10px; animation: vShrink 4s var(--ease) infinite; }
@keyframes vShrink { 0%, 15% { width: 100%; background: var(--pdf); } 60%, 90% { width: 13%; background: var(--teal); } 100% { width: 100%; background: var(--pdf); } }
@keyframes vFadeOut { 0%, 30% { opacity: 1; } 45%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vFadeIn { 0%, 30% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }

.v-convert { perspective: 600px; }
.v-convert .card { position: relative; width: 84px; height: 108px; transform-style: preserve-3d; animation: vFlip 4.5s var(--ease) infinite; }
.v-convert .face { position: absolute; inset: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(13,15,18,.1), 0 6px 14px -6px rgba(13,15,18,.25); backface-visibility: hidden; display: grid; align-content: end; padding: 10px; }
.v-convert .face::before { content: ""; position: absolute; left: 10px; right: 10px; top: 12px; height: 40px; background: repeating-linear-gradient(to bottom, #d9dbe0 0 2px, transparent 2px 6px); }
.v-convert .face b { justify-self: start; font-family: var(--f-mono); font-size: .66rem; font-weight: 600; color: #fff; padding: 2px 6px; border-radius: 4px; background: var(--pdf); }
.v-convert .face--back { transform: rotateY(180deg); }
.v-convert .face--back b { background: var(--blue); }
.v-convert .arrow { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
@keyframes vFlip { 0%, 30% { transform: rotateY(0); } 45%, 80% { transform: rotateY(180deg); } 95%, 100% { transform: rotateY(360deg); } }

.v-rotate .pg { width: 60px; height: 78px; }
.v-rotate .pg::after { height: 30px; }
.v-rotate .pg.turn { animation: vRot 4s var(--ease) infinite; }
.v-rotate .pg.turn::before { animation: vRotC 4s infinite; }
@keyframes vRot { 0%, 25% { transform: rotate(-90deg); } 55%, 90% { transform: rotate(0); } 100% { transform: rotate(-90deg); } }
@keyframes vRotC { 0%, 40% { background: var(--amber); } 55%, 90% { background: var(--blue); } 100% { background: var(--amber); } }

.v-organize { width: calc(5 * 46px + 4 * 10px); height: 60px; display: block; }
.v-organize .pg { position: absolute; top: 0; left: calc(var(--s) * 56px); }
.v-organize .pg em { font-size: .62rem; font-weight: 600; color: var(--ink); bottom: 4px; right: 5px; }
.v-organize .p3 { animation: vSwapA 4s var(--ease) infinite; z-index: 2; }
.v-organize .p2 { animation: vSwapB 4s var(--ease) infinite; }
@keyframes vSwapA { 0%, 15% { transform: none; } 30% { transform: translateY(-14px); box-shadow: 0 0 0 2px var(--blue), 0 10px 16px -8px rgba(13,15,18,.35); } 55% { transform: translate(-56px, -14px); box-shadow: 0 0 0 2px var(--blue), 0 10px 16px -8px rgba(13,15,18,.35); } 65%, 90% { transform: translateX(-56px); } 100% { transform: none; } }
@keyframes vSwapB { 0%, 35% { transform: none; } 55%, 90% { transform: translateX(56px); } 100% { transform: none; } }

/* ---------- Use cases ---------- */
.cases { border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.case__n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.case__q { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.case__tool { display: flex; flex-wrap: wrap; gap: 6px; }
.case__tool span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: .82rem; font-weight: 600; }
.case__tool .sd-ico { width: 14px; height: 14px; }
.case__out { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); }
.case__out b { color: var(--ink); font-weight: 600; }

/* ---------- Privacy band (dark) ---------- */
.sd-dark { background: var(--ink); color: #e6e8ec; }
.sd-dark .sd-h2, .sd-dark .sd-h3 { color: #fff; }
.sd-dark .sd-kicker { color: #9aa1ab; }
.sd-dark .sd-kicker::before { background: var(--teal); }
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.privacy__copy { display: grid; gap: 20px; position: sticky; top: 110px; }
.privacy__copy p { color: #b9bec7; max-width: 42ch; }
.ledger { border-top: 1px solid #2c3038; }
.ledger div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid #2c3038; }
.ledger dt { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #9aa1ab; padding-top: 3px; }
.ledger dd { color: #fff; font-size: 1.02rem; }
.ledger dd small { display: block; color: #9aa1ab; font-size: .88rem; margin-top: 4px; }
.ledger dd a { color: var(--teal); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2c3038; border: 1px solid #2c3038; border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.facts div { background: var(--ink); padding: 22px 20px; display: grid; gap: 6px; }
.facts b { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; color: #fff; font-weight: 600; }
.facts span { color: #9aa1ab; font-size: .9rem; }

/* ---------- Release + maker cards ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.panel { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); padding: 32px; display: grid; gap: 20px; align-content: start; }
.panel--tint { background: var(--paper-2); border-color: var(--paper-2); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { font-family: var(--f-mono); font-size: .85rem; font-weight: 500; text-align: right; }
.maker { display: flex; gap: 16px; align-items: center; }
.maker img { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); }
.maker p { color: var(--ink-2); font-size: .95rem; }
.addr { font-style: normal; font-size: .92rem; color: var(--ink-2); display: grid; gap: 4px; }
.addr a { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.7px solid var(--ink); border-bottom: 1.7px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 62ch; }
.qa details p a { font-weight: 600; }

/* ---------- Final CTA ---------- */
.final { position: relative; border-radius: 24px; background: var(--blue); color: #fff; padding: 64px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; overflow: hidden; isolation: isolate; }
.final::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid var(--teal); opacity: .35; z-index: -1; }
.final .sd-h2 { color: #fff; max-width: 16ch; }
.final p { color: #dfe6ff; margin-top: 14px; max-width: 46ch; }
.final__cta { display: grid; gap: 10px; justify-items: end; }
.final__cta .sd-mono { color: #c8d3ff; }

/* ---------- Footer ---------- */
.sd-footer { background: var(--ink); color: #b9bec7; font-family: var(--f-text); font-size: .95rem; padding: 72px 0 32px; }
.sd-footer a { color: #e6e8ec; text-decoration: none; }
.sd-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sd-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sd-footer .sd-logo { color: #fff; }
.sd-footer__about { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.sd-footer h4 { margin: 0 0 14px; font-family: var(--f-mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7d848f; }
.sd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-footer address { font-style: normal; display: grid; gap: 10px; line-height: 1.45; }
.sd-footer__bar { max-width: var(--wrap); margin: 56px auto 0; padding: 24px 24px 0; border-top: 1px solid #2c3038; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; color: #7d848f; }
.sd-footer__bar nav { display: flex; flex-wrap: wrap; gap: 20px; }
.sd-footer__bar a { color: #9aa1ab; }

/* ---------- Cookie banner ---------- */
.sd-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; font-family: var(--f-text); }
.sd-cookie__in { pointer-events: auto; width: 100%; max-width: 720px; display: flex; align-items: center; gap: 20px; padding: 16px 16px 16px 22px; border-radius: 14px; background: var(--ink); color: #e6e8ec; box-shadow: 0 20px 40px -12px rgba(0,0,0,.4); font-size: .92rem; }
.sd-cookie__in p { margin: 0; flex: 1; }
.sd-cookie__in p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sd-cookie__btns { display: flex; gap: 8px; flex: none; }
.sd-cookie button { border: 0; border-radius: 8px; height: 38px; padding: 0 14px; font: 600 .86rem var(--f-text); cursor: pointer; }
.sd-cookie .c-all { background: #fff; color: var(--ink); }
.sd-cookie .c-min { background: #262a31; color: #fff; }
.sd-cookie .c-fn { background: transparent; color: #9aa1ab; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }

/* ---------- Download page ---------- */
.dl-hero { padding: 64px 0 88px; }
.dl-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.dl-hero__copy { display: grid; gap: 22px; padding-top: 12px; }
.dl-hero .sd-h1 { max-width: 12ch; }
.dl-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-soft); max-width: 460px; }
.dl-file__ico { width: 40px; height: 48px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.dl-file__ico img { width: 22px; height: 22px; }
.dl-file b { display: block; font-family: var(--f-mono); font-size: .88rem; font-weight: 600; }
.dl-file span { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.release { border-radius: 18px; background: var(--card); border: 1px solid var(--line-soft); overflow: hidden; box-shadow: 0 24px 48px -28px rgba(13,15,18,.25); }
.release__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line-soft); }
.release__head b { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.03em; font-weight: 650; }
.release__tag { font-family: var(--f-mono); font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--teal-soft); color: #0b7d71; font-weight: 600; }
.release dl { padding: 6px 26px 10px; }
.release dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.release dl div:last-child { border-bottom: 0; }
.release dt { color: var(--muted); }
.release dd { font-weight: 500; }
.release dd code { font-family: var(--f-mono); font-size: .78rem; word-break: break-all; }
.release__foot { padding: 16px 26px; background: var(--paper); font-size: .88rem; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.release__foot svg { color: var(--teal); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.2; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); overflow: hidden; display: grid; grid-template-rows: 180px auto; }
.step__viz { background: var(--paper); border-bottom: 1px solid var(--line-soft); display: grid; place-items: center; padding: 20px; }
.step__body { padding: 22px 24px 26px; display: grid; gap: 8px; align-content: start; }
.step__body .sd-mono { color: var(--blue); font-weight: 600; }
.step__body p { color: var(--ink-2); font-size: .97rem; }
.mini { width: 100%; max-width: 260px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(13,15,18,.1), 0 10px 20px -10px rgba(13,15,18,.25); overflow: hidden; font-size: .72rem; }
.mini__bar { height: 22px; background: #fbfbf9; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.mini__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-3); }
.mini__body { padding: 12px; display: grid; gap: 8px; }
.mini__row { display: flex; align-items: center; gap: 8px; }
.mini__row b { font-family: var(--f-mono); font-weight: 600; font-size: .7rem; }
.mini__row small { margin-left: auto; font-family: var(--f-mono); color: var(--muted); font-size: .64rem; }
.mini__prog { height: 5px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.mini__prog i { display: block; height: 100%; width: 70%; background: var(--blue); border-radius: 5px; animation: miniProg 3s var(--ease) infinite; }
@keyframes miniProg { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.mini__btns { display: flex; justify-content: flex-end; gap: 6px; }
.mini__btns span { padding: 4px 10px; border-radius: 5px; background: var(--paper-2); font-weight: 600; font-size: .66rem; }
.mini__btns span.p { background: var(--blue); color: #fff; }
.mini--start { background: #1a1d22; color: #e6e8ec; }
.mini--start .mini__body { gap: 10px; }
.mini--start .search { height: 24px; border-radius: 12px; background: #2c3038; padding: 0 10px; display: flex; align-items: center; font-size: .66rem; color: #9aa1ab; }
.mini--start .hit { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #2c3038; }
.mini--start .hit img { width: 26px; height: 26px; border-radius: 6px; }
.mini--start .hit b { font-size: .74rem; display: block; }
.mini--start .hit small { font-size: .62rem; color: #9aa1ab; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 26px; border-radius: var(--radius); background: #fff7e8; border: 1px solid #f3dfb8; margin-top: 16px; }
.callout svg { width: 26px; height: 26px; color: #b7791f; }
.callout h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; font-family: var(--f-text); letter-spacing: 0; }
.callout p { color: var(--ink-2); font-size: .95rem; }

.sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec .panel h3 { display: flex; align-items: center; gap: 10px; }
.sec .panel h3 svg { color: var(--blue); }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .97rem; color: var(--ink-2); }
.ticks li svg { width: 18px; height: 18px; color: var(--teal); stroke-width: 2.4; margin-top: 3px; }
.ticks li b { color: var(--ink); font-weight: 600; }
.code { margin-top: 4px; border-radius: 10px; background: var(--ink); color: #e6e8ec; padding: 14px 16px; font-family: var(--f-mono); font-size: .8rem; overflow-x: auto; white-space: nowrap; }
.code span { color: var(--teal); }

.req { width: 100%; border-collapse: collapse; font-size: .97rem; }
.req th, .req td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 34%; font-weight: 500; color: var(--muted); }
.req td { font-weight: 500; }
.req tr:first-child th, .req tr:first-child td { border-top: 1px solid var(--ink); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sd-hero__grid, .dl-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .sd-hero .sd-h1 { max-width: 16ch; }
  .privacy, .faq { grid-template-columns: 1fr; gap: 40px; }
  .privacy__copy { position: static; }
  .trust { grid-template-columns: 1fr; }
  .sd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sd-nav { display: none; }
  .sd-burger { display: inline-flex; }
  .sd-header .sd-header__in > .sd-btn { margin-left: auto; }
  .sd-tools { grid-template-columns: 1fr 1fr; }
  .tool--wide { grid-column: span 2; }
  .case { grid-template-columns: 40px 1fr; gap: 10px 16px; }
  .case__tool, .case__out { grid-column: 2; }
  .sd-head--split { grid-template-columns: 1fr; gap: 16px; }
  .steps, .sec { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; padding: 44px 32px; }
  .final__cta { justify-items: start; }
}
@media (max-width: 640px) {
  body.sd { font-size: 16px; }
  .sd-section { padding: 80px 0; }
  .sd-wrap, .sd-header__in { padding: 0 18px; }
  .sd-header .sd-header__in > .sd-btn { display: none; }
  .sd-burger { margin-left: auto; }
  .sd-hero { padding: 40px 0 64px; }
  .sd-btn--xl { width: 100%; }
  .sd-cta { justify-items: stretch; }
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__stage { min-height: 280px; }
  .og__row { transform: scale(.78); }
  .cp { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .cp__doc .pg { width: 80px; height: 104px; }
  .cp__doc .pg::after { height: 36px; }
  .cp__panel { width: 100%; }
  .sd-demo__tab span { display: none; }
  .sd-demo__tab { justify-content: center; }
  .sd-tools { grid-template-columns: 1fr; }
  .tool--wide { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .ledger div { grid-template-columns: 1fr; gap: 6px; }
  .specs { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .release dl div { grid-template-columns: 1fr; gap: 2px; }
  .sd-footer__grid { grid-template-columns: 1fr; }
  .sd-cookie__in { flex-direction: column; align-items: stretch; }
  .sd-cookie__btns { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body.sd *, body.sd *::before, body.sd *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv { opacity: 1; transform: none; }
}
.sd-hero .sd-checks { gap: 8px 18px; }
.sd-hero .sd-checks li { background: none; border: 0; padding: 0; }

/* ---------- Inner page hero ---------- */
.pg-hero { padding: 72px 0 56px; }
.pg-hero__in { display: grid; gap: 22px; }
.pg-hero .sd-h1 { max-width: 17ch; }
.pg-hero .sd-lead { max-width: 52ch; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-soft); font-size: .92rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.jump a:hover { border-color: var(--ink); }
.jump a .sd-ico { width: 17px; height: 17px; color: var(--blue); }

/* ---------- Feature rows ---------- */
.group { padding: 40px 0 24px; }
.group__head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.group__head .sd-mono { color: var(--muted); }
.group__head h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.feat { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.feat:last-child { border-bottom: 0; }
.feat--flip .feat__viz { order: 2; }
.feat__viz { height: 300px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 24px 24px; }
.feat__viz .viz { transform: scale(1.55); }
.feat__copy { display: grid; gap: 14px; align-content: start; }
.feat__copy header { display: flex; align-items: center; gap: 12px; }
.feat__copy header .sd-ico { width: 26px; height: 26px; color: var(--blue); }
.feat__copy .sd-h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.feat__copy > p { color: var(--ink-2); max-width: 46ch; }
.feat__copy .ticks { margin-top: 4px; }
.feat__copy .tool__use { margin-top: 6px; }

/* ---------- Limits (dark) ---------- */
.limits { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.limits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #2c3038; border: 1px solid #2c3038; border-radius: var(--radius); overflow: hidden; }
.limits__list div { background: var(--ink); padding: 24px; display: grid; gap: 8px; align-content: start; }
.limits__list b { color: #fff; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.limits__list b svg { width: 16px; height: 16px; color: var(--pdf); stroke-width: 2.4; }
.limits__list b svg.ok { color: var(--teal); }
.limits__list span { color: #9aa1ab; font-size: .93rem; }
.limits p { color: #b9bec7; max-width: 42ch; }

/* ---------- How it works: anatomy ---------- */
.anatomy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.anatomy__win { position: relative; }
.anatomy__win .app__stage { min-height: 300px; }
.anatomy__win .scene { opacity: 1; visibility: visible; }
.pin { position: absolute; z-index: 5; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; font-weight: 600; box-shadow: 0 0 0 5px rgba(47, 91, 255, .25); }
.legend { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.legend li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; font-weight: 600; }
.legend h3 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.legend p { color: var(--ink-2); font-size: .97rem; }

/* ---------- Recipes ---------- */
.recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.recipe { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); padding: 28px; display: grid; gap: 18px; align-content: start; }
.recipe > p { color: var(--ink-2); font-size: .97rem; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: .9rem; }
.flow span .sd-ico { width: 16px; height: 16px; }
.flow i { font-style: normal; color: var(--muted); font-family: var(--f-mono); }
.flow span.out { background: var(--ink); color: #fff; }
.flow span.out .sd-ico { color: var(--teal); }

/* ---------- Compare table ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cmp th, .cmp td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 32%; }
.cmp td.us { font-weight: 600; background: rgba(47, 91, 255, .05); }
.cmp td.us svg { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; color: var(--teal); stroke-width: 2.6; margin-right: 6px; }

@media (max-width: 1080px) {
  .anatomy, .limits { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat--flip .feat__viz { order: 0; }
  .recipes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 44px 0 32px; }
  .feat__viz { height: 220px; }
  .feat__viz .viz { transform: scale(1.2); }
  .limits__list { grid-template-columns: 1fr; }
  .pin { display: none; }
  .cmp th, .cmp td { padding: 12px 6px; font-size: .9rem; }
}

/* ---------- FAQ page ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 64px; padding-bottom: 40px; }
.faq-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 28px; }
.faq-side nav { display: grid; border-top: 1px solid var(--ink); }
.faq-side nav a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: color .2s; }
.faq-side nav a:hover { color: var(--blue); }
.faq-side nav a .sd-mono { color: var(--muted); font-weight: 400; }
.faq-help { padding: 20px; border-radius: var(--radius); background: var(--paper-2); display: grid; gap: 6px; font-size: .93rem; }
.faq-help p { color: var(--ink-2); }
.faq-help a { font-weight: 600; }
.faq-main { display: grid; gap: 56px; }
.faq-group { scroll-margin-top: 90px; }
.faq-group .group__head { margin-bottom: 0; }
.faq-group .qa { border-top: 0; }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
.story > * { padding-top: 32px; border-top: 1px solid var(--ink); }
.story__lead p { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.story__body { display: grid; gap: 18px; color: var(--ink-2); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.rules li { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.rules li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.rules .sd-mono { color: var(--blue); font-weight: 600; }
.rules p { color: var(--ink-2); font-size: .97rem; }
.spectrum { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 1px; background: #2c3038; border: 1px solid #2c3038; border-radius: var(--radius); overflow: hidden; }
.spectrum div { background: var(--ink); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.spectrum .sd-mono { color: #9aa1ab; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.spectrum b { color: #fff; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.spectrum small { color: #9aa1ab; font-size: .88rem; }
.spectrum .us { background: var(--blue); }
.spectrum .us .sd-mono, .spectrum .us small { color: #dfe6ff; }
.leftout { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.leftout ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.leftout li { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .97rem; }
.leftout li svg { width: 15px; height: 15px; color: var(--pdf); stroke-width: 2.4; }

@media (max-width: 1080px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .faq-side nav { display: none; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story__body { border-top: 0; padding-top: 0; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .rules { grid-template-columns: 1fr; }
  .rules li, .rules li + li { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .rules li:first-child { border-top: 0; }
  .spectrum { grid-template-columns: 1fr; }
}
