/*
 * cohowork.ai (MT-I102; laid out anew in MT-I108 from key-design-docs/landing).
 * Every colour, shadow, radius and spacing step is a token from
 * packages/ui-tokens/src/theme.css, served beside this file as
 * /_gen/theme.css, under data-theme="night" — the theme the app's home wears. Nothing here names a colour;
 * the dark band mixes the same ink and canvas the rest of the page uses.
 *
 * The type sizes are the site's own: the token scale stops at 22px, because
 * it was made for an app. A display heading is not a second copy of anything.
 * Headings here are the sans at its heaviest, as the design draws them; the
 * serif stays on the wordmark.
 *
 * Sides are logical (inline-start / inline-end), never left and right: three
 * of the languages the page ships read right to left.
 *
 * Widths: the three of INVARIANTS U3 — below 520, 520–899, 900 and up.
 */

*, *::before, *::after { box-sizing: border-box; }
/* The bar at the top stays: a section a link goes to stops under it, not behind it. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  /* One page width and one gutter, so a full-bleed region's content lines up with the rest. */
  --page: 1280px;
  --gutter: clamp(var(--ar-space-4), 5vw, calc(var(--ar-space-8) * 2));
  --region: calc(var(--ar-space-8) * 3);
  --bleed: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  /* On the dark band: the canvas as ink, in three strengths. */
  --on-dark: var(--ar-canvas);
  --on-dark-muted: color-mix(in srgb, var(--ar-canvas) 68%, transparent);
  --on-dark-line: color-mix(in srgb, var(--ar-canvas) 14%, transparent);
  margin: 0;
  background: var(--ar-canvas);
  color: var(--ar-fg);
  font-family: var(--ar-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; }
.accent { color: var(--ar-accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--accent { color: var(--ar-accent); }
.icon--large { width: 30px; height: 30px; stroke-width: 1.6; }
.icon--small { width: 14px; height: 14px; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
/* A square of the accent's tint with the icon in it: every "what is this" mark on the page. */
.tile { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--ar-radius-md); background: var(--ar-accent-soft); color: var(--ar-accent); }
.tile .icon { width: 22px; height: 22px; }
.tile--large { width: 56px; height: 56px; }
.tile--large .icon { width: 26px; height: 26px; }

/* ── brand lockup: the link mark and the name, as on the app's home ── */
.brand { text-decoration: none; display: inline-flex; }
.brand__lockup { display: inline-flex; align-items: center; gap: var(--ar-space-2); direction: ltr; }
.brand__mark { width: 28px; height: 28px; color: currentColor; }
.brand__word { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ar-space-2);
  padding: var(--ar-space-3) var(--ar-space-5);
  border-radius: var(--ar-radius-md);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--ar-accent); color: var(--ar-on-accent); box-shadow: var(--ar-shadow-accent); }
.btn--primary:hover { background: var(--ar-accent-hover); }
.btn--ghost { background: var(--ar-surface); color: var(--ar-fg); box-shadow: var(--ar-shadow-card); }
.btn--ghost:hover { background: var(--ar-hover); }
.btn--small { padding: var(--ar-space-2) var(--ar-space-4); font-size: 14px; }
.btn--large { padding: var(--ar-space-4) var(--ar-space-8); font-size: 17px; }
.btn--large .icon { width: 20px; height: 20px; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: calc(var(--ar-space-8) * 1.5);
  padding: var(--ar-space-4) var(--gutter);
  /* Nearly opaque: the dark band slides under it, and at 88% the bar turned grey. */
  background: color-mix(in srgb, var(--ar-canvas) 96%, transparent);
  backdrop-filter: blur(8px);
}
.nav__links { display: flex; gap: var(--ar-space-8); font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--ar-accent); }
.nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: var(--ar-space-3); }

