/* Spredin — site styles.
 *
 * PALETTE: the app's own "Paper" theme, copied value-for-value out of
 * `src/theme.ts` in the app repo — not approximated, not re-picked. Paper is
 * the identity the brand is built on: it is what the app icon is drawn in
 * (App Store, Finder, the Dock), and it is what this site has always used.
 * Landing on the page and then opening the app should feel like one thing, so
 * the ivory, the terracotta and the slate teal here are the same hexes the
 * grid paints with.
 *
 * The accents below are Paper's PRIMARY accent plus three series of Paper's
 * own chart palette:
 *     #c96442 terracotta   #4f7d8c slate teal
 *     #b9972f gold         #6f8f7b muted green
 * They give the page some life without a single invented colour.
 *
 * CONTRAST WAS MEASURED, NOT EYEBALLED, and the numbers decided the usage:
 *     --ink      #29251d  14.5:1   body text
 *     --ink-2    #6d6555   5.5:1   secondary text, AA at any size
 *     --ink-3    #7d7460   4.4:1   DECORATIVE LABELS ONLY — see below
 *     --accent-ink #a54c2f 5.4:1   link and accent text
 *     --accent   #c96442   3.7:1   fills, rules, icons — never small text
 *     --accent-2 #4f7d8c   4.3:1   ditto, plus large display numerals
 *     --green    #6f8f7b   3.4:1   ditto
 * The vivid three clear the 3:1 bar for large text (>=24px) but not the 4.5:1
 * bar for small, so they are used for the big stat numerals, rules and icons —
 * and nowhere else.
 *
 * `--ink-3` is the one to be careful with. It was briefly Paper's own
 * `--text-faint` (#a39a86), which measures 2.65:1 here — fine inside an app
 * where it labels a grid header next to the data it describes, and much too
 * light for a web page read at arm's length. It is now Paper's
 * `--grid-header-text`. At 4.4:1 it is still 0.1 short of AA for small text, so
 * ANYTHING THAT IS A SENTENCE USES `--ink-2`; `--ink-3` is reserved for
 * micro-labels, captions' chrome and the mock grid's own header row.
 *
 * TYPE: Paper is set in Charter — a book serif that ships with macOS. Display
 * type here uses the same stack so headlines carry the app's voice; body text
 * stays in the system sans, which reads better at 15-17px on the Windows
 * machines a lot of this audience is still browsing from.
 *
 * NO EXTERNAL REQUESTS ANYWHERE. No web fonts, no analytics, no CDN, no
 * JavaScript at all. A product whose pitch is "your data stays on your Mac"
 * cannot have a landing page that phones three companies to render a headline.
 * This is checkable: open any page and look at the network panel.
 */

:root {
  /* Paper — surfaces and ink, from the app's theme.ts */
  --ink: #29251d; /* --text */
  --ink-2: #6d6555; /* --text-dim */
  --ink-3: #7d7460; /* --grid-header-text; see the contrast note above */
  --paper: #fbf9f4; /* --surface */
  --paper-2: #f4f1ea; /* --bg */
  --paper-3: #ece7db; /* --surface-2 */
  --paper-4: #e1dbcc; /* --surface-3 */
  --line: #e2dccc; /* --border */
  --line-2: #cfc7b2; /* --border-strong */

  /* Paper — accents */
  --accent: #c96442; /* --accent, terracotta */
  --accent-ink: #a54c2f; /* darkened for text: 5.4:1 on the ivory */
  --accent-soft: #f4e3d9; /* --accent-soft */
  --accent-2: #4f7d8c; /* --accent-2, slate teal */
  --accent-2-soft: #e0ebee;
  --gold: #b9972f; /* Paper chart series 3 */
  /* Gold measures 2.68:1 on the ivory — fine as a rule or an icon, too light
     for the small word it labels a pillar with. Darkened to 4.6:1, the same
     move --accent-ink makes for terracotta. */
  --gold-ink: #8a6f16;
  --gold-soft: #f6eed8;
  /* Paper chart series 8. Series 4 (#7a9a5f) was the first choice and measures
     3.02:1 — it clears the large-text bar by 0.02, which is no margin at all. */
  --green: #6f8f7b;
  --green-soft: #e6ede9;

  --wrap: 1080px;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* The app's Paper voice: Charter, with the fallbacks it uses in theme.ts. */
  --font-display: "Charter", "Iowan Old Style", "Palatino", Georgia, ui-serif, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgb(80 60 30 / 0.05), 0 10px 30px rgb(80 60 30 / 0.07);
  --shadow-lift: 0 2px 4px rgb(80 60 30 / 0.06), 0 18px 44px rgb(80 60 30 / 0.11);
}

