/*
 * Shared stylesheet for the showcase site and the blog.
 *
 * Values below are taken from packages/astro-theme/tokens.json (the same
 * tokens the web portal and the mobile app draw from), so this static site
 * reads as the same product rather than a separate marketing skin. Like the
 * app, the site and the blog use one dark theme only, whatever the
 * visitor's system setting.
 */

:root {
  --color-background: #0a0d0b;
  --color-text: #eef0ee;
  --color-muted: #9ca5a3;
  --color-panel: #151916;
  --color-border: #2c342f;
  --color-gold: #e0a85e;
  --color-gold-text: #ffe0ae;
  --color-active-surface: #342918;
  --color-focus: #e0a85e;
  --color-success: #77bd91;
  --color-warning: #e1b868;
  --color-error: #9b574a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2.5rem;

  --font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", "Hiragino Sans", "Yu Gothic",
    Meiryo, sans-serif;
  --content-width: 46rem;

  color-scheme: dark;
}

/* Chinese reads in its own script's faces, not the Japanese ones of the base
   stack (which would draw Han characters in their Japanese forms). */
:root:lang(zh-Hans) {
  --font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans", sans-serif;
}

:root:lang(zh-Hant) {
  --font-family:
    ui-rounded, "SF Pro Rounded", "Avenir Next", "PingFang TC",
    "Microsoft JhengHei", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-gold);
}

a:hover,
a:focus-visible {
  color: var(--color-gold-text);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-panel);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 10;
}

.skip-link:focus {
  left: var(--space-lg);
  top: var(--space-lg);
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.site-header__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  order: 1;
}

.brand__mark {
  display: inline-flex;
  color: var(--color-gold);
}

.brand-mark {
  width: 1.5em;
  height: 1.5em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--color-text);
}

/* Mobile-first header layout: the brand and the language square share the
   first row (the language button always stays next to the brand, per the
   2026-09-27 review), and the nav wraps to a full-width row below it so it
   has the whole line to itself. From ~900px up, the nav rejoins that first
   row between the brand and the language button (see the min-width query
   below) since there's now room for all three on one line. */
.site-header__nav {
  order: 3;
  flex-basis: 100%;
  min-width: 0;
}

/* Five entries (the brand is the home link). On a phone the longest sets
   (German, Russian, French) no longer fit on one line, so the entries wrap
   to a second line instead of widening the page. */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 4vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: var(--space-xs) 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-gold);
}

/* Language square + menu (replaces the old three-pill lang-switch). Built
   on <details>/<summary> so it opens with no JavaScript; the inline script
   in header.njk only adds closing it on an outside click or Escape. */
.lang-menu {
  position: relative;
  order: 2;
  margin-left: auto;
}

.lang-menu__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}

.lang-menu__button::-webkit-details-marker {
  display: none;
}

.lang-menu__button::marker {
  content: "";
}

.lang-menu__button:hover,
.lang-menu__button:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold-text);
}

.lang-menu[open] > .lang-menu__button {
  border-color: var(--color-gold);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  z-index: 20;
  min-width: 9rem;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-menu__list li + li {
  margin-top: var(--space-xs);
}

.lang-menu__list a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang-menu__list a:hover,
.lang-menu__list a:focus-visible {
  background: var(--color-active-surface);
  color: var(--color-gold-text);
}

.lang-menu__list a[aria-current="true"] {
  color: var(--color-gold-text);
  font-weight: 600;
}

@media (max-width: 30rem) {
  /* A little extra width for the nav row on narrow phones. */
  .site-header__inner {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (min-width: 56.25rem) {
  .site-header__nav {
    order: 2;
    flex: 1 1 auto;
    flex-basis: auto;
    margin-right: auto;
  }

  .main-nav {
    gap: var(--space-xl);
  }

  .lang-menu {
    order: 3;
    margin-left: 0;
  }
}

/* Language suggestion under the header: an offer, never a redirect. */
.lang-suggest {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-active-surface);
}

.lang-suggest[hidden] {
  display: none;
}

.lang-suggest__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-lg);
}

.lang-suggest__text {
  flex: 1 1 14rem;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.lang-suggest__link {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gold-text);
  overflow-wrap: anywhere;
}

.lang-suggest__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.lang-suggest__close:hover,
.lang-suggest__close:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold-text);
}

