/* Subpages: support, guides, legal. Shares the home page's bar, footer and colours. */
/* A soft orange glow in the top-right corner, painted inside a screen-sized layer (no box hangs off
   the edge of the screen, so phones never zoom out to fit it). */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(min(900px, 130vw) circle at 88% 4%, rgba(255, 122, 26, 0.16), transparent 60%);
  background-size: 130% 130%;
  background-position: 100% 0%;
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  to {
    background-position: 40% 60%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-glow {
    animation: none;
  }
}
.doc-page {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 150px var(--pad) 90px;
}
.doc-hero {
  margin-bottom: 50px;
}
.doc-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.doc-hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
  padding-right: 0.06em;
}
.doc-hero .lead a,
.doc-block a,
.doc-split a {
  color: var(--accent);
}
.doc-page h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.doc-page h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.doc-block {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
/* Changelog: the release date beside each version. */
.doc-date {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: middle;
}
.doc-block[id] {
  scroll-margin-top: 96px;
}
.doc-block p,
.doc-split p,
.doc-steps p {
  color: var(--muted);
}
.doc-page b {
  color: var(--fg);
}
.doc-page code {
  font: 500 0.88em 'Geist Mono', monospace;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--fg);
}
.doc-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.doc-list li {
  position: relative;
  padding-left: 24px;
}
.doc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}
.doc-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 25, 0.82);
  text-decoration: none;
  transition: border-color 250ms, transform 400ms var(--ease);
}
.doc-card:hover {
  border-color: rgba(255, 122, 26, 0.5);
  transform: translateY(-4px);
}
.doc-card b {
  font-size: 18px;
}
.doc-card span:last-child {
  color: var(--muted);
  font-size: 15px;
}
.dc-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 26, 0.13);
  border: 1px solid rgba(255, 122, 26, 0.35);
  color: var(--accent);
  font-weight: 700;
}
.doc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.doc-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: st;
  display: grid;
  gap: 14px;
}
.doc-steps li {
  position: relative;
  padding: 26px 26px 26px 84px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 25, 0.82);
  counter-increment: st;
}
.doc-steps li::before {
  content: counter(st);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.doc-steps h3 {
  margin-top: 6px;
}
.doc-steps .store-badge {
  margin-top: 6px;
}
.doc-dl {
  margin: 0;
  display: grid;
  gap: 0;
}
.doc-dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.doc-dl dt {
  color: var(--muted);
}
.doc-dl dd {
  margin: 0;
  text-align: right;
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.doc-toc a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms, border-color 200ms;
}
.doc-toc a:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.doc-faq {
  max-width: none;
}
/* Entrances (page.js adds .in as each block arrives) */
.subpage .doc-hero > *,
.subpage .doc-block,
.subpage .doc-card,
.subpage .doc-steps li,
.subpage .doc-split,
.subpage .doc-faq details {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease), filter 900ms var(--ease);
}
.subpage .in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
@media (max-width: 760px) {
  .doc-cards,
  .doc-split {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subpage .doc-hero > *,
  .subpage .doc-block,
  .subpage .doc-card,
  .subpage .doc-steps li,
  .subpage .doc-split,
  .subpage .doc-faq details {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
