/* BAGHOLDER — shared site styles: every page (tokens, type, top bar, nav,
   footer, buttons) plus the article layout for the legal and help pages.
   Inter is served from this site (SIL OFL 1.1, /fonts/OFL.txt), so a
   visitor's browser never contacts a font service. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Inter-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Inter-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Inter-Bold.ttf') format('truetype'); }

:root {
  --bg: #0F0F14;
  --bg-2: #13131A;
  --surface: #1A1A24;
  --surface-2: #20202C;
  --text: #F0F0F5;
  --muted: #9A9AAB;
  --faint: #6C6C7E;
  --accent: #00DC82;
  --accent-ink: #04140C;
  --accent-soft: rgba(0, 220, 130, 0.12);
  --line: #262633;
  --line-2: #33334A;
  --red: #FF4D4D;
  --amber: #FFB547;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); letter-spacing: 0; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* — Top bar — */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px var(--gutter);
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  text-align: center;
}
.topbar-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); flex: none;
}
.topbar-sep { color: var(--faint); margin: 0 2px; }

/* — Nav — */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 15, 20, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.06em; font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: none; list-style: none; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; }

.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px;
  display: grid; place-content: center; gap: 5px;
  border: 1px solid var(--line-2); border-radius: 10px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease); }
.nav-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-menu ul {
  position: absolute; right: 0; top: 50px; min-width: 220px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.nav-menu li a { display: block; padding: 10px 12px; color: var(--text); border-radius: 8px; font-size: 15px; }
.nav-menu li a:hover { background: var(--surface-2); text-decoration: none; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 10px; }
  .nav-menu { display: none; }
}

/* — Buttons & links — */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: 10px; padding: 12px 20px; font-size: 15px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 220, 130, .25); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 500; font-size: 15px; margin-top: 18px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }


/* — Footer — */
.footer { padding: 56px 0 40px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 36px; margin-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--faint); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 820px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}


.nav-links a[aria-current="page"] { color: var(--text); }
.nav-menu a[aria-current="page"] { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* — Article pages (legal, help, policy) — */
.article {
  position: relative; padding: 56px 0 96px;
  border-bottom: 1px solid var(--line);
}
.article::before { /* the blueprint grid, faded, behind the title only */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 360px; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 10%, transparent 70%);
}
.article-inner { position: relative; display: grid; gap: 32px; }
.article .container { max-width: 72ch; padding: 0; margin: 0; min-width: 0; }

.doc-kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.doc-kicker .mono {
  color: var(--accent); font-size: 12px; font-weight: 500;
  border: 1px solid rgba(0, 220, 130, .35); border-radius: 6px; padding: 1px 7px;
}

.article h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 700; margin-bottom: 14px; text-wrap: balance;
}
.article h1 + p, .article .updated, .article .subtitle {
  color: var(--muted); font-size: 15px; margin-bottom: 36px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.article h1 + p strong { font-weight: 500; color: var(--muted); }
.article h2 {
  font-size: 22px; letter-spacing: -0.015em; line-height: 1.3; font-weight: 700;
  margin: 48px 0 14px; scroll-margin-top: 96px; position: relative;
}
.article h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; scroll-margin-top: 96px; position: relative; }
.article p, .article ul, .article ol { color: #C4C4D2; font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--text); font-weight: 600; }
.article a { overflow-wrap: anywhere; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article code { font-family: var(--mono); font-size: .9em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

.article table {
  display: block; width: 100%; overflow-x: auto; border-collapse: collapse;
  margin: 18px 0 24px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 12px;
}
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: #C4C4D2; min-width: 140px; }
.article th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; background: var(--bg-2); }
.article tr:last-child td { border-bottom: 0; }
.article .accent-cell { color: var(--accent); font-weight: 600; }

/* Heading anchors, added by site.js */
.anchor {
  position: absolute; left: -1.1em; top: 0; width: 1em; color: var(--faint);
  opacity: 0; text-decoration: none; font-weight: 400;
}
.article h2:hover .anchor, .article h3:hover .anchor, .anchor:focus { opacity: 1; text-decoration: none; }

/* On-this-page list, built by site.js from the h2s */
.toc { font-size: 14px; }
.toc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-weight: 600;
  background: var(--bg-2);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.toc[open] summary::after { content: "\2013"; }
.article .toc ol { list-style: none; padding: 10px 4px 0; margin: 0; max-height: 60vh; overflow: auto; font-size: 14px; line-height: 1.4; color: var(--muted); }
.article .toc li { margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 12px; color: var(--muted); border-left: 2px solid var(--line); line-height: 1.4; }
.toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--line-2); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.article .toc-label { display: none; }

@media (min-width: 1040px) {
  .article { padding: 80px 0 120px; }
  .article-inner.has-toc { grid-template-columns: 240px minmax(0, 72ch); gap: 72px; justify-content: center; }
  .article-inner:not(.has-toc) { justify-content: center; grid-template-columns: minmax(0, 72ch); }
  .toc-col { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-top: 6px; }
  .toc summary { display: none; }
  .article .toc-label { display: block; padding: 0; border: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; margin: 0 0 10px 14px; }
  .article .toc ol { max-height: none; padding-top: 0; }
}
@media (max-width: 1039px) {
  .toc-col { order: -1; }
}

/* Support page */
.contact-grid { display: grid; gap: 12px; margin-bottom: 56px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  padding: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), rgba(26, 26, 36, .55));
}
.contact-card h3 { margin: 0 0 6px; font-size: 16px; }
.contact-card p { font-size: 14.5px; margin-bottom: 8px; color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; font-weight: 500; font-size: 14px; }
.contact-card a { overflow-wrap: normal; word-break: normal; }
.article .faq > h2 { margin-top: 0; font-size: 28px; letter-spacing: -0.025em; }
.faq-item { padding: 22px 0 10px; border-top: 1px solid var(--line); }
.faq-item h3 { margin-top: 0; }
.faq-item p { font-size: 15.5px; }

/* Payment hand-back page */
.return-page { text-align: center; padding: 96px var(--gutter); max-width: 560px; margin: 0 auto; }
.return-page h1 { font-size: clamp(32px, 7vw, 48px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px; }
.return-page p { color: var(--muted); }
.return-page .subtitle { font-size: 14px; color: var(--faint); }
.return-icon { margin: 0 auto 28px; border-radius: 16px; }
.return-page .open-app { margin: 24px 0 16px; padding: 14px 28px; font-size: 16px; }

/* Email addresses never split mid-address on a phone; the whole address
   moves to the next line instead (2026-11-23, seen on a phone). */
a[href^="mailto:"] { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
@media (max-width: 759px) {
  /* The Support column (with the email) gets the full width on phones. */
  .footer-cols > :nth-child(3) { grid-column: 1 / -1; }
}