/* The language menu: one button naming the language you are reading, a list of all of them in their own words. */
.langs { position: relative; font-size: 14px; }
.langs summary {
  display: inline-flex; align-items: center; gap: var(--ar-space-2); list-style: none; cursor: pointer;
  padding: var(--ar-space-2) var(--ar-space-3); border-radius: var(--ar-radius-md); color: var(--ar-fg-muted); white-space: nowrap;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: var(--ar-hover); color: var(--ar-fg); }
.langs ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + var(--ar-space-2));
  list-style: none; margin: 0; padding: var(--ar-space-2);
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
  background: var(--ar-surface); border-radius: var(--ar-radius-card); box-shadow: var(--ar-shadow-pop), var(--ar-shadow-card);
  max-height: 70vh; overflow-y: auto;
}
.langs a { display: block; padding: var(--ar-space-2) var(--ar-space-3); border-radius: var(--ar-radius-sm); text-decoration: none; }
.langs a:hover { background: var(--ar-hover); }
.langs a[aria-current] { background: var(--ar-accent-soft); color: var(--ar-accent); font-weight: 600; }

/* ── regions ── */
.region, .footer { max-width: var(--page); margin-inline: auto; }
.region { padding: var(--region) var(--gutter) 0; }
/* Full-bleed backgrounds, content on the same line as every other region. */
.region--band, .region--dark {
  max-width: none; margin-top: var(--region);
  padding: var(--region) var(--bleed);
}
.region--band { background: var(--ar-surface-sunken); }
.region--center { text-align: center; padding-bottom: var(--region); }
.region__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ar-space-6); }
.region__head .btn, .more { flex: none; }

