/* Letterdock website. Hand-written, no build step. Tokens match the app (docs/WEBSITE-SPEC.md). */
:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --border: #e5e5e5;
  --ctl-border: #8a8a8a;
  --text: #1a1a1a;
  --text-2: #5c5c5c;
  --accent: #0f6cbd;
  --accent-hover: #115ea3;
  --accent-pressed: #0c3b5e;
  --accent-on: #ffffff;
  --accent-subtle: #ebf3fc;
  --warn-bg: #fdf3d7;
  --warn-text: #8a5a00;
  --ok-bg: #e3f3e3;
  --ok-text: #0b6a0b;
  --focus: #0f6cbd;
  --glow: rgba(59, 156, 242, 0.22);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 2px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(243, 243, 243, 0.85);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202020;
    --surface: #2b2b2b;
    --surface-alt: #262626;
    --border: #3a3a3a;
    --ctl-border: #9a9a9a;
    --text: #ffffff;
    --text-2: #cfcfcf;
    --accent: #479ef5;
    --accent-hover: #62abf5;
    --accent-pressed: #2886de;
    --accent-on: #0b0b0b;
    --accent-subtle: #1b2a3a;
    --warn-bg: #3d3217;
    --warn-text: #f2c661;
    --ok-bg: #1f3522;
    --ok-text: #6cc16c;
    --focus: #ffffff;
    --glow: rgba(59, 156, 242, 0.18);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(32, 32, 32, 0.85);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #202020;
  --surface: #2b2b2b;
  --surface-alt: #262626;
  --border: #3a3a3a;
  --ctl-border: #9a9a9a;
  --text: #ffffff;
  --text-2: #cfcfcf;
  --accent: #479ef5;
  --accent-hover: #62abf5;
  --accent-pressed: #2886de;
  --accent-on: #0b0b0b;
  --accent-subtle: #1b2a3a;
  --warn-bg: #3d3217;
  --warn-text: #f2c661;
  --ok-bg: #1f3522;
  --ok-text: #6cc16c;
  --focus: #ffffff;
  --glow: rgba(59, 156, 242, 0.18);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(32, 32, 32, 0.85);
}
:root[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/26px var(--font);
}
@media (min-width: 720px) {
  body {
    font-size: 17px;
    line-height: 28px;
  }
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
a:active {
  color: var(--accent-pressed);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
code,
kbd {
  font: 400 14px/22px var(--font-mono);
}
@media (min-width: 720px) {
  code,
  kbd {
    font-size: 15px;
  }
}
kbd,
code.file {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 6px;
}
.small {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 600px) {
  .wrap {
    padding: 0 24px;
  }
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-on);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 8px;
  color: var(--accent-on);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  background: var(--bg);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font: 600 18px/26px var(--font-display);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 28px;
  height: 28px;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a.text {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.nav a.text:hover {
  background: var(--surface);
}
@media (min-width: 1000px) {
  .nav a.text {
    display: inline-flex;
  }
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg.fill {
  fill: currentColor;
  stroke: none;
}
#theme .moon {
  display: none;
}
:root[data-theme="dark"] #theme .moon {
  display: block;
}
:root[data-theme="dark"] #theme .sun {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme .moon {
    display: block;
  }
  :root:not([data-theme="light"]) #theme .sun {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: 600 17px/24px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 100ms, color 100ms;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: var(--accent-on);
}
.btn.primary:active {
  background: var(--accent-pressed);
  color: var(--accent-on);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--ctl-border);
}
.btn.secondary:hover {
  background: var(--surface);
  color: var(--text);
}
.btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .btns {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }
  .btn.primary {
    min-width: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ---------- sections ---------- */
section {
  padding: 56px 0;
  scroll-margin-top: 72px;
}
@media (min-width: 720px) {
  section {
    padding: 96px 0;
  }
}
.band-alt {
  background: var(--surface-alt);
}
h2 {
  font: 650 28px/34px var(--font-display);
  margin-bottom: 16px;
}
h3 {
  font: 600 18px/26px var(--font);
}
.intro {
  color: var(--text-2);
  max-width: 68ch;
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  h2 {
    font-size: 36px;
    line-height: 44px;
    text-align: center;
  }
  .intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 48px;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 56px;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, var(--glow), transparent) no-repeat, var(--bg);
}
@media (min-width: 720px) {
  .hero {
    padding: 64px 0 96px;
  }
}
.hero .logo {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 16px;
}
.hero h1 {
  font: 700 34px/38px var(--font-display);
  letter-spacing: -0.02em;
  max-width: 16em;
  text-wrap: balance;
  margin: 0 auto 16px;
}
.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 auto 28px;
}
.hero .small {
  margin-top: 16px;
}
.hero .small + .small {
  margin-top: 4px;
}
.hero-shot {
  margin: 40px auto 0;
  max-width: 1120px;
}
.hero-shot picture,
.hero-shot img {
  display: block;
}
@media (min-width: 720px) {
  .hero .logo {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 56px;
    line-height: 60px;
    margin-bottom: 20px;
  }
  .lead {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 32px;
  }
  .hero-shot {
    margin-top: 56px;
  }
}

