:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --text: #101828; --text2: #5B6B7F; --border: #E4E8EE;
  --accent: #E8650A; --on-accent: #FFFFFF; --code-bg: #101828; --code-text: #FFFFFF; --code-muted: #9AA8BA;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F141B; --surface: #171E28; --text: #F2F5F9; --text2: #AEB9C7; --border: #2A3442;
    --accent: #FF7A26; --code-bg: #F2F5F9; --code-text: #0F141B; --code-muted: #5B6B7F;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
main {
  max-width: 560px; margin: 0 auto;
  padding: calc(32px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
@media (min-width: 600px) { main { padding-top: 72px; } }
a { color: var(--accent); text-decoration: none; font-weight: 600; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
h1 { font-size: clamp(26px, 7.5vw, 30px); line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 10px; }
h2 { font-size: 19px; line-height: 26px; margin: 32px 0 8px; }
p, li { color: var(--text2); }
p { margin: 0 0 14px; }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { color: var(--text); }
.lead { font-size: 18px; margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.code {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer;
  background: var(--code-bg); color: var(--code-text); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px;
  -webkit-tap-highlight-color: transparent;
}
.code:active { opacity: 0.85; }
.code-text { flex: 1 1 auto; min-width: 0; -webkit-user-select: none; user-select: none; }
.copy-icon { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--code-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--code-muted); }
.code b { display: block; font-size: clamp(28px, 9vw, 36px); line-height: 1.25; letter-spacing: 4px; overflow-wrap: anywhere; }
.button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.stack { display: grid; gap: 10px; margin-bottom: 20px; }
.muted { font-size: 15px; color: var(--text2); }
footer a { padding: 10px 0; }
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; }
.updated { font-size: 15px; margin-bottom: 24px; }
/* Official store badges sharing the full width at the same height. Widths follow each badge's shape
   (App Store 119.66 × 40; Google Play 564 × 168 inside a 646 × 250 image that carries its own padding). */
.badges { display: flex; gap: 12px; margin: 0 0 20px; }
.badge { display: block; line-height: 0; min-width: 0; }
.badge:hover { text-decoration: none; }
.badge.apple { flex: 2.9916 1 0; }
.badge.apple img { display: block; width: 100%; height: auto; }
.badge.google { flex: 3.3571 1 0; position: relative; overflow: hidden; aspect-ratio: 564 / 168; }
.badge.google img { position: absolute; width: 114.54%; left: -7.27%; top: -24.4%; height: auto; }
[hidden] { display: none !important; }
