:root {
  --bg: #151c2b;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.04);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --accent: #9fef00;
  --accent2: #57a6ff;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(159, 239, 0, 0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(87, 166, 255, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand-link:hover { text-decoration: none; }

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 5px rgba(159, 239, 0, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}

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

.lang {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}

.lang a {
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: rgba(159, 239, 0, 0.14);
  color: var(--text);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 54ch;
  margin: 0 0 22px;
}

/* Reserve badge + note space before JS enhances hrefs (CLS). */
[data-store-badges] {
  min-height: 108px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 8px 0 8px;
  min-height: 64px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.store-badge img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Fixed boxes match intrinsic badge ratios → no shift when images decode */
.store-badge--ios {
  width: 132px;
  height: 44px;
}

.store-badge--ios img {
  width: 132px;
  height: 44px;
}

.store-badge--android {
  width: 166px;
  height: 64px;
}

.store-badge--android img {
  width: 166px;
  height: 64px;
}

.store-badge.is-disabled {
  opacity: 0.42;
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.store-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
  min-height: 1.55em;
}

.store-note strong { color: var(--warn); font-weight: 700; }

.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, var(--card), var(--card2));
}

.card h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.pill:hover { text-decoration: none; border-color: rgba(159, 239, 0, 0.35); }

.links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  margin: 36px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-teaser {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  color: inherit;
  text-decoration: none;
}

.article-teaser:hover {
  text-decoration: none;
  border-color: rgba(87, 166, 255, 0.35);
}

.article-teaser h2 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-teaser p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.article-teaser .meta {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.prose {
  max-width: 68ch;
}

.prose .answer-box {
  border: 1px solid rgba(159, 239, 0, 0.28);
  background: rgba(159, 239, 0, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: 15px;
}

.prose h1 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.prose p { color: var(--muted); margin: 0 0 14px; }
.prose li { color: var(--muted); margin-bottom: 6px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose strong { color: var(--text); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 13.5px;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.prose td { color: var(--muted); }

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb span { opacity: 0.55; margin: 0 6px; }

.cta-box {
  margin: 28px 0 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(87, 166, 255, 0.28);
  background: linear-gradient(180deg, rgba(87, 166, 255, 0.10), rgba(255, 255, 255, 0.03));
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cta-box p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.related {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related h2 { font-size: 16px; margin: 0 0 10px; }
.related ul { margin: 0; padding-left: 18px; }
.related li { margin-bottom: 6px; }

.site-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  [data-store-badges] { min-height: 96px; }
  .store-row { min-height: 56px; }
  .store-badge--ios,
  .store-badge--ios img {
    width: 126px;
    height: 42px;
  }
  .store-badge--android,
  .store-badge--android img {
    width: 145px;
    height: 56px;
  }
}
