/* Acquisition pages only (/desktop/get, /desktop/get/confirm, /desktop/get/license, /desktop/get/terms, /desktop/get/privacy); reuses the tokens from /styles.css. */
.acquire { background: linear-gradient(var(--color-bg), var(--color-panel)); min-width: 0; }
.acquire .wrap { display: grid; gap: var(--space-lg); min-width: 0; }
.acquire h1 { font-family: var(--font-display); font-size: var(--font-size-xl); font-weight: var(--weight-regular); }
.acquire h2 { font-size: var(--font-size-lg); }
.acquire .kicker { margin: 0 0 var(--space-sm); color: var(--color-accent); font-size: var(--font-size-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: var(--weight-medium); }
.acquire .hero__lead { margin-top: var(--space-sm); }
.acquire__intro { display: grid; gap: var(--space-xs); }
.acquire__intro .hero__lead { max-width: var(--measure); }
.acquire .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acquire [hidden] { display: none !important; }
.acquire a:not(.button) { color: var(--color-accent); }

/* Purchase steps: a list with numbered markers; the current step is marked with aria-current. */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.steps li { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-muted); font-size: var(--font-size-md); }
.steps li[aria-current="step"] { background: var(--color-selected); border-color: var(--color-accent); color: var(--color-strong); font-weight: var(--weight-medium); }
.steps__num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--color-panel-2); color: var(--color-strong); font-size: var(--font-size-xs); font-weight: var(--weight-medium); flex: none; }
.steps li[aria-current="step"] .steps__num { background: var(--color-accent); color: var(--color-on-accent); }

/* Summary column: the "What you get" panel and the three-step flow. */
.get__grid { display: grid; gap: var(--space-xl); align-items: start; }
.get__summary, .get__form { display: grid; gap: var(--space-lg); min-width: 0; }
.get__panel { display: grid; gap: var(--space-md); padding: var(--space-lg); }
.get__panel:hover { transform: none; }
.get__panel .card__title { margin: 0; }
.get__list { margin: 0; padding: 0 0 0 1.25rem; display: grid; gap: var(--space-sm); color: var(--color-text); }
.get__list li { padding-left: var(--space-2xs); overflow-wrap: anywhere; }
.get__list li::marker { color: var(--color-accent); }
.get__price { color: var(--color-strong); font-weight: var(--weight-medium); }
.steps--flow { display: grid; gap: var(--space-md); }
.steps--flow li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-md); padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-text); font-size: var(--font-size-md); }
.steps--flow .steps__num { background: var(--color-accent-soft); color: var(--color-accent); }
.steps--flow strong { color: var(--color-strong); font-weight: var(--weight-medium); }

/* Form column. */
.get__form-title { font-family: var(--font-display); font-size: var(--font-size-lg); font-weight: var(--weight-medium); }
.acquire__card { width: 100%; display: grid; gap: var(--space-md); padding: var(--space-lg); text-align: left; justify-items: start; }
.acquire__card form { display: grid; gap: var(--space-md); width: 100%; justify-items: start; }
.acquire__field { display: grid; gap: var(--space-xs); width: 100%; }
.acquire__field label { font-weight: var(--weight-medium); color: var(--color-strong); }
.acquire input[type="email"] { width: 100%; min-height: var(--target-size); font: inherit; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-control-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); }
.acquire__help { font-size: var(--font-size-md); color: var(--color-muted); max-width: none; }
.acquire__check { display: flex; gap: var(--space-sm); align-items: center; font-size: var(--font-size-md); }
.acquire__check input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-accent); flex: none; }
.acquire__check label { min-width: 0; min-height: var(--target-size); padding-block: var(--space-xs); }
/* Inline messages under a field (acquire.js fieldError); the invalid field takes the error colour. */
.acquire__error { color: var(--color-error); font-size: var(--font-size-md); max-width: none; }
.acquire input[aria-invalid="true"] { border-color: var(--color-error); }
.acquire button.button { font: inherit; font-size: var(--font-size-sm); font-weight: var(--weight-medium); cursor: pointer; }
.acquire button.button:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.acquire__status { min-height: 1.5em; color: var(--color-text); overflow-wrap: anywhere; }
.acquire__status[data-state="error"] { color: var(--color-warn); }
.acquire__status[data-state="ok"] { color: var(--color-ok); }
.acquire__summary { font-weight: var(--weight-medium); color: var(--color-strong); overflow-wrap: anywhere; }

/* Single-column pages (confirm, license). */
.acquire--page .wrap { width: min(100% - 2rem, 36rem); }
.acquire--page .acquire__card { width: 100%; }
.acquire--page .acquire__card p:not(.acquire__status) { color: var(--color-muted); }
.acquire__resend summary { cursor: pointer; font-size: var(--font-size-sm); color: var(--color-accent); min-height: 2.75rem; display: flex; align-items: center; }
.acquire__resend form { margin-top: var(--space-md); }

