:root {
  --paper: #f7f7f3;
  --panel: #fff;
  --ink: #11110f;
  --muted: #686861;
  --line: #d7d7cf;
  --strong: #191917;
  --lime: #b7f52d;
  --danger: #af2519;
  --danger-bg: #fff0ee;
  --radius: 4px;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.shell {
  width: min(100%, 640px);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  box-shadow: none;
}
.hero {
  padding: 30px;
  border-bottom: 1px solid var(--strong);
}
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 520px;
  margin: 0 0 11px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.lead,
.hint,
.subcopy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.reset {
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 12px inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
  padding: 2px 0;
}
.reset:hover {
  color: var(--ink);
}
.progress {
  padding: 18px 30px 0;
}
.progress-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: min(100%, 520px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.progress-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: none;
  color: #888880;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.progress-item:not(:last-child)::after {
  content: "";
  width: clamp(28px, 7vw, 76px);
  height: 1px;
  flex: none;
  margin: 0 10px;
  background: var(--line);
}
.progress-indicator {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}
.progress-label {
  white-space: nowrap;
}
.progress-item.active {
  color: var(--ink);
}
.progress-item.active .progress-indicator {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.progress-item.complete {
  color: var(--ink);
}
.progress-item.complete .progress-indicator {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.progress-item.complete:not(:last-child)::after {
  background: var(--lime);
}
.step {
  display: none;
  padding: 30px;
}
.step.show {
  display: block;
}
.label {
  display: block;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.section-label {
  display: block;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 22px;
}
.method-option {
  position: relative;
  border-right: 1px solid var(--strong);
}
.method-option:last-child {
  border-right: 0;
}
.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.method-option span {
  display: block;
  padding: 13px 14px;
  cursor: pointer;
  transition: background 0.14s ease;
}
.method-option input:checked + span {
  background: var(--lime);
  font-weight: 800;
}
.method-option input:focus-visible + span {
  outline: 3px solid rgba(183, 245, 45, 0.72);
  outline-offset: -3px;
}
.field {
  width: 100%;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: 0;
}
.field:focus {
  box-shadow: 0 0 0 3px rgba(183, 245, 45, 0.72);
}
.field::placeholder {
  color: #a1a198;
}
.otp {
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  padding: 12px 15px;
  background: var(--ink);
  color: #fff;
  font: 800 14px inherit;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #33332f;
}
.button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.message {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8a39d;
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}
.message.show {
  display: block;
}
.channel-box {
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  padding: 20px;
}
.channel-box h2,
.result h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.instructions {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.instructions li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}
.channel-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.channel-action {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.channel-action small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.channel-action strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}
.channel-action .arrow {
  font-size: 21px;
  line-height: 1;
}
.channel-action.open {
  background: var(--lime);
  color: var(--ink);
}
.channel-action.qr {
  background: #fff;
  color: var(--ink);
}
.channel-action.qr:hover {
  background: #f1f1eb;
}
.qr-wrap {
  display: none;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.qr-wrap.show {
  display: block;
}
.qr-wrap canvas {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.qr-wrap p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.timer {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.resend {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 13px inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.resend:disabled {
  color: #aaa9a0;
  cursor: not-allowed;
  text-decoration: none;
}
.result {
  text-align: left;
}
.result-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.result-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}
.result.failure .result-mark {
  border-color: #d8a39d;
  background: #f5d0ca;
  color: var(--danger);
}
.result p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 560px) {
  body {
    display: grid;
    place-items: center;
    padding: 14px;
  }
  .shell {
    margin: 0 auto;
  }
  .hero,
  .step {
    padding: 22px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .progress {
    padding: 16px 18px 0;
  }
  .progress-item {
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.035em;
  }
  .progress-indicator {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .progress-item:not(:last-child)::after {
    width: 16px;
    margin: 0 5px;
  }
  .progress-label {
    white-space: normal;
    line-height: 1.15;
  }
  .method-option span {
    padding: 12px 8px;
    font-size: 13px;
  }
  .channel-actions {
    grid-template-columns: 1fr;
  }
  .channel-action {
    min-height: 112px;
  }
  .action-row {
    display: block;
  }
  .action-row .button {
    width: 100%;
  }
}
