/* Gander website.
   Palette from the app icon: indigo night, goose white, beak orange.
   Type: Bricolage Grotesque for display, the Mac's own system font for text. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f3f4fb;
  --bg-raised: #ffffff;
  --bg-band: #e8eaf8;
  --ink: #151839;
  --ink-2: #454a73;
  --ink-3: #62678f;
  --line: rgba(21, 24, 57, 0.11);
  --line-2: rgba(21, 24, 57, 0.2);
  --link: #3441d6;
  --beak: #f07a12;
  --beak-hi: #ffb13d;
  --beak-ink: #b54c00;
  --check: #1f9d55;
  --select: #0a63d8;
  --glow-a: rgba(84, 104, 255, 0.2);
  --glow-b: rgba(165, 92, 245, 0.12);
  --glow-c: rgba(255, 138, 31, 0.14);
  --win-shadow: 0 0 0 0.5px rgba(20, 24, 60, 0.22), 0 18px 40px rgba(24, 28, 80, 0.14), 0 40px 90px rgba(24, 28, 80, 0.12);
  --key-top: #ffffff;
  --key-bottom: #e6e8f2;
  --key-edge: #c3c8dc;
  --key-ink: var(--beak-ink);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --t-small: 0.9375rem;
  --t-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --t-lede: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --t-h3: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --t-h2: clamp(2.125rem, 1.45rem + 2.9vw, 3.75rem);
  --t-h1: clamp(2.875rem, 1.1rem + 7.4vw, 7.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-win: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d26;
    --bg-raised: #12163a;
    --bg-band: #0e1234;
    --ink: #eef0ff;
    --ink-2: #b3b9e0;
    --ink-3: #8f96c4;
    --line: rgba(190, 198, 255, 0.12);
    --line-2: rgba(190, 198, 255, 0.22);
    --link: #a3adff;
    --beak: #ff8a1f;
    --beak-hi: #ffb547;
    --beak-ink: #ff9a3c;
    --check: #34c26f;
    --glow-a: rgba(58, 88, 255, 0.34);
    --glow-b: rgba(139, 92, 246, 0.2);
    --glow-c: rgba(255, 138, 31, 0.13);
    --win-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.48), 0 60px 120px rgba(0, 0, 0, 0.32);
    --key-top: #2f3242;
    --key-bottom: #1b1d27;
    --key-edge: #07080d;
    --key-ink: #ffa640;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: var(--t-h2); font-variation-settings: "opsz" 72; }
h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.018em; line-height: 1.12; font-variation-settings: "opsz" 36; }

p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.08em 0.32em;
  border-radius: 5px;
  background: var(--line);
  white-space: nowrap;
}

strong { font-weight: 650; }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

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

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; }

.nav { display: flex; gap: 4px; }
.nav a, .lang-switch {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .lang-switch:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { box-shadow: inset 0 0 0 1px var(--line-2); }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-store { background: var(--ink); color: var(--bg); }
.btn-store:hover { text-decoration: none; opacity: 0.9; }
.btn-store--header { min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: var(--t-small); }
.btn-soon { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }

.text-link { font-weight: 600; }

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

.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 5vw, 6.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  background:
    radial-gradient(52% 46% at 80% 42%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 8% 88%, var(--glow-b), transparent 70%),
    radial-gradient(26% 24% at 26% 76%, var(--glow-c), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 55% 55%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 55%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-title {
  font-size: var(--t-h1);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  max-width: 11.5em;
}

/* The one loud thing: the Space key itself. */
.nobr { white-space: nowrap; }
.hero-title-rest { display: inline-block; }

.keycap {
  display: inline-block;
  font: inherit;
  letter-spacing: -0.025em;
  padding: 0.02em 0.3em 0.1em;
  margin: 0 0.02em;
  border-radius: 0.2em;
  color: var(--key-ink);
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  box-shadow:
    inset 0 0.02em 0 rgba(255, 255, 255, 0.35),
    0 0.07em 0 var(--key-edge),
    0 0.1em 0.03em rgba(0, 0, 0, 0.12),
    0 0.3em 0.6em -0.1em rgba(240, 122, 18, 0.35);
  transform: translateY(-0.03em);
}

.lede {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 2.25rem;
}