/* FAQ. */
.get__faq { display: grid; gap: var(--space-md); }
.get__faq-title { font-family: var(--font-display); font-size: var(--font-size-xl); font-weight: var(--weight-regular); margin-top: var(--space-md); }
.faq__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 var(--space-lg); box-shadow: var(--shadow-rest); }
.faq__item[open] { padding-bottom: var(--space-md); }
.faq__item summary { cursor: pointer; min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); color: var(--color-strong); font-weight: var(--weight-medium); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; color: var(--color-accent); font-size: var(--font-size-lg); line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; max-width: none; color: var(--color-text); }

/* Draft legal pages (/desktop/get/terms, /desktop/get/privacy). */
.legal .wrap { width: min(100% - 2rem, 46rem); }
.legal__notice { margin: 0; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-warn); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-strong); font-weight: var(--weight-medium); max-width: none; }
.legal__panel { display: grid; gap: var(--space-md); padding: var(--space-lg); }
.legal__panel:hover { transform: none; }
.legal__panel h2 { font-family: var(--font-display); font-size: var(--font-size-lg); font-weight: var(--weight-medium); margin: 0; }
.legal__panel p, .legal__panel li { color: var(--color-text); max-width: none; overflow-wrap: anywhere; }
.legal__panel ul { margin: 0; padding: 0 0 0 1.25rem; display: grid; gap: var(--space-sm); }
.legal__panel li::marker { color: var(--color-accent); }
.legal__panel strong { color: var(--color-strong); font-weight: var(--weight-medium); }
.legal__placeholder { background: var(--color-accent-soft); color: var(--color-strong); padding: 0 var(--space-2xs); border-radius: var(--radius-sm); }

@media (min-width: 900px) {
  .get__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .get__grid .get__form-title { margin-top: var(--space-xs); }
}

/* pt-BR header: "Obter o KeepGlide" is longer than "Get KeepGlide". Below 420 px its button gets slightly less side padding so the nav stays inside the 16 px gutter at 320 px. */
@media (max-width: 419px) {
  html[lang|="pt"] .nav .button { padding-inline: calc(var(--space-md) - var(--space-xs)); }
}

/* Download page (/desktop/download, /pt-br/desktop/download): one row per Linux package. Text rules are scoped under .download-list
   so they beat the generic `.card p` rule in styles.css. Mobile-first: under 40rem the action sits below the body. */
.download-list { list-style: none; margin: 0; padding: 0; display: grid; }
.download-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-md); padding: var(--space-md) 0; border-top: var(--stroke) solid var(--color-border); }
.download-item:first-child { padding-top: 0; border-top: 0; }
.download-item:last-child { padding-bottom: 0; }
.download-list .download-item__body { display: grid; gap: var(--space-xs); min-width: 0; }
.download-list .download-item__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); color: var(--color-strong); font-size: var(--font-size-md); }
.download-list .download-item__name strong { font-weight: var(--weight-semibold); }
.download-list .download-item__for { margin: 0; color: var(--color-muted); font-size: var(--font-size-md); overflow-wrap: anywhere; }
.download-list .download-item__how { margin: 0; max-width: none; color: var(--color-text); font-size: var(--font-size-md); overflow-wrap: anywhere; }
.download-list .download-item__how code { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--color-strong); overflow-wrap: anywhere; }
.download-list .download-item__sum { margin: 0; max-width: none; color: var(--color-muted); font-size: var(--font-size-md); overflow-wrap: anywhere; }
.download-list .download-item__hash { display: block; margin-top: var(--space-2xs); font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--color-strong); overflow-wrap: anywhere; }
.download-item__action { grid-row: 2; grid-column: 2; display: grid; gap: var(--space-sm); min-width: 0; }
.download-item__action .button { width: 100%; }
.download-item__action > :not(.button) { margin: 0; color: var(--color-muted); font-size: var(--font-size-md); }
.download-other { max-width: none; margin: 0; color: var(--color-muted); font-size: var(--font-size-md); overflow-wrap: anywhere; }

@media (min-width: 40rem) {
  .download-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .download-item__action { grid-row: 1; grid-column: 3; align-self: start; justify-self: end; width: auto; }
  .download-item__action .button { width: auto; }
}
/* The feed version (__VERSION__ in the download kicker): an empty value leaves no separator and no space behind. */
.download-version:empty { display: none; }
.download-version::before { content: " · "; }

/* Copy buttons next to a shell command: small ghost buttons, sized to the text line. */
.acquire button.button.download-copy { min-height: var(--target-size); padding: var(--space-xs) var(--space-sm); font-size: var(--font-size-xs); vertical-align: middle; }

