:root {
  --brand: #10B981;
  --brand-dark: #047857;
  --text: #0F172A;
  --muted: #64748B;
  --surface: #FFFFFF;
  --bg: #F8FAFC;
  --border: #E2E8F0;
  --soft-emerald: #D1FAE5;
  --danger: #DC2626;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 24px 0 16px;
}

.logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

header h1 {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 700;
}

header .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}

.qrIcon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrIcon svg {
  width: 40px;
  height: 40px;
  color: var(--text);
}

.card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.card .subline {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
  min-height: 18px;
}

.privacyTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--soft-emerald);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.privacyTag svg {
  width: 14px;
  height: 14px;
}

.blurb {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  text-align: center;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.15s ease;
  border: none;
}

.cta.primary {
  background: var(--brand);
  color: #fff;
}

.cta.primary:active {
  opacity: 0.85;
}

.installPrompt {
  text-align: center;
  margin: 24px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.storeRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.storeBtn {
  padding: 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.storeBtn .label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.storeBtn strong {
  font-size: 14px;
}

footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.err {
  color: var(--danger);
}

.sectionHeading {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
  text-align: center;
  color: var(--text);
}

.issueList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.issueItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.issueItem:hover {
  background: #FAFAFA;
}

.issueItem.selected {
  border-color: var(--brand);
  background: var(--soft-emerald);
}

.issueItem .emoji {
  font-size: 24px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.issueItem .label {
  font-weight: 600;
}

.issueItem .desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.issueItem .text {
  flex: 1;
  min-width: 0;
}

.cta:disabled,
.cta[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta.secondary {
  background: var(--surface);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  margin-top: 8px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.success {
  text-align: center;
  padding: 24px 8px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.success .checkCircle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--soft-emerald);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
}

.success h2 {
  margin: 0;
  font-size: 22px;
  color: var(--brand-dark);
}

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

.errorBanner {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
