/* Tiroir. One dark page in the manner of Apple's Pro pages: warm black and near-black sections, Rice type, large
   system-font headlines, one accent (Honey, a lamp inside a drawer). Colors come from tokens.css, the brand's.
   SF Pro is never shipped: Apple devices render it through -apple-system and BlinkMacSystemFont; everywhere
   else gets Inter, the only webfont. */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-2199, U+2212, U+2303, U+2318, U+2325;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-2199, U+2212, U+2303, U+2318, U+2325;
}

:root {
  --gutter: 40px;
  --max: 1080px;
  --narrow: 780px;
  --nav-h: 48px;
  --section: clamp(96px, 12vw, 168px);
  --font: var(--tiroir-font-sans);

  --bg: var(--tiroir-night);
  --bg-2: #110F0C;       /* the alternate sections: a shade above Night */
  --card: var(--tiroir-lacquer);
  --card-2: #1F1C16;     /* a card inside a card */
  --edge: rgb(245 241 234 / 0.08);
  --text: var(--tiroir-rice);
  --text-2: var(--tiroir-ash); /* 6.7:1 on Night, 6.2:1 on Lacquer */
  --text-3: #908980;          /* fine print: 5.7:1 on Night, 5.3:1 on Lacquer */
  --accent: var(--tiroir-honey);
  --ember: var(--tiroir-ember);
}

@media (max-width: 1068px) {
  :root { --gutter: 32px; }
}

@media (max-width: 734px) {
  :root { --gutter: 20px; --nav-h: 44px; }
}

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