/* Download page, phone state: the "Get it on your computer" block replaces the package rows and the Windows line that
   sends to the waitlist. "Other systems" links to #packages, which then shows the rows; the coral button is hidden then,
   so one coral call to action stays on screen. Literal widths and pointer: custom properties cannot be used in media queries. */
.download-mobile { display: none; gap: var(--space-sm); }
.download-mobile h2 { font-family: var(--font-display); font-size: var(--font-size-lg); font-weight: var(--weight-medium); margin: 0; }
.download-mobile__action { display: none; margin: 0; }
.js .download-mobile__action { display: block; }
.download-mobile__action .button { width: 100%; }
.download-mobile__other { margin: 0; }
.download-mobile__other a { display: inline-flex; align-items: center; min-height: var(--target-size); color: var(--color-accent-text); }
/* The Terms and Privacy links in the agreement sentence: inline text is 20 px tall, so they become 44 px boxes. */
[data-testid="terms-agreement"] a { display: inline-flex; align-items: center; min-height: var(--target-size); }
@media (max-width: 767px) and (pointer: coarse) {
  .download-windows { display: none; }
  .download-mobile { display: grid; }
  #packages:not(:target) { display: none; }
  body:has(#packages:target) .download-mobile { display: none; }
}

/* "Does not open?" disclosure under the AppImage row: a native details element with a tappable summary. */
.download-item__details { color: var(--color-text); font-size: var(--font-size-sm); }
.download-item__details summary { cursor: pointer; min-height: var(--target-size); display: flex; align-items: center; color: var(--color-accent-text); }
.download-item__details ul { margin: 0; padding: 0 0 0 1.25rem; display: grid; gap: var(--space-xs); font-size: var(--font-size-md); }
.download-item__details code { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--color-strong); overflow-wrap: anywhere; }

/* /desktop/get (public/desktop/get.html and its pt-BR twin, which load this sheet after /css/pages.css): the Linux card is
   full width (title, status, text and downloads on the left, the FUSE note and its commands on the right from 768 px), then
   Windows, macOS and Android as three cards in a row from 940 px (one column below). Cards never stretch to a neighbour.
   The waitlist is one full-width card, its fields on the left and the consent text on the right, in the same DOM order.
   The bento texture of pages.css is dropped here: the cards take --surface-lift from .card. */
[data-testid="platforms"] .card { background-image: none; }
[data-testid="platforms"] .bento { grid-template-columns: minmax(0, 1fr); align-items: start; }
[data-testid="platforms"] .bento > * { grid-column: 1 / -1; min-height: 0; }
.waitlist-tile .waitlist.form { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; }
/* The Turnstile box and the status line take no space until the widget or a message fills them. */
.form__turnstile:not(:has(iframe)) { height: auto; margin-top: calc(var(--space-16) * -1); border: 0; }
.waitlist__status:empty { min-height: 0; }
.waitlist.form > .form__check,
.waitlist.form .form__label { font-size: var(--font-size-md); }
@media (min-width: 768px) {
  [data-testid="platforms"] .bento > [data-testid="platform-linux"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto) 1fr; column-gap: var(--space-2xl); align-content: start; align-items: start; }
  [data-testid="platform-linux"] > * { grid-column: 1; }
  [data-testid="platform-linux"] > .pill { justify-self: start; }
  [data-testid="platform-linux"] > .card__note:nth-of-type(4) { grid-column: 2; grid-row: 1 / -1; margin: 0; }
}
@media (min-width: 940px) {
  [data-testid="platforms"] .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-testid="platforms"] .bento > .os-tile { grid-column: auto; }
  .waitlist-tile .waitlist.form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: start; align-content: start; }
  .waitlist.form > .form__note:last-child { grid-column: 1 / -1; max-width: none; }
  .waitlist.form > .card__title,
  .waitlist.form > [data-testid="waitlist-required"] { grid-column: 1 / -1; }
  .waitlist.form > .form__check { grid-column: 2; grid-row: 3 / span 4; align-items: flex-start; }
}

/* /desktop/download (acquire--download): the same container as /desktop/get, the shared h1 weight, and each package a row:
   title and badge, description, a full-width command block with its Copy button, and the Download button top right. */
.acquire--download h1 { font-weight: var(--weight-bold); }
.download-code { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-block: var(--space-xs); padding: var(--space-sm) var(--space-md); border: var(--stroke) solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-panel-2); }
.download-list .download-code code { flex: 1 1 12rem; min-width: 0; font-size: var(--font-size-md); overflow-wrap: anywhere; color: var(--color-strong); }
.download-code .download-copy { margin-left: auto; flex: none; }