.display {
  font-family: var(--ar-font-sans); font-weight: 800;
  font-size: clamp(32px, min(3.3vw, 5.6vh), 48px); line-height: 1.1; letter-spacing: -0.03em;
  margin: 0;
}
.display .line { display: block; }
@media (min-width: 900px) { .display .line { white-space: nowrap; } }
.display--section { font-size: clamp(28px, min(3.2vw, 5.2vh), 42px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.display--small { font-size: 40px; }
.eyebrow { margin: 0 0 var(--ar-space-3); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-accent); }
.lead { margin: var(--ar-space-4) 0 0; max-width: 64ch; font-size: 19px; line-height: 1.55; color: var(--ar-fg-muted); }
.more { display: inline-flex; align-items: center; gap: var(--ar-space-2); color: var(--ar-accent); font-weight: 600; text-decoration: none; }
/* Scripts without letter case or with joined letters: no tracking. */
:lang(zh) .display, :lang(ja) .display, :lang(ko) .display, :lang(ar) .display, :lang(fa) .display, :lang(he) .display, :lang(lo) .display { letter-spacing: 0; }
:lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(ar) .eyebrow, :lang(fa) .eyebrow, :lang(he) .eyebrow, :lang(lo) .eyebrow { letter-spacing: 0.04em; }

/* ── the stage: the app's home (cohowork/home/stage.css), on the page — the words at one side, the sphere the lead ── */
body.site--home { background: var(--ar-stage-ground) top center / 100% 860px no-repeat, var(--ar-canvas); }
.stage {
  max-width: var(--page); margin-inline: auto; padding: calc(var(--ar-space-8) * 2.5) var(--gutter) calc(var(--ar-space-8) * 2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: calc(var(--ar-space-8) * 2);
}
.stage__copy { min-width: 0; }
.stage__title { margin: 0 0 var(--ar-space-4); font-weight: 300; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.stage__title em { font-style: normal; font-weight: 400; color: var(--ar-accent); }
:lang(zh) .stage__title, :lang(ja) .stage__title, :lang(ko) .stage__title, :lang(ar) .stage__title, :lang(fa) .stage__title, :lang(he) .stage__title, :lang(lo) .stage__title { letter-spacing: 0; }
.stage__lede { margin: 0 0 var(--ar-space-8); max-width: 34em; color: var(--ar-fg-muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; }
/* The one solid button of the stage: a filled block, no outline. */
.stage__start {
  display: inline-flex; align-items: center; gap: var(--ar-space-3); height: 52px; padding: 0 var(--ar-space-6);
  border: 0; border-radius: var(--ar-radius-pill); background: var(--ar-accent); color: var(--ar-on-accent);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.stage__start:hover { background: var(--ar-accent-hover); }

/* The sphere. Round whatever the corners are, and so are the two things in it: lit from above and warm underneath, so it reads as a ball and not a disc. */
.orb {
  justify-self: center; position: relative; width: min(100%, 560px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ar-orb-edge); border-radius: 50%;
  background: var(--ar-orb-fill); box-shadow: var(--ar-orb-halo); color: var(--ar-orb-ink); text-align: center;
}
.orb::before, .orb::after { content: ""; position: absolute; border: 1px solid var(--ar-orb-ring); border-radius: 50%; pointer-events: none; }
.orb::before { inset: -32px; }
.orb::after { inset: -57px; opacity: 0.7; }
.orb__core { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 74%; min-width: 0; }
.orb__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ar-orb-dot); box-shadow: var(--ar-shadow-accent); }
/* The field: sunk into the light ground, ink text, round like what it sits on. */
.ask { width: 100%; margin: 0; }
.ask__field {
  display: flex; align-items: center; gap: var(--ar-space-2); min-height: 52px; padding-inline: 16px 7px;
  border-radius: 26px; background: var(--ar-orb-field); box-shadow: var(--ar-orb-field-edge);
}
.ask.is-drop .ask__field { outline: 2px solid var(--ar-accent); }
.ask__field > .icon { color: var(--ar-accent); }
.ask textarea {
  flex: 1; min-width: 0; height: 24px; padding: 0; border: 0; outline: 0; resize: none; overflow: hidden;
  background: transparent; color: var(--ar-orb-ink); font: inherit; font-size: 15px; line-height: 24px; white-space: nowrap;
}
.ask textarea::placeholder { color: var(--ar-orb-ink-muted); }
.ask__attach { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ar-orb-ink-muted); cursor: pointer; }
.ask__attach:hover { color: var(--ar-appcard-ink); }
.no-js .ask__attach { display: none; }
.ask__send { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ar-accent); color: var(--ar-on-accent); cursor: pointer; }
.ask__send:hover { background: var(--ar-accent-hover); }
.ask__files { list-style: none; margin: var(--ar-space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ar-space-1); font-size: 13px; }
.ask__files li { display: inline-flex; align-items: center; gap: var(--ar-space-1); padding: 2px var(--ar-space-2); border-radius: 12px; background: var(--ar-orb-field); }
.ask__files button { border: 0; background: none; color: var(--ar-orb-ink-muted); font: inherit; cursor: pointer; }
.ask__status { margin: var(--ar-space-2) 0 0; font-size: 13px; color: var(--ar-orb-ink-muted); }
/* "Surprise me": ink, with a ring of the theme's warm light turning slowly round it. */
.orb__surprise {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; height: 44px; padding: 0 26px; border-radius: 22px;
  background: var(--ar-appcard-ink); color: var(--ar-white); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: transform 0.2s;
}
.orb__surprise::before {
  content: ""; position: absolute; inset: -3px; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--orb-turn, 0deg), var(--ar-accent), var(--ar-orb-glow-a), var(--ar-orb-glow-b), var(--ar-accent));
  animation: orb-turn 6s linear infinite;
}
.orb__surprise::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ar-appcard-ink); }
.orb__surprise:hover { transform: translateY(-1px) scale(1.03); }
@property --orb-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb-turn { to { --orb-turn: 360deg; } }
@media (prefers-reduced-motion: reduce) { .orb__surprise::before { animation: none; } }

