/* Mirrorleaf's website.

   Typography follows tinycast.dev's pattern: Geist for text, Geist Mono for
   labels and numbers. Accent words are moss green, upright: no italics
   anywhere on the site (owner, 15 Nov 2026, after trying Instrument Serif's
   and Geist's italics). Both are SIL OFL fonts served from this site
   (licences beside them in fonts/).
   Colours come from the logo, "Resting leaf" in Oat & Moss (7 Nov 2026).
   The mock-ups of the app use the app's own colours (apps/mirrorleaf/src/styles.css).

   Nothing here is loaded from another site. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* SF Pro Rounded can't be served from a website (Apple's licence), so the
     wordmark asks for the system's rounded face and falls back to Geist. */
  --rounded: ui-rounded, 'SF Pro Rounded', var(--sans);
  /* The app's own font, for the mock-ups. */
  --app-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --app-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;

  /* Oat & Moss */
  --oat: #dfcfae;
  --paper: #fbf6ec;
  --moss: #4e6a35;
  --ochre: #c4842c;

  --canvas: #fcfaf5;
  --surface: #ffffff;
  --well: #f4efe4;
  --fg: #221d17;
  --fg-muted: #5c5448;
  --fg-subtle: #766c5d;
  --border: #ebe4d5;
  --border-strong: #dbd0ba;
  --accent: #4e6a35;
  --accent-soft: rgba(78, 106, 53, 0.1);
  --ochre-ink: #94600f;
  --ochre-soft: rgba(196, 132, 44, 0.14);
  --action: #4e6a35;
  --action-fg: #fbf6ec;
  --action-glow: rgba(78, 106, 53, 0.45);

  /* Keycap-like edges: a light top edge and a hairline ring. */
  --key: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(58, 47, 37, 0.12),
    0 1px 2px rgba(58, 47, 37, 0.08);
  --key-hover: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(58, 47, 37, 0.2),
    0 2px 6px rgba(58, 47, 37, 0.1);
  --card-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(58, 47, 37, 0.04);
  --window: 0 0 0 1px rgba(58, 47, 37, 0.14), 0 30px 70px -24px rgba(58, 47, 37, 0.34),
    0 12px 28px -16px rgba(58, 47, 37, 0.24);

  /* The app's colours, for the mock-ups. */
  --app-bg: #fdfdfc;
  --app-wash: rgba(240, 243, 237, 0.62);
  --app-card: #ffffff;
  --app-text: #1c211e;
  --app-muted: #6f7872;
  --app-faint: #a6aea8;
  --app-line: rgba(28, 46, 33, 0.1);
  --app-accent: #3b8f5c;
  --app-accent-text: #ffffff;

  /* The glow (the app's lib/aura.ts): site.js colours it for the visitor's
     time of day; these are the shapes. Without scripts, a daytime glow. */
  --hero-core: 34% 42% at 50% 30%;
  --hero-side: 30% 40% at 68% 22%;
  --hero-halo: 70% 62% at 44% 30%;
  --mac-core: 30% 36% at 72% 54%;
  --mac-side: 28% 40% at 84% 44%;
  --mac-halo: 50% 60% at 76% 50%;
  --phone-core: 64% 26% at 40% 50%;
  --phone-side: 56% 30% at 72% 42%;
  --phone-halo: 100% 44% at 55% 47%;
  --aura-hero: radial-gradient(var(--hero-core), rgba(255, 214, 120, 0.5), transparent),
    radial-gradient(var(--hero-side), rgba(255, 190, 160, 0.42), transparent),
    radial-gradient(var(--hero-halo), rgba(250, 205, 215, 0.3), transparent);
  --aura-mac: radial-gradient(var(--mac-core), rgba(255, 214, 120, 0.5), transparent),
    radial-gradient(var(--mac-halo), rgba(250, 205, 215, 0.3), transparent);
  --aura-phone: radial-gradient(var(--phone-core), rgba(255, 214, 120, 0.5), transparent),
    radial-gradient(var(--phone-halo), rgba(250, 205, 215, 0.3), transparent);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #12100d;
    --surface: #1b1814;
    --well: #221f1a;
    --fg: #efe8da;
    --fg-muted: #b0a796;
    --fg-subtle: #8f8676;
    --border: rgba(255, 236, 200, 0.09);
    --border-strong: rgba(255, 236, 200, 0.16);
    --accent: #a9c787;
    --accent-soft: rgba(169, 199, 135, 0.12);
    --ochre-ink: #e3a85a;
    --ochre-soft: rgba(227, 168, 90, 0.14);
    --action: #a9c787;
    --action-fg: #141a0f;
    --action-glow: rgba(169, 199, 135, 0.3);
    --key: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 236, 200, 0.14),
      0 1px 2px rgba(0, 0, 0, 0.4);
    --key-hover: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 236, 200, 0.24),
      0 2px 6px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 0 0 1px var(--border);
    --window: 0 0 0 1px rgba(255, 236, 200, 0.14), 0 30px 70px -24px rgba(0, 0, 0, 0.8),
      0 12px 28px -16px rgba(0, 0, 0, 0.6);

    --app-bg: #161917;
    --app-wash: rgba(32, 37, 33, 0.6);
    --app-card: #222724;
    --app-text: #e6eae6;
    --app-muted: #8e978f;
    --app-faint: #5f6862;
    --app-line: rgba(220, 255, 230, 0.1);
    --app-accent: #62c98c;
    --app-accent-text: #08150d;

    --aura-hero: radial-gradient(var(--hero-core), rgba(245, 190, 140, 0.16), transparent),
      radial-gradient(var(--hero-side), rgba(230, 140, 170, 0.14), transparent),
      radial-gradient(var(--hero-halo), rgba(140, 150, 230, 0.08), transparent);
    --aura-mac: radial-gradient(var(--mac-core), rgba(245, 190, 140, 0.16), transparent),
      radial-gradient(var(--mac-halo), rgba(140, 150, 230, 0.08), transparent);
    --aura-phone: radial-gradient(var(--phone-core), rgba(245, 190, 140, 0.16), transparent),
      radial-gradient(var(--phone-halo), rgba(140, 150, 230, 0.08), transparent);
  }
}

