/*
 * The Lucid site. One page, no framework, no third-party requests: the typeface is served from here.
 *
 * Design rules (the same language as the app: black and white, hairlines, one filled button, iA Writer Mono):
 *  - Spacing is a 4 px scale (--s1 .. --s10), type is a ratio scale of about 1.25 (--t-1 .. --t6); nothing else is used.
 *  - Colours are tokens; text on every surface keeps at least 4.5:1 (body) and 3:1 (tertiary), in both themes.
 *  - Radii: 8 (controls), 12 (cards), 16 (the window picture). Borders are 1 px.
 *  - Motion is a short fade and rise when a block scrolls into view; it is off when the visitor asks for less motion.
 */

@font-face {
  font-family: "iA Writer Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/ia-writer-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "iA Writer Mono";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/ia-writer-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f4f1;
  --panel-2: #ebe8e4;
  --line: #e1dfdc;
  --line-strong: #cfcac4;
  --ink: #2c2c2b;
  --ink-2: #67635d;
  --ink-3: #7f7b75;
  --inverse-bg: #2c2c2b;
  --inverse-ink: #ffffff;
  --ok: #3f8a69;
  --red: #b8453d;
  --shadow-1: 0 1px 2px rgb(15 15 15 / 6%), 0 6px 20px rgb(15 15 15 / 6%);
  --shadow-window: 0 2px 4px rgb(15 15 15 / 6%), 0 24px 64px -12px rgb(15 15 15 / 22%);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --t-1: 13px;
  --t0: 16px;
  --t1: 20px;
  --t2: clamp(22px, 1.6vw + 14px, 25px);
  --t3: clamp(26px, 2.4vw + 14px, 31px);
  --t4: clamp(30px, 3.2vw + 14px, 39px);
  --t6: clamp(34px, 5.4vw + 6px, 61px);

  --r1: 8px;
  --r2: 12px;
  --r3: 16px;
  --wrap: 1120px;
  --mono: "iA Writer Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191919;
  --panel: #232322;
  --panel-2: #2e2e2c;
  --line: #3b3b39;
  --line-strong: #4b4b48;
  --ink: #f0efed;
  --ink-2: #bcb8b2;
  --ink-3: #8f8b85;
  --inverse-bg: #f0efed;
  --inverse-ink: #191919;
  --ok: #5fb892;
  --red: #e56458;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 24px rgb(0 0 0 / 35%);
  --shadow-window: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 64px -12px rgb(0 0 0 / 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #191919;
    --panel: #232322;
    --panel-2: #2e2e2c;
    --line: #3b3b39;
    --line-strong: #4b4b48;
    --ink: #f0efed;
    --ink-2: #bcb8b2;
    --ink-3: #8f8b85;
    --inverse-bg: #f0efed;
    --inverse-ink: #191919;
    --ok: #5fb892;
    --red: #e56458;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 24px rgb(0 0 0 / 35%);
    --shadow-window: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 64px -12px rgb(0 0 0 / 70%);
  }
}