@media (max-width: 30rem) {
  .lang-suggest__inner {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.prose {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  /* A run that has no break opportunity, such as a list of file extensions
     between Japanese or Chinese commas (「.cr2、.cr3、…」: no break before a
     full stop), wraps at the edge instead of widening the page. */
  overflow-wrap: break-word;
}

.prose h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-xl);
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: var(--space-xl);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-gold);
  background: var(--color-panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

/* FIN-52 (W2-S1, W2-S3): a code block or a formula longer than the screen
   scrolls inside its own frame; the page never moves sideways. */
.prose pre {
  max-width: 100%;
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  white-space: pre;
}

.prose :not(pre) > code {
  overflow-wrap: anywhere;
}

/* FIN-52 (W2-S2): a table of text (the privacy page's three columns) wraps
   its words and, if a word is still too long, scrolls inside its own frame
   under 641 px; it never widens the page. The comparison tables (`.matrix`)
   have their own scroll frame. */
@media (max-width: 640px) {
  .prose table:not(.matrix) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .prose table:not(.matrix) th,
  .prose table:not(.matrix) td {
    min-width: 6.5rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
}

.hero {
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  /* Scales with the viewport so the longest single word of the three
     languages ("d'astrophotographie") stays inside a 360px screen. */
  font-size: clamp(1.5rem, 7.2vw, 2.1rem);
  margin: 0 0 var(--space-md);
  overflow-wrap: break-word;
}

.hero p {
  max-width: 38rem;
  margin: 0 auto var(--space-xl);
  color: var(--color-muted);
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid var(--color-gold);
}

.button--primary {
  background: var(--color-gold);
  color: #1a1408;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-gold-text);
  color: #1a1408;
}

.button--ghost {
  color: var(--color-gold);
  background: transparent;
}

/* Call-to-action buttons on two lines (title, then subtitle), one per product:
   the app (primary), the web portal and the desktop app (secondary). One
   column and full width on a phone; on a wide screen the app spans the row
   and the two others share the row below it. */
.cta-group {
  display: grid;
  grid-template-columns: 1fr;
  /* Every row as tall as the tallest: the three buttons keep one height
     whatever the length of their subtitle, in every language. */
  grid-auto-rows: 1fr;
  gap: var(--space-md);
  max-width: 36rem;
  margin: var(--space-sm) 0 0;
}

.home-final .cta-group {
  margin: var(--space-xl) auto 0;
}

.button--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.8rem var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  line-height: 1.25;
}

.button__title {
  font-size: 1.05rem;
  font-weight: 700;
  word-break: keep-all;
  text-wrap: balance;
}

.button__sub {
  font-size: 0.85rem;
  font-weight: 400;
  text-wrap: balance;
}

.button--primary .button__sub {
  color: #3a2c10;
}

.button--ghost .button__sub {
  color: var(--color-muted);
}

@media (min-width: 40rem) {
  .cta-group {
    grid-template-columns: 1fr 1fr;
  }

  .cta-group .button--primary {
    grid-column: 1 / -1;
  }
}

.placeholder-shot {
  margin: var(--space-xl) auto 0;
  max-width: 46rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  background: var(--color-panel);
  font-size: 0.95rem;
  padding: var(--space-lg);
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-lg);
  padding: 0 var(--space-lg) var(--space-2xl);
  max-width: 64rem;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card h3 {
  margin-top: 0;
}

.currency-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: 0 var(--space-lg) var(--space-lg);
  max-width: 72rem;
  margin: 0 auto;
}

.currency-switcher__label {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.currency-menu {
  order: 0;
  margin-left: 0;
}

.currency-menu .lang-menu__button {
  width: auto;
  min-width: 40px;
  padding: 0 var(--space-sm);
  font-size: 0.8rem;
}

/* 43 currencies: the list scrolls rather than outgrowing the screen. */
.currency-menu .lang-menu__list {
  width: max-content;
  min-width: 15rem;
  max-height: min(60vh, 22rem);
  max-width: calc(100vw - 2 * var(--space-md));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.currency-menu__item {
  display: grid;
  grid-template-columns: 2.6rem 2.8rem 1fr;
  align-items: baseline;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.currency-menu__code {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.currency-menu__symbol {
  color: var(--color-muted);
  text-align: center;
}

.currency-menu__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-menu__item:hover,
.currency-menu__item:focus-visible {
  background: var(--color-active-surface);
  color: var(--color-gold-text);
}

.currency-menu__item[aria-pressed="true"] {
  color: var(--color-gold-text);
  font-weight: 600;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: var(--space-lg);
  padding: 0 var(--space-lg) var(--space-xl);
  max-width: 72rem;
  margin: 0 auto;
}

.offer-card {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.offer-card h3 {
  margin: 0;
}

.offer-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
}

.offer-card .kind {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.offer-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.95rem;
}

/* ---------- Blog (blog.planastro.space): article and index ----------
   Validated on the BLOG-DESIGN-PLANCHE-01 boards (17/11/2026). Same tokens
   and font as the rest of the site; the article body adds its own rules on
   top of `.prose` (class `article-body`), so the showcase pages' `.prose`
   rules are unchanged. */
:root {
  --color-text-body: #dfe4e1; /* body copy, a notch under --color-text */
  --color-text-lede: #c3cbc8; /* ledes and card descriptions */
  --measure: 36rem; /* reading column, about 67 characters a line */
  --wide: 54rem; /* figures and opening image */
}

/* Article head */
.article-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space-lg) 0;
  text-align: center;
}

.article-head__kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-gold);
}

.article-head__kicker:hover {
  color: var(--color-gold-text);
}

.article-head h1 {
  max-width: 24em;
  margin: 1rem auto 0;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.article-head__lede {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--color-text-lede);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0;
  max-width: var(--measure);
  margin: 1.75rem auto 0;
  padding: 0.85rem 0;
  list-style: none;
  border-block: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.article-head__meta li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7rem;
  color: var(--color-gold);
  font-weight: 800;
}