/* ── by invitation only (`renderTeaser`): the stage alone, as tall as the window, and one quiet last line ── */
.site--teaser { min-height: 100svh; display: flex; flex-direction: column; }
.site--teaser main { flex: 1; display: grid; align-items: center; }
.teaser__ways { display: grid; gap: var(--ar-space-6); max-width: 440px; }
.teaser__way { display: grid; gap: var(--ar-space-2); margin: 0; }
.teaser__ask { color: var(--ar-fg-muted); font-size: 14px; }
/* One field and its button, as one block: the field sunk, the button beside it. */
.teaser__field { display: flex; gap: var(--ar-space-2); }
.teaser__field input { flex: 1; min-width: 0; height: 44px; padding: 0 var(--ar-space-4); border: 0; outline: 0; border-radius: var(--ar-radius-md); background: var(--ar-surface-sunken); color: var(--ar-fg); font: inherit; font-size: 15px; }
.teaser__field input:focus-visible { box-shadow: 0 0 0 2px var(--ar-accent); }
.teaser__field input::placeholder { color: var(--ar-fg-subtle); }
.teaser__field .btn { flex: none; height: 44px; padding-block: 0; }
.teaser__note { margin: 0; color: var(--ar-fg-subtle); font-size: 12px; }
.teaser__said { margin: 0; color: var(--theme-button-delete-hover-text); font-size: 13px; }
.teaser__done { display: flex; align-items: center; gap: var(--ar-space-2); margin: 0; padding: var(--ar-space-3) var(--ar-space-4); background: var(--ar-accent-soft); color: var(--ar-fg); font-size: 14px; }
.teaser__done .icon { color: var(--ar-accent); }
/* The door: a label over one field, in the sphere's own ink. */
.teaser__label { display: block; margin-bottom: var(--ar-space-3); color: var(--ar-orb-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
:lang(zh) .teaser__label, :lang(ja) .teaser__label, :lang(ko) .teaser__label, :lang(ar) .teaser__label, :lang(fa) .teaser__label, :lang(he) .teaser__label, :lang(lo) .teaser__label { letter-spacing: 0; }
.teaser__door input:not([type="hidden"]) {
  flex: 1; min-width: 0; height: 24px; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ar-orb-ink); font-family: var(--ar-font-mono); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
}
.teaser__door input::placeholder { color: var(--ar-orb-ink-muted); }
.teaser__door .ask__field > .icon { color: var(--ar-orb-ink-muted); }
.footer--quiet { display: block; margin-top: 0; padding-top: var(--ar-space-6); }
.footer--quiet .footer__rights { padding-top: 0; flex-wrap: wrap; align-items: center; }
.teaser__legal { display: inline-flex; gap: var(--ar-space-5); }

/* ── lend your computer: a band of its own — what it is and the two ways in at one side, the three protections at the other ── */
.lend { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: calc(var(--ar-space-8) * 2); align-items: center; }
.site--home .display--section { font-weight: 300; }
.lend__line { margin: var(--ar-space-5) 0 0; font-size: 19px; color: var(--ar-fg); }
.lend__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ar-space-5); margin-top: var(--ar-space-8); }
.lend__label { margin: 0 0 var(--ar-space-5); color: var(--ar-fg-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
:lang(zh) .lend__label, :lang(ja) .lend__label, :lang(ko) .lend__label, :lang(ar) .lend__label, :lang(fa) .lend__label, :lang(he) .lend__label, :lang(lo) .lend__label { letter-spacing: 0; }
.lend__layers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ar-space-5); }
.lend__layers li { display: flex; align-items: center; gap: var(--ar-space-4); }
.lend__layers .icon { color: var(--ar-accent); }
.lend__layers strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lend__honest { margin: var(--ar-space-6) 0 0; color: var(--ar-fg-muted); font-size: 15px; line-height: 1.55; }

