:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --card: #fafafa;
  --rule: #d2d2d7;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-rule: rgba(0, 0, 0, 0.08);
  --chip-rule: rgba(0, 0, 0, 0.22);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #86868b;
    --link: #2997ff;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --bg: #000;
    --bg-alt: #101010;
    --card: #1d1d1f;
    --rule: #424245;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --nav-rule: rgba(255, 255, 255, 0.12);
    --chip-rule: rgba(255, 255, 255, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.wrap {
  width: min(1024px, calc(100% - 48px));
  margin: 0 auto;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-rule);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 44px;
}

nav .mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

nav .mark img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

nav ul::-webkit-scrollbar {
  display: none;
}

nav ul a {
  font-size: 12px;
  color: var(--text);
  opacity: 0.82;
  white-space: nowrap;
}

nav ul a:hover {
  opacity: 1;
  text-decoration: none;
}

.hero {
  padding: 72px 0 8px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

section {
  padding: 56px 0 0;
}

.section-head {
  padding-bottom: 24px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.section-head p {
  margin-top: 6px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.join {
  text-align: center;
  padding-bottom: 12px;
}

.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.cta-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.004em;
}

.card h3 a {
  color: var(--link);
}

.card .tagline {
  font-size: 14px;
  line-height: 1.42;
  color: var(--muted);
  flex: 1;
}

.card .platform {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.product {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 60px;
}

.product:first-of-type {
  border-top: 0;
}

.product .art img {
  width: 168px;
  height: 168px;
  border-radius: 37px;
}

.product h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.product .tagline {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--muted);
  max-width: 560px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chips a {
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border: 1px solid var(--chip-rule);
  border-radius: 980px;
  color: var(--text);
}

.chips a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.chips a.store {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chips a.store:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.footnote {
  margin-top: 22px;
  max-width: 660px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
}

footer {
  margin-top: 64px;
  background: var(--bg-alt);
  padding: 40px 0 48px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}

.foot-cols h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.foot-cols a {
  color: var(--muted);
}

.foot-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product .art img {
    width: 120px;
    height: 120px;
    border-radius: 27px;
  }
}

/* Discord mark beside the wordmark: sized against the heading it sits in. */
.badge {
  display: inline-block;
  vertical-align: 0.04em;
  width: 0.44em;
  height: 0.44em;
  margin-left: 0.2em;
  color: var(--muted);
}

.badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.badge:hover {
  color: #5865f2;
  text-decoration: none;
}

nav ul a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

/* ---------------------------------------------------------------- app pages */
.app-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 40px;
}

.app-art img {
  width: 168px;
  height: 168px;
  border-radius: 37px;
}

.app-intro h1 {
  margin-top: 4px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.lede {
  margin-top: 10px;
  max-width: 560px;
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--muted);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
}

.get-meta {
  font-size: 12px;
  color: var(--muted);
}

.chips--sub {
  margin-top: 16px;
}

.chips--sub a {
  padding: 8px 14px;
  font-size: 13px;
}

.chips .status {
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border: 1px dashed var(--chip-rule);
  border-radius: 980px;
  color: var(--muted);
}

.chips--sub .status {
  padding: 8px 14px;
  font-size: 13px;
}

.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0;
  padding: 20px 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.stats li {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  padding: 0 10px;
  border-left: 1px solid var(--rule);
}

.stats li:first-child {
  border-left: 0;
}

.stat-v {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stat-u {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.stat-l {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-h {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.shots {
  display: flex;
  gap: 16px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.shots img {
  flex: 0 0 auto;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg-alt);
  scroll-snap-align: start;
}

.shots--landscape img {
  width: min(760px, 86vw);
}

.shots--portrait img {
  width: min(272px, 58vw);
}

.prose {
  max-width: 720px;
  /* App Store copy and policy text carry bare URLs; never let them push the page wide. */
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 14px;
}

.prose h2 {
  margin-top: 34px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.prose h3 {
  margin-top: 30px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p {
  line-height: 1.5;
}

/* Bare URLs used as link text sit in grid list items, where break-word alone
   still leaves a wide min-content floor. */
.prose a {
  overflow-wrap: anywhere;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.prose ul.feat {
  padding-left: 0;
  list-style: none;
}

.prose ul.feat b {
  font-weight: 600;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.ver-line {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* What the app does not do — the substantive half of Legal & Licenses. */
.legal-note {
  max-width: 660px;
  font-size: 15px;
  line-height: 1.47;
}

.legal-sub {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-sub + .chips {
  margin-top: 12px;
}

.info {
  display: grid;
  max-width: 720px;
  margin: 0;
}

.info > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.info > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.info dt {
  color: var(--muted);
}

.info dd {
  margin: 0;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-grid a {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  color: var(--text);
}

.more-grid a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.more-grid img {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.mg-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mg-plat {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

/* ------------------------------------------------- privacy / support pages */
.doc.wrap {
  width: min(760px, calc(100% - 48px));
  padding-bottom: 24px;
}

.crumb {
  padding-top: 30px;
  font-size: 14px;
}

.crumb a {
  color: var(--muted);
}

.doc h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.doc-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.doc .prose {
  max-width: none;
  margin-top: 28px;
}

.doc-rule {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.doc-tail {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------- home page cards */
.product h2 a {
  color: var(--text);
}

.product h2 a:hover {
  color: var(--link);
  text-decoration: none;
}

.product .learn {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .app-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 0 32px;
  }

  .app-art img {
    width: 120px;
    height: 120px;
    border-radius: 27px;
  }
}

@media (max-width: 700px) {
  .stats {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 0;
  }

  .stats li {
    padding: 0 6px;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .doc.wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 48px;
  }

  .card {
    flex-basis: 240px;
  }

  .info > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
