/* Qubit website. A grid of tiles on the page colour: grey panes, obsidian panes and
   pearl gradients drawn from the app icon. Tokens mirror crates/qubit-ui/src/theme.rs. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/inter.9cfd54b805.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --pane: #f2f2f0;
  --ink: #181d16;
  /* One step darker than theme.rs muted, 4.9:1 on the pane. */
  --muted: #646c60;
  --faint: #8c9389;
  --rule: rgba(24, 29, 22, 0.1);
  --chip: rgba(24, 29, 22, 0.06);
  --obsidian: #111112;
  --obsidian-ink: #f2f2f3;
  --obsidian-muted: #8d8d93;
  --obsidian-rule: rgba(255, 255, 255, 0.1);
  /* Native download button: black in light, white in dark. */
  --mac-bg: #141513;
  --mac-ink: #ffffff;
  --grey-bg: rgba(24, 29, 22, 0.07);
  --grey-ink: #5f665b;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-rule: rgba(24, 29, 22, 0.08);
  --focus: #2a78c8;
  /* Brand: the mark's blue blades and their cut, and the navy wordmark. */
  --brand-mark: #4a9ae0;
  --brand-sliver: #a8d0f6;
  --brand-ink: #16305a;
  --card: #ffffff;
  --rule-strong: rgba(24, 29, 22, 0.14);
  --blue-btn: #2a78c8;
  /* Footer: navy ink on a pale sky. */
  --sky: #d6e8fb;
  --sky-ink: #16305a;
  --sky-brand: #16305a;
  --sky-line: rgba(22, 48, 90, 0.09);
  --sky-rule: rgba(22, 48, 90, 0.14);
  --shot-ring: rgba(24, 29, 22, 0.12);
  --shot-shadow: 0 1px 2px rgba(20, 16, 40, 0.08), 0 18px 50px -12px rgba(30, 45, 80, 0.28);

  /* Pastel gradient: sky, mint, ice blue and butter on a pale blue base. */
  --g1: #b6d6ff;
  --g2: #bdeedb;
  --g3: #cfe3ff;
  --g4: #ffe6b0;
  --g-base: #e2ebf8;

  --radius: 18px;
  --gap: 6px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #000000;
    --pane: #141415;
    --ink: #f0f0f2;
    --brand-sliver: #2a6fb8;
    --brand-ink: #b5d6f7;
    --card: #1e1e20;
    --rule-strong: rgba(240, 240, 242, 0.14);
    --blue-btn: #2a78c8;
    --sky: #08162a;
    --sky-ink: #cfe3f8;
    --sky-brand: #b5d6f7;
    --sky-line: rgba(181, 214, 247, 0.07);
    --sky-rule: rgba(181, 214, 247, 0.14);
    --muted: #8e8e94;
    --faint: #6b6b71;
    --rule: rgba(240, 240, 242, 0.1);
    --chip: rgba(240, 240, 242, 0.08);
    --obsidian: #0d0d0e;
    --mac-bg: #ececea;
    --mac-ink: #111211;
    --grey-bg: rgba(255, 255, 255, 0.09);
    --grey-ink: #9d9d9a;
    --glass: rgba(22, 22, 24, 0.55);
    --glass-rule: rgba(255, 255, 255, 0.09);
    --focus: #5aa8ee;
    --shot-ring: rgba(255, 255, 255, 0.12);
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 60px -14px rgba(0, 0, 0, 0.7);
    --g1: #4a6fa3;
    --g2: #3f8a76;
    --g3: #3d6b9e;
    --g4: #a08453;
    --g-base: #2b3550;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--chip);
  font-family: var(--font-sans);
  font-size: 0.86em;
  font-weight: 500;
}

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

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