.article-hero {
  margin: 2.25rem 0 0;
  text-align: left;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

/* A phone screenshot (taller than wide) is shown whole, not cropped to a band. */
.article-hero--portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(80vh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
}

.article-hero figcaption {
  max-width: var(--measure);
  margin: 0.8rem auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Article body: a reading column, wider figures */
.article-body {
  display: block;
  max-width: none;
  margin: 0;
  padding: 2.5rem 0 1rem;
  counter-reset: section;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.article-body > * {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Framed blocks keep their own inner padding: the column is their margin. */
.article-body > blockquote,
.article-body > pre,
.article-body > table {
  width: calc(100% - 2 * var(--space-lg));
  max-width: calc(var(--measure) - 2 * var(--space-lg));
}

.article-body > blockquote,
.article-body > pre {
  padding-inline: 1.4rem;
}

.article-body > table {
  padding-inline: 0;
  margin-block: 1.75rem;
}

.article-body p {
  margin-block: 0 1.45em;
}

.article-body strong {
  color: #fff;
  font-weight: 700;
}

.article-body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(224, 168, 94, 0.55);
}

.article-body a:hover {
  text-decoration-color: currentColor;
}

/* Section headings, numbered 01, 02... by a CSS counter (decorative: not part
   of the heading's text, the same in every language). */
.article-body h2 {
  position: relative;
  margin-block: 3.5rem 1rem;
  padding-top: 0;
  border-top: none;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.125rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
  overflow-wrap: break-word;
  counter-increment: section;
}

.article-body h2:first-of-type {
  margin-top: 3rem;
}

.article-body h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1em;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--color-gold);
  /* The heading may break anywhere (Japanese, Chinese); its numeral never. */
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.article-body h2.no-number,
.article-body--plain h2 {
  counter-increment: none;
}

.article-body h2.no-number::before,
.article-body--plain h2::before {
  content: none;
}

.article-body h3 {
  margin-block: 2.25rem 0.6rem;
  font-size: 1.3rem;
  line-height: 1.3;
  color: #fff;
}

.article-body ul,
.article-body ol {
  padding-left: calc(var(--space-lg) + 1.35em);
}

.article-body li {
  margin-bottom: 0.7em;
  padding-left: 0.2em;
}

.article-body li::marker {
  color: var(--color-gold);
  font-weight: 700;
}

.article-body li > ul,
.article-body li > ol {
  margin-top: 0.7em;
}

.article-body pre {
  margin: 1.75rem auto;
  padding-block: 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body :not(pre) > code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-panel);
  font-size: 0.88em;
}

/* A Markdown blockquote is an aside. */
.article-body blockquote {
  margin: 2rem auto;
  padding-block: 1.15rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-panel);
  font-size: 1rem;
  line-height: 1.65;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body table {
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-body th {
  color: var(--color-text);
}

.article-body figure.shot-slot {
  max-width: var(--wide);
  margin: 2.5rem auto;
}

.article-body figure.shot-slot--phone {
  max-width: calc(17rem + 2 * var(--space-lg));
}

.article-body figure.shot-slot figcaption {
  max-width: var(--measure);
  margin: 0.85rem auto 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-gold);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.article-end {
  max-width: var(--measure);
  margin: 2rem auto 0;
  padding: 1.75rem var(--space-lg) 4rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.article-end a {
  font-weight: 700;
  text-decoration: none;
}

/* Wide screens: the numeral hangs in the left margin. */
@media (min-width: 64rem) {
  .article-body {
    font-size: 1.125rem;
    line-height: 1.72;
  }

  .article-body figure.shot-slot {
    padding-inline: 0;
  }

  .article-body h2::before {
    position: absolute;
    top: 0.04em;
    right: calc(100% - var(--space-lg) + 1.1rem);
    margin: 0;
    font-size: 1.45em;
  }
}

/* Phones: left-aligned head, full-bleed opening image, numeral above. */
@media (max-width: 40rem) {
  .article-head {
    padding-top: 1.75rem;
    text-align: left;
  }

  .article-head h1 {
    text-align: left;
  }

  .article-head__meta {
    justify-content: flex-start;
    font-size: 0.8125rem;
    text-align: left;
  }

  .article-head__meta li:not(:last-child)::after {
    margin: 0 0.5rem;
  }

  .article-hero {
    margin-inline: calc(var(--space-lg) * -1);
  }

  .article-hero img {
    aspect-ratio: 4 / 3;
    border-inline: none;
    border-radius: 0;
  }

  .article-hero--portrait img {
    aspect-ratio: auto;
    max-height: 75vh;
    border-inline: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }

  .article-hero figcaption {
    padding-inline: var(--space-lg);
  }

  .article-body h2 {
    margin-top: 3rem;
  }

  .article-body h2::before {
    margin-bottom: 0.15rem;
    font-size: 1.5em;
  }
}

/* Japanese and Chinese: no tracking, looser lines, phrase-aware breaks where
   the browser knows them (character breaks elsewhere). */
:root:lang(ja) .article-head h1,
:root:lang(zh-Hans) .article-head h1,
:root:lang(zh-Hant) .article-head h1,
:root:lang(ja) .article-body h2,
:root:lang(zh-Hans) .article-body h2,
:root:lang(zh-Hant) .article-body h2,
:root:lang(ja) .post-card h2,
:root:lang(zh-Hans) .post-card h2,
:root:lang(zh-Hant) .post-card h2 {
  letter-spacing: 0;
  line-height: 1.35;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

:root:lang(ja) .article-head__kicker,
:root:lang(zh-Hans) .article-head__kicker,
:root:lang(zh-Hant) .article-head__kicker {
  letter-spacing: 0.02em;
  text-transform: none;
}

:root:lang(ja) .article-body,
:root:lang(zh-Hans) .article-body,
:root:lang(zh-Hant) .article-body {
  line-height: 1.95;
}

:root:lang(ja) .article-head__lede,
:root:lang(zh-Hans) .article-head__lede,
:root:lang(zh-Hant) .article-head__lede {
  line-height: 1.8;
}

:root:lang(ja) .article-body p,
:root:lang(zh-Hans) .article-body p,
:root:lang(zh-Hant) .article-body p {
  line-break: strict;
}

:root:lang(ru) .article-head__kicker {
  letter-spacing: 0.06em;
}

/* Blog index: title and intro (the index's Markdown), RSS pill, cards */
.blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space-lg) 0;
}

.blog-head__text {
  max-width: 36rem;
  overflow-wrap: break-word;
}

.blog-head__text h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.5rem + 3.5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-head__text p {
  margin: 0.9rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--color-text-lede);
}

.blog-head__rss {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.post-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem var(--space-lg) 4rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  overflow-wrap: break-word;
}

.post-card--feature,
.post-card--empty {
  grid-column: 1 / -1;
}

.post-card__media {
  display: block;
}

.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

/* A phone screenshot keeps its upper third in the card (target name, arrow). */
.post-card__media--portrait img {
  object-position: center 28%;
}

.post-card__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.7rem;
}

.post-card--empty .post-card__text p {
  margin: 0;
  color: var(--color-muted);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.post-card__meta time {
  color: var(--color-gold);
  font-weight: 700;
}

.post-card__meta span::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--color-gold);
  font-weight: 800;
}

.post-card h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.post-card h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--color-gold-text);
}

.post-card__lede {
  margin: 0.8rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-lede);
}

