:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b54;
  --border: #e3e0d9;
  --accent: #0f5f58;
  --accent-text: #ffffff;
  --accent-hover: #0b4a44;
  --ok: #17703a;
  --warn: #8a5a00;
  --bad: #b3261e;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1e1d1b;
    --text: #f1efe9;
    --muted: #b3ada3;
    --border: #34322e;
    --accent: #4cc0b3;
    --accent-text: #08201e;
    --accent-hover: #6fd3c7;
    --ok: #6fcf8f;
    --warn: #e7b649;
    --bad: #f2867f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 30rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.merchant { font-weight: 650; font-size: 1.1rem; }
.secure { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .875rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
h1 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 .5rem; }
.desc, .lead { color: var(--muted); margin: 0 0 1rem; }
.amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; margin: .25rem 0 1rem; font-variant-numeric: tabular-nums; }
.facts { margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--border); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
button, .secondary {
  display: block; width: 100%; min-height: 48px;
  border-radius: 10px; font: inherit; font-weight: 650; text-align: center; cursor: pointer;
  text-decoration: none; padding: .8rem 1rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.primary { background: var(--accent); color: var(--accent-text); border: 0; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: .75rem; }
.secondary:hover { border-color: var(--muted); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .875rem; margin: .9rem 0 0; }
.notice { background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: 8px; padding: .6rem .8rem; color: var(--text); }
.state { margin-bottom: .5rem; }
.state-ok { color: var(--ok); }
.state-wait { color: var(--warn); }
.state-bad { color: var(--bad); }
.foot { color: var(--muted); font-size: .8rem; margin-top: 1.25rem; text-align: center; }
.foot p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
