/* The app's own tokens (crates/diffacto-ui/src/theme.rs), so the site and the
   product read as one thing. Text colors are nudged darker (light) or brighter
   (dark) than the app's where the site sets them small: every text pair here
   clears 6:1 and UI boundaries clear 3:1. The theme follows the system's
   light or dark setting. */
@font-face { font-family: Geist; src: url(fonts/Geist-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --panel: #f7f8fa;
  --sunken: #f2f4f6;
  --code-bg: #f2f4f6;
  --line: #e6e8ec;
  --line-soft: #eef0f2;
  --line-strong: #868d99;
  --ink: #0f1115;
  --ink-2: #3d4451;
  --muted: #525965;
  --accent: #0b6a63;
  --accent-hover: #08544f;
  --accent-tint: #e6f4f2;
  --on-accent: #ffffff;
  --link: #0b6a63;
  --link-hover: #08544f;
  --focus: #0b6a63;
  --selection: #cfe9e4;
  /* A dark pill on light paper: the header's button and the chosen audience. */
  --solid: #0f1115;
  --on-solid: #ffffff;
  --ins: #00664a;
  --ins-bg: #e4f3ec;
  --del: #a31e14;
  --del-bg: #fbeae8;
  --moved: #6c34bd;
  --moved-bg: #f1ebfb;
  --modify: #7f4d00;
  --modify-bg: #fbf2e1;
  --rename: #17427d;
  --rename-bg: #e7edf6;
  --noise: #4b5260;
  --noise-bg: #eef0f3;
  /* The small pictures on the file-type tiles, which are decoration. */
  --art: #f7f8fa;
  --art-card: #ffffff;
  --art-skel: #e3e6ea;
  --art-bar: #9aa1ad;
  --art-shot: #dfe3e8;
  /* The privacy band, the featured plan and the download band. */
  --band: #e6f4f2;
  --band-ink: #08443f;
  --band-ink-2: #24443f;
  --feature: #0f1115;
  --feature-ink: #ffffff;
  --feature-ink-2: #c5cbd4;
  --feature-line: #30343c;
  --cta: #08544f;
  --cta-ink: #ffffff;
  --cta-ink-2: #d5efeb;
  --cta-button: #ffffff;
  --on-cta-button: #08443f;
  --lift: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.16);
  --shade: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #16181d;
    --panel: #1b1e24;
    --sunken: #111317;
    --code-bg: #23272e;
    --line: #30343c;
    --line-soft: #262a31;
    --line-strong: #6b7280;
    --ink: #e2e5ea;
    --ink-2: #c5cbd4;
    --muted: #a3abb8;
    --accent: #2bb3a3;
    --accent-hover: #3cc7b6;
    --accent-tint: #1c3d39;
    --on-accent: #03201c;
    --link: #4fd1c0;
    --link-hover: #6ee0cf;
    --focus: #5eead4;
    --selection: #1f4f49;
    --solid: #e2e5ea;
    --on-solid: #16181d;
    --ins: #8fd1aa;
    --ins-bg: #1b3328;
    --del: #fa7a7a;
    --del-bg: #341c1e;
    --moved: #b49af4;
    --moved-bg: #2b2342;
    --modify: #f8b841;
    --modify-bg: #3a2e16;
    --rename: #6ab7e2;
    --rename-bg: #182e3d;
    --noise: #b3b9c3;
    --noise-bg: #262a31;
    --art: #1b1e24;
    --art-card: #23272e;
    --art-skel: #353a43;
    --art-bar: #6b7280;
    --art-shot: #30343c;
    --band: #15302d;
    --band-ink: #e1f5f1;
    --band-ink-2: #b9dcd5;
    --feature: #10302c;
    --feature-ink: #ffffff;
    --feature-ink-2: #c9ddd9;
    --feature-line: #24504a;
    --cta: #10302c;
    --cta-ink: #ffffff;
    --cta-ink-2: #b9dcd5;
    --cta-button: #2bb3a3;
    --on-cta-button: #03201c;
    --lift: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.5);
    --shade: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

