  @import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Public+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

  :root {
    --ink: #14232a;
    --ink-soft: #3d5054;
    --muted: #5c7073;
    --paper: #f4f8f7;
    --surface: #ffffff;
    --surface-sunk: #eaf1ef;
    --line: #d8e4e1;
    --accent: #127c76;
    --accent-deep: #0a4e4a;
    --accent-tint: #e4f3f1;
    --flag: #d9721f;
    --flag-tint: #fbeadb;
    --code-ink: #0a4e4a;
    --shadow: 0 1px 2px rgba(20,35,42,0.06), 0 8px 24px -12px rgba(20,35,42,0.18);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #eaf3f1;
      --ink-soft: #c3d4d1;
      --muted: #8fa6a3;
      --paper: #0e1a1c;
      --surface: #142526;
      --surface-sunk: #0e2021;
      --line: #24403f;
      --accent: #3fbdb2;
      --accent-deep: #8fe0d6;
      --accent-tint: #163232;
      --flag: #f0955a;
      --flag-tint: #2c2013;
      --code-ink: #8fe0d6;
      --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
    }
  }

  :root[data-theme="dark"] {
    --ink: #eaf3f1;
    --ink-soft: #c3d4d1;
    --muted: #8fa6a3;
    --paper: #0e1a1c;
    --surface: #142526;
    --surface-sunk: #0e2021;
    --line: #24403f;
    --accent: #3fbdb2;
    --accent-deep: #8fe0d6;
    --accent-tint: #163232;
    --flag: #f0955a;
    --flag-tint: #2c2013;
    --code-ink: #8fe0d6;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
  }

  .page {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
  }

  .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: var(--flag);
    display: inline-block;
  }

  h1 {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 14px 0 10px;
  }

  .lede {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 58ch;
    margin: 0 0 34px;
  }

  .lede code, p code, li code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.92em;
    color: var(--code-ink);
  }

  /* quick reference panel */
  .ref {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ref-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .ref-label {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 130px;
  }

  .url-box {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 14px;
  }

  .url-box code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--accent-deep);
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
  }

  .copy-btn {
    font-family: 'Archivo', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
  }
  .copy-btn:hover { background: var(--accent); color: var(--surface); }
  .copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .ref-note {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
  }
  .ref-note strong { color: var(--ink-soft); font-weight: 600; }

  /* tabs */
  .tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    overflow-x: auto;
  }

  .tab {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 10px 16px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease;
  }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"] {
    color: var(--accent-deep);
    border-bottom-color: var(--flag);
  }
  .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  /* steps */
  .steps {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    position: relative;
  }

  .step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 18px;
    position: relative;
    padding-bottom: 26px;
  }
  .step:last-child { padding-bottom: 0; }

  .step::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: 0;
    width: 1.5px;
    background: var(--line);
  }
  .step:last-child::before { display: none; }

  .num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--flag);
    color: var(--flag);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .step-body h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    margin: 4px 0 6px;
    color: var(--ink);
  }

  .step-body p {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--ink-soft);
  }

  .step-body .aside {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid var(--line);
  }

  .panel { display: none; }
  .panel.active { display: block; animation: fade 0.2s ease; }
  @media (prefers-reduced-motion: reduce) {
    .panel.active { animation: none; }
  }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* verify + support */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 44px;
  }
  @media (max-width: 560px) {
    .info-grid { grid-template-columns: 1fr; }
  }

  .info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
  }

  .info-card h4 {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 8px;
  }

  .info-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
  }

  footer {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  footer strong { color: var(--ink-soft); }

  .store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--surface);
    background: var(--accent-deep);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 8px;
  }
  .store-link:hover { background: var(--accent); }

/* screenshots */
.shot-wrap { margin-top: 10px; }
.shot {
  display: inline-block;
  width: 130px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.shot:hover { transform: translateY(-2px); }

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,18,20,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: min(420px, 90vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px -12px rgba(0,0,0,0.55);
}

/* guide hub (index) */
.hub-grid {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hub-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hub-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
}

.hub-card h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  color: var(--ink);
}

.hub-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: -6px 0 0;
  flex: 1;
}

.hub-go {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hub-card:hover .hub-go { color: var(--accent); }
.hub-go .arrow { transition: transform 0.15s ease; }
.hub-card:hover .hub-go .arrow { transform: translateX(3px); }