.post-card__more {
  margin: auto 0 0;
  padding-top: 1.1rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.post-card__more a {
  text-decoration: none;
}

@media (min-width: 52rem) {
  .post-card--feature {
    flex-direction: row;
  }

  .post-card--feature .post-card__media {
    flex: 0 0 52%;
  }

  .post-card--feature .post-card__media img {
    aspect-ratio: auto;
  }

  .post-card--feature .post-card__text {
    justify-content: center;
    padding: 2.25rem 2.25rem 2.4rem;
  }

  .post-card--feature h2 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .post-card--feature .post-card__lede {
    font-size: 1.0625rem;
  }

  .post-card--feature .post-card__more {
    margin-top: 0;
    padding-top: 1.4rem;
  }
}

@media (max-width: 40rem) {
  .post-cards {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}

/* ---------- Site reading pages (layouts/reading.njk) ----------
   Astro Bridge, Astro Sync, Open source...: the blog article's head, reading
   column, numbered sections and captions (classes `article-head`,
   `article-body`, `article-end` above), plus what a product page needs on top:
   figures as wide as the header (never wider than the capture itself) that
   open enlarged, a list of the sections, cards, steps, columns, a highlight
   and a framed note. Same tokens, same font. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:root {
  --page-figure: 64rem; /* the header's and the footer's width */
}

.page-head h1 {
  margin-top: 0;
}

.page-head__lede {
  max-width: 44rem;
}

.page-head__figure {
  max-width: var(--page-figure);
  margin: 2.25rem auto 0;
}

/* Figures */
.page-fig {
  max-width: min(
    var(--page-figure),
    calc(var(--fig-width, 1280px) + 2 * var(--space-lg))
  );
  margin: 2.5rem auto;
  padding-inline: var(--space-lg);
}

.article-body figure.page-fig {
  max-width: min(
    var(--page-figure),
    calc(var(--fig-width, 1280px) + 2 * var(--space-lg))
  );
  padding-inline: var(--space-lg);
}

.page-head__figure .page-fig {
  margin: 0;
}

/* A capture whose text is already large (the Astro Bridge Setup assistant,
   taken at twice the size): the blog's figure width is enough. */
.article-body figure.page-fig.shot-slot--medium {
  max-width: min(
    var(--wide),
    calc(var(--fig-width, 1280px) + 2 * var(--space-lg))
  );
}

.page-fig__link {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}

.page-fig__frame {
  display: block;
}

.page-fig__frame--crop {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.shot-slot .page-fig__frame--crop img {
  max-width: none;
  border: none;
  border-radius: 0;
}

.page-fig__zoom {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(10, 13, 11, 0.85);
  color: var(--color-gold);
}

.page-fig__zoom::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  background: currentColor;
  -webkit-mask: var(--icon-zoom) center / contain no-repeat;
  mask: var(--icon-zoom) center / contain no-repeat;
}

:root {
  --icon-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E");
}

.page-fig__link:hover .page-fig__zoom,
.page-fig__link:focus-visible .page-fig__zoom {
  border-color: var(--color-gold);
  color: var(--color-gold-text);
}

.page-head__figure .page-fig figcaption,
.article-body figure.page-fig figcaption {
  max-width: var(--measure);
  margin: 0.85rem auto 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-gold);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* The sections of a long page, numbered like their headings */
.page-toc {
  max-width: var(--wide);
  margin: 2.5rem auto 0;
  padding-inline: var(--space-lg);
}

.page-toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0 var(--space-xl);
  margin: 0;
  padding: var(--space-lg) var(--space-xl);
  list-style: none;
  counter-reset: toc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.page-toc li {
  counter-increment: toc;
}

.page-toc a {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  color: var(--color-text-body);
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  min-width: 1.6em;
  color: var(--color-gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  color: var(--color-gold-text);
}

/* Headings that carry their own numbers (Terms): no second number. */
.page-toc--plain a::before {
  content: none;
}

/* Composed blocks of windows (Astro Portal): as wide as the figures. */
.page-body > .portal-show {
  max-width: var(--page-figure);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.portal-show .page-fig__link {
  border-radius: var(--radius-lg);
}

/* The phone in front covers a window's lower corner: the magnifier goes up. */
.portal-show .page-fig__zoom {
  top: var(--space-md);
  bottom: auto;
}

.page-body h2 {
  scroll-margin-top: var(--space-xl);
}

/* Cards: paragraphs or list items that start with a bold phrase */
.page-body > .point-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--wide);
  margin-block: var(--space-xl) var(--space-2xl);
  padding-inline: var(--space-lg);
  list-style: none;
}

.point-cards > li,
.point-card {
  /* A run with no break opportunity (a list of file extensions between
     Japanese or Chinese commas) wraps inside its card, never widening the
     grid. */
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  font-size: 1rem;
  line-height: 1.6;
}

.point-cards > li::marker {
  content: none;
}

.point-card p {
  margin: 0;
}

.point-cards strong {
  color: #fff;
}

.point-cards--titled > li > strong:first-child,
.point-cards--titled p > strong:first-child {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
  line-height: 1.35;
}

/* Narrow screens: no frames, each point marked by a rule on its left, so
   that a run of points reads as a list rather than a stack of boxes. */
@media (max-width: 47.99rem) {
  .page-body > .point-cards {
    gap: var(--space-xl);
  }

  .point-cards > li,
  .point-card {
    padding: 0 0 0 var(--space-lg);
    border: none;
    border-left: 2px solid var(--color-gold);
    border-radius: 0;
    background: none;
  }
}

/* Two by two from 48 rem; an odd last card takes the whole row instead of
   standing alone in half of it. */
@media (min-width: 48rem) {
  .page-body > .point-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-body > .point-cards > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Three cards share a row; any other count goes two by two, so that no
   card is narrower than a short reading line. */
@media (min-width: 56rem) {
  .page-body > .point-cards:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-body > .point-cards:has(> :nth-child(3):last-child) > :last-child {
    grid-column: auto;
  }
}

/* Highlight: one short section set larger, in a warm panel */
.page-body > .page-highlight,
.page-body > .page-note {
  width: calc(100% - 2 * var(--space-lg));
  max-width: calc(var(--measure) - 2 * var(--space-lg));
  margin-block: var(--space-xl) var(--space-2xl);
  padding: var(--space-xl) 1.75rem;
  border-radius: var(--radius-lg);
}

.page-highlight {
  border: 1px solid rgba(224, 168, 94, 0.35);
  background: var(--color-active-surface);
  color: var(--color-text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.page-highlight > :last-child,
.page-note > :last-child {
  margin-bottom: 0;
}

/* Note: a framed aside (limits, what is not shipped yet) */
.page-note {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--color-panel);
  font-size: 1rem;
}

.article-body .page-note ul {
  margin: 0;
  padding-left: 1.25em;
}

/* Steps: `### 1. ...` with what follows each, figures at full width */
.page-body > .page-steps {
  max-width: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.page-step {
  margin: 0;
  padding: 0;
}

.page-step::marker {
  content: none;
}

.page-step__title,
.page-step__body > * {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.page-step__body > .page-fig {
  max-width: min(
    var(--page-figure),
    calc(var(--fig-width, 1280px) + 2 * var(--space-lg))
  );
}

.page-step__body > ul,
.page-step__body > ol {
  padding-left: calc(var(--space-lg) + 1.35em);
}

.article-body .page-step__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-block: 2.75rem var(--space-md);
}

.page-step:first-child .page-step__title {
  margin-top: var(--space-xl);
}

.page-step__n {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  background: var(--color-active-surface);
  color: var(--color-gold-text);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Columns: each `###` block side by side */
.page-body > .page-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--page-figure);
  margin-block: var(--space-xl) var(--space-2xl);
  padding-inline: var(--space-lg);
}

.page-col {
  min-width: 0;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  font-size: 1rem;
}

.article-body .page-col h3 {
  margin-top: 0;
}

.article-body .page-col pre {
  margin-inline: 0;
  padding-inline: var(--space-lg);
  background: var(--color-background);
  font-size: 0.8125rem;
}

.page-col > :last-child {
  margin-bottom: 0;
}

@media (min-width: 52rem) {
  .page-body > .page-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tables: as wide as the cards, so that a comparison keeps its columns */
.page-body > table {
  max-width: calc(var(--wide) - 2 * var(--space-lg));
}

/* End band: the page's own closing actions, one under the other and all as
   wide as the widest, then the way home */
.page-end__actions {
  display: grid;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.page-end__actions .button {
  width: 100%;
  text-align: center;
}

.page-end__home {
  display: inline-block;
}

/* Enlarged figure: the capture at its own size (wider than a phone: it
   scrolls in both directions), on a dark veil */
dialog.zoom {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 4rem var(--space-lg) var(--space-lg);
  overflow: auto;
  border: 0;
  background: rgba(5, 7, 6, 0.96);
  color: var(--color-text);
}

dialog.zoom::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.zoom__img {
  display: block;
  width: min(var(--zoom-width, 1280px), max(100%, 68.75rem));
  max-width: none;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.zoom__close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text);
  cursor: pointer;
}

.zoom__close:hover {
  border-color: var(--color-gold);
}

/* Wide screens: step numbers hang in the margin, like section numbers */
@media (min-width: 64rem) {
  .page-step__n {
    position: absolute;
    top: 50%;
    right: calc(100% - var(--space-lg) + 1rem);
    transform: translateY(-50%);
  }
}

/* Phones: figures run edge to edge, closing actions one per line */
@media (max-width: 40rem) {
  .page-head h1 {
    text-align: left;
  }

  .page-head__figure,
  .article-body figure.page-fig,
  .page-step__body > .page-fig {
    padding-inline: 0;
  }

  .page-fig__frame--crop,
  .page-fig .page-fig__frame > img {
    border-inline: none;
    border-radius: 0;
  }

  .page-fig__link {
    border-radius: 0;
  }

  .page-head__figure .page-fig figcaption,
  .article-body figure.page-fig figcaption {
    margin-inline: var(--space-lg);
  }

  .page-toc ol {
    padding: var(--space-md) var(--space-lg);
  }

  .page-body > .page-highlight,
  .page-body > .page-note {
    padding: var(--space-lg) var(--space-xl);
  }

  .page-highlight {
    font-size: 1.0625rem;
  }

  .page-end__actions {
    justify-content: stretch;
  }
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-between;
}

.site-footer a {
  color: var(--color-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  /* the glyphs, not their 44 px targets, line up with the text above */
  margin: var(--space-md) 0 0 -0.625rem;
  padding: 0;
}

/* A 44 px touch target around a 24 px glyph; the targets never touch. */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
}

.lang-chooser {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lang-chooser__card {
  text-align: center;
}

.lang-chooser__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.lang-chooser__options a {
  font-size: 1.1rem;
}

/*
 * Home page: full-width sections, each a band of its own, with real
 * screenshots in a plain device frame.
 */

.home section {
  padding: var(--space-2xl) var(--space-lg);
}

.home section + section {
  border-top: 1px solid var(--color-border);
}

.home .inner {
  max-width: 64rem;
  margin: 0 auto;
}

.home h2 {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

.home h3 {
  font-size: 1.1rem;
  margin: 0 0 var(--space-xs);
}

.home p {
  margin: 0 0 var(--space-lg);
}

.home .muted {
  color: var(--color-muted);
}

.eyebrow {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.home-hero .inner {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1.12;
  margin: 0 0 var(--space-lg);
  text-wrap: balance;
}

.home-hero .lede {
  max-width: 34rem;
  margin-bottom: var(--space-xl);
}

.shot {
  margin: 0;
  width: min(100%, 17rem);
  flex: 0 1 17rem;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 1.6rem;
  background: var(--color-panel);
}

.shot figcaption {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  text-align: center;
}

.facts {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 64rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-lg);
}

.facts li {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-md);
}

.facts strong {
  display: block;
}

.facts span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.step {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

.step__text {
  max-width: 32rem;
  justify-self: start;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-md);
}

.step ul {
  padding-left: 1.2em;
  margin: 0;
  color: var(--color-muted);
}

.step li + li {
  margin-top: var(--space-xs);
}

.languages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.languages a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-text);
}

.languages a:hover,
.languages a:focus-visible {
  border-color: var(--color-gold);
}

.home .card-grid {
  padding: 0;
}

.home .card p {
  margin: 0;
  color: var(--color-muted);
}

.faq details {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: var(--space-sm) 0 0;
  color: var(--color-muted);
  max-width: 44rem;
}

.home-final {
  text-align: center;
}

.provisional-note {
  color: var(--color-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px dashed var(--color-border);
}

@media (min-width: 56.25rem) {
  .home section {
    padding: 4.5rem var(--space-xl);
  }

  .home-hero .inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .step {
    grid-template-columns: 1fr 1fr;
  }

  .step--reverse .step__text {
    order: 2;
  }
}

.flow {
  list-style: none;
  margin: var(--space-xl) 0 var(--space-2xl);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-md);
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: var(--space-lg);
  position: relative;
  /* The number and the title share one line; the text runs under both. */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
  align-items: baseline;
  /* A card stretched by a taller neighbour keeps its text right under its title. */
  align-content: start;
}

.flow li::before {
  content: counter(flow);
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.flow strong {
  font-size: 1.1rem;
}

.flow span {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-lg);
}

.feature {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.feature__icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.home .feature p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* SITE-SOIREE-GUIDEE-01: the home's guided evening section, six cards in
   three columns on a wide screen. */
#guided-evening .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

#guided-evening .guided-home__lede {
  max-width: 46rem;
  margin: 0 0 1.5rem;
}

#guided-evening .guided-home__fan {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
}

/* The guided evening's page: the three captures of « what each step
   shows » side by side on a wide screen, one under the other on a phone. */
.article-body .guided-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--wide);
  margin: 2rem auto;
}