[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth in-page scrolling once the page has landed (main.js), so a link to #download arrives at once. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, pre, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  letter-spacing: 0;
}
/* Shortcuts read as they do in macOS menus: in the text's own font. */
kbd { color: var(--text); font: inherit; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The glyphs of the page, drawn once and reused with <use>. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.skip:focus { top: 8px; text-decoration: none; }

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.wrap-narrow { width: min(var(--narrow), 100% - var(--gutter) * 2); margin-inline: auto; }
.center { text-align: center; }
.center .h2, .center .lead { margin-inline: auto; }

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h2 {
  max-width: 18ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0625;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  max-width: 36em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.43;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}

.fine {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}
.center.fine { max-width: 48em; margin-inline: auto; }

.subhead {
  margin-top: 88px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  text-align: center;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-2 { background: var(--bg-2); }

/* Content eases in as it scrolls into view. js/reveal.js marks what is already on screen, then turns this on
   (reveal-on); without scripts or with reduced motion, everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-on .reveal { transition: opacity 0.8s var(--tiroir-ease-fade), transform 0.8s cubic-bezier(0.33, 1, 0.68, 1); }
  html.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgb(12 11 10 / 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--edge);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), 100% - var(--gutter) * 2);
  height: 100%;
  margin-inline: auto;
}

/* The brand word. A wordmark image can replace the text: <img src="assets/brand/wordmark.svg" alt="Tiroir" ...>. */
.nav-brand, .footer-brand {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-brand { margin-right: auto; }
.nav-brand:hover, .footer-brand:hover { text-decoration: none; }
.nav-brand img, .footer-brand img { width: auto; height: 20px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block;
  padding: 6px 10px;
  color: rgb(245 241 234 / 0.8);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  padding: 4px 14px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}
.nav-cta:hover { background: #fff; text-decoration: none; }

@media (max-width: 834px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.actions-start { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 176px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-secondary { color: var(--text); box-shadow: inset 0 0 0 1px rgb(245 241 234 / 0.28); }
.btn-secondary:hover { background: rgb(245 241 234 / 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: 44px 0 88px;
  text-align: center;
  background:
    radial-gradient(56% 46% at 50% 58%, rgb(255 185 56 / 0.10), rgb(255 138 31 / 0.03) 55%, rgb(255 138 31 / 0) 72%),
    var(--bg);
}

.hero-name {
  color: var(--text-2);
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.hero h1 {
  max-width: 20ch;
  margin: 8px auto 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFDF8 30%, #D9D1C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-foot { margin-top: 20px; }

.hero-sub {
  max-width: 36em;
  margin-inline: auto;
  color: var(--text-2);
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.43;
  text-wrap: pretty;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
}
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.facts li:first-child::before { display: none; }
@media (max-width: 560px) {
  .facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 6px 20px; }
  .facts li::before { display: none; }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step { display: flex; flex-direction: column; }
.step-num {
  margin-top: 24px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 4px; font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: 0.011em; }
.step > p:last-child { margin-top: 8px; color: var(--text-2); font-size: 17px; }

@media (max-width: 834px) {
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 520px; margin-inline: auto; }
}

/* ---------- Smart Sort ---------- */

.kinds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 64px;
}
.kind {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
}
.kind-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(245 241 234 / 0.09), rgb(245 241 234 / 0.03));
  box-shadow: inset 0 0 0 1px rgb(245 241 234 / 0.08);
  color: var(--text);
}
.kind-mark svg { width: 24px; height: 24px; }
.kind b { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; }
.kind span:last-child { color: var(--text-2); font-size: 14px; line-height: 1.35; letter-spacing: -0.012em; }
.kind-other { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.kind-other .kind-mark { margin-bottom: 0; }

@media (max-width: 1068px) { .kinds { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 734px) { .kinds { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kind { padding: 16px 14px; } }

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.options { display: grid; gap: 1px; overflow: hidden; border-radius: 20px; background: var(--edge); box-shadow: 0 0 0 1px var(--edge); }
.option { padding: 22px 26px 24px; background: var(--card); }
.option h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.option p { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.47; }

/* A second row turns the other way: its picture on the right. */
.split.flip { grid-template-columns: 1fr 1.15fr; }
.split.flip > .shot-card { order: 2; }
.split + .split { margin-top: 56px; }
@media (max-width: 834px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > .shot-card { order: 0; } }

/* ---------- Captures of the app ---------- */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 64px;
}
@media (max-width: 834px) { .pair { grid-template-columns: 1fr; } }

.shot-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
}
/* The capture on a warm desktop of the page's own, never an Apple wallpaper. */
.shot-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  padding: 7%;
  background:
    radial-gradient(90% 70% at 85% 0%, rgb(255 185 56 / 0.22), rgb(255 185 56 / 0) 60%),
    radial-gradient(80% 70% at 10% 100%, rgb(255 138 31 / 0.22), rgb(255 138 31 / 0) 60%),
    linear-gradient(160deg, #2A1B11 0%, #150F0B 55%, #1D120B 100%);
}
.stage-square { aspect-ratio: 1 / 1; padding: 8%; }
/* A window beside its explanations: a thinner frame, so its words stay readable. */
.split .shot-stage:not(.stage-square) { aspect-ratio: 960 / 700; padding: 3.5%; }
/* The WebP picture wrapper takes no box of its own: the image sizes against the stage. */
.shot-stage picture, .scene picture { display: contents; }
.shot-stage img {
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.45));
}
.shot-card figcaption { padding: 16px 20px 20px; color: var(--text-2); font-size: 15px; line-height: 1.47; }
.shot-card figcaption b { display: block; margin-bottom: 2px; color: var(--text); font-size: 17px; font-weight: 600; }

/* ---------- Feature grids ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--edge);
  box-shadow: 0 0 0 1px var(--edge);
}
.feature { padding: 28px 28px 30px; background: var(--card); }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.47; }

@media (max-width: 834px) { .features { grid-template-columns: 1fr; } }

/* ---------- Your Mac: the two engines ---------- */

.engines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.engine { padding: 32px 32px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--edge); }
.engine-os { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.engine h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.005em; }
.engine > p:not(.engine-os) { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.badge {
  padding: 2px 10px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.specs { margin-top: 20px; }
.specs li { display: grid; grid-template-columns: minmax(96px, 0.8fr) 1.4fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--edge); font-size: 15px; line-height: 1.4; }
.specs li span:first-child { color: var(--text-3); }
.specs li span:last-child { color: var(--text); }

@media (max-width: 834px) { .engines { grid-template-columns: 1fr; } }

.check {
  margin-top: 24px;
  padding: 22px 28px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgb(255 185 56 / 0.09), rgb(255 138 31 / 0.05));
  box-shadow: 0 0 0 1px rgb(255 185 56 / 0.18);
  color: var(--text-2);
  font-size: 15px;
}
.check b { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stat { padding: 28px 24px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--edge); }
.stat .num { color: var(--text); font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .num small { margin-left: 4px; color: var(--text-2); font-size: 0.4em; font-weight: 600; letter-spacing: 0; }
.stat h4 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.stat > p:last-child { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.47; }

@media (max-width: 1068px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 56px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
}
.compare { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.compare th, .compare td { padding: 14px 16px; border-top: 1px solid var(--edge); text-align: left; font-weight: 400; vertical-align: top; }
.compare thead th { border-top: 0; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.compare tbody th { color: var(--text); }
.compare td { color: var(--text-2); font-variant-numeric: tabular-nums; }
/* The feature names stay in view while the table scrolls sideways. */
.compare th:first-child { position: sticky; left: 0; z-index: 1; width: 176px; background: var(--card); }
.compare .us { color: var(--text); font-weight: 600; background: #221C12; }
.compare thead .us { color: var(--accent); }
.swipe-hint { display: none; text-align: center; }
@media (max-width: 734px) {
  .compare { min-width: 780px; font-size: 14px; }
  .compare th, .compare td { padding: 12px 12px; }
  .compare th:first-child { width: 128px; min-width: 128px; box-shadow: 1px 0 0 var(--edge); }
  .swipe-hint { display: block; }
}

/* ---------- Privacy ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.promise svg { width: 32px; height: 32px; color: var(--accent); }
.promise h3 { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: 0.011em; }
.promise p { margin-top: 8px; color: var(--text-2); font-size: 17px; }
@media (max-width: 834px) { .promises { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Open source ---------- */

.repo {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
  color: var(--text);
  transition: box-shadow 0.2s;
}
.repo:hover { text-decoration: none; box-shadow: 0 0 0 1px rgb(245 241 234 / 0.24); }
.repo-top { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.repo-top svg { width: 22px; height: 22px; }
.repo-top b { font-weight: 600; }
.repo-desc { color: var(--text-2); font-size: 15px; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--text-3); font-size: 14px; }
.repo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: #F05138; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.tile {
  display: block;
  padding: 24px 22px 26px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
  color: var(--text);
  transition: box-shadow 0.2s;
}
.tile:hover { text-decoration: none; box-shadow: 0 0 0 1px rgb(245 241 234 / 0.24); }
.tile h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tile h3::after { content: "\00a0\2197"; color: var(--accent); font-weight: 400; }
.tile p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.47; }
@media (max-width: 1068px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  align-items: center;
  margin-top: 24px;
  padding: 32px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--edge);
}
.catalog h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.catalog-copy > p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.catalog-copy > p.catalog-link { margin-top: 14px; font-size: 17px; }
.code {
  overflow-x: auto;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 834px) { .catalog { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- FAQ ---------- */

.faq { margin-top: 48px; border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.004em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details > div { max-width: 44em; padding: 0 0 24px; color: var(--text-2); font-size: 17px; }
.faq details > div p + p { margin-top: 10px; }
.faq code { color: var(--text); overflow-wrap: anywhere; }

/* ---------- Download ---------- */

.download {
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 100%, rgb(255 185 56 / 0.12), rgb(255 138 31 / 0) 70%),
    var(--bg);
}
.download .h2, .download .lead { margin-inline: auto; }
.download .fine { max-width: 42em; margin-inline: auto; }
.download .fine code { color: var(--text); overflow-wrap: anywhere; }

/* Three drawers, the first one lit from inside. */
.download-marks { display: flex; justify-content: center; gap: 14px; margin-bottom: 36px; }
.download-marks span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(245 241 234 / 0.10), rgb(245 241 234 / 0.03));
  box-shadow: inset 0 0 0 1px rgb(245 241 234 / 0.10), 0 12px 32px rgb(0 0 0 / 0.4);
  color: var(--text);
}
.download-marks svg { width: 30px; height: 30px; }
.download-marks span:first-child { color: var(--accent); box-shadow: inset 0 0 0 1px rgb(255 185 56 / 0.5), 0 0 36px rgb(255 185 56 / 0.28), 0 12px 32px rgb(0 0 0 / 0.4); }

/* ---------- Footer ---------- */

.footer {
  padding: 28px 0 40px;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--edge);
}
.footer-brand { font-size: 17px; }
.footer-line { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.footer-links a { display: inline-block; padding: 4px 0; color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.legal { margin-top: 16px; font-size: 13px; }
@media (max-width: 734px) { .footer-links { margin-left: 0; } }

/* ---------- Page not found ---------- */

.not-found { display: grid; align-content: center; min-height: 100vh; }
