/* DiffSSH — diffssh.com
   One stylesheet, no framework. Colours come from the app icon: the plum gradient
   (display-p3 0.43 0.15 0.42 → 0.16 0.02 0.11) and the coral Git diamond. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbm-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbm-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbm-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbm-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #140510;
  --bg-raised: #1d0919;
  --surface: #241022;
  --surface-2: #2e1530;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);

  --text: #f7eff4;
  --muted: #bba7b6;
  --faint: #8f7a8b;

  --plum: #6e276b;
  --plum-deep: #28051c;
  --coral: #ff6d4d;
  --coral-fill: #f05133;

  --add: #56d364;
  --add-bg: rgb(46 160 67 / 0.15);
  --add-word: rgb(46 160 67 / 0.45);
  --del: #ff8078;
  --del-bg: rgb(248 81 73 / 0.13);
  --del-word: rgb(248 81 73 / 0.4);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 24px;
  --max: 1160px;
  --radius: 14px;
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --plum: color(display-p3 0.431 0.155 0.421);
    --plum-deep: color(display-p3 0.158 0.019 0.111);
    --coral: color(display-p3 1 0.45 0.32);
    --coral-fill: color(display-p3 0.87 0.364 0.251);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--coral-fill); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); }

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

/* ── Navigation ──────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(20 5 16 / 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
}
@supports (animation-timeline: scroll()) {
  .nav { animation: nav-line linear both; animation-timeline: scroll(); animation-range: 0 80px; }
  @keyframes nav-line { to { border-bottom-color: var(--line); } }
}

.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none;
  font-size: 15px;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { background: #fff; }
.nav-cta:active { transform: scale(0.97); }
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--plum) 55%, var(--bg)) 0%, var(--bg) 78%);
  margin-top: -65px;
  padding-top: 65px;
  overflow: clip;
}
.hero::after {
  /* Faint terminal-grid texture, fading out downwards. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 48px;
  padding-block: 72px 96px;
}

.eyebrow {
  margin: 0 0 22px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow .prompt { color: var(--coral); }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.1rem, 7.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--coral); display: block; }

.lede {
  margin: 28px 0 0;
  max-width: 33em;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.lede strong { color: var(--text); font-weight: 600; }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: 36px;
}
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s; }
.store-badge:active { transform: scale(0.97); }
.store-badge img { height: 52px; width: auto; }
.cta-meta {
  margin: 0; font: 400 13px/1.6 var(--mono); color: var(--faint);
}
.cta-meta b { color: var(--muted); font-weight: 500; }

.hero-device {
  display: flex; justify-content: center;
  position: relative;
}
.hero-device .phone { --w: min(340px, 100%); }
.hero-device::before {
  content: ""; position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(240 81 51 / 0.16), transparent 70%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 72px; gap: 56px; }
  .hero-device .phone { --w: min(300px, 78vw); }
}

/* ── Devices ─────────────────────────────────────────────────── */
/* Captures are 1320 × 2868 (iPhone 17 Pro Max) and 2752 × 2064 (iPad Pro 13").
   Percent radii are relative to width and height, so x% / (x · w/h)% keeps the
   corners circular at any size. */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  flex: none;
  padding: 3.3%;
  border-radius: 15.5% / 7.4%;
  background: linear-gradient(160deg, #3a3540 0%, #141116 40%, #0b090c 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    inset 0 0 0 4px #050405,
    0 1px 0 rgb(255 255 255 / 0.06),
    0 50px 100px -30px rgb(0 0 0 / 0.75),
    0 30px 60px -40px rgb(240 81 51 / 0.25);
}
.phone .screen {
  position: relative;
  overflow: hidden;
  border-radius: 12.6% / 5.8%;
  background: #000;
  aspect-ratio: 1320 / 2868;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::after {
  /* Dynamic Island: the simulator captures leave it out. */
  content: ""; position: absolute;
  top: 1.15%; left: 50%; translate: -50% 0;
  width: 28.6%; height: 3.85%;
  border-radius: 999px; background: #000;
}

.tablet {
  position: relative;
  width: 100%;
  padding: 1.9%;
  border-radius: 4.6% / 6.1%;
  background: linear-gradient(160deg, #3a3540 0%, #141116 40%, #0b090c 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.15),
    inset 0 0 0 3px #050405,
    0 60px 120px -40px rgb(0 0 0 / 0.8);
}
.tablet .screen {
  overflow: hidden;
  border-radius: 2.9% / 3.9%;
  aspect-ratio: 2752 / 2064;
  background: #000;
}
.tablet .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ────────────────────────────────────────────────── */

.section { padding-block: clamp(80px, 11vw, 140px); }
.section + .section { border-top: 1px solid var(--line); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 500 13px/1 var(--mono);
  color: var(--coral);
  letter-spacing: 0.01em;
}
.kicker::before {
  content: "@@"; color: var(--faint);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25;
}
.section-intro {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: 1.12rem; color: var(--muted); text-wrap: pretty;
}
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

code, .code {
  font-family: var(--mono);
  font-size: 0.88em;
}
p code, li code, dd code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82em;
  white-space: nowrap;
}

/* ── The pitch, as a diff ────────────────────────────────────── */

.pitch { padding-block: 16px 0; }
.pitch + .section { padding-top: clamp(96px, 12vw, 150px); }
.pitch-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.pitch-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pitch-head p { margin: 0; color: var(--faint); font: 400 13px/1.4 var(--mono); }

.diff {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0f040c;
  overflow: hidden;
  font: 400 clamp(13px, 1.55vw, 17px)/1.75 var(--mono);
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.9);
}
.diff-file {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.diff-file .badge {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: #e8912d; color: #1a0b00; font-weight: 700; font-size: 12px;
}
.diff-file .stat { margin-left: auto; display: flex; gap: 10px; }
.diff-file .stat .a { color: var(--add); }
.diff-file .stat .d { color: var(--del); }

.diff-body { overflow-x: auto; }
.diff-body table { border-collapse: collapse; width: 100%; min-width: 34em; }
.diff-body td { padding: 0 12px; vertical-align: top; white-space: pre; }
.diff-body td.ln {
  width: 1%; padding-inline: 10px 6px; text-align: right;
  color: rgb(255 255 255 / 0.28); user-select: none; font-size: 0.86em;
}
.diff-body td.sign { width: 1%; padding-inline: 8px 4px; user-select: none; }
.diff-body td.txt { width: 100%; padding-right: 24px; }
.diff-body tr.hunk td { background: rgb(110 39 107 / 0.28); color: #c79fc2; padding-block: 6px; }
.diff-body tr.hunk td:first-child { padding-left: 18px; }
.diff-body tr.del { background: var(--del-bg); }
.diff-body tr.del .sign { color: var(--del); }
.diff-body tr.del .txt { color: #f3d7d5; }
.diff-body tr.add { background: var(--add-bg); }
.diff-body tr.add .sign { color: var(--add); }
.diff-body tr.add .txt { color: #dff5e1; }
.diff-body tr.ctx .txt { color: var(--muted); }
.diff-body tr:last-child td { padding-bottom: 10px; }
.diff-body tr.hunk + tr td { padding-top: 8px; }
.diff-body mark {
  background: var(--add-word); color: #fff; border-radius: 3px; padding: 0 2px; margin: 0 -2px;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .diff-body tr.del, .diff-body tr.add {
      animation: diff-in linear both;
      animation-timeline: view();
    }
    .diff-body tr.del { animation-range: entry 0% cover 30%; }
    .diff-body tr.add { animation-range: entry 20% cover 40%; }
    @keyframes diff-in {
      from { opacity: 0; transform: translateX(-10px); }
    }
  }
}

/* ── Feature rows ────────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 32rem; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; margin: 20px 0 0; text-wrap: pretty; }

.plus {
  list-style: none; margin: 28px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.plus li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.98rem; line-height: 1.5;
}
.plus li::before {
  content: "+"; position: absolute; left: 4px; top: 11px;
  font: 500 0.98rem/1.5 var(--mono); color: var(--add);
}

.feature-media {
  display: flex; justify-content: center; align-items: flex-start;
  position: relative;
}
.feature-media .phone { --w: min(320px, 72vw); }

.pair { gap: 0; }
.pair .phone { --w: min(280px, 46vw); }
.pair .phone:first-child { opacity: 0.92; }
.pair .phone:last-child { z-index: 1; margin-left: -16%; margin-top: 20%; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
  .pair .phone { --w: min(250px, 50vw); }
}

/* Terminal session timeline */
.session {
  margin: 28px 0 0; padding: 0; list-style: none;
  font: 400 13.5px/1.5 var(--mono);
  position: relative;
}
.session li {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px;
  padding: 0 0 18px 22px;
}
.session li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--add); box-shadow: 0 0 0 4px rgb(86 211 100 / 0.15);
}
.session li::after {
  content: ""; position: absolute; left: 4px; top: 18px; bottom: 2px;
  border-left: 1px solid var(--line-strong);
}
.session li:last-child::after { display: none; }
.session li:last-child { padding-bottom: 0; }
.session li.lost::before { background: var(--faint); box-shadow: none; }
.session li.lost::after { border-left-style: dashed; }
.session time { color: var(--faint); }
.session .what { color: var(--text); }
.session .how { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.session .how code { font-size: 1em; color: #e9c7e4; }

/* ── Repository strip ────────────────────────────────────────── */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 64px;
}
.strip figure { margin: 0; }
.strip .phone { --w: 100%; }
.strip figcaption { margin-top: 26px; }
.strip figcaption p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 900px) {
  .strip {
    display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 24px;
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip figure { flex: 0 0 min(250px, 66vw); scroll-snap-align: center; }
}

/* ── Big screens ─────────────────────────────────────────────── */

.big-screen .tablet-wrap {
  margin: 64px auto 0;
  max-width: 1040px;
}
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin: 64px auto 0; max-width: 1040px;
}
.facts div { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.facts p { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 24px; }
}

