/* AirControl website. Plain CSS, no build step, no web fonts. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #e2e2e6;
  --stage: #161618;
  --stage-2: #202023;
  --stage-edge: transparent;
  --accent: #e85c29;      /* graphics, focus, active states */
  --accent-ink: #b5441a;  /* accent text on light grounds */
  --btn: #c24a1c;         /* filled buttons, white text */
  --btn-hover: #a93f16;
  --confirm: #33a86b;
  --confirm-ink: #1e7a4a;
  --cut: #ffffff;         /* detail lines cut into hand glyphs */
  --selection: rgba(232, 92, 41, 0.22);

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --bg-2: #202023;
    --ink: #f2f1ee;
    --ink-2: #a3a29e;
    --line: #2f2f33;
    --stage: #0f0f11;
    --stage-2: #1b1b1e;
    --stage-edge: rgba(255, 255, 255, 0.1);
    --accent-ink: #f2834f;
    --confirm-ink: #4cc285;
    --cut: #202023;
    --selection: rgba(232, 92, 41, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--selection);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

kbd {
  font: inherit;
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-2);
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--btn-hover);
}

/* On phones the four links move to their own scrollable row. */
@media (max-width: 699px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 8px;
  }
  .site-nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    border-top: 1px solid var(--line);
  }
  .site-nav ul {
    overflow-x: auto;
    padding: 4px calc(var(--gutter) - 10px);
    scrollbar-width: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-link {
  min-height: 50px;
  padding: 0 14px;
  color: var(--accent-ink);
  background: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

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

.hero {
  padding: clamp(56px, 10vw, 104px) 0 0;
  text-align: center;
}

.hero .lede {
  max-width: 34em;
  margin: 22px auto 32px;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  line-height: 1.45;
}

.hero .fine {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* The demo stage: a drawn Mac screen. Replace the <svg class="demo"> with a <video> when one exists. */
.stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(44px, 7vw, 72px) auto 0;
  border-radius: clamp(16px, 2.4vw, 28px);
  background: var(--stage);
  border: 1px solid var(--stage-edge);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}

.stage .demo {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 680;
}

/* Phones: crop to the centre of the scene and float the camera preview over the window. */
@media (max-width: 599px) {
  .stage .demo {
    aspect-ratio: 1 / 1;
  }
  .demo .m-shift { transform: translateX(140px); }
  .demo .m-inset { transform: translate(-220px, 316px); }
  .demo .m-hide { display: none; }
  .demo .m-left { transform: translateX(250px); }
  .demo .m-right { transform: translateX(-250px); }
}

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 14px auto 0;
  max-width: 1080px;
  color: var(--ink-2);
  font-size: 0.86rem;
  text-align: left;
}

.stage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.stage-toggle svg {
  width: 14px;
  height: 14px;
}

.stage-toggle .i-play,
.is-paused .stage-toggle .i-pause {
  display: none;
}

.is-paused .stage-toggle .i-play {
  display: block;
}

/* Demo scene colours (always dark: it shows the Mac's screen). */
.demo {
  --w-bg: #f7f6f3;
  --w-ink: #1d1d1f;
  --w-ink2: #8b8a86;
  --w-line: #e4e2dc;
  font-family: var(--font);
}

.demo .ink { fill: var(--w-ink); }
.demo .ink2 { fill: var(--w-ink2); }
.demo .bar { fill: var(--w-line); }
.demo .hand { color: #f2f1ee; --cut: #202023; }
.demo .wheel-hit { fill: #e85c29; }
.w-slice { fill: transparent; }
.w-label { fill: #e9e7e2; font-weight: 600; text-anchor: middle; font-family: var(--font); }

/* ---------- Demo animation: one 12 s loop ---------- */
@media (prefers-reduced-motion: no-preference) {
  .demo .anim {
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  }
  .is-paused .demo .anim {
    animation-play-state: paused;
  }
  .demo .pointer { animation-name: pointer-move; }
  .demo .scroll { animation-name: content-scroll; }
  .demo .ripple { animation-name: ripple; transform-origin: 0 0; transform-box: fill-box; }
  .demo .wheel { animation-name: wheel-open; transform-origin: center; transform-box: fill-box; }
  .demo .wheel-hit { animation-name: wheel-hit; }
  .demo .btn-hit { animation-name: btn-hit; }
  .demo .p-open { animation-name: show-open; }
  .demo .p-dip { animation-name: show-dip; }
  .demo .p-two { animation-name: show-two; }
  .demo .p-pinch { animation-name: show-pinch; }
  .demo .l-steer { animation-name: show-open; }
  .demo .l-click { animation-name: show-dip; }
  .demo .l-scroll { animation-name: show-two; }
  .demo .l-wheel { animation-name: show-pinch; }
}

/* Static frame (reduced motion or before animation): the shortcut wheel moment. */
.demo .pointer { transform: translate(610px, 340px); }
.demo .p-open,
.demo .p-dip,
.demo .p-two,
.demo .l-steer,
.demo .l-click,
.demo .l-scroll { opacity: 0; }
.demo .p-pinch,
.demo .l-wheel { opacity: 1; }
.demo .wheel { opacity: 1; }
.demo .ripple { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .demo .pointer { transform: none; }
}

@keyframes pointer-move {
  0% { transform: translate(330px, 470px); }
  9% { transform: translate(450px, 280px); }
  18% { transform: translate(560px, 420px); }
  25%, 37% { transform: translate(226px, 606px); }
  42%, 62% { transform: translate(470px, 330px); }
  68%, 92% { transform: translate(610px, 340px); }
  100% { transform: translate(330px, 470px); }
}

@keyframes content-scroll {
  0%, 40% { transform: translateY(0); }
  60%, 94% { transform: translateY(-150px); }
  100% { transform: translateY(0); }
}

@keyframes btn-hit {
  0%, 27% { fill: #c24a1c; }
  28.5%, 32% { fill: #8f3612; }
  34%, 100% { fill: #c24a1c; }
}

@keyframes ripple {
  0%, 27% { opacity: 0; transform: scale(0.3); }
  28% { opacity: 0.9; transform: scale(0.4); }
  34% { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes wheel-open {
  0%, 68% { opacity: 0; transform: scale(0.82); }
  72%, 90% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.96); }
}

@keyframes wheel-hit {
  0%, 78% { fill: transparent; }
  80%, 90% { fill: #e85c29; }
  94%, 100% { fill: transparent; }
}

@keyframes show-open {
  0%, 22% { opacity: 1; }
  24%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes show-dip {
  0%, 23% { opacity: 0; }
  25%, 37% { opacity: 1; }
  39%, 100% { opacity: 0; }
}

@keyframes show-two {
  0%, 38% { opacity: 0; }
  40%, 62% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes show-pinch {
  0%, 63% { opacity: 0; }
  65%, 94% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

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

.section {
  padding: clamp(88px, 12vw, 144px) 0;
}

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

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 64px);
  text-align: center;
}

.section-head p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.45;
}

/* Steps: a real sequence, so it is numbered. */
.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--ink-2);
}

/* ---------- Gesture chooser ---------- */

.chooser {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .chooser {
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.chooser-tabs {
  display: none;
}

.js .chooser-tabs {
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}

@media (min-width: 900px) {
  .js .chooser-tabs {
    -webkit-mask-image: none;
    mask-image: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

.chooser-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-height: 48px;
  padding: 8px 18px 8px 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chooser-tabs button svg {
  width: 32px;
  height: 32px;
  flex: none;
  color: currentColor;
}

.chooser-tabs button:hover {
  color: var(--ink);
}

.chooser-tabs button[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px -6px rgba(0, 0, 0, 0.12);
}

.chooser-tabs button[aria-selected="true"] svg {
  color: var(--accent);
}

/* Detail cuts in the tab icons match the tab's own background. */
.chooser-tabs button {
  --cut: var(--bg-2);
}

.chooser-tabs button[aria-selected="true"] {
  --cut: var(--bg);
}

.panels {
  display: grid;
  gap: 24px;
}

.panel {
  display: grid;
  border-radius: 28px;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.js .panel[hidden] {
  display: none;
}

.panel-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.86;
  background: var(--stage);
  color: #f2f1ee;
  --cut: var(--stage);
}

.panel-art svg {
  width: 72%;
  height: auto;
  overflow: visible;
}

.panel-copy {
  padding: clamp(28px, 4vw, 44px);
}

.panel-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.panel-copy p + p {
  margin-top: 14px;
}

.panel-copy .moment {
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.9rem;
  font-weight: 560;
}

/* Art strokes */
.a-accent { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.a-accent-fill { fill: var(--accent); }
.a-soft { fill: none; stroke: rgba(242, 241, 238, 0.3); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.a-ghost { opacity: 0.22; }
.a-wheel { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; }
.a-label { fill: #d8d6d1; font: 600 9.5px var(--font); text-anchor: middle; }

/* ---------- Smart touches ---------- */

.touches {
  display: grid;
  gap: 36px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .touches {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .touches {
    grid-template-columns: repeat(3, 1fr);
  }
}

.touches li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 14px;
}

.touches svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--ink-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.touches h3 {
  font-size: 1.05rem;
}

.touches p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- Stop key ---------- */

.stopkey {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.keycaps {
  display: flex;
  gap: clamp(8px, 2vw, 14px);
}

.keycaps kbd {
  display: grid;
  place-items: end start;
  width: clamp(64px, 14vw, 92px);
  height: clamp(64px, 14vw, 92px);
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 24px -12px rgba(0, 0, 0, 0.25);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  line-height: 1.1;
  text-align: left;
}

.keycaps kbd span {
  display: block;
  font-size: 1.5em;
}

.keycaps kbd.esc {
  background: var(--btn);
  border-color: var(--btn);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 24px -12px rgba(194, 74, 28, 0.6);
  color: #fff;
}

.stopkey p {
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.15rem;
}

/* ---------- Privacy band (always dark, like the app) ---------- */

.privacy-band {
  background: var(--stage);
  color: #f2f1ee;
}

.privacy-band .section-head p {
  color: #b4b2ad;
}

.privacy-band a {
  color: #f2834f;
}

.facts {
  display: grid;
  gap: 2px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-radius: 22px;
  overflow: hidden;
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: #202023;
  font-size: 1.05rem;
}

.facts svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: #4cc285;
}

.privacy-band .more {
  margin-top: 32px;
  text-align: center;
}

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

.close {
  text-align: center;
}

.close .app-icon {
  width: clamp(96px, 16vw, 128px);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 24%;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
}

.close .section-head {
  margin-bottom: 32px;
}

.reqs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.reqs strong {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Reading pages (privacy, help, changelog) ---------- */

.doc-head {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.doc-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

.doc-head p {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.doc {
  max-width: 700px;
  padding-bottom: clamp(88px, 12vw, 128px);
}

.doc h2 {
  margin: 56px 0 14px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.doc h3 {
  margin: 32px 0 8px;
  font-size: 1.4rem;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--ink-2);
}

.doc .updated {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.summary {
  margin: 0 0 8px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--bg-2);
}

.summary h2 {
  margin-top: 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.summary ul {
  margin: 0;
}

.doc .toc {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
}

.toc a:hover {
  background: var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq details > div {
  padding-bottom: 20px;
}

.faq details > div > :last-child {
  margin-bottom: 0;
}

.faq h2:first-child {
  margin-top: 8px;
}

.release {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.release h2 {
  margin: 0;
}

.release .meta {
  margin: 6px 0 18px;
  color: var(--ink-2);
}

.release h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

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

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-inner p {
  max-width: 44em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.fineprint {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .stage-bar,
  .skip-link {
    display: none;
  }
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.stage-figure {
  margin: 0;
}

/* Hero demo video. The drawn illustration replaces it when motion is turned off. */
.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--stage);
}

.stage .demo,
.cap-still {
  display: none;
}

.stage.no-video .demo-video,
.no-video-caption .cap-video {
  display: none;
}

.stage.no-video .demo {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .demo-video,
  .cap-video {
    display: none;
  }
  .stage .demo {
    display: block;
  }
  .cap-still {
    display: inline;
  }
}