.ico { width: 18px; height: 18px; flex: none; }
.ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* A floating frosted pill, centred, that drops in once the hero is scrolled past. */
.top {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 24px));
  height: 58px;
  padding: 0 8px 0 24px;
  border: 1px solid var(--glass-rule);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(-100% - 60px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.top.shown,
.top:focus-within { transform: translate(-50%, 0); }

/* Lockup: the mark is 1.05× the wordmark's height, centred on it, 0.12× away. */
.brand { --h: 28px; display: inline-flex; align-items: center; gap: calc(var(--h) * 0.12); color: var(--brand-ink); }
.brand .mark { width: calc(var(--h) * 1.05); height: calc(var(--h) * 1.05); flex-shrink: 0; }
/* The mark's blades and their cut (classes, not style attributes, which the CSP blocks). */
.m-blade { fill: var(--brand-mark); }
.m-sliver { fill: var(--brand-sliver); }
.wordmark { width: calc(var(--h) * 7433 / 3353); height: var(--h); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 15px;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.nav a:not(.btn):hover { background: var(--chip); }
.nav .ext::after { content: "↗"; margin-left: 6px; font-size: 0.82em; color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.84; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 16px; gap: 6px; }
.btn-mac { background: var(--mac-bg); color: var(--mac-ink); font-weight: 600; }
/* The download arrow sits tighter to its edge, like the reference pill. */
.btn:has(.ico-down) { padding-left: 15px; }
.btn-grey { background: var(--grey-bg); color: var(--grey-ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--obsidian-ink); }
.btn .ico { width: 17px; height: 17px; margin-top: -2px; }
.btn-sm .ico { width: 14px; height: 14px; }
.btn .ico-down { width: 21px; height: 21px; margin: 0; stroke-width: 2.6; }
.btn-sm .ico-down { width: 18px; height: 18px; }
.btn-sm:has(.ico-down) { padding-left: 13px; }

/* ---------------------------------------------------------------- Tiles */

main {
  display: grid;
  gap: var(--gap);
  padding: var(--gap);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pane);
  isolation: isolate;
}

.tile.dark {
  background: var(--obsidian);
  color: var(--obsidian-ink);
  --muted: var(--obsidian-muted);
  --rule: var(--obsidian-rule);
  --chip: rgba(255, 255, 255, 0.08);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* Lead sentence in the ink, the rest muted, as one paragraph. */
.lede { font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 34em; }
.lede b { font-weight: 500; color: var(--ink); }
.tile.dark .lede b { color: var(--obsidian-ink); }

.title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Pearl gradient with film grain. */
.pearl {
  background:
    radial-gradient(55% 60% at 12% 8%, var(--g1) 0%, transparent 70%),
    radial-gradient(60% 55% at 90% 12%, var(--g2) 0%, transparent 70%),
    radial-gradient(70% 60% at 18% 100%, var(--g3) 0%, transparent 72%),
    radial-gradient(60% 65% at 100% 95%, var(--g4) 0%, transparent 70%),
    var(--g-base);
}
.pearl.warm {
  background:
    radial-gradient(70% 50% at 50% 0%, var(--g2) 0%, transparent 75%),
    radial-gradient(80% 60% at 50% 100%, var(--g4) 0%, transparent 75%),
    radial-gradient(60% 60% at 0% 55%, var(--g1) 0%, transparent 70%),
    var(--g3);
}
.pearl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

/* Screenshots of the app: a window floating on its tile. */
.shot {
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px var(--shot-ring), var(--shot-shadow);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 28%) 1.55fr 1fr;
  gap: var(--gap);
  height: clamp(640px, calc(100svh - 2 * var(--gap)), 980px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(28px, 3vw, 46px) clamp(48px, 8vh, 96px);
}

/* The wordmark set in the headline: its baseline sits 2245 of 3353 units down, so the
   q's descender hangs below the line and the x-height matches Inter's. */
.hero-mark {
  color: var(--brand-ink);
  width: calc(1.5em * 7433 / 3353);
  height: 1.5em;
  margin-left: 0.04em;
  vertical-align: calc(-1.5em * 1108 / 3353);
}

.hero h1 {
  font-size: clamp(28px, 2.3vw, 33px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero h1 .muted { display: block; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

.hero-stage .shot {
  position: absolute;
  top: 50%;
  left: 11%;
  width: 150%;
  max-width: none;
  transform: translateY(-50%);
}

.hero-side { display: grid; place-items: center; }
/* The picture is the grid item, so it carries the width; the image fills it. */
.hero-side picture { width: min(74%, 380px); }
.hero-side .shot {
  width: 100%;
  border-radius: 16px;
}

/* ---------------------------------------------------------------- Intro */

.intro {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 860px;
}

.intro-copy { padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 64px) 0; }
.intro-copy .lede { font-size: clamp(18px, 1.5vw, 21px); }
.intro-copy .lede + .lede { margin-top: 14px; }

.tilt {
  position: relative;
  perspective: 1600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.tilt img {
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(1500px, 115%);
  max-width: none;
  border-radius: 18px;
  transform: translateX(-46%) rotateX(48deg) rotateZ(-26deg);
  transform-origin: 50% 30%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------- Split tile */

.split { min-height: 520px; }

.zoom img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.pitch .lede { margin-top: 12px; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  max-width: 560px;
}
.pair h3 { margin-top: 12px; font-size: 14px; font-weight: 500; }
.pair p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pair .ico { width: 30px; height: 30px; stroke-width: 1.3; }

.foot-note { margin-top: 56px; font-size: 12px; color: var(--faint); }

/* ---------------------------------------------------------------- Self-host */

.selfhost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 64px);
  min-height: 680px;
}

/* Dot grid, fading out towards the copy. */
.selfhost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.13) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 90% at 80% 50%, #000 20%, transparent 80%);
}

.selfhost .lede.gap { margin-top: 12px; }

.steps { margin-top: 28px; display: grid; gap: 2px; max-width: 520px; }

.step-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  transition: color 0.15s ease;
}
.step-btn:hover, .step-btn[aria-expanded="true"] { color: var(--obsidian-ink); }
.step-btn .chev { width: 12px; height: 12px; transition: transform 0.2s ease; }
.step-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }

