:root {
  --brand: #0b7d5b;
  --brand-dark: #064c38;
  --text: #17212a;
  --muted: #5f6b77;
  --border: #e3e7eb;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: #f5f7f8; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: #eef1f3; padding: 1px 5px; border-radius: 4px; }

.hero {
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; text-align: center;
  padding: calc(40px + env(safe-area-inset-top)) 16px 72px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.logo { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 40px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.hero h1 { font-size: 28px; margin-top: 6px; }
.tagline { opacity: 0.85; max-width: 340px; }

.download-card {
  margin-top: 18px; width: 100%; max-width: 420px; background: #fff; color: var(--text);
  border-radius: 18px; padding: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  display: flex; flex-direction: column; gap: 10px; margin-bottom: -112px;
}
.download-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  background: var(--brand); color: #fff; border-radius: 14px; font-weight: 700; font-size: 18px; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: transform 0.1s, background 0.15s;
}
.download-btn svg { width: 24px; height: 24px; }
.download-btn:active { transform: scale(0.98); background: var(--brand-dark); }
.download-btn.disabled { background: #b8c2ca; pointer-events: none; }
.meta { color: var(--muted); font-size: 14px; }
.unavailable { color: #a1561b; font-weight: 600; font-size: 14px; }
.hint { background: #fff7e0; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.content { max-width: 640px; margin: 0 auto; padding: 68px 16px 32px; display: flex; flex-direction: column; gap: 28px; }
.content h2 { font-size: 20px; margin-bottom: 12px; }
.notice { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.notice p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 16px 60px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p, .steps ul { color: #34414c; font-size: 15px; }
.steps ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.verify { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.verify summary { cursor: pointer; font-weight: 600; }
.verify p { margin: 10px 0 6px; color: var(--muted); }
.verify code { display: block; word-break: break-all; padding: 8px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }

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