/* Dark mode. Paper has no dark twin in the app, so rather than invent one the
 * surfaces come from the app's DUSK theme (studio charcoal) and the accents
 * from Dusk's own chart palette — #e88e5a is its orange, which is terracotta
 * as a dark theme would draw it, and #56c8b2 its teal. Still no new colours. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8ec; /* 12.0:1 */
    --ink-2: #a2a4ae; /* 5.9:1 */
    /* Dusk's --grid-header-text, 4.7:1. Its --text-faint (#6f717c) is 3.0:1,
       the same too-light-for-a-web-page problem as the light scheme. */
    --ink-3: #8f929c;
    --paper: #27282d;
    --paper-2: #1f2024;
    --paper-3: #2f3036;
    --paper-4: #383941;
    --line: #34353c;
    --line-2: #45464f;

    --accent: #e88e5a;
    --accent-ink: #efa276;
    --accent-soft: #3d3527;
    --accent-2: #56c8b2;
    --accent-2-soft: #253b39;
    --gold: #f0b354;
    --gold-ink: #f0b354; /* already light on charcoal; no darkening needed */
    --gold-soft: #3a3222;
    --green: #a3d977;
    --green-soft: #2b3527;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.35), 0 18px 44px rgb(0 0 0 / 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent);
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}
/* The lockup. Mark and wordmark are sized TOGETHER and only here — the mark's
 * pixel size lives in this rule rather than on the SVG element, so the one
 * media query below rescales both halves and their relationship holds.
 *
 * The mark is drawn from a tight viewBox (see build.mjs): the icon file centres
 * three cells in a 48-unit tile with a wide margin, so an SVG asked for 24px
 * used to render a glyph about 11px tall next to 19px type — which is why the
 * header read as timid. Cropping to the artwork makes the size you ask for the
 * size you get. */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand svg {
  display: block;
  width: 30px;
  height: 30px;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
}
.nav .nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.nav .nav-cta:hover {
  background: var(--accent-ink);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .nav .nav-cta,
  .nav .nav-cta:hover {
    color: #1f2024;
  }
}
/* Narrow: the lockup steps down as a pair so it never crowds or wraps the nav.
 * Two links survive here (Docs and the CTA pill), so the budget is tight —
 * checked at 375px and at 320px, the narrowest phone still in use. */
