/* QR Reader — shared site styles */

:root {
  --brand: #635ceb;
  --brand-dark: #4d45d9;
  --brand-pink: #f75585;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-card: #ffffff;
  --text: #14141c;
  --text-soft: #55556b;
  --text-faint: #82829a;
  --border: #e5e5ef;
  --radius: 16px;
  --maxw: 1080px;
  --docw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e14;
    --bg-soft: #16161f;
    --bg-card: #17171f;
    --text: #f2f2f7;
    --text-soft: #b4b4c6;
    --text-faint: #8b8ba1;
    --border: #26263a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.doc  { max-width: var(--docw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Plain nav links only — `:not(.btn)` keeps these off the Download button,
   which otherwise loses its white text, pill radius and padding to these
   higher-specificity rules. */
.nav a:not(.btn) {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a:not(.btn)[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* Belt and braces: the CTA in the header is white on the brand gradient in
   every state, whatever else targets `.nav a`. */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:visited { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 92, 235, 0.32);
}
.btn-primary:hover { filter: brightness(1.07); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(760px 420px at 50% -8%, rgba(99, 92, 235, 0.16), transparent 68%),
    radial-gradient(600px 340px at 88% 12%, rgba(247, 85, 133, 0.11), transparent 66%);
  text-align: center;
}

.hero img.app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(99, 92, 235, 0.3);
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p.lede {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill-row {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */

section.band { padding: 62px 0; }
section.band.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3.6vw, 33px);
  letter-spacing: -0.02em;
  font-weight: 750;
}
.section-head p { margin: 0; color: var(--text-soft); }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-pink));
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card p  { margin: 0; font-size: 15px; color: var(--text-soft); line-height: 1.55; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
td.center, th.center { text-align: center; white-space: nowrap; }

/* ---------- Doc pages ---------- */

.doc-header { padding: 54px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.doc-header h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.025em; font-weight: 800; }
.doc-header .dates { margin: 0; color: var(--text-faint); font-size: 14.5px; }

.doc-body { padding-bottom: 60px; }
.doc-body h2 {
  margin: 42px 0 12px;
  font-size: 23px;
  letter-spacing: -0.015em;
  font-weight: 750;
  scroll-margin-top: 80px;
}
.doc-body h3 { margin: 26px 0 8px; font-size: 17.5px; font-weight: 700; }
.doc-body p  { margin: 0 0 14px; color: var(--text-soft); }
.doc-body ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-soft); }
.doc-body li { margin-bottom: 7px; }
.doc-body strong { color: var(--text); font-weight: 650; }
.doc-body hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

/* FAQ */

details.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq > summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 620;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
details.faq[open] > summary::after { content: "\2212"; }
details.faq > summary:hover { background: var(--bg-soft); }
details.faq .faq-body { padding: 0 18px 16px; }
details.faq .faq-body > :first-child { margin-top: 0; }
details.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
  font-size: 14.5px;
  color: var(--text-faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--text-soft); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.yes { color: #1a9a5f; font-weight: 700; }
.no  { color: var(--text-faint); }

@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav { width: 100%; margin-left: 0; justify-content: flex-start; }
  .hero { padding: 52px 0 44px; }
  .site-footer nav { margin-left: 0; width: 100%; }
}

/* ---------- More apps ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 12px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.app-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 10px 26px rgba(20, 20, 28, 0.09);
}

.app-card img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex: 0 0 56px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.app-card .meta { min-width: 0; }
.app-card .name {
  display: block;
  font-size: 15.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-card .tag {
  display: block;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none; }
  .app-card:hover { transform: none; }
}