.step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.step-body > div { overflow: hidden; min-height: 0; }
.step-btn[aria-expanded="true"] + .step-body { grid-template-rows: 1fr; }
.step-body p { padding: 2px 0 12px 22px; font-size: 13px; color: var(--muted); }

.selfhost .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.term {
  border-radius: 12px;
  background: #0a0a0b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 500;
  color: var(--obsidian-muted);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3e; }
.term-bar span { margin-left: 8px; }
.term pre {
  margin: 0;
  padding: 18px 18px 22px;
  min-height: 300px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #d8d8dc;
  white-space: pre-wrap;
  word-break: break-all;
}
.term .p { color: #8fc0f3; }
.term .c { color: #6f6f76; }
.term .ok { color: #5fd49a; }

/* ---------------------------------------------------------------- Gallery */

.gallery .tile {
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

.gallery figure { position: relative; flex: 1; overflow: hidden; }

.gallery .fit {
  position: absolute;
  inset: 12% 13% auto;
  width: 74%;
}

.gallery .bleed {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 135%;
  max-width: none;
}

.gallery figcaption {
  padding: 0 clamp(28px, 4vw, 56px) clamp(32px, 4vw, 48px);
}
.gallery figcaption .lede { font-size: 15px; max-width: 30em; }

/* Fade a bleeding screenshot into the tile before the caption. */
.gallery figure.fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--pane));
}

/* ---------------------------------------------------------------- Vault */

.vault {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  min-height: 680px;
}

.vault-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 5vw, 64px);
}

.spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.spec code {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #d6d6da;
}

.vault .pair { margin-top: 36px; }

.caps {
  position: relative;
  overflow: hidden;
  perspective: 1400px;
}

.caps ul {
  position: absolute;
  top: -8%;
  left: 2%;
  display: grid;
  grid-template-columns: repeat(5, 118px);
  gap: 34px;
  transform: rotateX(40deg) rotateZ(-24deg);
  transform-style: preserve-3d;
}