@media (max-width: 700px) {
  .site-head .wrap {
    height: 64px;
    gap: 14px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .brand svg {
    width: 25px;
    height: 25px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
  .nav .nav-hide {
    display: none;
  }
}
/* Only genuinely narrow phones. Measured at 375px there is ~95px of slack
   between the wordmark and the nav, so stepping down there would shrink the
   logo for no reason; 320px is where the budget actually gets tight. */
@media (max-width: 360px) {
  .site-head .wrap {
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand svg {
    width: 23px;
    height: 23px;
  }
  .nav {
    gap: 12px;
  }
  .nav .nav-cta {
    padding: 6px 12px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(178deg, var(--paper-2) 0%, var(--paper) 62%);
}
/* A single soft terracotta wash behind the headline. One gradient, no images,
 * no animation — enough warmth that the page photographs well as an ad. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 30% -20%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  opacity: 0.85;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero p.lede {
  margin: 0 0 30px;
  font-size: clamp(18px, 2.1vw, 21.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 13px 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, transform 0.06s, box-shadow 0.12s;
}
.btn:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgb(80 60 30 / 0.14), 0 8px 20px color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn--primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .btn--primary,
  .btn--primary:hover {
    color: #1f2024;
  }
}
/* A sentence, so --ink-2 (5.5:1) rather than --ink-3. */
.cta-note {
  font-size: 14px;
  color: var(--ink-2);
}

/* The promise strip. It sits half-in the hero so it reads as an extension of
 * the headline rather than a separate section.
 *
 * It used to carry three MEASURED FIGURES, in display type at 34px. That was
 * the page talking to another engineer: the reader deciding whether to
 * download does not care what we measured, and a number above the fold invites
 * an argument instead of an install. The figures moved to "How we know" at the
 * foot of the page and this strip now carries short benefit phrases, which is
 * why `.stats--words` exists — the same frame, set at a size a phrase can live
 * at. Do not put a number back in here. */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 -1px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.stats > div {
  padding: 24px 26px 26px;
  border-left: 1px solid var(--line);
}
.stats > div:first-child {
  border-left: 0;
}
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.stats > div:nth-child(2) b {
  color: var(--accent-2);
}
.stats > div:nth-child(3) b {
  color: var(--green);
}
.stats span {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* Phrases, not figures. A three-word promise set at 34px reads as shouting and
 * wraps badly in the narrow column a three-up grid gives it; this is the size
 * a short line of display type sits at comfortably beside its explanation. */
.stats--words b {
  font-size: clamp(18px, 1.9vw, 20.5px);
  line-height: 1.25;
  letter-spacing: -0.008em;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 20px 20px;
  }
  .stats > div:first-child {
    border-top: 0;
  }
}

/* ---------- sections ---------- */

section.band {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
section.band--tint {
  background: var(--paper-2);
}
.band h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.band .sub {
  margin: 0 0 38px;
  color: var(--ink-2);
  max-width: 60ch;
  font-size: 17.5px;
}

/* Pillar heading: a numbered eyebrow above the h2, with a coloured rule.
 * Each pillar takes one accent from the app's Paper chart palette, so the
 * three sections are visually distinct without a new colour anywhere. */
.pillar-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pillar-tag i {
  display: inline-block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--tone, var(--accent));
  transform: translateY(-4px);
}
/* `--tone-ink` is the text-safe twin of `--tone`, for the tones whose vivid
   value is too light to set a small word in. Tones that do not define one fall
   through to `--tone`, exactly as before. */
.pillar-tag em {
  font-style: normal;
  color: var(--tone-ink, var(--tone, var(--accent-ink)));
}
.tone-1 {
  --tone: var(--accent);
  --tone-soft: var(--accent-soft);
}
.tone-2 {
  --tone: var(--accent-2);
  --tone-soft: var(--accent-2-soft);
}
.tone-3 {
  --tone: var(--green);
  --tone-soft: var(--green-soft);
}
/* Paper chart series 3. The fourth pillar needed a fourth accent and this was
   already in the palette — still no invented colour anywhere on the site. */
.tone-4 {
  --tone: var(--gold);
  --tone-ink: var(--gold-ink);
  --tone-soft: var(--gold-soft);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
/* Four cards in the auto-fit grid come out 3 + 1, and the orphan on its own row
 * reads as a mistake. Each pillar carries four, so they get an explicit two-up:
 * a balanced 2x2 wide, one column narrow. At this width a card's text runs
 * about 60 characters a line, which is inside the comfortable range — a card
 * spanning the full wrap would not be. */
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.16s, transform 0.16s;
}
section.band--tint .card {
  background: var(--paper);
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.008em;
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.card p + p {
  margin-top: 10px;
}
/* Icon chip: the glyph on a tint of the section's own accent. */
/* Two-tone icon tiles: a soft tinted tile with a hairline ring, holding a
   stroked outline plus one low-opacity filled shape in the band's tone. */
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--tone-soft, var(--accent-soft)), color-mix(in srgb, var(--tone-soft, var(--accent-soft)) 45%, var(--paper)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 22%, transparent), 0 1px 2px rgb(60 40 20 / 0.06);
  color: var(--tone, var(--accent));
}
.card:hover .ico {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 40%, transparent), 0 2px 6px color-mix(in srgb, var(--tone, var(--accent)) 18%, transparent);
}

/* two-column feature rows */
.split {
  display: grid;
  gap: 46px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On one column the visual should follow its copy, whichever side it was
     authored on — a screenshot above its own explanation reads as a non
     sequitur. */
  .split > .shot {
    order: 2;
  }
}
.split h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.7vw, 28px);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.split p {
  color: var(--ink-2);
  margin: 0 0 14px;
}
.split ul.ticks {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.split ul.ticks li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: var(--ink-2);
  font-size: 16px;
}
.split ul.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--tone, var(--accent));
  border-bottom: 2px solid var(--tone, var(--accent));
  transform: rotate(-45deg);
}
.split ul.ticks li b {
  color: var(--ink);
  font-weight: 650;
}

/* A pull-out for the one thing worth reading twice. */
.note {
  margin: 26px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--tone, var(--accent));
  background: var(--paper-2);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  color: var(--ink-2);
}
section.band--tint .note {
  background: var(--paper);
}
.note strong {
  color: var(--ink);
}