/* A column, so a short page (checkout, refunds) keeps its footer at the bottom. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01";
}
main { flex: 1 0 auto; }

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

h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }

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

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a:not(.button):focus-visible { border-radius: 3px; }

code, kbd, pre, .mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }
/* Geist Mono sets wider and taller than Geist at the same size. */
code { font-size: 0.9em; }
:is(p, li, td, dd) code {
  padding: 0.06em 0.32em;
  border-radius: 4px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Horizontal only, so a section's own vertical spacing isn't reset. */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--link); padding: 8px 12px; border-radius: 6px; box-shadow: var(--shade); z-index: 2; }

/* Header */
.top .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 24px; margin-right: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background-color: var(--accent); color: var(--on-accent);
  box-shadow: var(--lift);
  font: 600 16px/1 Geist, system-ui, sans-serif; text-decoration: none;
}
.button:hover { background-color: var(--accent-hover); color: var(--on-accent); }
.button:active { box-shadow: none; }
.button.small { min-height: 40px; padding: 0 18px; font-size: 15px; background: var(--solid); color: var(--on-solid); box-shadow: none; }
.button.small:hover { background: color-mix(in srgb, var(--solid) 84%, var(--paper)); color: var(--on-solid); }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.quiet:hover { background: var(--sunken); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }

/* Hero: the headline is a diff hunk. */
.hero { padding-top: 64px; }
.hunk {
  margin: 0;
  font: 500 clamp(26px, 5vw, 64px)/1.16 "Geist Mono", ui-monospace, monospace;
  letter-spacing: -0.04em;
}
.hunk .row { display: grid; grid-template-columns: 1.1em auto; align-items: baseline; width: fit-content; max-width: 100%; padding: 0.04em 0.4em 0.08em 0.3em; margin-left: -0.3em; border-radius: 8px; }
.hunk .row.del { background: var(--del-bg); color: var(--del); }
.hunk .row.ins { background: var(--ins-bg); color: var(--ins); }
/* The sign, not only the color, says which line is which, so it keeps full contrast. */
.hunk .sign { font-weight: 400; }
.hunk del, .hunk ins { text-decoration: none; }
.hunk del { text-decoration: line-through; text-decoration-thickness: 0.05em; text-decoration-color: color-mix(in srgb, var(--del) 60%, transparent); }