.article-body .guided-shots figure.shot-slot {
  margin: 0 auto;
  max-width: 17rem;
}

@media (min-width: 40rem) {
  .article-body .guided-shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#guided-evening .guided-home__note {
  max-width: 46rem;
  margin: 1.5rem 0 0;
}

#guided-evening .guided-home__more {
  margin: 1rem 0 0;
}

.feature__tag {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-sm);
}

.shot--wide {
  width: 100%;
  flex: none;
  max-width: 56rem;
  margin: var(--space-xl) auto 0;
}

.shot--wide img {
  border-radius: var(--radius-lg);
}

/* Astro Sync and Astro Portal pages: one real screenshot (a desktop window or
   a web page) per figure, at the text width, framed like the other shots. */
.shot-slot {
  margin: var(--space-lg) 0;
}

.shot-slot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.shot-slot--phone {
  max-width: 17rem;
}

.shot-slot--phone img {
  border-radius: 1.6rem;
}

/* Draft guide: a step whose capture is still to be taken. Removed (or
   replaced by the capture) before the page is published. */
.shot-todo {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.shot-todo p {
  margin: 0;
}

.shot-slot figcaption {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  text-align: center;
}

/* Astro Portal page: the Journal and the gallery as real windows of the hosted
   portal, with the phone's view of the same pages in front or beside them.
   On a wide screen the block is wider than the text column. */
.portal-show {
  position: relative;
  display: grid;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.portal-show figure {
  margin: 0;
}

.portal-show__wins {
  display: grid;
  gap: var(--space-md);
}

.portal-show .win img {
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
}

.portal-show figcaption {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.portal-show__phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--color-border);
  border-radius: 1.6rem;
  background: var(--color-panel);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.6);
}

