/* QuantProc Web (web.quantproc.com). One card over a dark band, one code for every app. */
:root {
  --ink: #0E1726;
  --ink-2: #334055;
  --muted: #5B6577;
  --line: #DCE2EC;
  --bg: #EDF0F6;
  --card: #FFFFFF;
  --accent: #3B4BD8;
  --accent-soft: #ECEEFC;
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); -webkit-font-smoothing: antialiased; }
.band { position: absolute; inset: 0 0 auto 0; height: 232px; background: var(--ink); }
.top, .card, .foot, .phone-hint { position: relative; }

.top { max-width: 1000px; margin: 0 auto; padding: 26px 20px 0; color: #FFFFFF; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; letter-spacing: 0.01em; }
.brand b { font-weight: 800; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: #FFFFFF; color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 18px; }

.card {
  max-width: 1000px; margin: 34px auto 0; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(14, 23, 38, 0.06), 0 18px 48px -18px rgba(14, 23, 38, 0.28);
  padding: 48px 52px; display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 56px; align-items: start;
}
h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 46ch; }

.steps { list-style: none; counter-reset: s; margin: 0 0 34px; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.steps li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.steps b { color: var(--ink); }
.dots { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #EEF1F6; font-size: 17px; line-height: 1; vertical-align: -3px; }

.works { border-top: 1px solid var(--line); padding-top: 20px; }
.works-t { display: block; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.works-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.works-l li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.works-l img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }

.qr { position: relative; width: 312px; height: 312px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #FFFFFF; }
.qr-code, .qr-code svg { width: 100%; height: 100%; display: block; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%);
  border-radius: 14px; border: 5px solid #FFFFFF; background: var(--ink); color: #FFFFFF;
  display: grid; place-items: center; font-weight: 900; font-size: 22px;
}
.qr-cover {
  position: absolute; inset: 0; border-radius: var(--radius); background: rgba(255, 255, 255, 0.93);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
}
.qr-cover p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); max-width: 24ch; }
.qr[data-state="loading"] .qr-cover, .qr[data-state="scanned"] .qr-cover, .qr[data-state="approved"] .qr-cover,
.qr[data-state="expired"] .qr-cover, .qr[data-state="declined"] .qr-cover, .qr[data-state="error"] .qr-cover { display: flex; }
.qr[data-state="loading"] .qr-code, .qr[data-state="loading"] .qr-logo { visibility: hidden; }
.qr[data-state="expired"] .qr-code, .qr[data-state="declined"] .qr-code, .qr[data-state="error"] .qr-code { filter: blur(5px); opacity: 0.35; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; display: none; }
.qr[data-state="loading"] .spin, .qr[data-state="scanned"] .spin, .qr[data-state="approved"] .spin { display: block; }
.reload {
  display: none; border: 0; border-radius: 999px; padding: 12px 20px; background: var(--accent); color: #FFFFFF;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.reload:focus-visible, .foot a:focus-visible { outline: 3px solid rgba(59, 75, 216, 0.45); outline-offset: 2px; }
.qr[data-state="expired"] .reload, .qr[data-state="declined"] .reload, .qr[data-state="error"] .reload { display: inline-block; }
.qr-note { margin: 16px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 312px; }

.foot {
  max-width: 1000px; margin: 22px auto 40px; padding: 0 20px; display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: 14px; line-height: 1.5;
}
.foot svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.foot a { color: var(--ink-2); margin-left: auto; white-space: nowrap; }
.phone-hint { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.5s; } }

@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; padding: 30px 22px; gap: 30px; margin: 22px 16px 0; }
  .right { justify-self: center; }
  h1 { font-size: 25px; }
  .foot { flex-wrap: wrap; }
  .foot a { margin-left: 0; }
}
@media (max-width: 600px) {
  .qr { width: min(312px, calc(100vw - 76px)); height: min(312px, calc(100vw - 76px)); }
  .phone-hint { display: block; margin: 0 16px 32px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
}
