*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}

:root {
  --bg: rgb(10, 10, 13);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-soft: rgba(255, 255, 255, 0.72);
  --pill-fill: rgba(255, 255, 255, 0.12);
  --pill-stroke: rgba(255, 255, 255, 0.38);
  --hazard: rgb(242, 66, 61);
  --hazard-fill: rgba(242, 66, 61, 0.06);
  --pill-radius: 22px;
  --pad-x: max(1.25rem, env(safe-area-inset-left));
  --pad-r: max(1.25rem, env(safe-area-inset-right));
  --pad-b: max(1rem, env(safe-area-inset-bottom));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ——— One-screen landing (no scroll) ——— */
body.landing {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.landing-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  padding-left: var(--pad-x);
  padding-right: var(--pad-r);
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vh, 1rem);
  width: 100%;
}

.landing-logo {
  font-size: clamp(36px, 12vw, 46px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
  text-decoration: none;
}

.landing-tag {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.landing-orb {
  width: clamp(48px, 14vw, 64px);
  height: clamp(48px, 14vw, 64px);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--hazard-fill);
  box-shadow:
    inset 0 0 0 2px var(--hazard),
    0 0 28px rgba(242, 66, 61, 0.22);
}

.landing-store {
  display: block;
  line-height: 0;
}
.landing-store img {
  height: clamp(38px, 10vw, 44px);
  width: auto;
  vertical-align: middle;
}
.landing-store:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 4px;
  border-radius: 6px;
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
  margin-top: 0.25rem;
}
.landing-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-soft);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.landing-nav a:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 3px;
}

.landing-copy {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.55;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

.wrap {
  max-width: 28rem;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-r);
  padding-bottom: var(--pad-b);
}

.wrap.doc-page {
  max-width: 36rem;
}

header {
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

header.doc-head {
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
  text-decoration: none;
}

.logo.sm {
  font-size: 28px;
  letter-spacing: 3px;
}

.nav-back {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-soft);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-back:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 3px;
}

main { padding-top: 0.25rem; }

.doc-main {
  padding-top: 0;
}

.doc-title {
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.last-updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.prose {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

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

.prose strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.support-card {
  padding: 1rem 1.1rem;
  border-radius: var(--pill-radius);
  background: var(--pill-fill);
  box-shadow: inset 0 0 0 1.5px var(--pill-stroke);
  margin-bottom: 1.25rem;
}

.support-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.support-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.support-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--muted);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer a:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 3px;
}

.copyright {
  opacity: 0.75;
}
