/* Neptunion's pages that are read rather than flown through: the docs, install,
   extensions, AI agents, alternatives, licence and numbers, and the two link
   pages (/j, /m). On top of neptunion.css. The sky stands behind the first
   screen only (.band, drawn by neptunion.js) and fades into the night before
   the reading starts: long text is never set over the planet. */

ol { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- the first screen */
.band {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; overflow: hidden;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(#000 38%, rgba(0, 0, 0, .55) 68%, transparent 97%);
  mask-image: linear-gradient(#000 38%, rgba(0, 0, 0, .55) 68%, transparent 97%);
}
.band #sky { position: absolute; }
.lead { position: relative; display: flex; align-items: flex-end; overflow-x: clip; min-height: 72vh; min-height: 72svh; padding: calc(var(--bar-h) + 72px) var(--gut) clamp(44px, 8vh, 88px); }
.lead .col { width: min(100%, 660px); }
.lead .say { margin-top: 22px; }
.lead .fine.tag { margin-bottom: 18px; }
.lead.short { min-height: 56vh; min-height: 56svh; }

/* ---------------------------------------------------------------- reading */
/* Under the first screen's words and in line with them, as every part of
   the landing stands at the left gutter. */
.page { position: relative; z-index: 1; max-width: 760px; padding: 0 var(--gut); box-sizing: content-box; }
.page.wide { max-width: 1296px; }
.page h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; scroll-margin-top: calc(var(--bar-h) + 24px); }
.page p, .page li { color: var(--soft); }
.page b, .page strong { color: var(--ink); font-weight: 600; }
.page a:not(.key) { color: var(--ink); text-decoration-color: rgba(106, 157, 244, .7); }
.page a:not(.key):hover { text-decoration-color: var(--blue); }
.page code, .page kbd {
  font: 400 .84em/1 var(--mono); color: var(--ink); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); border-radius: 4px; padding: .18em .4em;
}
.block { margin-top: clamp(72px, 9vw, 120px); }
.block > p { margin-top: 14px; max-width: 62ch; }
.block > p + p { margin-top: 12px; }
.list { margin-top: 18px; }
.list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 6px; height: 6px; background: var(--blue); }
.end { padding-bottom: clamp(150px, 16vw, 220px); }