/* ---------- screenshots ---------- */
.shot {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.hero-shot .shot {
  box-shadow: var(--shadow-3);
}
@media (max-width: 600px) {
  .hero-shot .shot {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.card p {
  color: var(--text-2);
  margin-top: 4px;
}
.why {
  display: grid;
  gap: 24px;
}
.why .card {
  padding: 24px;
}
.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.chip-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-line {
  text-align: center;
  margin-top: 32px;
}
@media (min-width: 1000px) {
  .why {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 999px) {
  .why .card {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
  }
  .why .chip-icon {
    grid-row: span 2;
    margin: 0;
  }
}

/* features: compact tiles, 12 of them open in place (no JS needed) */
.tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.tile summary,
.tile.plain {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  list-style: none;
}
.tile.plain {
  grid-template-columns: 40px 1fr;
}
.tile summary {
  cursor: pointer;
  border-radius: var(--r-lg);
}
.tile summary::-webkit-details-marker {
  display: none;
}
.tile .chip-icon {
  margin: 0;
}
.tile .t {
  min-width: 0;
}
.tile .t strong {
  display: block;
  font: 600 16px/24px var(--font);
  color: var(--text);
}
.tile .t span {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.tile .plus {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: center;
  transition: transform 150ms ease-out;
}
.tile .plus::before,
.tile .plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--text-2);
}
.tile .plus::after {
  transform: rotate(90deg);
}
.tile[open] .plus {
  transform: rotate(45deg);
}
.tile summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.tile .more {
  padding: 0 16px 16px;
  animation: tile-in 180ms ease-out;
}
.tile .more p {
  color: var(--text-2);
}
.tile .more .zoom {
  margin-top: 12px;
}
.tile .more .shot {
  border-radius: var(--r-md);
}
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
/* Hover only decorates: a small lift and an accent outline. Nothing is hidden behind it. */
details.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  box-shadow: 0 0 0 3px var(--glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-out;
}
details.tile[open]::after {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  details.tile {
    transition: transform 150ms ease-out;
  }
  details.tile:hover {
    transform: translateY(-2px);
  }
  details.tile:hover::after {
    opacity: 1;
  }
  details.tile:active {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  details.tile,
  details.tile::after,
  .tile .plus {
    transition: none;
  }
  .tile .more {
    animation: none;
  }
}
@media (forced-colors: active) {
  .tile,
  details.tile::after {
    border-color: CanvasText;
  }
  .tile .plus::before,
  .tile .plus::after {
    background: currentColor;
  }
}

/* From 600px an opened tile floats its panel over the tiles below: the grid never changes height. */
@media (min-width: 600px) {
  details.tile[open] {
    z-index: 20;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  details.tile[open]:hover {
    transform: none;
  }
  /* tiles in one row share a height; the summary fills it (panel is absolute here, so it never grows the summary) */
  details.tile summary {
    box-sizing: border-box;
    height: 100%;
  }
  .tile[open] .more {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    z-index: 1;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-3);
    transform-origin: top;
  }
  .tile[open] summary:focus-visible {
    outline-offset: -3px;
  }
}
@media (min-width: 600px) and (forced-colors: active) {
  .tile[open] .more {
    border: 1px solid CanvasText;
    border-top: 0;
  }
}

/* "New in x.y.z" line under the hero */
.whatsnew {
  margin: 16px auto 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}

/* changelog page */
.narrow {
  max-width: 880px;
}
section:has(> .narrow) {
  padding: 40px 0 56px;
}
@media (min-width: 720px) {
  section:has(> .narrow) {
    padding: 56px 0 96px;
  }
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.narrow h1 {
  font: 700 32px/40px var(--font-display);
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
}
.narrow .intro {
  margin: 0 0 8px;
  text-align: left;
}
@media (min-width: 720px) {
  .narrow h1 {
    font-size: 40px;
    line-height: 48px;
  }
}
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.release {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}
.release:first-of-type {
  margin-top: 24px;
}
.rel-head h2 {
  font: 650 24px/32px var(--font-display);
  text-align: left;
  margin: 0 0 4px;
}
.rel-head p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.rel-group {
  padding: 0;
}
.rel-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/22px var(--font);
  margin: 20px 0 8px;
}
.rel-group:first-child h3 {
  margin-top: 0;
}
.rel-group h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.rel-group h3.faster::before {
  background: var(--ok-text);
}
.rel-group h3.changed::before {
  background: var(--text-2);
}
.rel-group h3.fixed::before {
  background: var(--warn-text);
}
.rel-group ul {
  list-style: disc;
  padding-left: 20px;
  max-width: 68ch;
}
.rel-group li {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.rel-note {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
@media (min-width: 1000px) {
  .release {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }
  .rel-head {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}
@media (forced-colors: active) {
  .rel-group h3::before {
    background: CanvasText;
  }
}

/* providers */
.providers {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .providers {
    grid-template-columns: repeat(2, 1fr);
  }
  .providers .card:last-child {
    grid-column: 1 / -1;
  }
}
.providers .card {
  padding: 24px;
}
.providers .head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-sm);
  font: 600 14px/20px var(--font);
  background: var(--ok-bg);
  color: var(--ok-text);
}
.chip.soon {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.providers .card p + p {
  margin-top: 8px;
}
.apw {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.apw summary {
  min-height: 48px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.apw ol {
  list-style: decimal;
  padding: 0 16px 16px 40px;
  color: var(--text-2);
}
.apw li + li {
  margin-top: 6px;
}

/* ---------- install ---------- */
.steps {
  max-width: 68ch;
  margin: 0 auto 32px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 24px 48px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  font: 600 16px/32px var(--font);
  text-align: center;
}
@media (min-width: 720px) {
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 2px;
    width: 2px;
    background: var(--border);
  }
}
.steps strong {
  font-weight: 600;
}
.steps .btn {
  margin-top: 12px;
}
.note {
  display: flex;
  gap: 12px;
  max-width: 68ch;
  margin: 0 auto 24px;
  padding: 16px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--accent);
  background: var(--accent-subtle);
}
.note.warn {
  border-left-color: var(--warn-text);
  background: var(--warn-bg);
  color: var(--warn-text);
}
.note.warn a {
  color: inherit;
}
.note > svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note.info > svg {
  color: var(--accent);
}
.note h3 {
  margin-bottom: 4px;
}
.note p + p {
  margin-top: 8px;
}
.diagram {
  display: block;
  margin: 12px 0 0;
  width: 100%;
  max-width: 420px;
  height: auto;
}
.dg-box {
  fill: var(--surface);
  stroke: var(--border);
}
.dg-btn {
  fill: var(--accent);
}
.dg-text {
  fill: var(--text);
  font: 600 15px var(--font);
}
.dg-text.on {
  fill: var(--accent-on);
}
.dg-link {
  fill: var(--accent);
  font: 400 15px var(--font);
  text-decoration: underline;
}
.dg-arrow {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verify {
  max-width: 68ch;
  margin: 0 auto;
}

/* ---------- privacy ---------- */
.two {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}
.two .card {
  padding: 24px;
}
.two h3 {
  margin-bottom: 12px;
}
.two li {
  position: relative;
  padding-left: 28px;
}
.two li + li {
  margin-top: 12px;
}
.two li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.privacy-foot {
  max-width: 68ch;
  margin: 32px auto 0;
  text-align: center;
}
.privacy-foot p + p {
  margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 4px;
  font: 600 17px/26px var(--font);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-top: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 100ms;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
}
.faq .ans {
  padding: 0 4px 20px;
  color: var(--text-2);
  max-width: 68ch;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.fcols {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .fcols {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
.site-footer h2 {
  font: 600 16px/24px var(--font);
  text-align: left;
  margin-bottom: 8px;
}
.site-footer li a {
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
}
.site-footer .brand {
  margin-bottom: 8px;
}
.site-footer .brand img {
  width: 24px;
  height: 24px;
}
.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- forced colors ---------- */
@media (forced-colors: active) {
  .btn {
    border: 1px solid ButtonText;
  }
  .shot {
    border-color: CanvasText;
  }
  .chip,
  .note,
  .card {
    border: 1px solid CanvasText;
  }
}

/* ---------- screenshot viewer ---------- */
.zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  border-radius: var(--r-lg);
}
.zoom:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.zoom::after {
  content: "Click to enlarge" / "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.zoom:hover::after,
.zoom:focus-visible::after {
  opacity: 1;
}
@media (hover: none) {
  .zoom::after {
    display: none;
  }
}
html.viewing {
  overflow: hidden;
}
dialog.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  overflow: hidden;
}
dialog.viewer[open] {
  display: flex;
  flex-direction: column;
}
dialog.viewer::backdrop {
  background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  dialog.viewer[open] {
    animation: v-fade 0.15s ease-out;
  }
}
@keyframes v-fade {
  from {
    opacity: 0;
  }
}
.v-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0 16px;
  min-height: 52px;
}
.v-count {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #e6e6e6;
}
.v-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.v-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.v-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.v-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-fig {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.v-fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 52px - 12px - 12px - 28px - 72px);
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  background: var(--surface);
}
.v-fig figcaption {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  max-width: calc(100% - 120px);
  min-height: 28px;
}
.v-prev,
.v-next {
  position: absolute;
  bottom: 12px;
}
.v-prev {
  left: 12px;
}
.v-next {
  right: 12px;
}
@media (min-width: 800px) {
  .v-prev,
  .v-next {
    bottom: auto;
    top: 50%;
    margin-top: -22px;
  }
  .v-prev {
    left: 20px;
  }
  .v-next {
    right: 20px;
  }
  .v-fig {
    padding: 0 84px 16px;
  }
  .v-fig figcaption {
    max-width: 100%;
  }
  .v-fig img {
    max-height: calc(100dvh - 52px - 16px - 12px - 28px);
  }
}
@media (forced-colors: active) {
  dialog.viewer {
    background: Canvas;
    color: CanvasText;
  }
  .v-btn {
    border: 1px solid ButtonText;
  }
}