/* A phone seen from the side of the windows: centred under them on a narrow
   screen, so it never hides a window. */
.portal-show .portal-show__phone {
  width: min(100%, 12rem);
  margin: var(--space-md) auto 0;
}

@media (min-width: 64rem) {
  .portal-show {
    margin-inline: calc((100% - 60rem) / 2);
  }
}

@media (min-width: 40rem) {
  /* Windows with the phone in front: the phone overlaps the lower right
     corner of the last window. */
  .portal-show--front {
    padding-bottom: 3rem;
  }

  .portal-show--front .portal-show__phone {
    position: absolute;
    right: -1rem;
    bottom: 0;
    width: 24%;
    margin: 0;
    z-index: 2;
  }

  .portal-show--front .portal-show__wins--pair {
    grid-template-columns: repeat(2, 1fr);
  }

  /* One large window on the left, two smaller ones stacked on the right. */
  .portal-show--mosaic {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .portal-show--mosaic .win--big {
    grid-row: 1 / span 2;
  }

  /* A window and the phone side by side. */
  .portal-show--aside {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .portal-show--aside .portal-show__phone {
    margin: 0;
    width: 100%;
  }
}

/* Astro Sync renders gallery: one big sheet per target, shown at the page width. */
.shot--sheet {
  width: 100%;
  flex: none;
  margin: var(--space-lg) 0;
}

.shot--sheet img {
  border-radius: var(--radius-lg);
}

.shot--sheet figcaption {
  text-align: left;
}

/* Beta sign-up form: two steps, one primary each. */
.beta__step {
  display: grid;
  gap: var(--space-sm);
  max-width: 30rem;
  margin-top: var(--space-xl);
}

.beta__step[hidden] {
  display: none;
}

.beta__step label {
  font-weight: 600;
  margin-top: var(--space-sm);
}

.beta__step input[type="email"],
.beta__step input:not([type]),
.beta__step select {
  font: inherit;
  color: var(--color-text);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  width: 100%;
}

.beta__step input[type="email"],
.beta__step input:not([type]),
.beta__step select,
.beta__step .button,
.beta__link {
  min-height: 2.75rem;
}

.beta__step input:focus-visible,
.beta__step select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.beta__tick {
  display: flex;
  min-height: 2.75rem;
  gap: var(--space-sm);
  align-items: flex-start;
  font-weight: 400 !important;
  color: var(--color-muted);
}

.beta__tick input {
  margin-top: 0.35rem;
  accent-color: var(--color-gold);
}

.beta__step .button {
  justify-self: start;
  margin-top: var(--space-md);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.beta__step .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.beta__links {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.beta__link {
  font: inherit;
  color: var(--color-gold);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.beta__link:disabled {
  color: var(--color-muted);
  cursor: default;
  text-decoration: none;
}

/* Beta sign-up, « what you want to test »: the pistes (board BetaSignupTracks). */
.beta__open {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.beta__open[hidden],
.beta__tracks-limit[hidden],
.beta__error[hidden],
.beta__hint[hidden],
.beta__track-left[hidden],
.beta__track-badge[hidden] {
  display: none;
}

.beta__step select.is-full {
  color: var(--color-warning);
  border-color: var(--color-warning);
  padding-left: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1b868' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3 22 20H2Z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.7rem center;
  background-size: 1.1rem;
}

.beta__tracks {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
  margin: var(--space-lg) 0 0;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.beta__tracks legend {
  padding: 0 var(--space-xs);
  font-weight: 600;
}

.beta__tracks p {
  margin: 0;
}

.beta__tracks-help {
  font-size: 0.92rem;
}

/* The rule and the count stay in sight while the cards scroll: « 1 of 2 », and, at two, why the others are off. */
.beta__tracks-status {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
  padding: var(--space-sm) 0;
  background: var(--color-panel);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.beta__tracks-count {
  font-weight: 600;
  color: var(--color-gold);
}

.beta__tracks-limit {
  color: var(--color-text);
}

.beta__step .beta__track.is-disabled {
  cursor: not-allowed;
}

.beta__track.is-disabled .beta__track-name {
  color: var(--color-muted);
  font-weight: 400;
}

.beta__track.is-disabled input {
  cursor: not-allowed;
}

.beta__error,
.beta__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-warning);
}

.beta__hint {
  margin-top: var(--space-md);
}

.beta__step .beta__track {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0 var(--space-md);
  align-items: start;
  margin: 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  font-weight: 400;
}

.beta__step .beta__track--language {
  border-top: 0;
  padding-top: 0;
}

.beta__step .beta__track:has(input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.beta__track input {
  grid-row: 1 / span 4;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-gold);
}

.beta__track-tick {
  grid-row: 1 / span 2;
  color: var(--color-gold);
  font-weight: 700;
  text-align: center;
}

.beta__track-name {
  grid-column: 2;
  font-weight: 600;
}

.beta__track-help,
.beta__track-left,
.beta__track-limit {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.beta__track-left.is-full {
  color: var(--color-warning);
}

.beta__track-badge {
  grid-column: 2;
  justify-self: start;
  margin-top: var(--space-xs);
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-gold);
}

.beta__notice p {
  margin: 0;
}

.beta__notice p + p {
  margin-top: var(--space-md);
}

.beta__notice {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  max-width: 30rem;
}

/* Steps read from the top: the text starts level with the screenshots, and
   the number sits in front of its title. */
.step {
  align-items: start;
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.step__head .step__number {
  flex: none;
  margin-bottom: 0;
  position: relative;
  top: -0.15em;
}

.home .step__head h2 {
  margin: 0;
}

/* Three screenshots fanned out: the middle one upright and in front. */
.fan {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: var(--space-lg) 0 var(--space-xl);
}

.fan .shot {
  flex: none;
  width: 38%;
  max-width: 13.5rem;
}

.fan .shot img {
  aspect-ratio: 392 / 820;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.6);
}

.fan .shot:nth-child(1) {
  transform: rotate(-7deg) translateY(1.6rem);
  margin-right: -7%;
}

.fan .shot:nth-child(2) {
  z-index: 2;
}

.fan .shot:nth-child(3) {
  transform: rotate(7deg) translateY(1.6rem);
  margin-left: -7%;
}

/* A fan leans outwards: keep the text clear of the tilted screenshots. */
@media (min-width: 56.25rem) {
  .step:has(.fan) {
    column-gap: 5.5rem;
  }
}

.fan {
  margin-bottom: var(--space-lg);
}

.step__figure {
  margin: 0;
  width: 100%;
}

.step__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Features: one comparison table per theme. */
.prose--wide {
  max-width: 68rem;
}

.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.prose table.matrix {
  min-width: 46rem;
  font-size: 0.92rem;
}

.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--color-panel);
  text-align: center;
  vertical-align: bottom;
  font-size: 0.82rem;
  line-height: 1.25;
  width: 11%;
}

.matrix thead th:first-child {
  width: 34%;
}

.matrix thead small {
  display: block;
  /* FIN-52 (W2-S7): 12 px, not the browser's 10.9. */
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 2px;
}

.matrix tbody th {
  font-weight: 400;
  text-align: left;
}

.matrix td {
  text-align: center;
  vertical-align: middle;
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: none;
}

.matrix__yes {
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.15rem;
}

.matrix__no {
  color: var(--color-border);
}

.matrix__text {
  color: var(--color-gold-text);
  font-size: 0.85rem;
}

.matrix th:nth-child(3),
.matrix td:nth-child(3),
.matrix th:nth-child(4),
.matrix td:nth-child(4) {
  background: rgba(224, 168, 94, 0.05);
}

/* Pricing page: one free band, one-time purchases, subscriptions, your
   own server, then how to choose. */
.pricing__head .currency-switcher {
  padding: 0;
  margin: 0;
  max-width: none;
}

.pricing__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--space-lg);
  align-items: start;
}

.pricing__head h1 {
  margin-bottom: 0;
}

.pricing__head .lede {
  grid-column: 1 / -1;
}

.pricing__band {
  margin-top: var(--space-2xl);
}

.pricing h2 {
  border-top: none;
  padding-top: 0;
  margin: 0 0 var(--space-xs);
  font-size: 1.5rem;
}

.pricing .muted {
  color: var(--color-muted);
  max-width: 46rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.plan {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.plan__icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--color-gold);
  flex: none;
}

.plan h3 {
  margin: var(--space-md) 0 0;
  font-size: 1.15rem;
  text-wrap: balance;
}

.plan__price {
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-muted);
}

.plan__alt {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.plan li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0 0 var(--space-sm);
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.plan__note {
  margin: auto 0 0;
  padding-top: var(--space-md);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.plan--pack {
  border-color: var(--color-gold);
}

.plan--free,
.plan--self {
  display: block;
}

.plan__top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.plan__top h2 {
  margin: 0;
}

.plan__top .plan__price {
  margin: 0 0 0 auto;
}

.plan__kind {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.plan__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 var(--space-xl);
}

.plan__foot {
  margin: var(--space-md) 0 0;
}

.pricing__fine {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.who {
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.who > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  align-items: baseline;
}

.who > div + div {
  border-top: 1px solid var(--color-border);
}

.who dt {
  color: var(--color-muted);
}

.who dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-gold-text);
  text-align: right;
}

@media (max-width: 34rem) {
  .who > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .who dd {
    text-align: left;
  }

  .plan__top {
    flex-wrap: wrap;
  }
}

/* Download page. */
.dl__hero {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 12.5rem;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  background: var(--color-gold);
  color: #1a1408;
  text-decoration: none;
}

.badge:hover,
.badge:focus-visible {
  background: var(--color-gold-text);
  color: #1a1408;
}

.badge__glyph {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.badge small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.1;
}

.badge strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
}

.dl__req {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.dl__qr {
  display: none;
  margin: 0;
  text-align: center;
  max-width: 11rem;
}

.dl__qr img {
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto var(--space-sm);
}

.dl__qr figcaption {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.dl__strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  margin: var(--space-2xl) 0 0;
  padding-bottom: var(--space-md);
  scroll-snap-type: x proximity;
}

.dl__themes {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0 0;
  padding: var(--space-xs) var(--space-xs) var(--space-md);
  overflow-x: auto;
  scrollbar-width: thin;
}

.dl__themes[hidden],
.dl__strip[hidden] {
  display: none;
}

.dl__theme {
  flex: none;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.dl__theme:hover {
  border-color: var(--color-gold);
}

.dl__theme:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.dl__theme[aria-pressed="true"] {
  background: var(--color-active-surface);
  border-color: var(--color-gold);
  color: var(--color-gold-text);
  font-weight: 600;
}

.dl__themes ~ .dl__strip {
  margin-top: 0;
}

.dl__strip img {
  flex: none;
  width: min(62vw, 15rem);
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  scroll-snap-align: start;
}

.dl__band {
  margin-top: var(--space-2xl);
}

.dl h2 {
  border-top: none;
  padding-top: 0;
}

.dl .muted {
  color: var(--color-muted);
}

.dl .flow {
  margin-bottom: var(--space-lg);
  padding-left: 0;
}

.dl__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-lg);
}

/* Four cards: two by two, then one row of four once the page is wide enough (never three plus one). */
#computer .dl__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 37.5rem) {
  #computer .dl__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  #computer .dl__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dl__card {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.dl__card h3 {
  margin: var(--space-md) 0 var(--space-xs);
}