.lede { max-width: 34em; margin: 32px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.fine { max-width: 34em; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* The home page's audience picker. Radio buttons drawn as pills; with :has()
   the chosen one shows its own headline and text, and without it the page
   keeps the first. The panels share one grid cell, so switching never moves
   the page below them. */
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.audience > span { margin-right: 6px; color: var(--muted); font-size: 15px; }
.audience input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.audience label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
}
.audience label:hover { background: var(--sunken); }
.audience input:checked + label { background: var(--accent-tint); color: var(--link-hover); box-shadow: inset 0 0 0 2px var(--accent); }
.audience input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.voices { display: grid; margin-top: 48px; }
.voice { grid-area: 1 / 1; visibility: hidden; }
.voice.dev { visibility: visible; }
.hero:has(#for-games:checked) .voice.dev,
.hero:has(#for-data:checked) .voice.dev,
.hero:has(#for-docs:checked) .voice.dev,
.hero:has(#for-media:checked) .voice.dev { visibility: hidden; }
.hero:has(#for-games:checked) .voice.games,
.hero:has(#for-data:checked) .voice.data,
.hero:has(#for-docs:checked) .voice.docs,
.hero:has(#for-media:checked) .voice.media { visibility: visible; }
.voice .more { margin: 12px 0 0; font-size: 16px; font-weight: 600; }

.shot { margin: 64px 0 0; padding: 20px; border-radius: 22px; background: var(--sunken); }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), var(--shade); background: var(--panel); }
.shot figcaption { max-width: 46em; margin: 14px 4px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (min-width: 640px) {
  .fine, .shot figcaption { text-wrap: balance; }
}

/* Sections */
section { padding-top: 128px; scroll-margin-top: 8px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; max-width: 20em; }
.intro { max-width: 34em; margin: 18px 0 0; color: var(--ink-2); }

/* File-type tiles on the home page, each with a small picture of one change. */
/* Six columns: a wide tile takes four, a half tile three, the rest two. */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.tile { grid-column: span 2; min-width: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile h3 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; }
.tile .says { margin: 6px 0 0; color: var(--ink-2); }
.tile .formats { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tile-text { padding: 20px 24px 24px; }
.art { position: relative; height: 200px; padding: 22px 26px; background: var(--art); overflow: hidden; }
.art .mono { font-family: "Geist Mono", ui-monospace, monospace; }
.art .label { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; }
.art .label.moved { background: var(--moved-bg); color: var(--moved); }
.art .label.changed { background: var(--modify-bg); color: var(--modify); }
.skel { display: block; height: 7px; border-radius: 4px; background: var(--art-skel); }

.art.code { display: flex; align-items: center; gap: 14px; }
.art.code .pane { flex: 1 1 0; display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 12px 14px; border-radius: 10px; background: var(--art-card); box-shadow: 0 0 0 1px var(--line); }
.art.code .name { font: 500 11px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.art.code .block { display: flex; flex-direction: column; gap: 6px; margin: 2px -6px; padding: 6px; border-radius: 6px; }
.art.code .block.was { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--moved) 45%, transparent); }
.art.code .block.was .skel { background: color-mix(in srgb, var(--moved) 16%, transparent); }
.art.code .block.now { background: var(--moved-bg); }
.art.code .block.now .skel { background: color-mix(in srgb, var(--moved) 55%, transparent); }

.art.data { font: 400 13px/1.9 "Geist Mono", ui-monospace, monospace; color: var(--ink-2); }
.art.data .hl { margin: 0 -8px; padding: 0 8px; border-radius: 6px; }
.art.data .hl.changed { padding-left: 24px; background: var(--modify-bg); color: var(--modify); }
.art.data .hl.added { margin-top: 6px; background: var(--ins-bg); color: var(--ins); }
.art.data .in { padding-left: 16px; }

.art.db { display: flex; align-items: center; gap: 12px; }
.art.db .table { flex: 1 1 0; border-radius: 8px; background: var(--art-card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; font: 400 12px/1.8 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.art.db .table > * { display: block; padding: 2px 10px; }
.art.db .head { padding-block: 6px; background: var(--sunken); color: var(--ink); font-weight: 500; }
.art.db .head.renamed { background: var(--rename-bg); color: var(--rename); }
.art.db .changed { background: var(--modify-bg); color: var(--modify); }

.art.image .screen { position: relative; height: 100%; border-radius: 10px; background: var(--art-card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.art.image .bar { height: 22px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.art.image .screen > .skel { position: absolute; left: 18px; height: 8px; }
.art.image .ghost, .art.image .moved-button { position: absolute; top: 96px; width: 76px; height: 30px; border-radius: 7px; }
.art.image .ghost { left: 18px; border: 1.5px dashed color-mix(in srgb, var(--moved) 70%, transparent); }
.art.image .moved-button { left: 62px; display: flex; align-items: center; justify-content: center; background: var(--moved); color: var(--paper); font-size: 11px; font-weight: 600; }
.art.image .label { position: absolute; left: 150px; top: 101px; }

.art.design .layers { padding: 8px; border-radius: 10px; background: var(--art-card); box-shadow: 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.art.design .layers > * { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 6px; }
.art.design .renamed { background: var(--rename-bg); color: var(--rename); font-weight: 600; }
.art.design .renamed span:last-child { font-weight: 400; }

.art.audio { display: flex; align-items: center; gap: 2px; }
.art.audio i { flex: 1 1 0; height: calc(var(--h) * 0.86); border-radius: 2px; background: var(--art-bar); }
.art.audio .cut { flex: 10 1 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 4px; border-radius: 8px; background: var(--del-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--del) 35%, transparent); color: var(--del); font-size: 11px; font-weight: 600; text-align: center; }
.art.audio .cut .bars { display: flex; align-items: center; gap: 2px; height: 90px; }
.art.audio .cut i { height: var(--h); background: color-mix(in srgb, var(--del) 60%, transparent); }
.art.audio .cut .mono { font-weight: 500; }

.art.video { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.art.video .strip { display: flex; gap: 4px; height: 64px; }
.art.video .strip span { flex: 3 1 0; display: flex; align-items: flex-end; padding: 4px 6px; border-radius: 6px; background: var(--art-shot); font: 500 11px/1 "Geist Mono", ui-monospace, monospace; color: var(--ink-2); }
.art.video .strip .narrow { flex-grow: 2; }
.art.video .strip .changed { background: var(--modify-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--modify) 40%, transparent); color: var(--modify); }
.art.video .strip .trimmed { flex-grow: 1; padding: 0; background: none; border: 1.5px dashed color-mix(in srgb, var(--modify) 40%, transparent); }
.art.video .label { align-self: center; }

.art.doc { display: flex; align-items: center; }
.art.doc p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.art.doc b { color: var(--ink); }
.art.doc del, .art.doc ins { padding: 0 3px; border-radius: 3px; }
.art.doc del { background: var(--del-bg); color: var(--del); }
.art.doc ins { background: var(--ins-bg); color: var(--ins); text-decoration: none; }

.art.bin { display: flex; flex-direction: column; justify-content: center; gap: 6px; font: 400 13px/1.7 "Geist Mono", ui-monospace, monospace; }
.art.bin span { display: flex; justify-content: space-between; gap: 12px; padding: 2px 10px; border-radius: 6px; }
.art.bin .added { background: var(--ins-bg); color: var(--ins); }
.art.bin .noise { background: var(--noise-bg); color: var(--noise); }

/* The change labels, as the app names them. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; margin-top: 40px; }
.kinds { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kinds li { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 14px; background: var(--panel); color: var(--ink-2); }
.kinds .pill { min-width: 8.5rem; padding: 4px 0; border-radius: 8px; font-size: 15px; }
.split > div > p { margin: 18px 0 0; color: var(--ink-2); }

/* Domains, drawn the way the app's change navigator draws a change. */
.domains { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.domains li { display: grid; grid-template-columns: 13rem 1fr; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.domains h3 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
.domains .change { margin: 0; display: flex; gap: 12px; align-items: baseline; max-width: 46em; line-height: 1.5; }
.domains .formats { grid-column: 2; max-width: 34em; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pill {
  flex: none; display: inline-block; min-width: 4.8rem; padding: 2px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-align: center; line-height: 1.5; letter-spacing: 0.01em;
}
.pill.moved { background: var(--moved-bg); color: var(--moved); }
.pill.renamed { background: var(--rename-bg); color: var(--rename); }
.pill.changed { background: var(--modify-bg); color: var(--modify); }
.pill.added { background: var(--ins-bg); color: var(--ins); }
.pill.removed { background: var(--del-bg); color: var(--del); }
.pill.quiet { background: var(--noise-bg); color: var(--noise); }

/* Workflow */
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.plain li:first-child { padding-top: 0; }
.plain strong { font-weight: 600; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.tools li { padding: 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.tools h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.tools p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.term {
  margin: 0; padding: 20px 22px; border-radius: 12px;
  background: var(--sunken); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.tools + .term { margin-top: 16px; }
.term .prompt { color: var(--muted); user-select: none; }
.term .cmd { color: var(--ink); font-weight: 500; }

/* Who it's for, on the audience pages */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
.who li:first-child { padding-top: 14px; }

/* Privacy */
.band { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 44px; border-radius: 22px; background: var(--band); color: var(--band-ink-2); }
.band h2 { flex: 1 1 300px; min-width: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: var(--band-ink); }
.band dl { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin: 0; }
.band dt { font-weight: 600; color: var(--band-ink); }
.band dd { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }

/* Pricing */
/* Each plan spans four rows of the parent grid as a subgrid, so the name,
   price, terms and dividers line up across a row of cards. */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; padding: 28px; border-radius: 18px; background: var(--panel); color: var(--ink-2); }
.plan h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.plan .amount { margin: 12px 0 0; font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.plan .amount.words { font-size: 26px; line-height: 40px; letter-spacing: -0.02em; }
.plan .amount span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan .terms { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.plan .includes { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.plan.featured { background: var(--feature); color: var(--feature-ink-2); }
.plan.featured :is(h3, .amount) { color: var(--feature-ink); }
.plan.featured :is(.amount span, .terms) { color: var(--feature-ink-2); }
.plan.featured .includes { border-top-color: var(--feature-line); }
/* Sale notices, shown by the script at the end of the page while a sale runs. */
.sale-bar { background: var(--band); color: var(--band-ink); font-size: 15px; }
.sale-bar p { margin: 0; padding-block: 10px; text-align: center; }
.sale-bar a, .offer a { color: var(--band-ink); }
.offer { margin-top: 32px; padding: 24px 28px; border-radius: 18px; background: var(--band); color: var(--band-ink-2); }
.offer h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--band-ink); }
.offer p { max-width: 46em; margin: 8px 0 0; }
.offer .sale-when { margin-top: 4px; font-weight: 600; color: var(--band-ink); }
.packs { margin-top: 56px; }
.packs h3, .buying h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.packs > p { max-width: 40em; margin: 8px 0 0; color: var(--ink-2); }
.pack-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.pack-list li { flex: 1 1 280px; min-width: 0; padding: 20px 22px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pack-list h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.pack-list p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pack-list .price { margin-top: 2px; color: var(--ink-2); }
.buying { margin-top: 56px; }
.steps { counter-reset: step; display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.steps li { counter-increment: step; flex: 1 1 280px; min-width: 0; display: flex; gap: 12px; }
.steps li::before {
  content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; background: var(--accent-tint); color: var(--link-hover);
  font-size: 14px; font-weight: 600;
}
.terms-note { max-width: 46em; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Download */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: 56px 48px; border-radius: 24px; background: var(--cta); color: var(--cta-ink-2); }
.cta > div { flex: 1 1 460px; min-width: 0; }
.cta h2 { color: var(--cta-ink); }
.cta p { margin: 14px 0 0; }
.cta .actions { margin-top: 0; }
.cta .button { background: var(--cta-button); color: var(--on-cta-button); box-shadow: none; }
.cta .button:hover { background: color-mix(in srgb, var(--cta-button) 88%, var(--cta)); color: var(--on-cta-button); }
.cta a:not(.button) { color: var(--cta-ink); font-size: 15px; }
.cta :focus-visible { outline-color: var(--cta-ink); }
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.download h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.download p { margin: 0 0 16px; color: var(--ink-2); }
.cli p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }

/* Footer */
footer { margin-top: 128px; padding: 32px 0 48px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }

/* Legal pages, set as a document: a 70-character measure. */
.legal { width: 100%; max-width: calc(34em + 48px); padding-top: 64px; }
.legal h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.legal .updated { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 48px 0 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.012em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 14px 0 0; }
.legal h1 + p, .legal .updated + p { margin-top: 24px; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; }
.legal li::marker { color: var(--muted); }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .mor { padding: 16px 20px; border-radius: 8px; background: var(--accent-tint); color: var(--ink); }

@media (max-width: 1100px) {
  .tiles, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.half { grid-column: span 1; }
  .tile.wide, .tile.video { grid-column: span 2; }
}

@media (max-width: 860px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .hero { padding-top: 40px; }
  /* Narrow screens wrap the longest audience text onto many more lines, so
     here the panels swap in place instead of sharing the tallest one's height. */
  .voices { display: block; margin-top: 36px; }
  .voice:not(.dev) { display: none; }
  .hero:has(#for-games:checked) .voice.dev,
  .hero:has(#for-data:checked) .voice.dev,
  .hero:has(#for-docs:checked) .voice.dev,
  .hero:has(#for-media:checked) .voice.dev { display: none; }
  .hero:has(#for-games:checked) .voice.games,
  .hero:has(#for-data:checked) .voice.data,
  .hero:has(#for-docs:checked) .voice.docs,
  .hero:has(#for-media:checked) .voice.media { display: block; }
  .lede { font-size: 18px; }
  section { padding-top: 88px; }
  .domains li { grid-template-columns: 1fr; }
  .domains .formats { grid-column: 1; }
  .split, .download { grid-template-columns: 1fr; gap: 32px; }
  .who { grid-template-columns: 1fr; }
  .band, .cta { padding: 32px 24px; }
  footer { margin-top: 96px; }
}

@media (max-width: 640px) {
  .tiles, .plans, .tools, .band dl { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.half, .tile.wide, .tile.video { grid-column: auto; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .kinds li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .domains .change { flex-direction: column; gap: 6px; }
  .shot { padding: 10px; border-radius: 16px; }
  .art { padding: 18px; }
  .art.audio > i:nth-of-type(2n) { display: none; }
  .legal { padding-top: 40px; }
  footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .button, .audience label { transition: color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, text-decoration-color 120ms ease; }
  .hunk .row { animation: settle 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hunk .row.ins { animation-delay: 240ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } }
}