.cap {
  --c1: #9fd0ff;
  --c2: #2a78c8;
  display: grid;
  place-items: center;
  width: 118px;
  height: 96px;
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.65),
    inset 0 -6px 12px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 14px 0 -4px color-mix(in srgb, var(--c2) 55%, #000),
    0 30px 40px rgba(0, 0, 0, 0.55);
}
.cap svg {
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
}
.cap.c-mint { --c1: #8ff0c5; --c2: #2fb08a; }
.cap.c-blue { --c1: #9fd0ff; --c2: #2a78c8; }
.cap.c-peach { --c1: #ffd09a; --c2: #ff7a59; }
.cap.c-navy { --c1: #8fb4e6; --c2: #1d4f8f; }
.cap.c-sky { --c1: #a8e4fb; --c2: #1593c9; }
.cap.c-glass { --c1: #e8e8f2; --c2: #8b8ba6; }
.cap.off { visibility: hidden; }

/* ---------------------------------------------------------------- Pricing and features */

/* Two plan cards on the left, the eight features in two columns on the right. */
.plans-row {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(20px, 2.4vw, 32px);
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  border-radius: 22px;
}
/* Free on a filled card, Business drawn in outline on the pane. */
.plan-free { background: var(--card); }
.plan-business { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.plan h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.plan-for { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.price { display: flex; align-items: center; gap: 10px; margin: 22px 0 22px; }
.price b { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price span { max-width: 5em; font-size: 13px; line-height: 1.3; color: var(--muted); }
.plan .btn { width: 100%; }
.plan-note { margin: 10px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); text-align: center; font-size: 13px; color: var(--muted); }
.plus { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.checks { display: grid; gap: 11px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.checks .ico {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--chip);
  stroke-width: 2.4;
}
.btn-blue { background: var(--blue-btn); color: #fff; font-weight: 600; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  align-content: space-between;
  gap: 32px 36px;
  max-width: 560px;
  padding: 28px 0 30px;
}
.features .ico { width: 24px; height: 24px; stroke-width: 1.3; }
.features h3 { margin-top: 10px; font-size: 14px; font-weight: 500; }
.features p { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }

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

/* The page ends on a pale sky tile: the brand over the link groups, then the
   fine print, with a hairline grid gathering towards the bottom. */
.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 var(--gap) var(--gap);
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--sky-ink);
}
.foot-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--sky-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--sky-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 32px;
}

.foot-top {
  display: grid;
  gap: 40px;
}
.foot .brand { --h: 34px; color: var(--sky-brand); }
.foot-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.foot-h, .foot-toggle { font-size: 13.5px; font-weight: 600; }
.foot-h { margin-bottom: 16px; }
.foot-toggle { display: none; }
.foot-reveal ul { display: grid; gap: 12px; }
.foot-reveal a { font-size: 13.5px; line-height: 1.4; opacity: 0.68; transition: opacity 0.15s ease; }
.foot-reveal a:hover { opacity: 1; }

.foot-bottom {
  display: grid;
  gap: 4px;
  margin-top: 64px;
  font-size: 13px;
  opacity: 0.62;
}
.foot-bottom address { font-style: normal; }
.foot-bottom a:hover { text-decoration: underline; }

@media (max-width: 899.98px) {
  .foot-nav { display: block; border-top: 1px solid var(--sky-rule); }
  .foot-group { border-bottom: 1px solid var(--sky-rule); }
  .foot-h { display: none; }
  .foot-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }
  .foot-toggle .ico { width: 18px; height: 18px; opacity: 0.6; transform: rotate(90deg); transition: transform 0.22s ease; }
  .foot-toggle[aria-expanded="true"] .ico { transform: rotate(-90deg); }
  .foot-reveal { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.22s ease, visibility 0.22s; }
  .foot-reveal ul { min-height: 0; overflow: hidden; gap: 16px; }
  .foot-reveal ul::after { content: ""; height: 4px; }
  .foot-reveal a { font-size: 15px; }
  .js .foot-toggle[aria-expanded="false"] + .foot-reveal { grid-template-rows: 0fr; visibility: hidden; }
}

/* ---------------------------------------------------------------- Gradient variants */

/* Other pastel sets for .pearl (sky is the default). Blog covers and figures pick one per post;
   tools/blog-images.py mirrors the light values for the social cards. */
.g-mint { --g1: #a8ecd0; --g2: #bfe3ff; --g3: #d3f5e4; --g4: #fff0b0; --g-base: #e2f4ec; }
.g-peach { --g1: #ffc9ad; --g2: #ffe7a0; --g3: #ffd3e0; --g4: #c4d9ff; --g-base: #fbe8de; }
.g-lilac { --g1: #d4c6ff; --g2: #c3ddff; --g3: #f3d0f2; --g4: #ffe2b8; --g-base: #ebe5fb; }
.g-dusk { --g1: #a9c4ff; --g2: #ffc6d4; --g3: #c6baff; --g4: #ffdfa3; --g-base: #e4e3f7; }

@media (prefers-color-scheme: dark) {
  .g-mint { --g1: #2f7a63; --g2: #36668f; --g3: #2c6656; --g4: #857243; --g-base: #1b332e; }
  .g-peach { --g1: #9a5a42; --g2: #93773a; --g3: #8a4a62; --g4: #3e5d94; --g-base: #33252a; }
  .g-lilac { --g1: #5b4c9c; --g2: #3a6196; --g3: #804a86; --g4: #8f6f45; --g-base: #262240; }
  .g-dusk { --g1: #3b5c9e; --g2: #934b62; --g3: #574c97; --g4: #937542; --g-base: #232742; }
}

/* ---------------------------------------------------------------- Blog */

/* Pages without the home hero show the header from the start. */
.sub main { padding-top: 82px; }

.btn-light { background: #ffffff; color: #111211; font-weight: 600; }

.post-meta { font-size: 13.5px; color: var(--faint); }

/* A cover: a screenshot running off the bottom right of its gradient. */
.cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cover .shot {
  position: absolute;
  left: 10%;
  top: 14%;
  width: 128%;
  max-width: none;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pane);
}
.tile .post-card { border-radius: 14px; background: var(--card); }
.post-card .cover { aspect-ratio: 16 / 10; }
.post-card:hover .cover .shot { transform: translateY(-5px); }
.post-card-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.post-card h2, .post-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.post-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.post-card .post-meta { margin-top: 4px; font-size: 13px; color: var(--faint); }

/* Five posts: one row of five on a wide screen; a lead card over pairs below that. */
.home-blog .post-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.post-grid-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid-index .post-card:first-child { grid-column: span 2; }
.post-grid-index .post-card:first-child .cover { aspect-ratio: auto; flex: 1; min-height: 300px; }
@media (max-width: 1180px) {
  .home-blog .post-grid, .post-grid-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-blog .post-card:first-child { grid-column: span 2; }
  .home-blog .post-card:first-child .cover { aspect-ratio: 16 / 7; }
}

/* The floating header must not cover a section reached by its anchor. */
main section[id] { scroll-margin-top: 84px; }

/* Home: the comparison posts. */
.home-blog { padding: clamp(24px, 3vw, 36px); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

/* Blog index. */
.blog-head { padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.blog-head h1 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.blog-head .lede { margin-top: 10px; }

/* Post. */
.post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--gap);
  min-height: 560px;
}
.post-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 52px);
}
.post-hero h1 {
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  margin-bottom: auto;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14.5px;
  color: var(--muted);
}
.crumb:hover { color: var(--ink); }
.crumb .ico { width: 16px; height: 16px; transform: rotate(180deg); }
.cover-hero .shot { left: 8%; top: 12%; width: 122%; border-radius: 12px; }

.prose { padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 88px); }
.prose > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose > .render, .prose > .table-wrap { max-width: 980px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.prose h3 { margin-top: 32px; margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { font-weight: 600; }
.prose a { color: var(--focus); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--chip); }
.prose .note { font-size: 14px; color: var(--muted); }

.table-wrap { margin-top: 24px; margin-bottom: 8px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-size: 14.5px; font-weight: 600; border-bottom-color: var(--rule-strong); }
.compare tbody th { font-weight: 500; color: var(--muted); }
/* Qubit's column. */
.compare tr > :nth-child(2) { background: var(--q-col); }
.compare .yes { width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: var(--yes); stroke-width: 2.4; }
.compare .no { color: var(--faint); }
:root { --q-col: rgba(74, 154, 224, 0.08); --yes: #17a34a; }
@media (prefers-color-scheme: dark) { :root { --q-col: rgba(90, 168, 238, 0.1); --yes: #34d36e; } }

.render { margin-top: 36px; margin-bottom: 36px; }
.render-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(18px, 5%, 56px);
  border-radius: var(--radius);
}
.render-stage .shot { width: 100%; }
.render figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

.post-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
}
.post-cta .lede { margin-top: 6px; }
.post-cta .cta { margin-top: 0; }

.more { padding: clamp(24px, 3vw, 36px); }
.more .title { margin-bottom: 20px; }

/* ---------------------------------------------------------------- 404 */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
}
.notfound h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.notfound .muted { color: var(--muted); }
.notfound .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-stage .rise { animation-name: rise-centered; }
  .rise.d1 { animation-delay: 0.12s; }
  .pearl { animation: fade 0.8s ease-out both; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-centered { from { opacity: 0; transform: translateY(calc(-50% + 18px)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top, .step-body, .step-btn .chev, .foot-reveal, .foot-toggle .ico, .cover .shot { transition: none; }
  .post-card:hover .cover .shot { transform: none; }
}

/* ---------------------------------------------------------------- Narrow screens */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(300px, 38%) 1fr; }
  .hero-side { display: none; }
  .plans-row { grid-template-columns: 1fr; padding: 20px 20px 56px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; max-width: none; padding: 0 12px; }
  .vault { grid-template-columns: 1fr; }
  .caps { height: 420px; order: -1; }
}

@media (max-width: 760px) {
  :root { --radius: 14px; }
  .top { padding: 0 6px 0 18px; height: 54px; }
  .nav .btn-grey { display: none; }
  .nav a:not(.btn):not(.signin) { display: none; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-copy { padding: 120px 20px 36px; }
  .hero-stage { height: 380px; }
  .hero-stage .shot { left: 8%; width: 190%; }
  .row, .selfhost, .pair { grid-template-columns: 1fr; }
  .intro { min-height: 640px; }
  .intro-copy { padding: 32px 20px 0; }
  .split { min-height: 0; }
  .tile.zoom { height: 320px; }
  .pitch { padding: 32px 20px; }
  .selfhost { padding: 36px 20px; gap: 32px; }
  .gallery .tile { min-height: 440px; }
  .gallery figcaption { padding: 0 20px 28px; }
  .vault-copy { padding: 32px 20px; }
  .caps { height: 320px; }
  .caps ul { grid-template-columns: repeat(5, 84px); gap: 22px; }
  .cap { width: 84px; height: 68px; border-radius: 18px; }
  .cap svg { width: 28px; height: 28px; }
  .plans-row { padding: 12px 12px 48px; }
  .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; padding: 0 8px; }
  .foot-in { padding: 24px 16px 28px; }
  .foot-top { gap: 28px; }
  .foot-bottom { margin-top: 40px; }
  .sub main { padding-top: 72px; }
  .post-hero { grid-template-columns: 1fr; min-height: 0; }
  .post-hero-copy { padding: 28px 20px; }
  .crumb { margin-bottom: 24px; }
  .cover-hero { height: 300px; order: 1; }
  .prose { padding: 28px 20px 44px; }
  .prose h2 { font-size: 23px; margin-top: 44px; }
  .prose p, .prose li { font-size: 16.5px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px; }
  .render { margin-left: -8px; margin-right: -8px; }
  .home-blog, .more { padding: 16px; }
  .post-grid, .home-blog .post-grid, .post-grid-index { grid-template-columns: 1fr; }
  .post-grid .post-card:first-child { grid-column: auto; }
  .post-grid .post-card:first-child .cover { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .blog-head { padding: 36px 20px 28px; }
}