.tour-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.tour-link .play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.tour-link .play svg { width: 13px; margin-left: 2px; }
.tour-link:hover .play { background: var(--line); }

.hero-meta { margin-top: 1.25rem; color: var(--ink-3); font-size: var(--t-small); }

/* ---------- Demo: Finder + Quick Look ---------- */

.demo {
  --row: 28px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.finder {
  position: relative;
  display: flex;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: var(--radius-win);
  box-shadow: var(--win-shadow);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
}

.demo .finder {
  grid-column: 1 / span 7;
  margin-right: -24px;
  grid-row: 1;
  margin-top: 64px;
  z-index: 1;
  align-self: start;
}

.finder-sidebar {
  flex: none;
  width: 150px;
  padding: 12px 10px;
  background: #f3f3f5;
  border-right: 0.5px solid rgba(0, 0, 0, 0.1);
}
.finder-sidebar p { margin: 0; }
.lights { display: flex; gap: 8px; padding: 5px 6px 20px; }
.lights i { display: block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.side-head { font-size: 11px; font-weight: 600; color: rgba(0, 0, 0, 0.45); padding: 10px 8px 4px; }
.side-item { padding: 6px 8px; border-radius: 7px; }
.side-item.is-on { background: rgba(0, 0, 0, 0.075); }

.finder-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.finder-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
}
.nav-caps {
  display: inline-flex;
  gap: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  color: #3a3a3c;
}
.nav-caps svg { width: 8px; height: 13px; }
.finder-title { font-weight: 700; font-size: 14.5px; }

.finder-cols,
.finder-list [role="option"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 70px;
  align-items: center;
  gap: 8px;
}

.finder-cols {
  height: 26px;
  padding: 0 20px 0 22px;
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.09);
}

.finder-list {
  list-style: none;
  margin: 0;
  padding: 5px 10px 10px;
  outline: none;
}
.finder-list:focus-visible { box-shadow: inset 0 0 0 3px var(--select); border-radius: 0 0 var(--radius-win) 0; }

.finder-list [role="option"] {
  height: var(--row);
  padding: 0 10px 0 12px;
  border-radius: 6px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.finder-list [role="option"]:nth-child(even) { background: rgba(0, 0, 0, 0.028); }
.finder-list [role="option"]:hover { background: rgba(10, 99, 216, 0.08); }
.finder-list [role="option"][aria-selected="true"] { background: var(--select); color: #fff; }

.demo .c-kind { display: none; }
.c-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.c-name > span { overflow: hidden; text-overflow: ellipsis; }
.c-name .doc-icon { flex: none; width: 15px; height: 19px; }
.c-date, .c-size, .c-kind { color: rgba(0, 0, 0, 0.5); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.c-size { text-align: right; padding-right: 10px; }
[aria-selected="true"] .c-date, [aria-selected="true"] .c-size, [aria-selected="true"] .c-kind { color: rgba(255, 255, 255, 0.86); }
.is-hidden-file .c-name > span { opacity: 0.55; }
[aria-selected="true"].is-hidden-file .c-name > span { opacity: 0.85; }

.spacebar-wrap {
  grid-column: 1 / span 5;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  z-index: 1;
}

.spacebar {
  appearance: none;
  border: 0;
  width: min(360px, 100%);
  height: 64px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 12px 18px;
  border-radius: 14px;
  font: 500 15px/1 var(--text);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, #2e3140 0%, #1b1d26 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(10, 12, 40, 0.35),
    0 0 0 2px transparent;
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 160ms ease;
}
.spacebar:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.45), 0 14px 28px rgba(10, 12, 40, 0.35), 0 0 0 2px var(--beak), 0 0 32px 2px rgba(255, 138, 31, 0.45); }
.spacebar:active, .spacebar.is-pressed { transform: translateY(3px); }
.spacebar.is-pressed { animation: key-glow 520ms ease; }

.demo-hint { color: var(--ink-3); font-size: var(--t-small); text-align: center; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-pointer { display: none; }
  .hint-touch { display: inline; }
}

/* Quick Look window */

.ql {
  margin: 0;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: var(--radius-win);
  box-shadow: var(--win-shadow);
  overflow: hidden;
  container-type: inline-size;
}

.ql-bar {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1cqi, 7px);
  height: clamp(30px, 5.6cqi, 44px);
  padding: 0 clamp(7px, 1.4cqi, 11px);
}