/* ── How it works ────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.how-grid .term { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .term { position: static; }
}

.term {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0c030a;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.9);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  font: 400 12.5px/1 var(--mono); color: var(--faint);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.term-bar span { margin-left: 10px; }
.term pre {
  margin: 0; padding: 18px 20px 22px;
  overflow-x: auto;
  font: 400 13px/1.85 var(--mono);
  color: #e6d8e2;
  tab-size: 2;
}
.term .c { color: var(--faint); font-style: italic; }
.term .p { color: var(--add); }
.term .k { color: #ffa98f; }

.reqs { margin: 36px 0 0; padding: 0; }
.reqs div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.reqs div:last-child { border-bottom: 1px solid var(--line); }
.reqs dt { font: 500 13px/1.6 var(--mono); color: var(--coral); padding-top: 2px; }
.reqs dd { margin: 0; color: var(--muted); font-size: 0.98rem; }
.reqs dd strong { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .reqs div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Privacy ─────────────────────────────────────────────────── */

.privacy {
  background:
    radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--plum) 40%, transparent), transparent 70%),
    var(--bg);
}
.privacy h2 { max-width: 15em; margin-inline: auto; }
.nots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 64px 0 0; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.nots li { background: var(--bg-raised); padding: 26px 24px 28px; }
.nots b { display: block; font: 500 13px/1.3 var(--mono); color: var(--coral); margin-bottom: 10px; }
.nots p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 900px) { .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .nots { grid-template-columns: 1fr; } }
.privacy-foot {
  margin: 28px 0 0; text-align: center; color: var(--faint); font-size: 0.95rem;
}
.privacy-foot a { color: var(--muted); text-underline-offset: 3px; }
.privacy-foot a:hover { color: var(--text); }

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid > div:first-child p:not(.kicker) { color: var(--muted); margin: 18px 0 0; }
.faq-grid > div:first-child a { color: var(--text); text-underline-offset: 3px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font: 400 20px/1 var(--mono); color: var(--faint);
  transition: transform 0.2s, color 0.2s;
}
.faq details[open] summary::after { content: "−"; color: var(--coral); }
.faq summary:hover::after { color: var(--text); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq details > div p { margin: 0; }
.faq details > div p + p { margin-top: 10px; }
.faq details a { color: var(--text); text-underline-offset: 3px; }

/* ── Closing ─────────────────────────────────────────────────── */

.closing {
  text-align: center;
  padding-block: clamp(96px, 12vw, 160px);
  background: linear-gradient(0deg, color-mix(in srgb, var(--plum) 45%, var(--bg)) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.closing img.icon { width: 112px; height: 112px; margin: 0 auto 36px; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5)); }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.closing h2 span { color: var(--coral); }
.closing .cta-row { justify-content: center; }

.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  font-size: 14px; color: var(--faint);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── Reveal on scroll (CSS only, where supported) ────────────── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(40px); }
    }
  }
}

