/* The hidden attribute always hides, even on elements whose class sets a display (buttons, flex rows). */
[hidden] { display: none !important; }

/* Velum Studio launch pages: home, download, guides.
   The coming-soon page's language carried into a full site: the silk ground,
   gold, the wordmark, a few motes of gold dust. Inter (bundled, OFL) for
   type, as in the app. No frameworks; one stylesheet. */

@font-face {
  font-family: "Inter";
  src: url(fonts/InterVariable-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #070506;
  --ink-2: #0d0a0b;
  --ink-3: #15100f;
  --cream: #f4e9d8;
  --text: #efe6d8;
  --muted: rgba(244, 233, 216, .70);
  --faint: rgba(244, 233, 216, .52);
  --rule: rgba(244, 233, 216, .12);
  --rule-strong: rgba(244, 233, 216, .22);
  --gold: #d4af37;
  --gold-soft: #e6c48a;
  --gold-hi: #f6e3b4;
  --rose: #f2c7cf;
  --panel: rgba(20, 15, 15, .62);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --max: 1180px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold-soft); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.16em; }
.icon svg { width: 100%; height: 100%; display: block; }

/* ---- the bar ---------------------------------------------------------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 6, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.bar .home { display: block; line-height: 0; margin-right: auto; }
.bar .home img { height: 22px; width: auto; }
.bar nav { display: flex; align-items: center; gap: 6px; }
.bar nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--cream); background: rgba(244, 233, 216, .07); }
.bar nav a.cta { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-soft)); font-weight: 650; }
.bar nav a.cta:hover { color: var(--ink); filter: brightness(1.06); }

/* ---- admin link (shown in the nav only for admins; added by auth.js) ----- */
.bar nav a.admin-link { color: var(--gold, #d4af37); font-weight: 600; }
.bar nav a.admin-link:hover { color: var(--cream); background: rgba(212, 175, 55, .12); }
.bar nav a.admin-link[aria-current="page"] { color: var(--cream); background: rgba(212, 175, 55, .12); }

/* ---- account chip (signed-in avatar + name in the nav) ------------------ */
.bar nav a.acct-chip { display: inline-flex; align-items: center; gap: 0; }
.bar nav a.acct-chip.signed-in {
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line, #342a2d);
  border-radius: 999px;
}
.bar nav a.acct-chip.signed-in:hover { background: rgba(244, 233, 216, .07); color: var(--cream); }
.acct-chip-avatar {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--ink, #070506);
}
.acct-chip-avatar.letter { background: linear-gradient(135deg, #f4d479, var(--gold, #d4af37) 60%, #b4902a); }
.acct-chip-name { font-size: 14px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), filter .2s, background .2s, border-color .2s;
}
.btn.primary {
  color: #1b1206;
  background: linear-gradient(180deg, #fbefcf 0%, #e9c77a 55%, #c99a45 100%);
  box-shadow: 0 10px 40px -12px rgba(233, 199, 122, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn.primary:hover { color: #1b1206; filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { color: var(--cream); border-color: var(--rule-strong); background: rgba(244, 233, 216, .04); }
.btn.ghost:hover { color: var(--cream); border-color: rgba(244, 233, 216, .4); background: rgba(244, 233, 216, .08); }
.btn[aria-disabled="true"] { color: var(--faint); border-color: var(--rule); background: transparent; box-shadow: none; cursor: default; }

/* ---- the silk ground (hero) ------------------------------------------------ */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.silk, .silk::before, .silk::after, .hero .sheen, .hero .vignette, .hero .motes { position: absolute; inset: 0; pointer-events: none; }
.silk { z-index: -3; overflow: hidden; opacity: 0; animation: fade-in 2.2s var(--ease) .05s forwards; }
.silk::before, .silk::after {
  content: ""; inset: -6%;
  background-image: url(img/ground-2560.webp);
  background-image: image-set(url(img/ground-2560.avif) type("image/avif"), url(img/ground-2560.webp) type("image/webp"));
  background-size: cover; background-position: center 62%;
  will-change: transform;
}
.silk::before { animation: drift-a 42s ease-in-out infinite alternate; }
.silk::after { mix-blend-mode: screen; opacity: .3; filter: blur(3px) brightness(1.35) saturate(1.15); animation: drift-b 33s ease-in-out infinite alternate; }
@media (max-width: 1500px) {
  .silk::before, .silk::after {
    background-image: url(img/ground-1440.webp);
    background-image: image-set(url(img/ground-1440.avif) type("image/avif"), url(img/ground-1440.webp) type("image/webp"));
  }
}
.hero .sheen {
  z-index: -2;
  background:
    radial-gradient(38% 30% at var(--x, 20%) var(--y, 70%), rgba(255, 214, 160, .18), transparent 70%),
    radial-gradient(30% 24% at calc(100% - var(--x, 20%)) calc(var(--y, 70%) - 8%), rgba(214, 150, 190, .10), transparent 70%);
  mix-blend-mode: screen;
  animation: light 26s ease-in-out infinite alternate;
}
@property --x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --y { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
.hero .vignette {
  z-index: -1;
  background:
    radial-gradient(80% 70% at 50% 35%, transparent 30%, rgba(7, 5, 6, .55) 78%, rgba(7, 5, 6, .95) 100%),
    linear-gradient(to bottom, rgba(7, 5, 6, .5), transparent 18%, transparent 62%, var(--ink) 100%);
}
.hero .motes { z-index: -1; }
.motes span {
  position: absolute; bottom: -2vh; left: var(--l); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 170, .95), rgba(255, 200, 120, 0) 70%);
  opacity: 0; animation: rise var(--d) linear var(--w) infinite;
}

/* ---- home: hero ------------------------------------------------------------ */

.hero-home { padding: clamp(56px, 10vh, 120px) 0 0; text-align: center; }
.hero-home h1 { margin: 0 auto; width: min(86vw, 860px); line-height: 0; }
.hero-home h1 img { width: 100%; height: auto; opacity: 0; animation: rise-in 2s var(--ease) .3s forwards; }
.hero-home .tagline { width: min(80vw, 600px); margin: clamp(14px, 2.4vh, 26px) auto 0; opacity: 0; animation: rise-in 1.8s var(--ease) .9s forwards; }
.hero-home .lede {
  max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55;
  opacity: 0; animation: rise-in 1.6s var(--ease) 1.2s forwards;
}
.hero-home .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; opacity: 0; animation: rise-in 1.6s var(--ease) 1.4s forwards; }
.hero-home .platforms { margin-top: 16px; color: var(--muted); font-size: 14px; opacity: 0; animation: fade-in 1.6s var(--ease) 1.7s forwards; }

.showcase { position: relative; margin: clamp(48px, 8vh, 84px) auto 0; width: min(100% - 32px, 1320px); opacity: 0; animation: rise-in 2s var(--ease) 1.5s forwards; }
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(246, 227, 180, .22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(233, 199, 122, .35);
  background: #0b0b0d;
}
.window img { width: 100%; }
.window.light { background: #f3f3f5; }

/* Dark / light: two radios, no script. */
.themes { display: flex; justify-content: center; margin: 22px 0 0; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(244, 233, 216, .06); border: 1px solid var(--rule); }
.showcase > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
#t-dark:checked ~ .themes label[for="t-dark"], #t-light:checked ~ .themes label[for="t-light"] { background: rgba(244, 233, 216, .14); color: var(--cream); }
#t-dark:focus-visible ~ .themes label[for="t-dark"], #t-light:focus-visible ~ .themes label[for="t-light"] { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.pair { display: grid; }
.pair > * { grid-area: 1 / 1; transition: opacity .5s var(--ease); }
.pair > .is-light { opacity: 0; visibility: hidden; }
.with-light:checked ~ .pair > .is-light { opacity: 1; visibility: visible; }
.with-light:checked ~ .pair > .is-dark { opacity: 0; visibility: hidden; }
.theme-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 12px; }

/* ---- sections ------------------------------------------------------------- */

section { position: relative; }
.band { padding: clamp(72px, 12vh, 140px) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h2.display { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0; color: var(--cream); }
.gold-text {
  background: linear-gradient(100deg, #fff4d6 0%, #e9c77a 40%, #f2c7cf 75%, #e9c77a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro { text-align: center; }
.intro p.big { max-width: 820px; margin: 22px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--muted); letter-spacing: -.01em; }
.onair p.big { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.intro p.big strong { color: var(--cream); font-weight: 600; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.feature .copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature .copy li { display: flex; gap: 12px; color: var(--text); font-size: 16px; line-height: 1.5; }
.feature .copy li .icon { color: var(--gold-soft); margin-top: 3px; }
.shot { margin: 0; }
.shot figcaption { color: var(--faint); font-size: 13px; margin-top: 12px; text-align: center; }
.shot + .shot { margin-top: 56px; }
.shot a { display: block; color: inherit; text-decoration: none; }
.stack { display: grid; gap: 18px; }
.stack.two { grid-template-columns: 1fr 1fr; align-items: start; }

.wide { margin-top: clamp(40px, 6vh, 64px); }

.canvas-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.canvas-row figure { margin: 0; }
.canvas-row img { border-radius: 12px; border: 1px solid var(--rule); }
.canvas-row figcaption { color: var(--faint); font-size: 13px; margin-top: 10px; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 14px; color: var(--text); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); background: rgba(244, 233, 216, .03); }

.grid-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.card {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; background: linear-gradient(180deg, rgba(244, 233, 216, .045), rgba(244, 233, 216, .015));
}
/* In the download/trust cards each card has a different amount of body text, so
   the buttons used to float at different heights across the row. Make the card
   a column and let the body paragraph take the slack so the download buttons
   line up along a common baseline across all three cards. */
.trust .card { display: flex; flex-direction: column; }
.trust .card > p { margin-top: 12px; }
.trust .card > p:first-of-type { flex: 1 1 auto; margin-top: 10px; }
.card h3 { margin: 14px 0 6px; font-size: 17px; letter-spacing: -.01em; color: var(--cream); }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card .icon { width: 26px; height: 26px; color: var(--gold-soft); }
/* Icons inside a gold (primary) button follow the button's dark text so they
   read with contrast instead of gold-on-gold. Header card icons stay gold. */
.btn.primary .icon { color: #1b1206; }

.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }

.closing { text-align: center; padding-bottom: clamp(90px, 14vh, 160px); }
.closing .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---- footer ----------------------------------------------------------------- */

.foot { border-top: 1px solid var(--rule); padding: 40px 0 34px; }
.foot .marks { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; }
.foot .marks a { opacity: .6; transition: opacity .3s; display: block; }
.foot .marks a:hover, .foot .marks a:focus-visible { opacity: 1; }
.foot .marks img { height: 20px; width: auto; }
.foot .marks .sep { width: 1px; height: 22px; background: rgba(244, 233, 216, .3); }
.foot .legal { text-align: center; margin-top: 18px; color: var(--faint); font-size: 13px; }
.foot .legal a { color: var(--muted); text-decoration: none; }
.foot .legal a:hover { color: var(--cream); }
.foot .made { text-align: center; color: var(--faint); font-size: 13px; margin-top: 8px; }
.foot .bridge { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.foot .bridge a { color: var(--gold-soft, #e7c968); text-decoration: none; }
.foot .bridge a:hover { color: var(--gold-hi, #f4d479); text-decoration: underline; }

/* ---- page heads (download, guides) ------------------------------------------- */

.hero-page { padding: clamp(56px, 10vh, 110px) 0 clamp(40px, 7vh, 72px); text-align: center; }
.hero-page h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.04em; line-height: 1.02; margin: 0; color: var(--cream); font-weight: 700; }
.hero-page p { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

/* ---- download ----------------------------------------------------------------- */

.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.platform {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rule); border-radius: 22px; padding: 28px;
  background: linear-gradient(180deg, rgba(20, 15, 15, .82), rgba(12, 9, 10, .82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.platform.mine { border-color: rgba(233, 199, 122, .55); box-shadow: 0 0 0 1px rgba(233, 199, 122, .25), 0 30px 80px -40px rgba(233, 199, 122, .5); }
.platform .os-mark { color: var(--cream); font-size: 34px; line-height: 1; }
.platform h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.02em; color: var(--cream); }
.platform .req { color: var(--faint); font-size: 14px; margin: 0; }
.platform .state { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }
.platform .meta { font-size: 13px; color: var(--faint); }
.platform .sha { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--faint); word-break: break-all; }
.platform .yours { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 650; color: var(--ink); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; display: none; }
.platform.mine .yours { display: inline-block; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; width: fit-content; }
.platform .also { font-size: 14px; color: var(--muted); }
.platform .also a { font-weight: 600; }
.notice { max-width: 760px; margin: 0 auto 34px; text-align: center; color: var(--muted); }
.notice strong { color: var(--cream); }
.notes { max-width: 760px; margin: 0 auto; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---- guides -------------------------------------------------------------------- */

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid a.card { display: block; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease), background .25s; }
.guide-grid a.card:hover { border-color: rgba(233, 199, 122, .45); transform: translateY(-2px); background: linear-gradient(180deg, rgba(244, 233, 216, .07), rgba(244, 233, 216, .02)); }
.guide-grid .card.soon { opacity: .75; }
.guide-group { margin-top: 48px; }
.guide-group > h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 650; margin: 0 0 16px; }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 6vh, 64px) 0 clamp(72px, 10vh, 120px); }
.doc aside { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.doc aside h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; font-weight: 650; }
.doc aside h2:first-child { margin-top: 0; }
.doc aside ul { list-style: none; margin: 0; padding: 0; }
.doc aside a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.doc aside a:hover { color: var(--cream); background: rgba(244, 233, 216, .05); }
.doc aside a[aria-current="page"] { color: var(--cream); background: rgba(233, 199, 122, .12); }
.doc details.toc { display: none; }

article { max-width: 760px; min-width: 0; }
article .crumbs { font-size: 14px; color: var(--faint); margin: 0 0 14px; }
article .crumbs a { color: var(--muted); text-decoration: none; }
article h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.035em; line-height: 1.06; margin: 0 0 14px; color: var(--cream); }
article .sum { font-size: 20px; color: var(--muted); margin: 0 0 30px; line-height: 1.5; }
article h2 { font-size: 25px; letter-spacing: -.02em; margin: 46px 0 12px; color: var(--cream); scroll-margin-top: 80px; }
article h3 { font-size: 19px; margin: 30px 0 8px; color: var(--cream); }
article p, article li { color: var(--text); }
article p { margin: 12px 0; }
article ol, article ul { padding-left: 24px; margin: 12px 0; }
article li { margin: 8px 0; }
article li::marker { color: var(--gold-soft); }
article strong { color: var(--cream); font-weight: 650; }
article code, article kbd {
  font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(244, 233, 216, .08); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; color: var(--cream);
}
article kbd { border-bottom-width: 2px; }
article :not(pre) > code { overflow-wrap: anywhere; }
article pre { max-width: 100%; }
article pre { background: #0f0b0c; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
article pre code { background: none; border: 0; padding: 0; }
article .ui { color: var(--cream); font-weight: 600; }
article figure { margin: 26px 0; }
article figure img { border-radius: 12px; border: 1px solid var(--rule); }
article figure.narrow img { max-width: min(100%, 560px); margin-inline: auto; }
article figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; text-align: center; }
article .tip, article .note {
  border: 1px solid var(--rule); border-left: 3px solid var(--gold-soft); border-radius: 10px; padding: 12px 16px; margin: 20px 0;
  background: rgba(233, 199, 122, .05); color: var(--text);
}
article .note { border-left-color: rgba(244, 233, 216, .45); background: rgba(244, 233, 216, .04); }
article .tip p, article .note p { margin: 4px 0; }
/* A new plugin (guides.py "new"): a small tag on its card, and one light
   line at the end of its guides. */
.badge.new { color: var(--gold-hi); border-color: rgba(233, 199, 122, .5); background: rgba(233, 199, 122, .08); font-size: 12px; padding: 2px 9px; letter-spacing: .02em; }
.guide-grid .card .badge.new { margin: 0 0 8px; }
article p.growing { color: var(--muted); font-size: 15px; margin: 32px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
/* What a plugin needs, at the top of its guide. */
article .needs { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 4px 16px 8px; margin: 0 0 26px; background: rgba(244, 233, 216, .03); }
article .needs h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin: 12px 0 4px; }
article .needs ul { margin: 6px 0; }
article .table-scroll { overflow-x: auto; }
article .table-scroll table { min-width: 620px; }
article table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
article th, article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
article th { color: var(--cream); font-weight: 650; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: block; border: 1px solid var(--rule); border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--cream); }
.pager a span { display: block; font-size: 13px; color: var(--faint); }
.pager a.next { text-align: right; grid-column: 2; }
.pager a:hover { border-color: rgba(233, 199, 122, .45); }

/* ---- motion ---------------------------------------------------------------- */

@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes drift-a {
  from { transform: scale(1.04) translate3d(-1.2%, .6%, 0) rotate(-.4deg); }
  to { transform: scale(1.12) translate3d(1.4%, -1.2%, 0) rotate(.5deg); }
}
@keyframes drift-b {
  from { transform: scale(1.14) translate3d(1.6%, -.4%, 0) rotate(.6deg); }
  to { transform: scale(1.06) translate3d(-1.8%, 1.4%, 0) rotate(-.5deg); }
}
@keyframes light { 0% { --x: 14%; --y: 78%; } 50% { --x: 46%; --y: 64%; } 100% { --x: 82%; --y: 74%; } }
@keyframes rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: var(--o); } 85% { opacity: var(--o); }
  100% { opacity: 0; transform: translate3d(var(--dx), -104vh, 0); }
}

/* Revealed as they scroll in (launch.js adds .in); visible without script. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .silk, .hero-home h1 img, .hero-home .tagline, .hero-home .lede, .hero-home .ctas, .hero-home .platforms, .showcase { opacity: 1; }
  .silk::before, .silk::after { transform: scale(1.06); }
  .motes { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- smaller screens ------------------------------------------------------- */

@media (max-width: 980px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .grid-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-grid, .trust, .privacy, .guide-grid { grid-template-columns: 1fr; }
  .canvas-row { grid-template-columns: 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc aside { display: none; }
  .doc details.toc { display: block; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin-bottom: 26px; }
  .doc details.toc summary { cursor: pointer; color: var(--cream); font-weight: 600; }
  .doc details.toc ul { list-style: none; padding: 6px 0 0; margin: 0; }
  .doc details.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
  .doc details.toc a[aria-current="page"] { color: var(--gold-soft); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar .wrap { gap: 10px; }
  .bar .home img { height: 18px; }
  .bar nav a { padding: 7px 9px; font-size: 14px; }
  .bar nav a.hide-s { display: none; }
  .stack.two { grid-template-columns: 1fr; }
  .grid-more { grid-template-columns: 1fr; }
  .foot .marks .sep { display: none; }
  .foot .marks img { height: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; }
  article .sum { font-size: 18px; }
  article table { font-size: 14px; }
}

/* A tall popup (the transition picker) beside its copy. */
.shot.picker { justify-self: center; width: min(100%, 320px); }

/* A dialog shown at a readable size, not stretched to the column. */
.shot.dialog { max-width: 820px; margin-inline: auto; }