.ql-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(12px, 2.05cqi, 16px);
  height: clamp(12px, 2.05cqi, 16px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #7d7d82;
  color: #fff;
}
.ql-btn svg { width: 50%; height: 50%; }
button.ql-btn { cursor: pointer; }
button.ql-btn:hover { background: #5b5b60; }

.ql-name {
  margin-left: 0.4em;
  font-weight: 700;
  font-size: clamp(11px, 1.73cqi, 13.5px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ql-share { width: clamp(11px, 1.8cqi, 14px); height: auto; margin-left: auto; margin-right: clamp(6px, 1.5cqi, 12px); color: #6e6e73; flex: none; }

.ql-open {
  flex: none;
  padding: 0 clamp(8px, 1.6cqi, 13px);
  height: clamp(20px, 3.3cqi, 26px);
  line-height: clamp(20px, 3.3cqi, 26px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.075);
  font-size: clamp(10px, 1.66cqi, 13px);
  white-space: nowrap;
}
.ql-open[hidden] { display: none; }

.ql picture, .ql img { width: 100%; }

@media (prefers-color-scheme: dark) {
  .ql--adaptive { background: #2b2b2e; color: #f5f5f7; }
  .ql--adaptive .ql-btn { background: #8e8e93; }
  .ql--adaptive .ql-share { color: #aeaeb2; }
  .ql--adaptive .ql-open { background: rgba(255, 255, 255, 0.12); }
}

.ql--demo {
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
  align-self: start;
  z-index: 2;
  transform-origin: 18% 62%;
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.1), visibility 0s linear 0s;
}
.ql--demo .ql-body { position: relative; aspect-ratio: 780 / 600; background: #fff; }
.ql--demo .ql-body img { width: 100%; height: auto; }
.ql--demo.is-closed {
  opacity: 0;
  transform: scale(0.35) translate(-30%, 8%);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease-in, visibility 0s linear 220ms;
}

@keyframes key-press {
  0%, 100% { transform: translateY(-0.03em); }
  30%, 55% { transform: translateY(0.05em); box-shadow: inset 0 0.02em 0 rgba(255, 255, 255, 0.35), 0 0.02em 0 var(--key-edge), 0 0 0.5em 0.05em rgba(255, 138, 31, 0.55); }
}
@keyframes key-glow {
  0% { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 2px var(--beak), 0 0 40px 6px rgba(255, 138, 31, 0.55); }
  100% { transform: none; }
}
@keyframes ql-open {
  from { opacity: 0; transform: scale(0.35) translate(-30%, 8%); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .keycap { animation: key-press 620ms ease 380ms both; }
  .spacebar-wrap .spacebar:not(.is-pressed) { animation: key-glow 620ms ease 440ms both; }
  .ql--demo.intro { animation: ql-open 520ms cubic-bezier(0.2, 0.9, 0.3, 1.12) 560ms both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ql--demo, .ql--demo.is-closed, .spacebar { transition: none; }
}

/* Demo on tablets and phones: stacked */
@media (max-width: 1023px) {
  .demo { display: flex; flex-direction: column; gap: 0; }
  .demo .finder { margin-top: 0; margin-right: 0; align-self: stretch; }
  .finder-sidebar { display: none; }
  .spacebar-wrap { margin-top: 26px; }
  .ql--demo { margin-top: 26px; transform-origin: 50% 0%; align-self: stretch; }
  .ql--demo.is-closed { transform: scale(0.92) translateY(-12px); }
  @keyframes ql-open-stacked { from { opacity: 0; transform: scale(0.92) translateY(-12px); } to { opacity: 1; transform: none; } }
  .ql--demo.intro { animation-name: ql-open-stacked; }
  .finder-list { max-height: calc(var(--row) * 7.5 + 12px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 640px) {
  .demo { --row: 34px; }
  .finder-cols, .finder-list [role="option"] { grid-template-columns: minmax(0, 1fr) 72px; }
  .c-date, .c-kind { display: none; }
  .finder-cols { padding: 0 16px 0 18px; }
  .finder-list { padding-inline: 6px; }
  .c-name { font-size: 14px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .finder-sidebar { display: none; }
}

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

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

.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head p { margin-top: 1.25rem; max-width: 60ch; font-size: var(--t-lede); color: var(--ink-2); line-height: 1.5; }

/* Tour */

.tour { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.video-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #06070d;
  box-shadow: var(--win-shadow);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.transcript { margin-top: 1.5rem; max-width: 60rem; }
.transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
  width: fit-content;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before, .faq summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 160ms ease;
}
.transcript[open] summary::before, .faq details[open] summary::before { transform: rotate(90deg); }
.transcript ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.transcript li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; color: var(--ink-2); }
.transcript time { font-family: var(--mono); font-size: 0.9em; color: var(--ink-3); padding-top: 0.1em; }

/* Viewers */

.viewer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 2.5rem 0;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  border-top: 1px solid var(--line);
}

.viewer-copy { grid-column: 1 / span 5; grid-row: 1; max-width: 30rem; }
.viewer-copy p { margin-top: 1.1rem; color: var(--ink-2); }
.viewer > .stack, .viewer > .finder { grid-column: 6 / -1; grid-row: 1; }
.viewer.is-flipped .viewer-copy { grid-column: 9 / -1; }
.viewer.is-flipped > .stack, .viewer.is-flipped > .finder { grid-column: 1 / span 7; }

.points { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; color: var(--ink-2); }
.points li { position: relative; padding-left: 1.3rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--beak);
}

/* Overlapping windows. margin-top in % of the stack's width keeps the overlap steady at any size. */
.stack { display: grid; }
.stack > .ql { grid-area: 1 / 1; align-self: start; }
.stack > .ql:nth-child(1) { width: 84%; justify-self: start; }
.stack > .ql:nth-child(2) { width: 78%; justify-self: end; margin-top: 30%; }
.stack--markdown > .ql:nth-child(1) { width: 80%; }
.stack--markdown > .ql:nth-child(2) { width: 82%; margin-top: 34%; }
.stack--sqlite > .ql:nth-child(2) { width: 84%; margin-top: 30%; }
.stack--env > .ql:nth-child(2) { width: 84%; margin-top: 28%; }
.stack--json > .ql:nth-child(1) { width: 70%; }
.stack--json > .ql:nth-child(2) { width: 88%; margin-top: 34%; }
.stack--mermaid > .ql:nth-child(1) { width: 86%; justify-self: end; }
.stack--mermaid > .ql:nth-child(2) { width: 82%; justify-self: start; margin-top: 25%; }
.stack--mermaid > .ql:nth-child(3) { width: 80%; justify-self: end; margin-top: 50%; }
.stack--more > .ql:nth-child(1) { width: 82%; justify-self: start; }
.stack--more > .ql:nth-child(2) { width: 56%; justify-self: end; margin-top: 16%; }
.stack--more > .ql:nth-child(3) { width: 74%; justify-self: center; margin-top: 60%; }

/* Thumbnails: Finder icon view */
.finder--icons { flex-direction: column; }
.finder--icons .finder-toolbar { border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); }
.finder--icons .lights { padding: 0; margin-right: 6px; }
.icon-grid {
  list-style: none;
  margin: 0;
  padding: clamp(14px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 26px) clamp(10px, 2vw, 20px);
}
.icon-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.icon-grid img {
  width: 100%;
  max-width: 132px;
  border-radius: 3px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.12);
}
.icon-grid span {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-grid span.is-on { background: var(--select); color: #fff; }

@media (max-width: 900px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer-copy, .viewer.is-flipped .viewer-copy,
  .viewer > .stack, .viewer > .finder,
  .viewer.is-flipped > .stack, .viewer.is-flipped > .finder { grid-column: 1; grid-row: auto; }
  .viewer-copy { max-width: 40rem; }
}
@media (max-width: 520px) {
  .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icon-grid li:nth-child(n + 7) { display: none; }
}

/* Privacy band */

.privacy-band { background: var(--bg-band); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.privacy-grid p { margin-top: 1.25rem; max-width: 56ch; color: var(--ink-2); font-size: var(--t-lede); line-height: 1.5; }
.privacy-grid p:last-child { font-size: var(--t-body); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks svg { width: 28px; height: 28px; flex: none; color: var(--check); }
@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Setup steps: a real sequence, so real numbers */

.setup h2 { max-width: 16ch; }
.steps {
  list-style: none;
  margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
  font-variation-settings: "opsz" 96;
}
.steps p { color: var(--ink-2); max-width: 32ch; }
.setup-note { margin-top: 2.5rem; max-width: 62ch; color: var(--ink-2); padding-left: 1rem; border-left: 3px solid var(--beak); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.steps--compact { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.steps--compact li { display: grid; grid-template-columns: 2.5rem 1fr; border-top: 0; padding-top: 0; }
.steps--compact li::before { font-size: 1.5rem; margin: 0; }
.steps--compact p { max-width: 60ch; color: var(--ink-2); }

/* File types: a Finder list view */

.types { padding-top: calc(var(--section) * 0.6); }
.table-frame {
  background: var(--bg-raised);
  border-radius: var(--radius-win);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.types-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.types-table thead th {
  text-align: left;
  white-space: nowrap;
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.types-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.types-table th[scope="row"], .types-table td { padding: 12px 16px; vertical-align: top; text-align: left; }
.types-table th[scope="row"] { font-weight: 650; white-space: nowrap; }
.kind { display: inline-flex; align-items: center; gap: 10px; }
.kind .doc-icon { flex: none; width: 16px; height: 20px; }
.exts code { background: transparent; padding: 0; margin-right: 0.35em; color: var(--ink); white-space: nowrap; }
.ext-word { color: var(--ink-3); margin-right: 0.35em; }
.types-table td { color: var(--ink-2); }
.thumb { white-space: nowrap; }
.thumb--no { color: var(--ink-3); }

@media (max-width: 820px) {
  .types-table thead { display: none; }
  .types-table, .types-table tbody, .types-table tr, .types-table th, .types-table td { display: block; }
  .types-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .types-table tbody tr:nth-child(even) { background: transparent; }
  .types-table th[scope="row"], .types-table td { padding: 0; }
  .types-table td { margin-top: 6px; }
  .types-table td::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 500; }
  .exts { line-height: 1.7; }
}

/* FAQ: disclosure triangles, like Finder's outline view */

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid > h2 { position: sticky; top: 96px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { color: var(--ink-3); transform: translateY(-0.12em); }
.faq details[open] summary::before { transform: translateY(-0.12em) rotate(90deg); }
.faq summary h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; font-variation-settings: normal; }
.faq summary:hover h3 { color: var(--link); }
.faq details p { padding: 0 0 1.35rem 21px; max-width: 62ch; color: var(--ink-2); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > h2 { position: static; }
}

/* At a glance */

.facts { padding-top: calc(var(--section) * 0.4); }
.facts h2 { font-size: var(--t-h3); }
.facts-list { margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.facts-list > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts-list dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.facts-list dd { margin: 0.2rem 0 0; }
.closing { margin-top: 3rem; }

/* ---------- Support, privacy, 404 ---------- */

.doc-page { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1rem + 3vw, 4rem); }
.doc > * { max-width: 760px; }
.doc .steps + p { margin-top: 1.25rem; color: var(--ink-2); }
.doc-head { margin-bottom: 2.5rem; }
.doc h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.doc .lede { max-width: 52ch; }
.doc-date { margin-top: 1rem; color: var(--ink-3); font-size: var(--t-small); }
.doc section { padding-top: 2.25rem; }
.doc section + section { margin-top: 0.5rem; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.doc section > p { color: var(--ink-2); max-width: 64ch; }
.doc section > p + p { margin-top: 0.9rem; }
.doc-contact p { font-size: var(--t-lede); color: var(--ink); }
.trouble { padding-top: 1.25rem !important; border-top: 0 !important; }
.trouble h3 { font-family: var(--text); font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.005em; font-variation-settings: normal; }
.trouble ol { margin: 0.75rem 0 0; padding-left: 1.4rem; color: var(--ink-2); display: grid; gap: 0.45rem; max-width: 64ch; }
.doc-page--center { min-height: 55vh; display: grid; align-content: center; }
.doc-page--center p { margin-top: 1.25rem; }
.page-support .faq { padding-top: 2rem; }

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

.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: var(--t-small); color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.footer-brand strong { color: var(--ink); font-family: var(--display); font-size: 1.125rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); }
.footer-legal { grid-column: 1 / -1; max-width: 80ch; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