/* A choice between guides (Mac / Windows, one agent or another). */
.pick { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-top: 34px; padding: 3px; border: 1px solid var(--line); background: rgba(0, 0, 0, .55); }
.pick button {
  padding: 10px 16px; border: 0; background: transparent; color: var(--soft); cursor: pointer;
  font: 500 12.5px/1 var(--mono); transition: background .2s, color .2s;
}
.pick button:hover { color: var(--ink); }
.pick button[aria-selected="true"] { background: var(--ink); color: #000; text-shadow: none; }
.guide[hidden] { display: none; }
.guide { padding-top: clamp(40px, 6vw, 72px); }
.guide > .intro { margin-top: 12px; font-size: 18px; color: var(--soft); max-width: 58ch; }

/* Steps, one after the other, each with its number on a line down the side. */
.steps { margin: 40px 0 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 46px 58px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; display: grid; place-items: center;
  font: 500 13px/1 var(--mono); color: var(--ink); border: 1px solid rgba(190, 210, 255, .3); background: #000;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 8px; width: 1px; background: var(--line); }
.steps h3 { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; }
.steps p { margin-top: 10px; }
.steps ul { margin-top: 10px; }
.steps ul li { position: relative; padding-left: 18px; margin-top: 6px; }
.steps ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; background: var(--dim); }
.guide .tip, .block .tip { font-size: 15px; color: var(--dim) !important; }
.aside { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.aside h4 { font: 560 17px/1.35 var(--sans); }
.aside p { margin-top: 8px; font-size: 16px; }

/* A command to copy. */
.cmd { position: relative; margin-top: 14px; }
.cmd pre {
  margin: 0; padding: 16px 90px 16px 18px; overflow-x: auto; white-space: pre;
  background: #0c0c0e; border: 1px solid var(--line); color: #e6ebfa; font: 400 12.5px/1.75 var(--mono);
}
.cmd button {
  position: absolute; top: 9px; right: 9px; padding: 7px 11px; border: 1px solid var(--line); background: #000;
  color: var(--soft); font: 500 11.5px/1 var(--mono); cursor: pointer;
}
.cmd button:hover { color: var(--ink); border-color: rgba(190, 210, 255, .34); }
.cmd button.done { color: var(--blue); }
.page .key { margin-top: 14px; }

/* ---------------------------------------------------------------- the docs: one long read */
.doc { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); padding: 0 var(--gut); }
.post { grid-column: 2; min-width: 0; padding-bottom: clamp(150px, 16vw, 220px); }
.post > p.byline { margin: 0; font: 400 12.5px/1.6 var(--mono); color: var(--dim); }
.post > p { margin-top: 1.25em; font-size: clamp(17.5px, 1.3vw, 19.5px); line-height: 1.76; color: #d2d8ea; text-wrap: pretty; overflow-wrap: break-word; }
.post > p.first { margin-top: 30px; font-size: clamp(20px, 1.65vw, 23.5px); line-height: 1.62; color: var(--ink); }
.post > h2 { margin-top: clamp(68px, 8vw, 104px); font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; letter-spacing: -.03em; scroll-margin-top: calc(var(--bar-h) + 28px); }
.post > h2 + p { margin-top: 20px; }
.post a:not(.key) { color: var(--ink); text-decoration-color: rgba(106, 157, 244, .7); }
.post a:not(.key):hover { text-decoration-color: var(--blue); }
.sign { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.sign p { color: var(--soft); }
.sign .key { margin-top: 24px; }
/* The sections down the side while one is read; only where the window has room. */
.rail { grid-column: 1; justify-self: end; width: 220px; }
.rail ol { position: sticky; top: calc(var(--bar-h) + 40px); counter-reset: r; }
.rail li a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--dim); text-decoration: none; font: 400 12px/1.45 var(--mono); transition: color .2s, border-color .2s; }
.rail li a:hover { color: var(--soft); }
.rail li a[aria-current] { color: var(--ink); border-left-color: var(--blue); }
.progress { position: fixed; z-index: 11; top: var(--bar-h); left: 0; right: 0; height: 1px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* Without room for the contents beside it, the article stands under the
   first screen's words, as every other page's reading does. */
@media (max-width: 1180px) {
  .doc { display: block; }
  .post { max-width: 700px; }
  .rail { display: none; }
}

/* ---------------------------------------------------------------- the licence */
.lic-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: start; column-gap: clamp(40px, 5vw, 88px); padding: 0 var(--gut) clamp(150px, 16vw, 220px); }
.lic-toc ol { position: sticky; top: calc(var(--bar-h) + 40px); counter-reset: t; max-height: calc(100vh - var(--bar-h) - 80px); overflow-y: auto; }
.lic-toc li a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--dim); text-decoration: none; font: 400 12px/1.45 var(--mono); }
.lic-toc li a:hover { color: var(--soft); }
.lic-toc li a[aria-current] { color: var(--ink); border-left-color: var(--blue); }
.lic h2 { margin-top: 56px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: calc(var(--bar-h) + 24px); }
.lic h2:first-child { margin-top: 0; }
.lic h3 { margin-top: 26px; font-size: 19px; }
.lic p, .lic li { margin-top: 12px; font-size: 16.5px; line-height: 1.72; color: #d2d8ea; }
.lic ul, .lic ol { margin-top: 12px; }
.lic li { position: relative; margin-top: 8px; padding-left: 20px; }
.lic ul > li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 5px; height: 5px; background: var(--blue); }
.lic ol { counter-reset: n; }
.lic ol > li { counter-increment: n; }
.lic ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--dim); font: 400 13px/1.9 var(--mono); }
.lic b { color: var(--ink); font-weight: 600; }
.lic a { color: var(--ink); text-decoration-color: rgba(106, 157, 244, .7); }
.lic code { font: 400 .86em var(--mono); }
@media (max-width: 980px) {
  .lic-wrap { grid-template-columns: minmax(0, 720px); }
  .lic-toc { display: none; }
}