.dl__card p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
}

.dl__card p:last-child {
  margin: auto 0 0;
}

/* The actions of a card are one block: stacked with the gap the other button
   groups use, never touching, and the card's first action is always the same
   shape (a two-line label height at least) whatever the label's length. */
.dl__card p:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dl__icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--color-gold);
}

@media (min-width: 56.25rem) {
  .dl__hero {
    grid-template-columns: 1fr auto;
  }

  .dl__qr {
    display: block;
  }
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.store-badge img {
  display: block;
  height: 3rem;
  width: auto;
}

.store-badge:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.dl__marks {
  margin-top: var(--space-2xl);
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* Download page: the buttons of the cards fill the card's width, their label
   centred, and every button is as tall as a two-line label so that a short
   label and a long one give the same button. */
.dl__card .button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 4.4rem;
  min-height: calc(2 * 1lh + 2 * var(--space-sm) + 2px);
  text-align: center;
  text-wrap: balance;
}

/* Cards side by side (two by two, then four in a row): the cards share their
   rows (icon, title, text, actions), so the titles, the texts and the first
   actions of neighbouring cards sit on the same lines; a card with a second
   action simply continues below the others' first one. */
@media (min-width: 37.5rem) {
  #computer .dl__card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  #computer .dl__card p:last-child {
    margin: 0;
    align-self: start;
  }
}

/* Three captures per section on the home page. */

/* The hero shows the same fan of three phones as the steps. */
.home-hero__fan {
  padding-top: 0;
}

/* The visual-mode section: three phones, then the eyepiece composition. */
.step__visual {
  width: 100%;
  display: grid;
  gap: var(--space-lg);
}

/* Desktop windows (Astro Sync, web portal): wide captures, not phones. */
.windows {
  display: grid;
  gap: var(--space-md);
  width: 100%;
}

.win {
  margin: 0;
}

.win img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.5);
}

/* Desktop windows read at a legible size: one lead window across the
   whole column, the others side by side below it. */
@media (min-width: 40rem) {
  .windows--lead {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .windows--lead .win--lead {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* A step whose lead is a wide window: the text on top, the windows below. */
@media (min-width: 56.25rem) {
  .step--stacked {
    grid-template-columns: 1fr;
  }

  .step--stacked .step__text {
    max-width: 46rem;
  }
}