/* ── Document pages (privacy, support) ───────────────────────── */

.doc-hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--plum) 40%, var(--bg)) 0%, var(--bg) 100%);
  margin-top: -65px; padding: calc(65px + 72px) 0 40px;
}
.doc-hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 1;
}
.doc-hero p { margin: 16px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.doc-hero .meta { font: 400 13px/1.5 var(--mono); color: var(--faint); }

.doc, .doc-hero .wrap {
  max-width: calc(720px + var(--gutter) * 2);
}
.doc {
  padding-block: 24px 120px;
}
.doc h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.2;
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.doc h2:first-child { margin-top: 24px; }
.doc h3 { margin: 32px 0 0; font-size: 1.1rem; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 14px 0 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 1.3em; }
.doc li { margin: 6px 0; padding-left: 4px; }
.doc li::marker { color: var(--faint); }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc a:hover { color: var(--coral); }

.summary-box {
  margin: 8px 0 0; padding: 22px 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-raised);
}
.summary-box ul { list-style: none; padding: 0; margin: 0; }
.summary-box li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--text); }
.summary-box li::before { content: "+"; position: absolute; left: 2px; font-family: var(--mono); color: var(--add); }

.table-wrap { overflow-x: auto; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font: 500 12.5px/1.4 var(--mono); color: var(--faint); background: var(--bg-raised); }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px !important; margin: 18px 0 !important; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text); font: 500 13px/1 var(--mono);
}