/* a small demo frame that stands in for a screenshot */
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.shot-bar .title {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.shot-body {
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-cap {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-2); /* a caption is still a sentence */
}

/* mini grid mock — drawn in the app's own Paper grid colours */
table.mock {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
table.mock th,
table.mock td {
  border: 1px solid var(--line);
  padding: 6px 9px;
  text-align: right;
  white-space: nowrap;
}
table.mock th {
  background: var(--paper-3);
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
}
table.mock td:first-child {
  text-align: left;
  color: var(--ink);
}
table.mock tr td.sel {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
/* the formula bar above the mock */
.mock-fx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
.mock-fx .box {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--ink);
}
.mock-fx .fx {
  color: var(--ink-3);
  font-style: italic;
}

/* theme swatches — the app's five real palettes, as five little windows */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.theme {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.theme .top {
  height: 46px;
  padding: 8px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.theme .top i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.theme .top i.tall {
  height: 22px;
}
.theme .top i.taller {
  height: 30px;
}
.theme .name {
  padding: 7px 10px 9px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* honest "not yet" list */
ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.plain li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
}
ul.plain li:last-child {
  border-bottom: 0;
}
ul.plain li b {
  color: var(--ink);
  font-weight: 650;
}

/* "How we know" — the evidence band, deliberately the quietest thing on the
 * page. The figures used to be the first thing a visitor saw, which read as
 * internal self-talk; they are kept because deleting them would be worse, but
 * they are reassurance for whoever scrolls this far, not the pitch. So: no
 * tint, a heading the size of a card's rather than a section's, and body type
 * a notch down. If this ever starts competing for attention, it has drifted
 * back into being the argument. */
section.quiet {
  padding: 54px 0;
}
section.quiet h2 {
  font-size: 22px;
  letter-spacing: -0.008em;
  color: var(--ink-2);
}
section.quiet .sub {
  font-size: 15.5px;
  margin-bottom: 22px;
}
section.quiet ul.plain li {
  font-size: 15px;
  padding: 11px 0;
}

/* the closing download / notify band */
.closer {
  text-align: center;
  padding: 40px 26px 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
section.band--tint .closer {
  background: var(--paper);
}
.closer h2 {
  margin: 0 0 12px;
}
.closer .sub {
  margin: 0 auto 26px;
}
.closer .cta-row {
  justify-content: center;
}
.pricebox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.pricebox span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pricebox span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- docs ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 48px;
  /* padding-BLOCK, never the shorthand: this sits on `<main class="wrap
     docs-layout">`, and `padding: 44px 0 80px` reset .wrap's 24px side gutters
     to zero — every docs page ran edge to edge below the 1080px wrap width. */
  padding-block: 44px 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-layout {
    /* minmax(0, 1fr), not 1fr: a bare 1fr is minmax(auto, 1fr), whose minimum
       is the content's min-content width — a wide reference table then
       widened the whole page past a phone screen and the browser zoomed out. */
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
.docs-nav {
  position: sticky;
  top: 84px;
  font-size: 15px;
}
.docs-nav .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.docs-nav a {
  display: block;
  padding: 7px 11px;
  margin-left: -11px;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}
.docs-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.docs-nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}
/* After the base link rules on purpose: same specificity, so order decides. */
@media (max-width: 900px) {
  /* Stacked above the article, the sidebar list was a screen of links before
     any content on a phone. Here it is a wrapping row of pills instead: every
     document still one tap away, in two or three short rows. */
  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .docs-nav .label {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .docs-nav a {
    margin-left: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 14.5px;
    line-height: 1.3;
  }
  .docs-nav a[aria-current] {
    border-color: transparent;
  }
  .docs-nav.on-index {
    display: none;
  }
}

/* rendered markdown */
.prose {
  max-width: 74ch;
  font-size: 17px;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.13;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 25px;
  letter-spacing: -0.014em;
  margin: 48px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.prose h4 {
  font-size: 17px;
  margin: 24px 0 6px;
  color: var(--ink-2);
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose li {
  margin: 5px 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 650;
}
.prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--paper-3);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  color: var(--ink);
}
.prose pre {
  margin: 20px 0;
  padding: 15px 17px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.5;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: 13.5px;
}
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  /* A <table> ignores overflow unless it is a block; as one, a wide table
     scrolls sideways inside the article instead of stretching the page. */
  display: block;
  overflow-x: auto;
}
.prose {
  min-width: 0; /* a grid/flex child may not shrink below its content otherwise */
  /* A last resort for a run with no break opportunity (a long path, a
     signature): break it rather than widen the page. break-word, not
     anywhere, so table columns keep sizing to their words. */
  overflow-wrap: break-word;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--paper-2);
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
/* heading anchors */
.prose .anchor {
  opacity: 0;
  margin-left: 8px;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
}
.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose .anchor:focus-visible {
  opacity: 1;
}

.doc-note {
  margin: 0 0 28px;
  padding: 12px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- footer ---------- */

.site-foot {
  padding: 44px 0 56px;
  /* The legal block inherits this, and it is real text (company, ACN, the
     Microsoft trademark notice) — so --ink-2, not --ink-3. */
  color: var(--ink-2);
  font-size: 14.5px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.site-foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  margin-bottom: 28px;
}
.site-foot h4 {
  margin: 0 0 9px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-foot a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
}
.site-foot a:hover {
  color: var(--accent-ink);
}
.site-foot .legal {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.site-foot .legal a {
  display: inline;
}