/* ── the shelf: picture cards of what is in the market, light on the dark page as in the app ── */
.cohos__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ar-space-4); margin-bottom: var(--ar-space-5); }
.cohos__title { margin: 0; font-size: 14px; font-weight: 500; padding: 9px 21px; border-radius: var(--ar-radius-pill); background: var(--ar-fg); color: var(--ar-canvas); }
.apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ar-space-3); }
.appcard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--ar-radius-card); background: var(--ar-appcard-bg); color: var(--ar-appcard-fg); box-shadow: var(--ar-shadow-float); text-decoration: none; }
.appcard__media { display: flex; align-items: center; justify-content: center; height: 150px; overflow: hidden; background: var(--ar-appcard-media); color: var(--ar-white); }
.appcard__media img { width: 100%; height: 100%; object-fit: cover; }
.appcard__media .brand__mark { width: 44px; height: 44px; color: var(--ar-white); opacity: 0.85; }
.appcard__body { display: flex; flex: 1; flex-direction: column; padding: 13px 16px 16px; }
.appcard__name { margin-bottom: 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.appcard__goal { margin-bottom: 14px; color: var(--ar-appcard-muted); font-size: 13.5px; line-height: 1.46; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.appcard__try { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: var(--ar-radius-pill); background: var(--ar-appcard-ink); color: var(--ar-white); font-size: 13px; font-weight: 500; }
.appcard:hover .appcard__try { background: var(--ar-accent); }

/* ── developers: the one command, to copy ── */
.developers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: calc(var(--ar-space-8) * 1.5); align-items: center; }
.developers .display--section { max-width: 16ch; }
.terminal {
  background: var(--ar-fg); color: var(--on-dark); border-radius: var(--ar-radius-card);
  padding: var(--ar-space-5) var(--ar-space-6) var(--ar-space-6); box-shadow: var(--ar-shadow-float);
  display: grid; gap: var(--ar-space-4);
}
.terminal__bar { display: flex; gap: 6px; }
.terminal__bar span { width: 10px; height: 10px; border-radius: var(--ar-radius-pill); background: var(--on-dark-line); }
.terminal__line { display: flex; align-items: center; gap: var(--ar-space-3); padding: var(--ar-space-4); border-radius: var(--ar-radius-md); background: color-mix(in srgb, var(--ar-canvas) 6%, transparent); direction: ltr; }
.terminal code { flex: 1; min-width: 0; font-family: var(--ar-font-mono); font-size: 14px; overflow-wrap: anywhere; }
.terminal__prompt { color: var(--ar-accent); user-select: none; }
.terminal__copy {
  flex: none; display: inline-flex; align-items: center; gap: var(--ar-space-1);
  padding: var(--ar-space-2) var(--ar-space-3); border: 0; border-radius: var(--ar-radius-sm);
  background: var(--on-dark-line); color: var(--on-dark); font: inherit; font-size: 13px; cursor: pointer;
}
.terminal__copy:hover { background: color-mix(in srgb, var(--ar-canvas) 22%, transparent); }
.terminal__copy .icon { width: 14px; height: 14px; }
.terminal__who { margin: 0; color: var(--on-dark-muted); font-size: 14px; }
.terminal .more { justify-self: start; }

/* ── footer ── */
.footer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--ar-space-8);
  margin-top: var(--region);
  padding: calc(var(--ar-space-8) * 1.5) var(--gutter) var(--ar-space-8);
  color: var(--ar-fg-muted); font-size: 14px;
}
.footer__brand p { margin: var(--ar-space-3) 0 0; max-width: 24ch; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: var(--ar-space-6); }
.footer__cols div { display: grid; gap: var(--ar-space-2); align-content: start; }
.footer__cols strong { color: var(--ar-fg); font-size: 15px; margin-bottom: var(--ar-space-1); }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--ar-accent); }
/* The last line: who makes it at one end, the one quiet link at the other. */
.footer__rights { grid-column: 1 / -1; padding-top: var(--ar-space-6); display: flex; justify-content: space-between; gap: var(--ar-space-4); font-size: 13px; }
.footer__rights a { text-decoration: none; }
.footer__rights a:hover { color: var(--ar-accent); }