.contact-card {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 0;
}
.button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}
.doc a.button:hover { background: var(--surface-2); border-color: rgb(255 255 255 / 0.22); color: var(--text); }
.button svg { width: 17px; height: 17px; }

/* 404 */
.lost-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.lost-page .term { max-width: 560px; margin: 0 auto 40px; text-align: left; }
.lost-page h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.035em; margin: 0; }
.lost-page p { color: var(--muted); }
.lost-page a { color: var(--text); text-underline-offset: 3px; }

/* ── Diff close-up (review row) ──────────────────────────────── */

.closeup { flex-direction: column; align-items: stretch; margin: 0; }
.closeup-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.85), 0 30px 80px -50px rgb(240 81 51 / 0.35);
}
.closeup-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
  font: 400 12.5px/1 var(--mono); color: var(--muted);
}
.closeup-bar .badge {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  background: #e8912d; color: #1a0b00; font-weight: 700; font-size: 11px;
}
.closeup-bar .stat { margin-left: auto; display: flex; gap: 10px; }
.closeup-bar .a { color: var(--add); }
.closeup-bar .d { color: var(--del); }
.closeup-card img { width: 100%; }
.closeup figcaption {
  margin-top: 16px; font: 400 12.5px/1.5 var(--mono); color: var(--faint);
}

@media (max-width: 640px) {
  .diff-body table { min-width: 0; }
  .diff-body td.txt, .diff-body tr.hunk td { white-space: pre-wrap; }
  .diff-body td.txt { padding-right: 14px; }
}