/* --- Base --- */

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

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

body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

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

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--key);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
}

/* --- Navigation --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 650 18px/1 var(--rounded);
  letter-spacing: -0.015em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-links a:hover {
  background: var(--well);
  color: var(--fg);
}

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 420px) {
  .nav-end .btn-quiet {
    display: none;
  }
}

/* --- Buttons and badges --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font: 550 15px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--action);
  color: var(--action-fg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 8px 20px -8px var(--action-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--key);
}

.btn-secondary:hover {
  box-shadow: var(--key-hover);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-quiet {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.btn-quiet:hover {
  background: var(--well);
  color: var(--fg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--key);
  font: 500 12.5px/1 var(--mono);
  color: var(--fg-muted);
}

.badge b {
  font-weight: 600;
  color: var(--fg);
}

.badge .sep {
  color: var(--border-strong);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Hero --- */

.top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.top::before {
  content: '';
  position: absolute;
  inset: 0 -10% 30%;
  z-index: -1;
  background-image: var(--aura-hero);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.hero {
  padding-block: clamp(56px, 9vw, 108px) 0;
  text-align: center;
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 12.5em;
  font: 620 clamp(42px, 7.6vw, 86px)/0.98 var(--sans);
  letter-spacing: -0.048em;
  text-wrap: balance;
}

/* No italics anywhere on the site (owner, 15 Nov 2026), including the
   browser's defaults for em, i and the like. */
em,
i,
cite,
dfn,
var,
address {
  font-style: normal;
}

/* The accent words: the same type as the words around them, in moss. */
.hero h1 em,
.section h2 em,
.quote em,
.doc h1 em,
.big-statement em {
  color: var(--accent);
}

.hero h1 em {
  display: block;
  margin-top: 0.04em;
}

/* A text cursor after "Nowhere else.", as in a note being written. */
.caret {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: var(--ochre);
  border-radius: 1px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero .lede {
  margin: 26px auto 0;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

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

.fine {
  margin-top: 16px;
  font: 12.5px/1.6 var(--mono);
  color: var(--fg-subtle);
}

.fine span {
  white-space: nowrap;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(28px, 6vw, 64px);
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats b {
  font: 600 22px/1.1 var(--sans);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font: 12px/1.4 var(--mono);
  color: var(--fg-subtle);
}

/* --- The two devices (mock-ups of the app) ---
   Each device is a size container: everything inside is sized in cqw, so the
   picture scales as one at any width. Design widths: the Mac window 800 px
   (1cqw = 8 px), the phone 300 px (1cqw = 3 px). */

.showcase {
  margin: clamp(48px, 7vw, 76px) auto 0;
  max-width: 1080px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 60;
}

.mac {
  position: absolute;
  left: 0;
  top: 0;
  width: 80cqw;
  aspect-ratio: 800 / 520;
  container-type: inline-size;
}

.phone {
  position: absolute;
  right: 1cqw;
  top: 8cqw;
  width: 22cqw;
  aspect-ratio: 300 / 636;
  container-type: inline-size;
}

@media (max-width: 680px) {
  .stage {
    aspect-ratio: 100 / 150;
  }

  .mac {
    width: 100cqw;
  }

  .phone {
    right: auto;
    left: 19cqw;
    top: 24cqw;
    width: 62cqw;
  }
}

.mac-body {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 1.6cqw;
  background-color: var(--app-bg);
  background-image: var(--aura-mac);
  box-shadow: var(--window);
  font-family: var(--app-font);
  color: var(--app-text);
  line-height: 1.4;
  -webkit-user-select: none;
  user-select: none;
}

.m-stream {
  width: 41cqw;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--app-wash);
  border-right: max(1px, 0.125cqw) solid var(--app-line);
}

.m-head {
  height: 6.5cqw;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1.4cqw;
  color: var(--app-muted);
}

.m-head .i {
  width: 2.5cqw;
  height: 2.5cqw;
  stroke-width: 1.6;
}

.m-head .grow {
  flex: 1;
}

.m-head .ib {
  display: grid;
  place-items: center;
  width: 3.8cqw;
  height: 3.8cqw;
  border-radius: 0.8cqw;
}

.m-head .ib.text {
  font-size: 1.7cqw;
  font-weight: 600;
}

.lights {
  display: flex;
  gap: 1cqw;
  padding-left: 0.6cqw;
}

.lights i {
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 max(0.5px, 0.06cqw) rgba(0, 0, 0, 0.12);
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.m-search {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin: 0.25cqw 1.5cqw 1.3cqw;
  padding: 0 1.25cqw;
  height: 4.75cqw;
  border-radius: 1.1cqw;
  background: var(--app-card);
  border: max(1px, 0.19cqw) solid var(--app-line);
  color: var(--app-muted);
  font-size: 1.75cqw;
}

.m-search .i {
  width: 2cqw;
  height: 2cqw;
}

.m-search .placeholder {
  flex: 1;
}

.m-kbd {
  font: 500 1.35cqw/1 var(--app-mono);
  padding: 0.25cqw 0.6cqw;
  border: max(1px, 0.125cqw) solid var(--app-line);
  border-bottom-width: max(1px, 0.25cqw);
  border-radius: 0.5cqw;
  background: var(--app-card);
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75cqw;
  padding: 0 1.5cqw 1.5cqw;
}

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  height: 3.25cqw;
  padding: 0 1.4cqw;
  border-radius: 99cqw;
  border: max(1px, 0.125cqw) solid var(--app-line);
  background: var(--app-card);
  font-size: 1.56cqw;
  white-space: nowrap;
}

.m-chip.on {
  background: var(--app-text);
  border-color: var(--app-text);
  color: var(--app-bg);
}

.m-chip small {
  font-size: inherit;
  opacity: 0.6;
}

.m-chip.add {
  border-style: dashed;
  color: var(--app-muted);
}

.m-rows {
  border-top: max(1px, 0.125cqw) solid var(--app-line);
}

.m-row {
  display: flex;
  flex-direction: column;
  gap: 0.25cqw;
  padding: 1.35cqw 2cqw 1.35cqw 2.25cqw;
  border-bottom: max(1px, 0.125cqw) solid var(--app-line);
}

.m-row.current {
  background: var(--app-card);
  box-shadow: inset 0.375cqw 0 0 var(--app-accent);
}

.m-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5cqw;
}

.m-title {
  font-size: 1.75cqw;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-date {
  flex: none;
  font: 1.35cqw/1 var(--app-mono);
  color: var(--app-muted);
}

.m-preview {
  font-size: 1.62cqw;
  color: var(--app-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-tags {
  font: 500 1.3cqw/1.4 var(--app-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-accent);
}

.m-note {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.m-note .m-head {
  justify-content: flex-end;
}

.m-doc {
  padding: 0.5cqw 6cqw 0 5.5cqw;
}

.m-dateline {
  font: 1.35cqw/1 var(--app-mono);
  color: var(--app-muted);
  text-align: center;
  margin-bottom: 2.6cqw;
}

.m-doc h3 {
  font-size: 3.4cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.4cqw;
}

.m-doc p {
  font-size: 1.85cqw;
  line-height: 1.55;
  margin-bottom: 1.4cqw;
}

.m-tasks {
  list-style: none;
  margin: 0 0 1.8cqw;
  padding: 0;
  font-size: 1.85cqw;
  line-height: 1.55;
}

.m-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 1.1cqw;
  margin-bottom: 0.45cqw;
}

.m-tasks li::before {
  content: '';
  flex: none;
  width: 2.25cqw;
  height: 2.25cqw;
  margin-top: 0.35cqw;
  border-radius: 50%;
  border: max(1px, 0.19cqw) solid var(--app-faint);
}

.m-tasks li.done {
  color: var(--app-muted);
}

.m-tasks li.done {
  position: relative;
}

.m-tasks li.done::before {
  border-color: var(--app-accent);
  background: var(--app-accent);
}

/* The tick inside a ticked circle. */
.m-tasks li.done::after {
  content: '';
  position: absolute;
  left: 0.82cqw;
  top: 0.78cqw;
  width: 0.55cqw;
  height: 1.05cqw;
  border: solid var(--app-accent-text);
  border-width: 0 max(1px, 0.25cqw) max(1px, 0.25cqw) 0;
  transform: rotate(45deg);
}

.typing::after {
  content: '';
  display: inline-block;
  width: max(1px, 0.2cqw);
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--app-accent);
  animation: blink 1.1s steps(1) infinite;
}

.m-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 1cqw;
  overflow: hidden;
}

/* The phone */

.phone-body {
  position: absolute;
  inset: 0;
  padding: 2.6cqw;
  border-radius: 15cqw;
  background: #121212;
  box-shadow:
    inset 0 0 0 0.6cqw #2c2c2c,
    var(--window);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 12.5cqw;
  background-color: var(--app-bg);
  font-family: var(--app-font);
  color: var(--app-text);
  line-height: 1.4;
  -webkit-user-select: none;
  user-select: none;
}

.p-status {
  height: 11cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5cqw 8cqw 0;
  font-size: 4.2cqw;
  font-weight: 600;
}

.p-status .cam {
  width: 4cqw;
  height: 4cqw;
  border-radius: 50%;
  background: #0b0b0b;
}

.p-status .sig {
  display: flex;
  align-items: flex-end;
  gap: 0.8cqw;
  height: 3.6cqw;
}

.p-status .sig i {
  width: 1cqw;
  border-radius: 0.3cqw;
  background: currentColor;
}

.p-status .sig i:nth-child(1) {
  height: 35%;
}

.p-status .sig i:nth-child(2) {
  height: 60%;
}

.p-status .sig i:nth-child(3) {
  height: 85%;
}

.p-status .sig b {
  width: 6.4cqw;
  height: 3.2cqw;
  margin-left: 1.2cqw;
  border-radius: 0.9cqw;
  border: 0.4cqw solid currentColor;
  background: linear-gradient(90deg, currentColor 70%, transparent 70%) padding-box;
  background-clip: content-box;
  padding: 0.4cqw;
}

/* The stream, behind the note's sheet. */
.p-behind {
  padding: 1cqw 6cqw;
  color: var(--app-muted);
  font-size: 4cqw;
  display: flex;
  justify-content: flex-end;
  gap: 4cqw;
  opacity: 0.6;
}

.p-behind .i {
  width: 6cqw;
  height: 6cqw;
}

.p-sheet {
  position: absolute;
  inset: 20cqw 0 0;
  border-radius: 5cqw 5cqw 0 0;
  background-color: var(--app-bg);
  background-image: var(--aura-phone);
  box-shadow: 0 -1cqw 6cqw rgba(0, 0, 0, 0.16), 0 0 0 max(0.5px, 0.2cqw) var(--app-line);
  overflow: hidden;
}

.p-sheet-head {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  height: 15cqw;
  padding: 0 4cqw;
  color: var(--app-muted);
}

.p-sheet-head .grow {
  flex: 1;
}

.p-sheet-head .i {
  width: 7cqw;
  height: 7cqw;
  stroke-width: 1.6;
}

.p-sheet-head .ib {
  display: grid;
  place-items: center;
  width: 11cqw;
  height: 11cqw;
}

.p-sheet-head .ib.text {
  font-size: 5.2cqw;
  font-weight: 600;
}

.p-doc {
  padding: 0 7cqw;
}

.p-doc .m-dateline {
  font-size: 3.6cqw;
  margin-bottom: 5cqw;
}

.p-doc h3 {
  font-size: 8cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3cqw;
}

.p-doc p {
  font-size: 4.9cqw;
  line-height: 1.5;
  margin-bottom: 3cqw;
}

.p-doc .m-tasks {
  font-size: 4.9cqw;
  margin-bottom: 4cqw;
}

.p-doc .m-tasks li {
  gap: 2.8cqw;
  margin-bottom: 1.2cqw;
}

.p-doc .m-tasks li::before {
  width: 5.6cqw;
  height: 5.6cqw;
  margin-top: 0.9cqw;
  border-width: 0.5cqw;
}

.p-doc .m-tasks li.done::after {
  left: 2.05cqw;
  top: 1.95cqw;
  width: 1.4cqw;
  height: 2.6cqw;
  border-width: 0 0.6cqw 0.6cqw 0;
}

.p-doc .m-photo {
  border-radius: 3cqw;
}

.p-bar {
  position: absolute;
  left: 50%;
  bottom: 2.4cqw;
  width: 34cqw;
  height: 1.4cqw;
  margin-left: -17cqw;
  border-radius: 1cqw;
  background: var(--app-text);
  opacity: 0.35;
}

.showcase figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 28px;
  font: 12.5px/1.5 var(--mono);
  color: var(--fg-subtle);
  text-align: center;
}

.showcase figcaption b {
  color: var(--fg-muted);
  font-weight: 500;
}

/* --- Sections --- */

.section {
  border-top: 1px solid var(--border);
  padding-block: clamp(72px, 10vw, 124px);
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.label .num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--key);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section h2 {
  margin-top: 22px;
  max-width: 17em;
  font: 620 clamp(34px, 5.2vw, 58px)/1.02 var(--sans);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.section .lede {
  margin-top: 20px;
  max-width: 38em;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.section h3 {
  font: 600 18px/1.3 var(--sans);
  letter-spacing: -0.015em;
}

.body-text {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.body-text kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--key);
  font: 500 0.85em/1.4 var(--mono);
  color: var(--fg);
  text-align: center;
}

/* 01: why Mirrorleaf (the market gap) */

:root {
  --bad: #b5523b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bad: #e0866b;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Scrolls sideways on a phone, with the questions pinned on the left. */
.compare-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.compare {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  line-height: 1.4;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  padding-top: 20px;
  vertical-align: bottom;
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 24%;
  background: var(--surface);
  font-weight: 550;
  color: var(--fg);
}

.compare td {
  position: relative;
  padding-left: 32px;
  color: var(--fg-muted);
}

/* A dot for how well each kind of app does; the words say the same. */
.compare td::before {
  content: '';
  position: absolute;
  left: 16px;
  top: calc(14px + 0.48em);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.compare td.good::before {
  background: var(--accent);
}

.compare td.mid::before {
  background: var(--ochre);
}

.compare td.bad::before {
  background: var(--bad);
}

.compare .us {
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: 550;
}

.compare thead .us {
  color: var(--accent);
  border-radius: 12px 12px 0 0;
}

.compare-note {
  margin-top: 14px;
  font: 12.5px/1.5 var(--mono);
  color: var(--fg-subtle);
}

/* On a phone: one card per question, each kind of app on its own line. */
@media (max-width: 700px) {
  .compare-wrap {
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .compare {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare tbody,
  .compare tr,
  .compare tbody th,
  .compare td {
    display: block;
  }

  .compare tr {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
  }

  .compare tbody th {
    position: static;
    width: auto;
    padding: 16px 16px 8px;
    border-bottom: 0;
  }

  .compare td,
  .compare tbody tr:last-child td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 16px;
    border-bottom: 0;
  }

  .compare td::before {
    position: static;
    flex: none;
    margin-top: 0.5em;
  }

  /* The kind of app, before the dot and the answer. */
  .compare td::after {
    content: attr(data-kind);
    order: -1;
    flex: none;
    width: 9em;
    font: 12px/1.75 var(--mono);
    color: var(--fg-subtle);
    font-weight: 400;
  }

  .compare td.us {
    margin-top: 6px;
    padding-block: 10px 12px;
  }

  .compare td.us::after {
    color: var(--accent);
  }
}

/* 02: how it works */

.flow {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 1.3fr) 1fr;
  align-items: center;
  gap: 0;
  margin-top: 56px;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.node .glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.node .glyph .i {
  width: 26px;
  height: 26px;
}

.node b {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.node span {
  font: 12.5px/1.4 var(--mono);
  color: var(--fg-subtle);
}

.link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.wire {
  position: relative;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 8px,
    transparent 8px 14px
  );
  opacity: 0.55;
}

/* An edit on its way, one way and then the other. */
.wire::before,
.wire::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: travel 4.8s ease-in-out infinite;
}

.wire::after {
  background: var(--ochre);
  box-shadow: 0 0 0 4px var(--ochre-soft);
  animation-name: travel-back;
}

@keyframes travel {
  0% {
    left: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  42% {
    left: calc(100% - 10px);
    opacity: 1;
  }
  50%,
  100% {
    left: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes travel-back {
  0%,
  50% {
    left: calc(100% - 10px);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  92% {
    left: 0;
    opacity: 1;
  }
  100% {
    left: 0;
    opacity: 0;
  }
}

.link-label {
  font: 12px/1.4 var(--mono);
  color: var(--fg-subtle);
  text-align: center;
}

.helpers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.helper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
}

.tag {
  flex: none;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--ochre-soft);
  color: var(--ochre-ink);
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper p {
  font-size: 15px;
  color: var(--fg-muted);
}

.helper p b {
  color: var(--fg);
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 500 12.5px/1 var(--mono);
  color: var(--accent);
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .link {
    height: 112px;
    flex-direction: row;
    justify-content: center;
  }

  .wire {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px);
  }

  .wire::before,
  .wire::after {
    left: -4px;
    animation-name: travel-down;
  }

  .wire::after {
    animation-name: travel-up;
  }

  .link-label {
    position: absolute;
    left: calc(50% + 18px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 44%;
    text-align: left;
  }

  .helpers,
  .steps {
    grid-template-columns: 1fr;
  }
}

@keyframes travel-down {
  0% {
    top: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  42% {
    top: calc(100% - 10px);
    opacity: 1;
  }
  50%,
  100% {
    top: calc(100% - 10px);
    opacity: 0;
  }
}

@keyframes travel-up {
  0%,
  50% {
    top: calc(100% - 10px);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  92% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

/* 03: features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px 30px;
  background: var(--canvas);
}

.feature .i {
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  color: var(--accent);
}

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

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

.also {
  margin-top: 40px;
}

.also h3 {
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

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

.pills li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--key);
  font-size: 14px;
  color: var(--fg-muted);
}

/* 04: privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.counter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.counter b {
  font: 300 clamp(48px, 6vw, 64px)/0.9 var(--sans);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.counter span {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}

.ledger-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.ledger-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger-card .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.ledger-card h4 {
  margin: 0 0 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-card .holds h4 {
  color: var(--fg-subtle);
}

.ledger-card .never h4 {
  color: var(--accent);
}

.ledger-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}

.ledger-card li {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.ledger-card li:last-child {
  border-bottom: 0;
}

.ledger-card li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--border-strong);
}

.ledger-card .never li::before {
  width: 10px;
  height: 2px;
  margin-top: 0.7em;
  border-radius: 1px;
  background: var(--accent);
}

.ledger-card .more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14.5px;
}

.ledger-card .more a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.defaults {
  margin-top: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.defaults h3 {
  padding: 20px 24px 14px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.defaults dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.defaults .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}

.defaults .row:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.defaults dt {
  font-size: 15px;
}

.defaults dt small {
  display: block;
  font-size: 13px;
  color: var(--fg-subtle);
}

.defaults dd {
  margin: 0;
  flex: none;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 12px/1.2 var(--mono);
  background: var(--well);
  color: var(--fg-muted);
}

.state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.state.on {
  background: var(--accent-soft);
  color: var(--accent);
}

.state.on::before {
  background: var(--accent);
}

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

@media (max-width: 680px) {
  .defaults dl {
    grid-template-columns: 1fr;
  }

  .defaults .row:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .ledger-card .cols {
    grid-template-columns: 1fr;
  }

  .counter {
    min-height: 0;
  }
}

/* 05: your account */

.account {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.card .step {
  font: 500 12.5px/1 var(--mono);
  color: var(--accent);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
}

.keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--canvas);
  box-shadow:
    inset 0 -2px 0 var(--border-strong),
    0 0 0 1px var(--border-strong);
  font: 500 14px/1 var(--mono);
  color: var(--fg);
}

.keys kbd.big {
  min-width: 44px;
  height: 52px;
  font-size: 24px;
  font-weight: 500;
}

.keys + .keys {
  margin-top: 0;
  padding-top: 10px;
}

.keys kbd.file {
  height: auto;
  padding: 9px 12px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.keys .dash {
  color: var(--fg-subtle);
  font-family: var(--mono);
}

.keys .note {
  font: 12.5px/1.4 var(--mono);
  color: var(--fg-subtle);
  margin-left: 4px;
}

.words {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  counter-reset: word;
}

.words span {
  counter-increment: word;
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--border);
  font: 13px/1.2 var(--mono);
  color: var(--fg-subtle);
  overflow: hidden;
}

.words span::before {
  content: counter(word);
  font-size: 11px;
  color: var(--fg-subtle);
  opacity: 0.7;
}

/* The rest of the kit stays private: blurred. */
.words .hide b {
  display: inline-block;
  font-weight: 400;
  filter: blur(3.5px);
  opacity: 0.8;
}

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

@media (max-width: 400px) {
  .words {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 06: the honest part */

.honest {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 56px;
  align-items: start;
}

.big-statement {
  font: 450 clamp(23px, 2.7vw, 30px)/1.32 var(--sans);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.big-statement + .body-text {
  margin-top: 20px;
}

.gap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
}

.gap-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.gap-list .i {
  margin-top: 2px;
  color: var(--accent);
}

.gap-list b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.gap-list span {
  color: var(--fg-muted);
  font-size: 15px;
}

.warning {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--ochre-soft);
  color: var(--fg);
  font-size: 15px;
}

.warning .i {
  color: var(--ochre-ink);
  margin-top: 1px;
}

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

/* 07: questions (the answers are also in the head's FAQPage data) */

.faq {
  max-width: 860px;
  margin-top: 48px;
  border-top: 1px solid var(--border-strong);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}

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

.faq summary h3 {
  font: 600 17px/1.35 var(--sans);
  letter-spacing: -0.015em;
}

.faq summary::after {
  content: '+';
  flex: none;
  font: 400 24px/1 var(--mono);
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 46em;
  padding: 0 40px 22px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* Quote and pillars */

.quote {
  max-width: 20em;
  margin: 0 auto;
  font: 600 clamp(30px, 4.6vw, 52px)/1.1 var(--sans);
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.pillar .i {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--accent);
}

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

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

/* Downloads */

#download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

#download::before {
  content: '';
  position: absolute;
  inset: 0 -10% -20%;
  z-index: -1;
  background-image: var(--aura-hero);
  opacity: 0.8;
  pointer-events: none;
  /* Fade in from the top, so the glow has no edge. */
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
  mask-image: linear-gradient(transparent, #000 45%);
}

#download .label {
  justify-content: center;
}

#download h2,
#download .lede {
  margin-inline: auto;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card-shadow), 0 20px 40px -28px rgba(58, 47, 37, 0.35);
}

.download header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download .glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.download .glyph .i {
  width: 24px;
  height: 24px;
}

.download h3 {
  font-size: 17px;
}

.download header span {
  display: block;
  font: 12.5px/1.4 var(--mono);
  color: var(--fg-subtle);
}

.download .btn {
  margin-top: 6px;
}

.download p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.download p b {
  color: var(--fg);
  font-weight: 600;
}

.download code {
  font: 12px/1.5 var(--mono);
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* Which file to pick on the release page. */
.download .file {
  font: 12px/1.5 var(--mono);
  color: var(--fg-subtle);
}

.dl-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--fg-muted);
}

.dl-notes a {
  color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
  font-size: 14px;
  color: var(--fg-muted);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 32px;
}

.footer .brand {
  font-size: 17px;
  color: var(--fg);
}

.footer .tagline {
  margin-top: 12px;
  max-width: 22em;
}

.footer h4 {
  margin: 0 0 12px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer ul a {
  text-decoration: none;
}

.footer ul a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .small {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font: 12.5px/1.5 var(--mono);
  color: var(--fg-subtle);
}

.footer .small a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.footer .small a:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

@media (max-width: 640px) {
  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer .about {
    grid-column: 1 / -1;
  }
}

/* --- Long-form pages (privacy) --- */

.doc {
  max-width: 760px;
  padding-block: clamp(48px, 8vw, 88px) clamp(64px, 9vw, 112px);
}

.doc h1 {
  margin-top: 22px;
  font: 620 clamp(36px, 6vw, 56px)/1.02 var(--sans);
  letter-spacing: -0.045em;
}

.doc .updated {
  margin-top: 14px;
  font: 12.5px/1.5 var(--mono);
  color: var(--fg-subtle);
}

.doc .summary {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 17px;
  line-height: 1.55;
}

.doc .summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.doc .summary li {
  margin: 4px 0;
}

.doc h2 {
  margin: 52px 0 0;
  font: 600 24px/1.25 var(--sans);
  letter-spacing: -0.025em;
}

.doc h3 {
  margin: 28px 0 0;
  font: 600 17px/1.3 var(--sans);
}

.doc p,
.doc ul {
  margin: 14px 0 0;
  color: var(--fg-muted);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--fg);
  font-weight: 600;
}

.doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.doc code {
  font: 0.88em var(--mono);
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--well);
}

.table {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border);
}

.table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  background: var(--surface);
}

.table td {
  color: var(--fg-muted);
}

.table td:first-child {
  color: var(--fg);
  font-weight: 550;
}

/* --- Motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .caret,
  .typing::after,
  .wire::before,
  .wire::after {
    animation: none;
  }

  .wire::after {
    display: none;
  }

  .btn {
    transition: none;
  }
}