/* ── a plain page: a title, a few sentences, perhaps a list of links, the posts, or a post ── */
.doc { padding-bottom: var(--region); }
.doc__links { margin: var(--ar-space-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--ar-space-2); font-size: 17px; }
.doc a:not(.btn) { color: var(--ar-accent); text-decoration: none; }
.doc a:not(.btn):hover { text-decoration: underline; }
.doc .btn { margin-top: var(--ar-space-6); }
.doc__note, .doc__date { margin: var(--ar-space-4) 0 0; color: var(--ar-fg-subtle); font-size: 14px; }
.posts { list-style: none; margin: var(--ar-space-8) 0 0; padding: 0; display: grid; gap: var(--ar-space-3); max-width: 76ch; }
.posts a { display: grid; gap: var(--ar-space-2); padding: var(--ar-space-5); background: var(--ar-surface); }
.posts a:hover { background: var(--ar-hover); text-decoration: none; }
.posts strong { color: var(--ar-fg); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.posts span { color: var(--ar-fg-muted); font-size: 16px; line-height: 1.55; }
.posts small { color: var(--ar-accent); font-size: 14px; }
.post { max-width: 68ch; margin: var(--ar-space-6) 0 var(--ar-space-8); font-size: 18px; line-height: 1.7; color: var(--ar-fg-muted); }
.post h2 { margin: var(--ar-space-8) 0 var(--ar-space-3); color: var(--ar-fg); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.post p { margin: 0 0 var(--ar-space-4); }
.post code { font-family: var(--ar-font-mono); font-size: 0.88em; color: var(--ar-fg); background: var(--ar-surface-sunken); padding: 1px 5px; }
.post pre { margin: 0 0 var(--ar-space-4); padding: var(--ar-space-4); overflow-x: auto; background: var(--ar-surface-sunken); }
.post pre code { padding: 0; background: none; }

/* ── get it: held at the bottom of the window all the way down, at rest under the footer ── */
.get {
  position: sticky; bottom: var(--ar-space-3); z-index: 9;
  display: flex; align-items: center; gap: var(--ar-space-6);
  max-width: calc(var(--page) + 2 * var(--ar-space-8)); width: calc(100% - 2 * var(--ar-space-3));
  margin: 0 auto var(--ar-space-3);
  background: color-mix(in srgb, var(--ar-surface) 94%, transparent); backdrop-filter: blur(10px);
  border-radius: var(--ar-radius-card); box-shadow: var(--ar-shadow-pop), var(--ar-shadow-card);
  padding-block: var(--ar-space-3); padding-inline: var(--ar-space-8) var(--ar-space-3);
}
.get__text { flex: none; display: grid; }
.get__text strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.get__text span { color: var(--ar-fg-muted); font-size: 14px; }
.get__list { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--ar-space-2); }
.platform {
  display: flex; align-items: center; gap: var(--ar-space-3); min-width: 0;
  padding: var(--ar-space-2) var(--ar-space-4); border-radius: var(--ar-radius-md);
  box-shadow: var(--ar-shadow-card); background: var(--ar-surface); text-decoration: none;
}
.platform:hover { background: var(--ar-hover); }
.platform .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.platform span { min-width: 0; }
.platform strong { display: block; font-size: 15px; }
.platform small { display: block; color: var(--ar-fg-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the download page: what this is · the one for this computer (the card) · every installer (rows) ── */
.dl { max-width: 760px; padding-bottom: var(--region); }
.dl__card {
  margin-top: var(--ar-space-8);
  padding: var(--ar-space-8);
  background: var(--ar-surface); border-radius: var(--ar-radius-card); box-shadow: var(--ar-shadow-card);
}
.dl__lead { display: grid; justify-items: start; gap: var(--ar-space-3); }
.dl__lead[hidden] { display: none; }
.dl__meta { margin: 0; color: var(--ar-fg-muted); font-size: 15px; }
.dl__hint { margin: var(--ar-space-3) 0 0; padding-top: var(--ar-space-3); border-top: 1px solid var(--ar-hairline); width: 100%; color: var(--ar-fg-subtle); font-size: 13px; }
.dl__all { margin-top: var(--ar-space-8); display: grid; gap: var(--ar-space-3); justify-items: start; }
.dl__label { margin: 0; font-size: 13px; font-weight: 600; color: var(--ar-fg-muted); }
.dl__list { list-style: none; margin: 0; padding: var(--ar-space-2); width: 100%; display: grid; gap: var(--ar-space-1); background: var(--ar-surface-sunken); border-radius: var(--ar-radius-card); }
.dl__row { display: flex; align-items: center; gap: var(--ar-space-3); padding: var(--ar-space-3) var(--ar-space-4); border-radius: var(--ar-radius-md); background: var(--ar-surface); }
.dl__name { font-weight: 600; font-size: 15px; }
.dl__size { margin-inline-start: auto; color: var(--ar-fg-subtle); font-size: 13px; white-space: nowrap; }
.dl__row .pill { margin-inline-start: auto; }
.dl__get { display: inline-flex; align-items: center; gap: var(--ar-space-1); color: var(--ar-accent); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.dl__get:hover { text-decoration: underline; }
.nav__links a[aria-current] { color: var(--ar-accent); }

/* ── below 1250: four cards a row ── */
@media (max-width: 1249px) {
  .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .appcard__media { height: 170px; }
}

/* ── regular: 520–899 ── */
@media (max-width: 899px) {
  .nav__links { display: none; }
  .stage, .developers { grid-template-columns: minmax(0, 1fr); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { padding-top: calc(var(--ar-space-8) * 1.5); gap: calc(var(--ar-space-8) * 2.5); }
  .orb { width: min(86%, 460px); }
  .orb::before { inset: -18px; }
  .orb::after { inset: -34px; }
  .lend { grid-template-columns: minmax(0, 1fr); gap: calc(var(--ar-space-8) * 1.5); }
  .developers { gap: calc(var(--ar-space-8) * 1.25); }
  .region__head { flex-direction: column; align-items: flex-start; }
  .get__text span, .platform small { display: none; }
  .get { padding-block: var(--ar-space-2); padding-inline: var(--ar-space-5) var(--ar-space-2); gap: var(--ar-space-4); }
  .get__text strong { font-size: 16px; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── compact: below 520 ── */
@media (max-width: 519px) {
  body.site { --region: calc(var(--ar-space-8) * 2); }
  .nav { gap: var(--ar-space-3); }
  /* The stage carries the same action; in the bar it pushed the page wider than the phone. */
  .nav__cta, .nav__signin { display: none; }
  .langs summary span { display: none; }
  .langs ul { grid-template-columns: minmax(150px, 1fr); }
  .lead { font-size: 17px; }
  .stage__start { width: 100%; justify-content: center; }
  .orb { width: min(92%, 380px); }
  .orb__core { width: 80%; gap: 12px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appcard__media { height: 120px; }
  .lend__actions .btn { width: 100%; }
  /* At the bottom of a phone: the ways in, as icons with a name, nothing else. */
  .get__text { display: none; }
  .get { padding: var(--ar-space-2); }
  .platform { flex-direction: column; gap: 2px; padding: var(--ar-space-2) var(--ar-space-1); text-align: center; }
  .platform strong { font-size: 12px; font-weight: 600; }
  .platform .icon { width: 22px; height: 22px; }
  .dl__card { padding: var(--ar-space-5); }
  .dl__lead .btn--large { width: 100%; }
  .dl__row { flex-wrap: wrap; row-gap: var(--ar-space-1); }
  .dl__size { margin-inline-start: 0; flex-basis: 100%; order: 3; }
  .dl__get { margin-inline-start: auto; }
}
