/* Download / Thanks page (2 Dec). The head and the "Need help?" row come from doc.css (as on Changelog);
   the three steps are this file's own: square pictures in three columns, the step number in each
   picture's top-right corner, a title and one short line under it (Dima, 2 Dec). */

/* The line under the title is Body here, not Caption as on Changelog: "download it again" is the one
   thing on this page someone may need right away */
.doc-head p { font: var(--t-body); text-wrap: balance; }   /* balance: no lone "it again." on the second line */

/* Mac or phone text: download.js adds html.is-phone on touch screens */
.dl-phone { display: none; }
html.is-phone .dl-mac { display: none; }
html.is-phone .dl-phone { display: block; }
.doc-head .dl-phone + .dl-phone { margin-top: 24px; }
.doc-head a:not(.download) { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 2px; transition: text-decoration-color var(--fade) ease; }   /* the same link style as the text pages */
.doc-head a:not(.download):hover { text-decoration-color: currentColor; }

/* ─── The three steps ─── */
/* Three equal columns on the page grid, 12 apart like the bento cards */
.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gutter); margin-top: 72px; padding: 0; list-style: none; }
.dl-steps .doc-sec + .doc-sec { margin-top: 0; }   /* doc-sec is only for the reveal animation; drop doc.css's spacing */
.dl-step h2 { margin: 20px 0 0; font: var(--t-lead); letter-spacing: -0.005em; }
.dl-step p { margin: 4px 0 0; font: var(--t-body); color: var(--secondary); }

/* The picture: a square grey card like the bento cards, the drawing in the middle */
.dl-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }

/* The step number, top-left corner of the picture, as in Figma 272:4463 (Dima, 2 Dec): 8 from the card's
   edges, so its 16 radius is concentric with the card's 24 (24 − 8 = 16). A 24 px wide number with 4 px padding
   makes a 32 × 32 badge. Text SF Pro Semibold 17/24 in --secondary (#7a7a80), page background, no outline. */
.dl-num { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 32px; height: 32px; padding: 4px; box-sizing: border-box; border-radius: 16px; background: var(--bg); font: 590 17px/24px var(--font); color: var(--secondary); }

/* Step 1: Textra → Applications, as in the .dmg window */
/* --ic is the icon size. The arrow lines up with the middle of the icons, not of icon + name
   (Dima, 2 Dec): it sits at the top and drops by half the icon minus half its own 16 px height. */
.dl-drag { --ic: 72px; display: flex; align-items: flex-start; gap: 16px; margin: 0; }
/* Each item is exactly as wide as its icon; the name hangs out evenly on both sides. Otherwise the longer
   "Applications" made its column wider and the arrow looked closer to Textra (Dima, 2 Dec). */
.dl-file { display: flex; flex-direction: column; align-items: center; gap: 8px; width: var(--ic); font: var(--t-caption); white-space: nowrap; }
.dl-file img { display: block; width: var(--ic); height: var(--ic); }
/* The Textra icon gets the home page logo's corner and soft shadow, scaled from 100 to the icon size
   (home: radius 26, shadow 0 7.5 15 at 8%) (Dima, 2 Dec) */
.dl-file .dl-app { border-radius: calc(var(--ic) * 0.26); box-shadow: 0 calc(var(--ic) * 0.075) calc(var(--ic) * 0.15) rgba(0, 0, 0, 0.08); }
.dl-arrow { flex: none; margin-top: calc(var(--ic) / 2 - 8px); color: var(--secondary); }
/* The folder picture has ~6 px of empty space at its sides, so the arrow moves 3 px towards it to look
   centred between the two drawings; the negative margin keeps the group's width (Dima, 2 Dec) */
.dl-arrow { margin-left: 3px; margin-right: -3px; }

/* Step 2: the Screen Recording list in System Settings */
.dl-settings { width: calc(100% - 48px); max-width: 260px; padding: 12px 14px; border-radius: 18px; background: var(--bg); box-shadow: 0 0 0 0.5px var(--hairline), 0 8px 24px rgba(0, 0, 0, 0.06); font: 400 13px/18px var(--font); }   /* radius 18, rounder like macOS 26 Settings groups (Dima, 2 Dec; was 12) */
.dl-settings-title { padding-bottom: 10px; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.dl-settings-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; }
/* 48 (Dima, 2 Dec: 28 → 40 → +20%). icon.webp is a square picture with grey in the corners; the home page
   rounds it with border-radius (26 on 100), so here too: 26% of the size, plus the same soft shadow, scaled. */
.dl-settings-row img { display: block; width: 48px; height: 48px; border-radius: 12.5px; box-shadow: 0 3.6px 7.2px rgba(0, 0, 0, 0.08); }
.dl-settings-row span { flex: 1; }
/* The switch, on, in Apple's new style (macOS 26 / iOS 26, Dima 2 Dec): a longer track in the new
   system blue #0088ff and a white knob shaped like a pill (wider than tall) instead of a circle. */
.dl-switch { position: relative; flex: none; width: 52px; height: 24px; border-radius: 12px; background: #0088ff; }
.dl-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 30px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

/* Step 3: the ⌥ and C key caps, the app's onboarding key caps made larger */
.dl-keys { display: flex; gap: 10px; }
.dl-keys kbd { display: grid; place-items: center; min-width: 72px; height: 72px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 0.5px var(--hairline), 0 2px 0 var(--hairline), 0 8px 24px rgba(0, 0, 0, 0.06); font: 700 34px/1 ui-rounded, "SF Pro Rounded", var(--font); color: var(--text); }

@media (prefers-color-scheme: dark) {
  .dl-settings, .dl-keys kbd, .dl-num { background: #3a3a3c; }   /* a step lighter than the card, as on the Mac */
}

/* "Need help?" sits 72 under the steps, after its hairline (doc.css .doc-rows) */
.dl-help { margin-top: 72px; }

/* Narrow windows: the drawings shrink a little so step 1 still fits a ~240 px column */
@media (max-width: 1000px) {
  .dl-drag { --ic: 56px; gap: 12px; }
  .dl-arrow { width: 32px; }
}
/* Phones: one step under another; the pictures stay square */
@media (max-width: 760px) {
  .dl-steps { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .dl-drag { --ic: 72px; gap: 16px; }
  .dl-arrow { width: 48px; }
  .dl-help { margin-top: 48px; }
}