/* ---- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
code,
kbd,
pre {
  font-family: var(--mono);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: var(--s4);
  top: -48px;
  z-index: 100;
  padding: var(--s2) var(--s4);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  border-radius: var(--r1);
}
.skip:focus {
  top: var(--s3);
}
.wrap {
  width: min(100% - 2 * var(--s5), var(--wrap));
  margin-inline: auto;
}
.dark-only {
  display: none;
}
:root[data-theme="dark"] .light-only {
  display: none;
}
:root[data-theme="dark"] .dark-only {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .light-only {
    display: none;
  }
  :root:not([data-theme="light"]) .dark-only {
    display: block;
  }
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 700;
  font-size: var(--t1);
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav {
  display: flex;
  gap: var(--s5);
  margin-left: auto;
  font-size: 14px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn .sun {
  display: none;
}
:root[data-theme="dark"] .icon-btn .sun {
  display: block;
}
:root[data-theme="dark"] .icon-btn .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-btn .moon {
    display: none;
  }
}
@media (max-width: 760px) {
  .nav a:not(.keep) {
    display: none;
  }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--ink);
}
.btn.primary {
  background: var(--inverse-bg);
  border-color: var(--inverse-bg);
  color: var(--inverse-ink);
}
.btn.primary:hover {
  opacity: 0.88;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn.small {
  min-height: 36px;
  padding: 0 var(--s4);
  font-size: 14px;
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding: var(--s9) 0 var(--s8);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.eyebrow {
  display: inline-flex;
  gap: var(--s2);
  align-items: center;
  padding: var(--s1) var(--s3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: var(--t-1);
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.hero h1 {
  max-width: 17ch;
  margin: var(--s5) auto var(--s5);
  font-size: var(--t6);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: var(--t1);
  line-height: 1.55;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s6);
}
.cta-note {
  margin-top: var(--s4);
  color: var(--ink-3);
  font-size: var(--t-1);
}
.window {
  max-width: 1040px;
  margin: var(--s8) auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r3);
  background: var(--bg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: 40px;
  padding: 0 var(--s4);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-bar span {
  margin-left: var(--s3);
  color: var(--ink-3);
  font-size: var(--t-1);
}
.window img {
  width: 100%;
  height: auto;
}

/* ---- sections ---- */
section {
  padding: var(--s9) 0;
}
.alt {
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.kicker {
  color: var(--ink-2);
  font-size: var(--t-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin-top: var(--s3);
  font-size: var(--t4);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 {
  font-size: var(--t1);
  line-height: 1.3;
}
.section-lead {
  max-width: 62ch;
  margin-top: var(--s4);
  color: var(--ink-2);
  font-size: var(--t1);
}
.head {
  margin-bottom: var(--s7);
}

/* ---- the idea: say, then structure ---- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr);
  gap: var(--s5);
  align-items: stretch;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow-1);
}
.say {
  align-self: start;
  padding: var(--s5);
}
.say .label,
.doc .label {
  color: var(--ink-3);
  font-size: var(--t-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.say blockquote {
  margin: var(--s4) 0 0;
  font-size: var(--t0);
  line-height: 1.7;
}
.say blockquote span {
  background: linear-gradient(transparent 62%, var(--panel-2) 62%);
}
.arrow {
  align-self: center;
  color: var(--ink-3);
}
.arrow svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc {
  grid-template-columns: minmax(0, 1fr);
  padding: var(--s5);
  display: grid;
  gap: var(--s4);
  align-content: start;
}
.doc h3 {
  font-size: var(--t1);
}
.mini-list {
  display: grid;
  gap: var(--s1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini-list li::before {
  content: "• ";
}
.mini-list .chosen {
  font-weight: 700;
}
.mini-list .chosen::after {
  content: " ✓";
}
.mini-list .struck {
  color: var(--ink-3);
  text-decoration: line-through;
}
.mini-diagram {
  width: 100%;
  max-width: 340px;
  color: var(--ink);
}
.mini-diagram rect,
.mini-diagram path,
.mini-diagram ellipse {
  fill: var(--panel);
  stroke: var(--ink-2);
  stroke-width: 1.2;
}
.mini-diagram path.line {
  fill: none;
}
.mini-diagram text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-anchor: middle;
}
@media (max-width: 860px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ---- blocks ---- */
.blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.block {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.preview {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: var(--s3);
  border-radius: var(--r1);
  background: var(--panel);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}
.block h3 {
  font-size: var(--t0);
}
.block p {
  margin-top: var(--s1);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.p-h {
  font-weight: 700;
  font-size: 15px;
}
.p-h small {
  display: block;
  margin-top: var(--s1);
  font-size: 13px;
}
.p-table {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  font-size: 11px;
}
.p-table b,
.p-table span {
  padding: 3px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.p-table b {
  background: var(--panel-2);
}
.p-callout {
  padding: var(--s2) var(--s3);
  border-left: 3px solid var(--ink);
  background: var(--bg);
  border-radius: 0 4px 4px 0;
}
.p-callout b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-math {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  text-align: center;
}
.p-code {
  color: var(--ink);
  font-size: 12px;
  white-space: pre-wrap;
}
.p-chart svg {
  width: 100%;
  height: 72px;
}
.p-chart rect {
  fill: var(--ink-2);
}
@media (max-width: 960px) {
  .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .blocks {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- how it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: var(--s5);
  border-top: 2px solid var(--ink);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s2);
  color: var(--ink-3);
  font-size: var(--t-1);
  font-weight: 700;
}
.steps h3 {
  font-size: var(--t0);
}
.steps p {
  margin-top: var(--s2);
  color: var(--ink-2);
  font-size: 14px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- feature rows ---- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: center;
}
.feature + .feature {
  margin-top: var(--s9);
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .text {
  order: 2;
}
.feature .text p {
  margin-top: var(--s4);
  color: var(--ink-2);
}
.feature .text ul {
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s2);
  color: var(--ink-2);
  font-size: 14px;
}
.feature .text li::before {
  content: "→ ";
  color: var(--ink-3);
}
.shot {
  border: 1px solid var(--line-strong);
  border-radius: var(--r2);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  background: var(--bg);
}
.shot img {
  width: 100%;
  height: auto;
}
.shot.pdf {
  max-width: 380px;
  margin-inline: auto;
}
.history-mock {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--panel);
}
.history-mock .entry {
  padding: var(--s3) var(--s4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  font-size: 13px;
}
.history-mock .meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.history-mock .acts {
  display: flex;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s2);
}
.history-mock .acts u {
  text-decoration-color: var(--ink-3);
}
.history-mock .acts .pill {
  padding: 2px var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  font-size: 12px;
}
.history-mock .agent {
  border-left: 3px solid var(--ink-2);
}
@media (max-width: 900px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
  .feature.flip .text {
    order: 0;
  }
}

/* ---- formats ---- */
.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.format {
  padding: var(--s5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.format p {
  margin-top: var(--s2);
  color: var(--ink-2);
  font-size: 14px;
}
.format ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}
.format li {
  padding: 2px var(--s2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 12px;
}
.format.own {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
@media (max-width: 960px) {
  .formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .formats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- download ---- */
.download {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s5);
  align-items: start;
}
.dl-main {
  padding: var(--s6);
}
.dl-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s3);
}
.dl-title .ver {
  padding: 2px var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: var(--t-1);
}
.dl-meta {
  margin-top: var(--s2);
  color: var(--ink-3);
  font-size: var(--t-1);
}
.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}
.dl-buttons .size {
  font-weight: 400;
  opacity: 0.75;
}
.dl-more {
  margin-top: var(--s4);
  font-size: 14px;
  color: var(--ink-2);
}
.reqs {
  margin: var(--s5) 0 0;
  padding: var(--s4) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: var(--s2);
  font-size: 14px;
  color: var(--ink-2);
}
.reqs li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}
.dl-side {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: var(--s3);
}
details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--ink-3);
  font-size: var(--t1);
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
.details-body {
  padding: 0 var(--s5) var(--s5);
  color: var(--ink-2);
  font-size: 14px;
}
.details-body p + p,
.details-body ol,
.details-body .code {
  margin-top: var(--s3);
}
.details-body ol {
  margin-bottom: 0;
  padding-left: var(--s5);
}
.code {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  max-width: 100%;
  padding: var(--s3) var(--s3) var(--s3) var(--s4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  color: var(--ink);
}
/* The command and its Copy button sit side by side: the button never lies over the text. Long commands wrap at word breaks, and
   a line that cannot (a long path) scrolls inside the box. */
.code pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code code {
  font: inherit;
}
.code button {
  flex: none;
  padding: 2px var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.code button:hover {
  color: var(--ink);
  border-color: var(--ink);
}
@media (max-width: 900px) {
  .download {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- privacy ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.fact {
  padding: var(--s5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.fact p {
  margin-top: var(--s2);
  color: var(--ink-2);
  font-size: 14px;
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- agents ---- */
.two {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: center;
}
.two p {
  margin-top: var(--s4);
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s6);
  }
}

/* ---- faq and footer ---- */
.faq {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: var(--s3);
  max-width: 820px;
}
.faq .details-body {
  font-size: 15px;
}
.site-footer {
  padding: var(--s8) 0 var(--s9);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5) var(--s8);
  justify-content: space-between;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot small {
  display: block;
  margin-top: var(--s3);
  color: var(--ink-3);
  font-size: var(--t-1);
}

/* ---- motion: a short rise when a block scrolls into view ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- the system tabs of the download card ---- */
.tabs {
  display: inline-flex;
  gap: var(--s1);
  padding: var(--s1);
  margin-bottom: var(--s5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s5);
  border: 0;
  border-radius: var(--r1);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tabs button:hover {
  color: var(--ink);
}
.tabs button[aria-selected="true"] {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}
.tabs .here {
  padding: 1px var(--s2);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}
/* Without scripts every system is shown, one under the other: the tab buttons only make sense with them. */
html:not(.js) .tabs {
  display: none;
}
.panel[hidden],
.dl-side details[hidden] {
  display: none;
}
.panel + .panel {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}
.js .panel + .panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.dl-note {
  margin-top: var(--s4);
  color: var(--ink-2);
  font-size: 14px;
}
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.code-label {
  margin: var(--s4) 0 var(--s2);
  color: var(--ink-3);
  font-size: var(--t-1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.code-label:first-child {
  margin-top: 0;
}
@media (max-width: 520px) {
  .tabs {
    display: flex;
  }
  .tabs button {
    flex: 1;
    justify-content: center;
    padding: 0 var(--s2);
  }
  .tabs .here {
    display: none;
  }
}
