:root {
  color-scheme: light;
  --brand: #500bf5;
  --brand-dark: #3500ad;
  --ink: #171321;
  --muted: #696477;
  --surface: #ffffff;
  --line: #e8e3f1;
  --background: #f7f5fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); }
a { color: var(--brand); }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 980px; margin: auto; padding: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.1rem; font-weight: 800; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 10px; }
.site-footer { color: var(--muted); font-size: .875rem; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: var(--muted); }
.page { width: min(100% - 32px, 920px); min-height: calc(100vh - 160px); margin: auto; padding: 42px 0; }
.hero { max-width: 620px; margin: 5vh auto 42px; text-align: center; }
h1 { margin: 8px 0 14px; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; }
.eyebrow { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: auto; }
.choice-card { display: flex; gap: 18px; align-items: center; padding: 28px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 44px rgba(45, 25, 82, .07); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.choice-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 5px; font-size: 1.15rem; }
.choice-card small { color: var(--muted); }
.choice-icon, .proof-icon { display: grid; flex: 0 0 auto; place-items: center; width: 54px; height: 54px; color: var(--brand); background: #eee8ff; border-radius: 50%; font-size: 1.6rem; font-weight: 800; }
.card { max-width: 600px; margin: 2vh auto; padding: clamp(26px, 6vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(45, 25, 82, .08); text-align: center; }
.proof-icon { margin: 0 auto 22px; }
form { margin-top: 30px; text-align: left; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input { width: 100%; padding: 14px 16px; color: var(--ink); background: white; border: 1px solid #cfc8db; border-radius: 10px; font: inherit; }
input:focus { outline: 3px solid #ded2ff; border-color: var(--brand); }
button, .primary-link { display: block; width: 100%; margin-top: 16px; padding: 14px 18px; color: white; background: var(--brand); border: 0; border-radius: 10px; font: inherit; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .primary-link:hover { background: var(--brand-dark); }
.hint { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.alert { max-width: 600px; margin: 0 auto 18px; padding: 14px 16px; border-radius: 10px; }
.alert-danger { color: #851d2d; background: #ffe8ec; }
.subject-value { font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
.qr-box { width: min(100%, 330px); margin: 24px auto; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.qr-box img { display: block; width: 100%; height: auto; }
.wallet-open-link { display: none; }
.status-box { display: grid; gap: 5px; margin-top: 22px; padding: 16px; background: var(--background); border-radius: 10px; }
.status-box span { color: var(--muted); font-size: .9rem; }
.result-screen { padding: 36px 0; }
.result-screen[hidden] { display: none; }
.result-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; font-size: 3rem; font-weight: 800; }
.result-icon.success { color: #137b40; background: #e0f7e9; }
.result-icon.error { color: #a32032; background: #ffe8ec; }

@media (max-width: 640px) {
  .page { padding-top: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .qr-box { display: none; }
  .wallet-open-link { display: block; }
}