/* ---------------------------------------------------------------- the extensions, as the Store shows them */
.store { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.x { display: flex; }
.tile { flex: 1; width: 100%;
  display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: 14px; text-align: left; cursor: pointer;
  background: #0c0c0e; border: 1px solid var(--line); color: var(--ink); font: inherit;
  transition: transform .35s var(--ease), border-color .3s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: rgba(200, 220, 255, .34); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tile-t { padding: 14px 16px 16px; }
.tile-t b { display: flex; align-items: center; gap: 8px; font: 560 17px/1.2 var(--sans); font-stretch: 104%; letter-spacing: -.015em; }
.tile-t .x-tag { display: block; margin-top: 5px; font-size: 14px; line-height: 1.42; color: var(--soft); }
.beta { padding: 3px 6px 2px; border: 1px solid var(--line); color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: .02em; }
/* An extension with no picture of its own yet: its glyph on the stage, as the Store does. */
.lone { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 80% at 50% 50%, rgba(106, 157, 244, .16), transparent 70%); }
.lone svg { width: 56px; height: 56px; color: #b9cdf7; }
.xd .lone svg { width: 96px; height: 96px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; position: absolute; left: 0; right: 0; bottom: 9%; font: 400 11px/1.3 var(--mono); color: var(--dim); }
.flow i { font-style: normal; color: var(--blue); }
.store-more { margin-top: 56px; max-width: 62ch; }
.store-more p + p { margin-top: 12px; }

/* One extension, opened: its picture playing, what it does and how to use it. */
.xd { width: min(100% - 32px, 980px); max-height: min(100% - 32px, 900px); padding: 0; border: 1px solid rgba(190, 210, 255, .18); border-radius: 16px; background: #08080a; color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .8); overflow: hidden; }
.xd::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xd[open] { display: flex; flex-direction: column; animation: xd-in .35s var(--ease); }
@keyframes xd-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.xd-scroll { overflow-y: auto; overscroll-behavior: contain; }
.xd-stage { position: relative; min-height: 220px; padding: 34px 24px 26px; background: radial-gradient(70% 90% at 50% 40%, rgba(106, 157, 244, .14), transparent 72%), #0c0c0e; border-bottom: 1px solid var(--line); container-type: inline-size; }
.xd-stage .vxs { width: min(100%, 720px); margin: 0 auto; }
.xd-stage .lone { position: relative; height: 220px; }
.xd-body { padding: 28px clamp(20px, 3.4vw, 40px) 30px; }
.xd-body h2 { font-size: clamp(30px, 3.2vw, 44px); }
.xd-tag { margin-top: 8px; font-size: 18px; color: var(--soft); }
.xd-meta { margin-top: 10px; }
.xd-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px clamp(24px, 3vw, 44px); margin-top: 28px; }
.xd-cols h3 { font: 500 12px/1 var(--mono); color: var(--dim); }
.xd-cols ul, .xd-cols ol { margin-top: 12px; }
.xd-cols li { position: relative; margin-top: 10px; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.xd-cols ul li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 5px; height: 5px; background: var(--blue); }
.xd-cols ol { counter-reset: n; }
.xd-cols ol li { counter-increment: n; padding-left: 26px; }
.xd-cols ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; color: var(--dim); font: 500 12px/1.6 var(--mono); }
.xd-cols b { color: var(--ink); font-weight: 600; }
.xd kbd { font: 400 12px/1 var(--mono); padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.xd details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.xd summary { cursor: pointer; font: 500 12px/1.6 var(--mono); color: var(--soft); }
.xd details p { margin-top: 10px; max-width: 70ch; font-size: 15px; color: var(--soft); }
.xd-foot { display: flex; align-items: center; gap: 10px; padding: 12px clamp(20px, 3.4vw, 40px); border-top: 1px solid var(--line); background: #08080a; }
.xd-foot .fine { margin-right: auto; }
.xd-step, .xd-x { white-space: nowrap; padding: 9px 13px; border: 1px solid var(--line); background: #000; color: var(--soft); font: 500 12px/1 var(--mono); cursor: pointer; }
.xd-step:hover, .xd-x:hover { color: var(--ink); border-color: rgba(190, 210, 255, .34); }
.xd-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 720px) {
  .xd-cols { grid-template-columns: minmax(0, 1fr); }
  .xd-step .far { display: none; }
}

/* ---------------------------------------------------------------- side by side with the apps you know */
.vs { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.vs article { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--line); }
.vs article:nth-child(even) { padding: 30px 0 34px 30px; border-left: 1px solid var(--line); }
.vs h2 { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.12; }
.vs h2 span { display: block; color: var(--dim); }
.vs p { margin-top: 14px; max-width: 46ch; }
.asks { width: auto; margin: 26px 0 0; }
.asks details { background: none; }
.asks details p { color: var(--soft); }
@media (max-width: 760px) {
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs article, .vs article:nth-child(even) { padding: 26px 0 28px; border-left: 0; }
}

/* ---------------------------------------------------------------- an invite's page (/j, /m) */
.invite .col { width: min(100%, 640px); }
.invite h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.invite .acts { margin-top: 34px; }
.invite .hint { margin-top: 18px; max-width: 46ch; color: var(--soft); }
.invite .get { margin-top: 22px; }
.invite .get .req { margin-top: 14px; }
.invite .get .first { margin-top: 2px; }
.after { max-width: 640px; }
.after .steps { margin-top: 0; }
.after .quiet { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- a phone (2026-11-16)
   The first screen's words under the planet, which has the top third
   (neptunion.js NARROW); steps closer to the edge; a command wrapped under
   its Copy button rather than running beneath it; the choices of a guide
   filling their rows instead of leaving a ragged one. */
@media (max-width: 760px) {
  .lead, .lead.short { min-height: 0; padding-top: calc(var(--bar-h) + 30vh); padding-top: calc(var(--bar-h) + 30svh); padding-bottom: 48px; }
  .steps { margin-top: 32px; }
  .steps > li { padding: 0 0 40px 44px; }
  .steps > li::before { width: 28px; height: 28px; font-size: 12px; }
  .steps > li:not(:last-child)::after { left: 14px; top: 34px; }
  .cmd pre { padding: 44px 16px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
  .pick { display: flex; }
  .pick button { flex: 1 1 auto; padding: 12px 14px; }
  .aside { padding: 16px; }
  .invite .acts { margin-top: 26px; }
  /* A broken link's page is its first screen alone: room for the footer's fade. */
  .lead.invite { padding-bottom: 130px; }
}

/* A download block under a page's own words (get.js). */
.block .get { margin-top: 30px; }
.block .get .req { margin-top: 18px; }
.block .get .first { margin-top: 2px; }
